A user portrait optimization method and system based on web page semantic analysis

Through the user portrait optimization method based on web page semantic analysis, combined with the knowledge distillation technology of text and image modalities, the center words of user interest categories are extracted, which solves the problems of low recommendation accuracy and model complexity in the existing technology, and improves the accuracy of content recommendation. accuracy and computing resource utilization.

CN118349664BActive Publication Date: 2024-09-24GUANGZHOU FENGTENG NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410337567.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-23
Publication Date
2024-09-24
Estimated Expiration
2044-03-23

AI Technical Summary

Technical Problem

Existing content recommendation services are prone to noise interference when faced with massive feature data, resulting in low recommendation accuracy and difficulty in balancing model complexity and computing resource utilization.

Method used

Using a user profile optimization method based on web page semantic analysis, the user profile model is used to extract initial user profile knowledge, and a pre-trained distillation model is used for in-depth semantic extraction to obtain real-time category center words of user interest, and knowledge is extracted based on text and image modalities. Distillation reduces model dimensions and computing resource requirements, and improves recommendation accuracy.

Benefits of technology

It improves the accuracy and user experience of content push, balances recommendation accuracy and computing resource utilization, and achieves accurate classification of models and content recommendation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349664B
    Figure CN118349664B
Patent Text Reader

Abstract

The present invention provides a user portrait optimization method and system based on web page semantic analysis, including: collecting real-time behavior data of users on web pages, and using the real-time behavior data as input of a pre-trained user portrait model for semantic extraction, and outputting first initial user portrait knowledge; using the first initial user portrait knowledge as input of a pre-trained distillation model for deep semantic extraction, and outputting multiple real-time category center words describing the user portrait; using multiple real-time category center words as input of a pre-trained recommendation model for center word combination, outputting a first combination result, and using the first combination result as a description feature of a product to be recommended; searching a product feature with the highest similarity to the description feature from a product library, and recommending to the user the product corresponding to the product feature; the present invention can improve computing efficiency and simultaneously obtain the accuracy of the user portrait, thereby improving the recommendation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of content recommendation, and in particular to a user portrait optimization method and system based on web page semantic analysis. Background Art

[0002] Traditional content recommendation services are usually rule-based, but this approach ignores the coupling between the user's various features, resulting in limited content recommendations and a mismatch between the pushed content and the user's actual needs. When faced with massive feature data, content recommendation services that use deep learning directly feed all feature data to the model. Since there is no prior judgment on whether there is irrelevant information, the model will also be fed with irrelevant information, causing the model to be greatly interfered by noise, resulting in low recommendation accuracy. However, to improve the accuracy of recommendations, multiple algorithms need to be jointly optimized, but this results in a larger model, more parameters, and slower training convergence, making it difficult to balance computing resource utilization and recommendation accuracy. Summary of the invention

[0003] The purpose of the present invention is to address the deficiencies of the above-mentioned existing related technologies and to propose a user portrait optimization method and system based on web page semantic analysis, which can reduce the requirements for model parameters and computing resources, while improving the accuracy of content push, thereby improving user experience.

[0004] In a first aspect, the present invention provides a method for optimizing user portraits based on web page semantic analysis, comprising:

[0005] Collecting real-time behavior data of users on web pages, and using the real-time behavior data as input of a pre-trained user portrait model to perform semantic extraction, and outputting first initial user portrait knowledge;

[0006] Using the first initial user profile knowledge as the input of the pre-trained distillation model to perform deep semantic extraction, and output multiple real-time category core words describing the user profile;

[0007] Using multiple real-time category core words as inputs of a pre-trained recommendation model to perform core word combination, output a first combination result, and use the first combination result as a description feature of the product to be recommended;

[0008] Find the product features with the highest similarity to the description features from the product library, and recommend products corresponding to the product features to the user.

[0009] The present invention first extracts rough first initial user portrait knowledge through a user portrait model. In order to eliminate irrelevant information and reduce the model dimension while ensuring the recommendation accuracy, a pre-trained distillation model is used for secondary deep extraction to obtain multiple real-time category center words that represent user interests. The multiple real-time category center words are combined to obtain the descriptive features of the products to be recommended. The coupling degree between multiple user interests is mined through the descriptive features, and then product recommendations are made. This can balance the recommendation accuracy while reducing the model dimension and improving the utilization of computing resources.

[0010] Furthermore, the distillation model includes: a first teacher model based on a text deep network, a second teacher model based on an image deep network, and a student model based on a mixed modality; the mixed modality is to simultaneously learn the text modality and the image modality; the student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data.

[0011] The present invention adopts a teacher model based on a text deep model and a teacher model based on an image deep network to perform joint knowledge distillation, so that the student model can learn the associated knowledge of text and image through different teacher models, and perform mixed knowledge distillation on the input of the student model. By using a small-scale student model, user category classification with the same accuracy as the teacher model is achieved, thereby making it possible to accurately classify users and then make accurate content recommendations.

[0012] Furthermore, the student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data, including:

[0013] During offline training, multiple first category central words output by the pre-trained first teacher model and multiple second category central words output by the pre-trained second teacher model are used as first labels of an initial student model;

[0014] Inputting historical behavior data into the user portrait model, outputting second initial user portrait knowledge, using the second initial user portrait knowledge as input to the initial student model, outputting multiple third category core words, using the multiple third category core words as input to the initial recommendation model, and outputting a second combination result of the multiple third category core words;

[0015] According to the second combination result and the first label, the parameters of the initial student model and the initial recommendation model are updated in sequence to obtain a trained student model and a recommended model accordingly.

[0016] The present invention adopts a method of jointly updating the recommendation model and the distillation model, which can improve the accuracy of semantic analysis as a whole, thereby optimizing the accuracy of recommended content as a whole.

[0017] Further, the initial student model and the initial recommendation model are updated in sequence according to the second combination result and the first label, and the trained student model and recommendation model are obtained accordingly, including:

[0018] The product features corresponding to the second combination results are embedded and input into the initial student model, and a plurality of fourth category central words to be confirmed for consistency are output. The plurality of fourth category central words and the first label are combined to verify the consistency of the plurality of third category central words to obtain a consistency loss function, and parameters are updated according to the consistency loss function to obtain the trained student model and recommendation model accordingly.

[0019] Further, the parameters are updated according to the consistency loss function, and a trained recommendation model is obtained accordingly, including:

[0020] If the current consistency loss function value is smaller than the consistency loss function value after the last sample training, the initial recommendation model is given a preset positive reward, otherwise a preset negative reward is given as a penalty;

[0021] According to the preset positive reward or the preset negative reward, the time difference error of the initial recommendation model is calculated, and the parameters are updated according to the time difference error to obtain a trained recommendation model.

[0022] Furthermore, the real-time behavior data of the user on the webpage is collected, and the real-time behavior data is used as the input of the pre-trained user portrait model for semantic extraction, and the first initial user portrait knowledge is output, including:

[0023] Collect the user's real-time text data and real-time image data on the web page, input the real-time text data into the semantic model for semantic extraction and intent capture, output the first user portrait knowledge, and input the real-time image data into the emotion model for emotion capture, output the second user portrait knowledge, combine the first user portrait knowledge and the second user portrait knowledge to obtain the first initial user portrait knowledge; the user portrait model includes: the semantic model and the emotion model.

[0024] Furthermore, the emotion model includes: a parallel dual-branch network; the dual-branch network includes: a first sub-network based on a posture attention mechanism and a second sub-network based on a spatial attention mechanism; the output second user portrait knowledge includes:

[0025] Extract the foreground and background of the real-time image data, input the foreground into the first sub-network, output the posture features of the foreground, input the background into the second sub-network, output the panoramic features of the background, and fuse the posture features with the panoramic features through two consecutive activation functions to obtain second user portrait knowledge representing emotions.

[0026] Further, after recommending to the user, the method further includes:

[0027] User behavior feedback data is obtained, and an information bottleneck loss function is constructed according to the user behavior feedback data, and online small sample fine-tuning is performed on the recommendation model and the distillation model simultaneously based on the information bottleneck loss function.

[0028] Furthermore, the simultaneously online small sample fine-tuning of the recommendation model and the distillation model based on the information bottleneck loss function includes:

[0029] During the testing phase, the information bottleneck loss function is combined with the consistency loss function of the distillation model, and the distillation model is fine-tuned on a small sample basis online. The information bottleneck loss function is combined with the recommendation loss function of the recommendation model, and the recommendation model is fine-tuned on a small sample basis online to detect changes in user interests in real time. The recommendation loss function is represented by a temporal differential error.

[0030] In a second aspect, the present invention provides a user portrait optimization system based on web page semantic analysis, comprising: a first semantic extraction module, a second semantic extraction module, a product description acquisition module and a recommendation module; wherein:

[0031] The first semantic extraction module is used to collect real-time behavior data of users on web pages, and use the real-time behavior data as input of a pre-trained user portrait model to perform semantic extraction, and output first initial user portrait knowledge;

[0032] The second semantic extraction module is used to perform deep semantic extraction using the first initial user profile knowledge as an input of a pre-trained distillation model, and output a plurality of real-time category core words describing the user profile;

[0033] The product description acquisition module is used to combine the multiple real-time category core words as inputs of the pre-trained recommendation model, output a first combination result, and use the first combination result as a description feature of the product to be recommended;

[0034] The recommendation module is used to search the product features with the highest similarity to the description features from the product library, and recommend products corresponding to the product features to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flow chart of a user portrait optimization method based on web page semantic analysis provided in this embodiment;

[0036] Figure 2 is a flowchart of deep semantic extraction provided by this embodiment;

[0037] Figure 3 This is a schematic diagram of the complete process of testing the user portrait optimization method based on web page semantic analysis provided by this embodiment;

[0038] Figure 4 This is a schematic diagram of the complete training process of the user portrait optimization method based on web page semantic analysis provided by this embodiment;

[0039] Figure 5 is a structural diagram of a user portrait optimization system based on web page semantic analysis provided by this embodiment;

[0040] Figure 6 It is a structural diagram of the second semantic extraction module provided in this embodiment. DETAILED DESCRIPTION

[0041] 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.

[0042] It is worth noting that the existing rule-based recommendation models often ignore the user's multiple interests and the coupling between multiple interests, and thus fail to tap the complex features between the user's multiple interests, resulting in a low match between the pushed content and user needs; the existing deep model's input contains a large amount of irrelevant information and is subject to large interference noise. If multiple algorithms are used to improve accuracy, it will lead to problems of large models and large calculations, making it difficult to balance recommendation accuracy and computing resource utilization.

[0043] Based on this, the present invention provides a user portrait optimization method and system based on web page semantic analysis. After the user authorizes to obtain behavioral data, the information posted by the user on the web page is captured using information capture technology, and the rough first initial user portrait knowledge is first extracted through the user portrait model. In order to eliminate irrelevant information, improve recommendation accuracy and reduce model dimension, a pre-trained distillation model is used for secondary deep extraction to obtain multiple real-time category center words that represent user interests, and obtain the user's interest point classification, which can complete the accurate analysis of the interested groups in the target group. Then, the recommendation model is used to combine according to the center words of the interest points, and the coupling between the interest points is explored. Finally, the product is accurately delivered, so as to balance the recommendation accuracy while reducing the model dimension and improving the utilization of computing resources.

[0044] In order to better illustrate the technical solution of the present invention, the following embodiments will be used as examples.

[0045] Example 1

[0046] See also Figure 1 , is a flow chart of a user portrait optimization method based on webpage semantic analysis provided by this embodiment, including: steps S11 to S14, specifically:

[0047] Step S11: collect the real-time behavior data of the user on the web page, and use the real-time behavior data as the input of the pre-trained user portrait model to perform semantic extraction, and output the first initial user portrait knowledge.

[0048] In some embodiments, real-time behavior data of users on web pages are collected, and the real-time behavior data is used as input of a pre-trained user portrait model for semantic extraction, and first initial user portrait knowledge is output, including: real-time text data and real-time picture data of users on web pages are collected, the real-time text data is input into a semantic model for semantic extraction and intent capture, first user portrait knowledge is output, and the real-time picture data is input into an emotion model for emotion capture, second user portrait knowledge is output, and the first user portrait knowledge and the second user portrait knowledge are combined to obtain first initial user portrait knowledge; the user portrait model includes: the semantic model and the emotion model.

[0049] It is worth noting that the first user portrait knowledge is the user portrait knowledge after semantic extraction and intent capture of real-time text data, and the second user portrait knowledge is the user portrait knowledge after emotion capture of real-time image data. The first initial user portrait is the rough user portrait knowledge obtained by real-time semantic extraction of real-time behavior data through the pre-trained user portrait model during the testing phase or real-time recommendation process; the second initial user portrait is the rough user portrait knowledge obtained by semantic extraction of historical behavior data through the pre-trained user portrait model during the training phase.

[0050] In some embodiments, user portrait knowledge includes: a dynamic set of multi-dimensional features of user interests, behavior patterns, and device preferences.

[0051] In some embodiments, the emotion model includes: a parallel two-branch network; the two-branch network includes: a first sub-network based on a posture attention mechanism and a second sub-network based on spatial attention; the output of the second user portrait knowledge includes: extracting the foreground and background of the real-time image data, and inputting the foreground into the first sub-network, outputting the posture features of the foreground, inputting the background into the second sub-network, outputting the panoramic features of the background, and fusing the posture features with the panoramic features through two consecutive activation functions to obtain the second user portrait knowledge that represents the emotion.

[0052] It is worth mentioning that the first sub-network is used to extract the posture features of the characters in the foreground of the real-time image data, using a graph neural network based on posture attention; the second sub-network is used to extract the panoramic features of the scenes in the background of the real-time image data, using a graph neural network based on spatial attention; the first sub-network and the second sub-network are parallel dual-branch networks, which perform feature fusion after extracting their respective posture features and panoramic features, and output a second user portrait knowledge representing emotions.

[0053] In some embodiments, a foreground centered on the character is obtained through a character bounding box, and a background without the character is obtained, and the foreground is input into a first sub-network, and feature extraction is performed in sequence through the convolutional layer, pooling layer, and fully connected layer of the first sub-network, and the foreground features are output. The emotional confidence of the foreground is obtained through a posture attention mechanism, and the foreground features and the emotional execution degree are fused through an activation function to obtain posture features.

[0054] In some embodiments, the background is input into the second sub-network, and feature extraction is performed in sequence through the convolutional layer, pooling layer and fully connected layer of the second sub-network, and the background features are output. The emotional confidence of the background is obtained through a spatial attention mechanism, and the background features and the emotional execution of the background are fused through an activation function to obtain panoramic features.

[0055] In some embodiments, the panoramic features and the posture features are spliced ​​in the channel dimension and classified using a secondary activation function to obtain second user portrait knowledge representing emotions.

[0056] Step S12: Use the first initial user portrait knowledge as the input of the pre-trained distillation model to perform deep semantic extraction, and output multiple real-time category core words that describe the user portrait.

[0057] In some embodiments, the distillation model includes: a first teacher model based on a text deep network, a second teacher model based on an image deep network, and a student model based on a mixed modality; the mixed modality is to simultaneously learn the text modality and the image modality; the student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data.

[0058] It is worth noting that the first teacher model is a teacher model that learns knowledge from input based on a text deep network, and the second teacher model is a teacher model that learns knowledge from input based on an image deep network; and the first teacher model and the second teacher model perform different operations on the same input, and output text-based and image-based deep semantic analysis results respectively. Since the teacher model has large parameters and requires large computing power, but high precision, in order to reduce the number of parameters of the overall model while ensuring the accuracy of recommendation, when training the initial student model in the distillation model, the student model is jointly distilled by the first teacher model and the second teacher model; in the real-time recommendation process, only the student model with smaller model parameters, smaller computing power requirements, but the same precision needs to be used to classify user groups, and obtain multiple real-time category center words corresponding to the user's real-time points of interest.

[0059] This embodiment uses a teacher model based on a text deep model and a teacher model based on an image deep network to perform joint knowledge distillation, so that the student model can learn the associated knowledge of text and image through different teacher models, and perform mixed knowledge distillation on the input of the student model. By using a small-scale student model, user category classification with the same accuracy as the teacher model is achieved, so that accurate content recommendations can be made after accurate classification of users.

[0060] The process of obtaining multiple real-time category center words is to perform secondary deep semantic extraction on real-time behavior data, obtain interest classification with a smaller feature range and more accurate description, and represent it with category center words.

[0061] In some embodiments, the student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data, including: steps S201 to S203, see Figure 2 , is a schematic diagram of the process of deep semantic extraction provided by this embodiment, specifically:

[0062] Step S201: During offline training, multiple first category core words output by the pre-trained first teacher model and multiple second category core words output by the pre-trained second teacher model are used as first labels of the initial student model.

[0063] It is worth noting that the real-time category center word is the output of the distillation model in the real-time recommendation process, specifically, it is output by the pre-trained student model; the first category center word is the category center word output by the pre-trained first teacher model input during the distillation model training process with text as the input; the second category center word is the category center word output by the distillation model in the training process with images as the input of the pre-trained second teacher model; the third category center word is the category center word output by the distillation model in the training process with historical behavior data as the input of the initial student model; wherein, the first category center word and the second category center word are used as the first label of the initial student model.

[0064] Step S202: input the historical behavior data into the user portrait model, output the second initial user portrait knowledge, use the second initial user portrait knowledge as the input of the initial student model, output multiple third category central words, use the multiple third category central words as the input of the initial recommendation model, and output the second combination result of multiple third category central words.

[0065] It is worth noting that the second combination result is the result of combining multiple third-category center words as the input of the initial recommendation model during the training process of the recommendation model; the first combination result is the result of combining multiple real-time category center words as the input of the trained recommendation model during the testing process of the recommendation model.

[0066] In some embodiments, the recommendation model and the initial recommendation model adopt the same structural model, and the structural model includes: a model based on reinforcement learning or deep reinforcement learning.

[0067] It is worth noting that the distillation model performs secondary deep semantic extraction, and the output category center words are the classification of the user's interest points. In order to explore the degree of coupling between interest points and recommend corresponding products to users, the interest points are combined to obtain the optimal combination result. The combination result is used as the descriptive feature of the product to be recommended, and the product most similar to the descriptive feature is found from the product library for recommendation to the user.

[0068] Step S203: According to the second combination result and the first label, update the parameters of the initial student model and the initial recommendation model in sequence to obtain a trained student model and a recommended model accordingly.

[0069] In some embodiments, according to the second combination result and the first label, the parameters of the initial student model and the initial recommendation model are updated in sequence to obtain corresponding trained student model and recommendation model, including: embedding the product features corresponding to the second combination result and inputting them into the initial student model, outputting multiple fourth category center words to be confirmed for consistency, combining the multiple fourth category center words and the first label, verifying the consistency of the multiple third category center words, obtaining a consistency loss function, and updating the parameters according to the consistency loss function to obtain corresponding trained student model and recommendation model.

[0070] In some embodiments, the initial student model also has a real second label, and constructs a consistency loss function based on the first label, the second label and the multiple fourth category central words corresponding to the second combination result, and then updates the parameters of the initial student model based on the consistency loss function.

[0071] In some embodiments, parameters are updated according to the consistency loss function to obtain a corresponding trained recommendation model, including: if the current consistency loss function value is smaller than the consistency loss function value after the last sample training, a preset positive reward is given to the initial recommendation model, otherwise a preset negative reward is given as a penalty; according to the preset positive reward or the preset negative reward, the time differential error of the initial recommendation model is calculated, and the parameters are updated according to the time differential error to obtain a trained recommendation model.

[0072] In some embodiments, if the initial recommendation model is a recommendation model based on deep reinforcement learning, and if the current consistency loss function value is smaller than the consistency loss function value after the last sample training, the instant reward of the initial recommendation model is given a preset positive reward, otherwise the instant reward is given a preset negative reward as a penalty; based on the instant reward, the time difference error of the initial recommendation model is calculated, and the parameters are updated according to the time difference error to obtain a trained recommendation model.

[0073] Step S13: using multiple real-time category core words as inputs of a pre-trained recommendation model to perform core word combination, outputting a first combination result, and using the first combination result as a description feature of the product to be recommended.

[0074] In some embodiments, if the pre-trained recommendation model is a recommendation model based on deep reinforcement learning, multiple real-time category center words are used as observed environments and input into the recommendation model as states. The recommendation model selects the combination result with the highest value judgment as the optimal action for output.

[0075] Step S14: searching the product library for the product feature with the highest similarity to the description feature, and recommending the product corresponding to the product feature to the user.

[0076] In some embodiments, after making a recommendation to the user, it also includes: obtaining user behavior feedback data, and constructing an information bottleneck loss function based on the user behavior feedback data, and performing online small sample fine-tuning on the recommendation model and the distillation model simultaneously based on the information bottleneck loss function.

[0077] In some embodiments, the recommendation model and the distillation model are simultaneously fine-tuned online with a small sample based on the information bottleneck loss function, including: during the testing phase, the information bottleneck loss function is combined with the consistency loss function of the distillation model to perform online small sample fine-tuning on the distillation model, and the information bottleneck loss function is combined with the recommendation loss function of the recommendation model to perform online small sample fine-tuning on the recommendation model to detect changes in user interests in real time; the recommendation loss function is represented based on the time difference error.

[0078] See also Figure 3 , is a schematic diagram of the complete flow of the user portrait optimization method test based on web page semantic analysis provided by this embodiment. Figure 3 The complete test process, or the complete usage process, is shown in Figure 1, and the student network of the student model and the recommendation network of the recommendation model are marked. First, the user's real-time behavior data is collected and classified according to text and image types, and the text is used as the input of the semantic model for the first semantic extraction.

[0079] Specifically, the text is used as the input of the semantic model to perform semantic extraction and intent capture, and the first user portrait knowledge is output; the image is used as the input of the emotion model, and in the emotion model, the foreground and background of the image are first extracted, and the foreground and background are respectively input into two parallel branch networks to extract the posture features and panoramic features in the image respectively, and after the posture features and panoramic features are fused, the second user portrait knowledge is obtained; finally, the first user portrait knowledge is combined with the second user portrait knowledge to obtain the first initial user portrait knowledge.

[0080] During the second deep semantic extraction, the first initial user portrait knowledge is used as the input of the student model in the distillation model. The student model outputs the classification of the user's real-time interest points to obtain multiple real-time category center words. The multiple real-time category center words are used as the input of the recommendation network. The recommendation network combines multiple real-time category center words to output the first combination result associated with multiple interest points of the current user, and selects the product with the highest similarity to the first combination result for recommendation.

[0081] In some embodiments, knowledge distillation is performed on the initial student model through the first teacher model and the second teacher model, including: knowledge distillation at the output layer, knowledge distillation at the intermediate layer, or knowledge distillation at the relational layer.

[0082] After the recommendation, the user behavior is detected in real time to obtain feedback results. According to the feedback results, the information bottleneck loss function of the real-time small sample is constructed. According to the information bottleneck loss function, the recommendation loss function of the recommendation model and the consistency loss function of the distillation model are fine-tuned respectively. According to the fine-tuned recommendation loss function, the online parameters of the recommendation network are updated, and according to the fine-tuned consistency loss function, the parameters of the student network of the student model are updated.

[0083] See also Figure 4 , is a schematic diagram of the complete training process of the user portrait optimization method based on web page semantic analysis provided by this embodiment. Figure 4 The training process of the distillation model and the recommendation model is performed in the order of the number labels. Different from the test process, in the distillation model, the initial student model is trained by first taking the second initial user portrait knowledge as the input of the first teacher model and the second teacher model respectively, and taking the multiple first category center words output by the first teacher model and the multiple second category center words output by the second teacher model as the first labels of the initial student model to construct the consistency loss function. To construct a complete consistency loss function, the student network of the initial student model needs to output multiple third category center words after inputting the second initial user portrait knowledge, and take the multiple third category center words as the input of the recommendation network of the initial recommendation model, and output the second combination result of the multiple third category center words.

[0084] It is worth noting that according to the second combination result output by the recommendation network, product features similar to the second combination result are used as the input of the student network. The purpose is to obtain multiple fourth-category central words for recommended products. In the complete consistency loss function, multiple first-category central words and multiple second-category central words are required as the first labels, and multiple fourth-category central words and the real second labels of historical behavior data are combined to construct the consistency loss function. Then, the student network parameters are updated according to the consistency loss function, and based on two consecutive consistency loss function values, the instant reward is fed back to the recommendation model to obtain the time difference error, and the recommendation loss function is constructed based on the time difference error. Finally, the recommendation network is updated according to the recommendation loss function.

[0085] This embodiment first extracts rough initial user portrait knowledge through the user portrait model. In order to eliminate irrelevant information and reduce the model dimension while ensuring the recommendation accuracy, a pre-trained distillation model is used for secondary deep extraction to obtain multiple real-time category center words that represent user interests. The multiple real-time category center words are combined to obtain the descriptive features of the products to be recommended. The coupling degree between multiple user interests is mined through the descriptive features, and then product recommendations are made. This can balance the recommendation accuracy while reducing the model dimension and improving the utilization of computing resources.

[0086] Example 2

[0087] See also Figure 5 , is a structural diagram of a user portrait optimization system based on web page semantic analysis provided in this embodiment, including: a first semantic extraction module 21, a second semantic extraction module 22, a product description acquisition module 23 and a recommendation module 24.

[0088] The first semantic extraction module 21 is used to collect real-time behavior data of users on web pages, and use the real-time behavior data as input of a pre-trained user portrait model to perform semantic extraction, and output first initial user portrait knowledge.

[0089] In some embodiments, real-time behavior data of users on web pages are collected, and the real-time behavior data is used as input of a pre-trained user portrait model for semantic extraction, and first initial user portrait knowledge is output, including: real-time text data and real-time picture data of users on web pages are collected, the real-time text data is input into a semantic model for semantic extraction and intent capture, first user portrait knowledge is output, and the real-time picture data is input into an emotion model for emotion capture, second user portrait knowledge is output, and the first user portrait knowledge and the second user portrait knowledge are combined to obtain first initial user portrait knowledge; the user portrait model includes: the semantic model and the emotion model.

[0090] In some embodiments, the emotion model includes: a parallel two-branch network; the two-branch network includes: a first sub-network based on a posture attention mechanism and a second sub-network based on spatial attention; the output of the second user portrait knowledge includes: extracting the foreground and background of the real-time image data, and inputting the foreground into the first sub-network, outputting the posture features of the foreground, inputting the background into the second sub-network, outputting the panoramic features of the background, and fusing the posture features with the panoramic features through two consecutive activation functions to obtain the second user portrait knowledge that represents the emotion.

[0091] The second semantic extraction module 22 is used to perform deep semantic extraction using the first initial user profile knowledge as input of a pre-trained distillation model, and output a plurality of real-time category core words describing the user profile.

[0092] In some embodiments, the distillation model includes: a first teacher model based on a text deep network, a second teacher model based on an image deep network, and a student model based on a mixed modality; the mixed modality is to simultaneously learn the text modality and the image modality; the student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data.

[0093] In some embodiments, the second semantic extraction module 22 includes: an initial student model label acquisition module 221, a category center word combination module 222 and a parameter updating module 223. Figure 6 , is a schematic diagram of the structure of the second semantic extraction module provided in this embodiment, specifically:

[0094] The initial student model label acquisition module 221 is used to use the multiple first category central words output by the pre-trained first teacher model and the multiple second category central words output by the pre-trained second teacher model as the first label of the initial student model during offline training.

[0095] The category core word combination module 222 is used to input historical behavior data into the user portrait model, output a second initial user portrait knowledge, and use the second initial user portrait knowledge as the input of the initial student model, output multiple third category core words, use the multiple third category core words as the input of the initial recommendation model, and output a second combination result of multiple third category core words.

[0096] The parameter updating module 223 is used to update the parameters of the initial student model and the initial recommendation model in turn according to the second combination result and the first label, so as to obtain a trained student model and a recommended model accordingly.

[0097] In some embodiments, according to the second combination result and the first label, the parameters of the initial student model and the initial recommendation model are updated in sequence to obtain corresponding trained student model and recommendation model, including: embedding the product features corresponding to the second combination result and inputting them into the initial student model, outputting multiple fourth category center words to be confirmed for consistency, combining the multiple fourth category center words and the first label, verifying the consistency of the multiple third category center words, obtaining a consistency loss function, and updating the parameters according to the consistency loss function to obtain corresponding trained student model and recommendation model.

[0098] In some embodiments, parameters are updated according to the consistency loss function to obtain a corresponding trained recommendation model, including: if the current consistency loss function value is smaller than the consistency loss function value after the last sample training, a preset positive reward is given to the initial recommendation model, otherwise a preset negative reward is given as a penalty; according to the preset positive reward or the preset negative reward, the time differential error of the initial recommendation model is calculated, and the parameters are updated according to the time differential error to obtain a trained recommendation model.

[0099] The product description acquisition module 23 is used to combine the central words of multiple real-time categories as inputs of a pre-trained recommendation model, output a first combination result, and use the first combination result as a description feature of the product to be recommended.

[0100] The recommendation module 24 is used to search the product features with the highest similarity to the description features from the product library, and recommend products corresponding to the product features to the user.

[0101] In some embodiments, after making a recommendation to the user, it also includes: obtaining user behavior feedback data, and constructing an information bottleneck loss function based on the user behavior feedback data, and performing online small sample fine-tuning on the recommendation model and the distillation model simultaneously based on the information bottleneck loss function.

[0102] In some embodiments, the recommendation model and the distillation model are simultaneously fine-tuned online with a small sample based on the information bottleneck loss function, including: during the testing phase, the information bottleneck loss function is combined with the consistency loss function of the distillation model to perform online small sample fine-tuning on the distillation model, and the information bottleneck loss function is combined with the recommendation loss function of the recommendation model to perform online small sample fine-tuning on the recommendation model to detect changes in user interests in real time; the recommendation loss function is represented based on the time difference error.

[0103] In this embodiment, the first semantic extraction module 21 is used to first extract rough first initial user portrait knowledge through the user portrait model. In order to eliminate irrelevant information and reduce the model dimension, and at the same time ensure the recommendation accuracy, the second semantic extraction module 22 uses a pre-trained distillation model to perform secondary deep extraction to obtain multiple real-time category center words that represent user interests. The multiple real-time category center words are combined by obtaining the product description module 23 to obtain the descriptive features of the product to be recommended. The coupling degree between multiple user interests is mined through the descriptive features, and then the recommendation module 24 is used to make product recommendations, thereby balancing the recommendation accuracy while reducing the model dimension and improving the utilization of computing resources.

[0104] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

[0105] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0108] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A user portrait optimization method based on web page semantic analysis, characterized in that: include: Collecting real-time behavior data of users on web pages, and using the real-time behavior data as input of a pre-trained user portrait model to perform semantic extraction, and outputting first initial user portrait knowledge; Using the first initial user profile knowledge as the input of the pre-trained distillation model to perform deep semantic extraction, and output multiple real-time category core words describing the user profile; Using multiple real-time category core words as inputs of a pre-trained recommendation model to perform core word combination, output a first combination result, and use the first combination result as a description feature of the product to be recommended; Find the product features with the highest similarity to the description features from the product library, and recommend products corresponding to the product features to the user.

2. The user portrait optimization method based on web page semantic analysis according to claim 1, characterized in that: The distillation model includes: a first teacher model based on a text deep network, a second teacher model based on an image deep network, and a student model based on a mixed modality; the mixed modality is to simultaneously learn the text modality and the image modality; the student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data.

3. The user portrait optimization method based on web page semantic analysis according to claim 2, characterized in that: The student model is obtained by performing joint knowledge distillation based on the first teacher model and the second teacher model, and performing offline training simultaneously with the recommendation model based on historical behavior data, including: During offline training, multiple first category central words output by the pre-trained first teacher model and multiple second category central words output by the pre-trained second teacher model are used as first labels of an initial student model; Inputting historical behavior data into the user portrait model, outputting second initial user portrait knowledge, using the second initial user portrait knowledge as input to the initial student model, outputting multiple third category core words, using the multiple third category core words as input to the initial recommendation model, and outputting a second combination result of the multiple third category core words; According to the second combination result and the first label, the parameters of the initial student model and the initial recommendation model are updated in sequence to obtain a trained student model and a recommended model accordingly.

4. The user portrait optimization method based on web page semantic analysis according to claim 3, characterized in that: The method of updating parameters of the initial student model and the initial recommendation model in sequence according to the second combination result and the first label, and obtaining a trained student model and a recommendation model accordingly, comprises: The product features corresponding to the second combination results are embedded and input into the initial student model, and a plurality of fourth category central words to be confirmed for consistency are output. The plurality of fourth category central words and the first label are combined to verify the consistency of the plurality of third category central words to obtain a consistency loss function, and parameters are updated according to the consistency loss function to obtain the trained student model and recommendation model accordingly.

5. The user portrait optimization method based on web page semantic analysis according to claim 4, characterized in that: Parameters are updated according to the consistency loss function, and a trained recommendation model is obtained accordingly, including: If the current consistency loss function value is smaller than the consistency loss function value after the last sample training, the initial recommendation model is given a preset positive reward, otherwise a preset negative reward is given as a penalty; According to the preset positive reward or the preset negative reward, the time difference error of the initial recommendation model is calculated, and the parameters are updated according to the time difference error to obtain a trained recommendation model.

6. The user portrait optimization method based on web page semantic analysis according to claim 1, characterized in that: The collecting of real-time behavior data of users on web pages, and using the real-time behavior data as input of a pre-trained user portrait model for semantic extraction, and outputting first initial user portrait knowledge, includes: Collect the user's real-time text data and real-time image data on the web page, input the real-time text data into the semantic model for semantic extraction and intent capture, output the first user portrait knowledge, and input the real-time image data into the emotion model for emotion capture, output the second user portrait knowledge, combine the first user portrait knowledge and the second user portrait knowledge to obtain the first initial user portrait knowledge; the user portrait model includes: the semantic model and the emotion model.

7. The user portrait optimization method based on web page semantic analysis according to claim 6, characterized in that: The emotion model includes: a parallel dual-branch network; the dual-branch network includes: a first sub-network based on a posture attention mechanism and a second sub-network based on spatial attention; the output second user portrait knowledge includes: Extract the foreground and background of the real-time image data, input the foreground into the first sub-network, output the posture features of the foreground, input the background into the second sub-network, output the panoramic features of the background, and fuse the posture features with the panoramic features through two consecutive activation functions to obtain second user portrait knowledge representing emotions.

8. The user portrait optimization method based on web page semantic analysis according to claim 1, characterized in that: After recommending to the user, the method further includes: User behavior feedback data is obtained, and an information bottleneck loss function is constructed according to the user behavior feedback data, and online small sample fine-tuning is performed on the recommendation model and the distillation model simultaneously based on the information bottleneck loss function.

9. The user portrait optimization method based on web page semantic analysis according to claim 8, characterized in that: The simultaneously online small sample fine-tuning of the recommendation model and the distillation model based on the information bottleneck loss function includes: During the testing phase, the information bottleneck loss function is combined with the consistency loss function of the distillation model, and the distillation model is fine-tuned on a small sample basis online. The information bottleneck loss function is combined with the recommendation loss function of the recommendation model, and the recommendation model is fine-tuned on a small sample basis online to detect changes in user interests in real time. The recommendation loss function is represented by a temporal differential error.

10. A user portrait optimization system based on web page semantic analysis, characterized in that: include: A first semantic extraction module, a second semantic extraction module, a product description acquisition module and a recommendation module; wherein, The first semantic extraction module is used to collect real-time behavior data of users on web pages, and use the real-time behavior data as input of a pre-trained user portrait model to perform semantic extraction, and output first initial user portrait knowledge; The second semantic extraction module is used to perform deep semantic extraction using the first initial user profile knowledge as an input of a pre-trained distillation model, and output a plurality of real-time category core words describing the user profile; The product description acquisition module is used to combine the multiple real-time category core words as inputs of the pre-trained recommendation model, output a first combination result, and use the first combination result as a description feature of the product to be recommended; The recommendation module is used to search the product features with the highest similarity to the description features from the product library, and recommend products corresponding to the product features to the user.

Citation Information

Patent Citations

  • Recommendation model training method and device, electronic equipment and storage medium

    CN112541122A

  • Model training method and device based on knowledge distillation, equipment and medium

    CN117313830A

  • Machine learning ranking distillation

    WO2023064083A1