Commodity recommendation method and device, computer equipment and storage medium
By responding to user search click events, constructing behavior information sequences and calculating interest scores and search-related scores, the problem of user instant interests in e-commerce platforms is solved, and the relevance of the recommendation system and user satisfaction are improved.
Patent Information
- Application Number
- CN202410923279.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-22
AI Technical Summary
The product recommendation system of the existing e-commerce platform fails to fully capture the user's current instant interests and real-time behavior, resulting in the recommendation results that do not match the user's immediate needs, are not sensitive enough, and cannot update the product sorting strategy in a timely manner.
By responding to user search click events, constructing behavior information sequences, calculating interest scores and search-related scores, and dynamically adjusting the recommendation list to ensure that the recommendation results are consistent with the user's current interests and intentions.
It realizes sensitive capture of users' immediate interests, improves the relevance of recommendations and user satisfaction, provides more accurate personalized recommendations, and improves purchase conversion rate and shopping efficiency.
Smart Images

Figure CN119006090A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of e-commerce search ranking, and in particular to a product recommendation method, device, computer equipment and storage medium. Background Art
[0002] Product recommendation is a high-frequency demand of e-commerce platforms. When users search for products on the independent website of the e-commerce platform, the e-commerce platform provides backend product search service support, and provides a search result list through the corresponding product search service for users to further select products.
[0003] In the search list page sorting scenario of an independent website, it is necessary to recommend and sort the product items browsed by users in the background. At present, e-commerce platforms usually use recommendation algorithms based on user historical data to analyze users' past purchase records, browsing behaviors, and search histories to predict users' interests, and provide product sorting recommendation services based on the prediction results.
[0004] However, existing technologies mainly focus on analyzing the correlation between users and candidate products and users' historical behaviors, and are more focused on capturing and modeling users' long-term interests. Although this approach helps to understand users' stable preferences and can provide personalized recommendations to a certain extent, existing technologies often rely on statistical analysis of users' long-term behaviors and fail to fully capture and respond to the product information corresponding to the product currently clicked by the user. They ignore the user's current real-time behavior during the session, such as the immediate interest shown by continuous search behaviors and click behaviors, thereby ignoring the user's current product demand and shopping intentions.
[0005] At the same time, the existing technology is not accurate enough in inferring users' subsequent behaviors based on their long-term interests, which causes e-commerce platforms to be insufficiently responsive to rapidly changing user interests and unable to update effective product recommendation strategies in a timely manner, making it impossible for product sorting on e-commerce platforms to meet users' immediate needs. Summary of the invention
[0006] The purpose of this application is to provide a product recommendation method, device, computer equipment and storage medium.
[0007] According to one aspect of the present application, a product recommendation method is provided, comprising:
[0008] In response to a search click event triggered by a user, a target session in a session flow is determined, and a behavior information sequence is constructed according to clicked product information corresponding to each product click event triggered by the user during the target session, wherein the last product click event during the target session is the search click event;
[0009] Determine the correlation score between the clicked product information corresponding to the search click event and each product information in the product database, and recall product information of multiple recommended products whose correlation scores meet preset conditions as recommended product information;
[0010] For each recommended product information, a preset interest scoring model is used to determine the interest-related score corresponding to the recommended product according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product;
[0011] Using the search feature vector corresponding to the intended search type represented by the search text of the search click event, determine the search correlation score between the search feature vector and the product feature vector of each of the recommended products in the product feature library;
[0012] The recommended products are sorted according to the interest-related scores and the search-related scores to construct a recommended product set to be sent to the user.
[0013] According to another aspect of the present application, a product recommendation device is provided, comprising: an event response module, a product recall module, a first score calculation module, a second score calculation module and a product recommendation module, wherein:
[0014] The event response module is configured to respond to a search click event triggered by a user, determine a target session in a session flow, and construct a behavior information sequence according to the clicked product information corresponding to each product click event triggered by the user during the target session, wherein the last product click event during the target session is the search click event;
[0015] The product recall module is configured to determine the correlation score between the clicked product information corresponding to the search click event and each product information in the product database, and recall the product information of multiple recommended products whose correlation scores meet the preset conditions as the recommended product information;
[0016] The first score calculation module is configured to determine, for each recommended product information, an interest-related score corresponding to the recommended product by using a preset interest score model according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product;
[0017] The second score calculation module is configured to use the search feature vector corresponding to the intended search type represented by the search text of the search click event to determine the search correlation score between the search feature vector and the product feature vector of each of the recommended products in the product feature library;
[0018] The product recommendation module is configured to sort the recommended products according to the interest-related scores and the search-related scores, so as to construct a recommended product set and send it to the user.
[0019] On the other hand, the present application also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the above-mentioned product recommendation method.
[0020] On the other hand, the present application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to execute the steps of the above-mentioned product recommendation method.
[0021] This application assumes that the user's search intentions during the same session are the same or similar, and regards the user's current product click operation on the e-commerce platform independent station page as the user's immediate interest in the product corresponding to the product click operation. On this basis, this application analyzes and determines the user's search click event triggered by the target session in the client page served by the e-commerce platform independent station, and determines the recommended product information whose relevance score meets the preset conditions according to the correlation between the product information corresponding to the search click event and the product information in the product database, so as to achieve rough product recall and obtain multiple recommended products that the user is currently interested in; then, the interest scoring model is used to determine the interest-related score corresponding to each recommended product, and the corresponding products that are more in line with the user's interests can be obtained through the recommended product list sorted by the interest-related score, so that the recommended products browsed by the user are more in line with the user's current interests and needs. Then, the present application also determines the search correlation score between the search feature vector and the product feature vector of the recommended product through the search feature vector corresponding to the search intent type of the search text of the search click event, and can quickly determine the relevant recommended products that meet the user's search intent; finally, the recommended products are sorted by interest-related scores and search-related scores, and a recommended product set is constructed based on the sorting results. Compared with the prior art, the technical solution of the present application can reflect many technical advantages, including but not limited to:
[0022] First, this application achieves a rapid response to the user's current behavior by capturing the user's immediate interests in real time. In the process of user interaction with the independent website page of the e-commerce platform, each click is regarded as an expression of interest in a specific product. This recognition of immediate interests enables the recommendation system to dynamically adjust the recommendation list to ensure that the recommendation results are consistent with the user's current shopping intentions and interest preferences. This sensitive capture of immediate interests greatly improves the relevance of recommendations and user satisfaction.
[0023] Secondly, this application uses an interest scoring model to perform personalized scoring on recommended products. This model not only takes into account the user's immediate behavior, but also integrates the user's historical preferences and feature information, and assigns each recommended product a score that reflects its relevance to the user's interests. In this way, the recommendation system can more deeply understand the user's unique needs and provide more accurate personalized recommendations, thereby improving the user's purchase conversion rate and loyalty.
[0024] Finally, by deeply integrating search intent analysis, this application further improves the relevance of recommendation results. By analyzing the intent in the user's search text and matching it with the feature vector of the recommended products, the recommendation system can quickly identify and recommend those products that best match the user's search intent. This deep search intent analysis makes the recommendation results not only relevant to the user's immediate interests, but also closely matches the user's search query, greatly improving the user's shopping efficiency and satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 This is a basic flow chart of a product recommendation method according to a specific embodiment of the present application;
[0027] Figure 2 A schematic diagram of the basic structure of an interest scoring model of a specific embodiment of the present application;
[0028] Figure 3 This is a basic structural diagram of a commodity recommendation device according to an embodiment of the present application;
[0029] Figure 4 This is a basic structural block diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] All the commodity recommendation methods, devices, computer equipment and storage media mentioned in this application can be applied to the commodity recommendation system of the independent station of the e-commerce platform. The commodity recommendation system can respond to all user events monitored by the server of the independent station of the e-commerce platform in a time sequence. The server can monitor the user events triggered by the corresponding user behavior, and the server sends the commodity list composed of multiple commodities in the independent station to the client, so that the user can browse the commodity list through its client page to further perform user behavior on the commodities in the commodity list. Among them, the user obtains the service provided by the server through any one or any multiple user behaviors such as commodity search behavior, commodity click behavior and commodity purchase behavior performed on the client page, and triggers any one or any multiple user events such as commodity search event, commodity click event and commodity purchase event; the commodity click behavior includes the user's click behavior on the commodity directly displayed on the client page and the commodity obtained according to the commodity search behavior. Correspondingly, the commodity click event can include the search click event corresponding to the user clicking on the commodity obtained by the commodity search event, and can also include the ordinary click event of the commodity displayed on the page unrelated to the commodity search event.
[0031] The product recommendation system records the product click events triggered by the same user within a preset time period, such as the past 30 days, and constructs a corresponding session flow based on all the product click events triggered by the user in a time sequence. For all the product click events triggered by the user in the session flow, when the time interval between two consecutive product click events triggered by the user does not exceed a certain time period that is considered as a relatively continuous action, such as the time interval does not exceed 30 minutes, the product click system will classify the corresponding two product click events as product click events occurring during the same session, indicating that the two product click events belong to the same session; when the time interval between two consecutive product click events triggered by the user exceeds a certain time period that is considered as a relatively continuous action, such as the time interval exceeds 30 minutes, the product click system will classify the corresponding two product click events as product click events occurring during different sessions, indicating that the two product click events belong to different sessions, so that in the session flow composed of product click events triggered by the user at different time intervals, there are multiple sessions arranged in time sequence. When a user obtains corresponding search results, that is, at least one corresponding product, through product search behavior, and performs product click behavior on one of these products, the product recommendation system will regard the product click event corresponding to the product click behavior as a search click event, and respond to the search click event in a targeted manner. The session corresponding to the search click event is determined as the target session in the session flow corresponding to the user, which is used to capture the immediate preference for the product at the moment when the user triggers the search click event.
[0032] After determining the target session, the product recommendation system may further construct a behavior information sequence based on the clicked product information corresponding to each product click event triggered by the user during the target session, wherein the clicked product information is the product information of the clicked product corresponding to the product click event triggered by the user.
[0033] The product information corresponding to each product in the independent website of the e-commerce platform is fully stored in the product database, including the product ID information, product category information, product brand information, product color information, product specification information and product pictures of the product. The product recommendation system can retrieve and call the product information in the product database. For example, the product recommendation system can search and match the product database according to the product search event to obtain the corresponding product in the product database; and can retrieve and call the product database according to the product click event to obtain the product information of the clicked product corresponding to the product click event.
[0034] The product recommendation system calculates the scores of the clicked product information and the product information corresponding to each product in the product database except the clicked product by calling the preset artificial intelligence model, so as to obtain the correlation score between the clicked product information corresponding to the search click event and each product information in the product database, and recalls multiple recommended products whose correlation scores meet the preset conditions, and uses the product information corresponding to each recommended product as the recommended product information. The preset conditions that need to be met for recalling the recommended product include but are not limited to recalling the product information corresponding to the recommended product whose correlation score is higher than the preset score threshold as the recommended product information, or selecting the product information corresponding to a preset number of recommended products from the front to the back after sorting the correlation score in reverse order as the recommended product information. The preset score threshold and the preset number can be flexibly set by those skilled in the art.
[0035] The product recommendation system obtains user feature information corresponding to the user based on the target session, including but not limited to any one or more of the user brand preference information, user category preference information, user scenario search information, user transaction number information, user registration information and user tag information used to portray the user's portrait, as well as any one or more of the user's region information and user access event information used to further obtain the user's shopping intention.
[0036] The present application provides an interest scoring model, which has the ability to determine the interest-related score of the recommended product corresponding to the recommended product information based on user feature information, behavior information sequence, clicked product information and recommended product information. The interest scoring model is used to determine the interest-related score corresponding to the recommended product based on the user feature information of the user, the behavior information sequence of the user during the target session, the clicked product information corresponding to the search click event triggered by the user, and the recommended product information of the recommended product determined based on the clicked product information.
[0037] In the present application, specific keywords corresponding to each product are pre-stored in the product database, based on the specific keywords contained in the search text entered by the user in the product search event triggered by the user, which are used to describe and identify the user's product search intention, and the product recommendation system obtains the product information corresponding to the specific keywords from the product database, wherein the specific keywords include brand keywords and category keywords. The product recommendation system uses a feature vector acquisition method, such as processing the product information corresponding to each product in the independent site through a preset language processing model, or performing specific keyword recognition on the product information corresponding to each product in the independent site, to obtain the product feature vector corresponding to the intended search type represented by each product in the independent site, and then stores all product feature vectors in a product feature library that can be quickly read and called online. The feature vector acquisition method is also a technical means that those skilled in the art should know.
[0038] When the product recommendation system responds to a search click event, it obtains the search text corresponding to the product search behavior performed by the user in the search click event, and performs specific keyword recognition on the search text through a language processing model. The feature vector acquisition method obtains the search feature vector corresponding to the intended search type represented by the search text, and then obtains the product feature vector corresponding to each recommended product recalled by the search click event from the product feature library, and performs dot product calculation or cosine similarity calculation on the search feature vector and the product feature vector corresponding to each recommended product to obtain the search relevance score between the search feature vector and the product feature vector corresponding to each recommended product. The product recommendation system calculates based on the search relevance score and the interest relevance score corresponding to each recommended product, such as directly adding the search relevance score and the interest relevance score corresponding to each recommended product, or multiplying the search relevance score and the interest relevance score corresponding to each recommended product by their respective weights and then adding them. The calculation result obtains the recommended product score corresponding to each recommended product, and the recommended product score can reflect the user's current interest in the recommended product corresponding to it. The product recommendation system sorts the recommended product scores corresponding to each recommended product in descending order, and based on the sorting result, organizes the corresponding sorted recommended products into a recommended product set, and then sends the recommended product set to the user, so that the recommended products displayed on the client page corresponding to the user are more in line with the user's current search needs and personal preferences, so as to improve the user's product click-through rate on the client page, thereby promoting the growth of product sales rate on the e-commerce platform.
[0039] A product recommendation method of the present application can be programmed as a computer program product and deployed in a client or server for execution. For example, in the e-commerce platform application scenario of the present application, it is generally deployed in a server for implementation, whereby the method can be executed by accessing an interface opened after the computer program product is running and performing human-computer interaction with the process of the computer program product through a graphical user interface.
[0040] See also Figure 1 The product recommendation method of the present application can be implemented in the product recommendation system of the e-commerce platform to serve the needs of product selection, product sorting and product recommendation. In its typical embodiment, it includes the following steps:
[0041] Step S1100: responding to a search click event triggered by a user, determining a target session in a session flow, constructing a behavior information sequence according to the clicked product information corresponding to each product click event triggered by the user during the target session, wherein the last product click event during the target session is the search click event;
[0042] When the present application considers that the search intentions of the same user in a session are the same or similar, the product click operation performed by the user in the corresponding client provided by the independent website page of the e-commerce platform is regarded as the user showing real-time interest in the product pointed to by the product click operation in the current session. At this time, the business logic responsible for determining the target session in the product recommendation system can be triggered, thereby initiating the execution of the method of the present application.
[0043] When a user triggers a product search event, obtains the product list corresponding to the product search event through the client page, and performs a product click behavior on one of the products in the product list, the product click event triggered by the product click behavior is used as the search click event triggered by the user. The product recommendation system responds to the search click event and determines the target session in the session flow. The session flow includes multiple sessions, each of which includes all product click events triggered and responded to by the product recommendation system during the session. The product recommendation system forms a sequence of all the product click events it monitors according to the time sequence, and the product recommendation system records the moment of each product click event monitored, so as to judge the two adjacent product click events in the sequence: when the trigger interval between the two adjacent product click events exceeds 30 minutes, the corresponding two product click events are divided into product click events during different sessions, that is, the two product click events belong to different sessions; when the trigger interval between the two adjacent product click events does not exceed 30 minutes, the corresponding two product click events are divided into product click events during the same session, that is, the two product click events belong to the same session.
[0044] The product recommendation system obtains a session flow based on the recorded time of each product click event monitored, which is composed of multiple sessions corresponding to all product click events triggered by the same user within a certain degree of continuous time interval, such as 30 days. Among them, the product click event generally refers to an event responded to by the server triggered by any product click behavior of the user in the e-commerce platform, such as an event responded to by the server triggered by the user's product click behavior on the product on his client page; the product click behavior includes the user's behavior of directly clicking on the product on the product display page of the independent station, and the user's behavior of clicking on one of the multiple products obtained by the product search behavior after performing the product search behavior. After the product recommendation system responds to the search click event, it traverses each session in the query session flow and determines the session that contains the search click event and corresponds to the last product click event in the session as the target session.
[0045] The product recommendation system can obtain the clicked products in which the user shows real-time interest during the target session based on the product click events triggered by the user during the target session, and obtain the clicked product information corresponding to all product click events triggered by the user in the target session based on the clicked products, and construct the clicked product information into a behavior information sequence corresponding to the target session in the chronological order of the corresponding product click events, wherein each clicked product information includes any one or more of the product ID information, product category information, product brand information, product color information and product specification information of the corresponding clicked product, so that the product recommendation system can obtain and analyze the user's current product browsing preference and potential shopping intention based on the behavior information sequence, so as to provide the user with a product recommendation service that meets his or her immediate preferences more accurately.
[0046] Step S1200: determining the correlation score between the clicked product information corresponding to the search click event and each product information in the product database, and recalling product information of multiple recommended products whose correlation scores meet preset conditions as recommended product information;
[0047] The product recommendation system obtains the product information corresponding to all products in the independent site, including the clicked product, according to the product database, and determines the correlation score between the clicked product information corresponding to the clicked product and the product information corresponding to each product in the product database based on the preset scoring rules, wherein the product information corresponding to each product in the product database includes the product description text and product pictures such as the product ID information, product category information, product brand information, product color information, product specification information corresponding to the product, and the preset scoring rules can be pre-set by technical personnel in this field according to business needs, and can also be implemented as further disclosed in some subsequent embodiments.
[0048] The product recommendation system calculates scores for the product of the clicked product information corresponding to the search click event and each product information in the product database based on the artificial intelligence model. After obtaining the correlation score between the clicked product information corresponding to the search click event and each product information in the product database, the product information corresponding to the recommended product with the correlation score higher than a preset score threshold is recalled as the recommended product information, or the correlation score is sorted in reverse order according to the corresponding cosine value of the angle, and a preset number is recalled from high to low, such as the product information corresponding to the first 10 recommended products is used as the recommended product information. The preset score threshold and preset number can be set by technical personnel in this field as needed.
[0049] Based on the recommended product information, the product recommendation system can obtain product information of products that have a high correlation with the click product corresponding to the search click event from the product database, so as to obtain recommended products that are more in line with the user's current interests, so that the product recommendation system can recommend products that are more in line with the user's personal preferences and shopping intentions to the user.
[0050] Step S1300: for each recommended product information, using a preset interest scoring model according to the user characteristic information, behavior information sequence of the user, clicked product information corresponding to the search click event, and recommended product information of the recommended product, determine the interest-related score corresponding to the recommended product;
[0051] The interest scoring model provided in this application has learned the ability to determine the interest-related score corresponding to the recommended product based on the user's user feature information, behavior information sequence, clicked product information corresponding to the search click event, and recommended product information of the recommended product. The product recommendation system can obtain the user feature information corresponding to the user associated with the target session, including but not limited to any one or more of the user brand preference information, user category preference information, user scenario search information, user transaction number information, user registration information, and user tag information used to describe the user's portrait, as well as any one or more of the user's region information and user access event information to obtain the user's shopping intention.
[0052] In this embodiment, for each recommended product, the interest scoring model encodes the user feature information, behavior information sequence, click product information corresponding to the search click event, and recommended product information of the recommended product into corresponding user feature vectors, behavior coding sequences, click coding vectors, and recommendation coding vectors according to its coding layer with coding capability, wherein the behavior coding sequence includes coding representations corresponding to each click product information in the behavior information sequence. The interest scoring model interacts the click coding vector and the recommendation coding vector with the behavior coding sequence, determines the contribution weights corresponding to each coding representation in the behavior coding sequence, and weights the corresponding coding representations with each contribution weight and then performs pooling to obtain the behavior feature vector; and after interacting the click coding vector with the recommendation coding vector, fully connects the interaction result, the click coding vector, and the recommendation coding vector, and after obtaining the interest feature vector, fully connects the user feature vector, the interest feature vector, and the behavior feature vector to obtain the interest-related score of the recommended product.
[0053] The product recommendation system, by adopting the interest scoring model, can obtain the user's immediate interest reflected in the target session, so as to more comprehensively capture the product interest reflected by the product click event triggered by the user, enhance the accuracy and relevance of the interest-related scores of the recommended products obtained by the model, and make the recommended products that are pushed to the user first more likely to attract the user, thereby increasing the probability of the user clicking on the recommended products.
[0054] Step S1400: using the search feature vector corresponding to the intended search type represented by the search text of the search click event, determine the search correlation score between the search feature vector and the product feature vector of each of the recommended products in the product feature library;
[0055] In this embodiment, the product recommendation system obtains the search text contained in the product search event corresponding to the search click event triggered by the user on his client, which is used by the user to query the search text that can meet his current product search intention, and obtains the product information corresponding to the product that can meet the user's current search needs from the product database based on the specific keywords contained in the search text, and then sends the product that meets the user's current search intention to the customer, so that the user can further understand the product information corresponding to the product sent by the product recommendation system according to his client page. The product recommendation system parses the search text through a preset language model to obtain the intended search type represented by the search text, and constructs a search feature vector corresponding to the intended search type, wherein the intended search type includes the product category information and / or product brand information in the search text, and the search feature vector numerically represents the user search intention contained in the search text, and the language processing model is a model that is easy for technicians in this field to call online.
[0056] The product recommendation system obtains the product feature vector corresponding to the intended search type represented by each product in the independent site through a feature vector acquisition method, such as processing the product information corresponding to each product in the independent site through a preset language processing model, or by identifying specific keywords in the product information corresponding to each product in the independent site, and then stores all product feature vectors in a product feature library that can be quickly read and called online, wherein the feature vector acquisition method is also a technical means known to those skilled in the art. After the product recommendation system obtains the search feature vector, it quickly reads and calls the product feature library to obtain the product feature vector corresponding to each recommended product, and obtains the search correlation score between the search feature vector and the product feature vector corresponding to each recommended product through dot product calculation or cosine similarity calculation, so as to intuitively reflect the similarity between the search feature vector and the product feature vector corresponding to each recommended product.
[0057] In one embodiment, the product recommendation system parses the search text through a preset language processing model to obtain the product category information and product brand information represented by the search text, and constructs the corresponding product category vector and product brand vector respectively, and then quickly reads and calls the product feature library to obtain the product category vector and product brand vector corresponding to each recommended product, and obtains the product category score and product brand score between the search text and each recommended product through dot product calculation or cosine similarity calculation, and then determines the search-related score based on the product category score and the product brand score.
[0058] Through the search-related scores, the product recommendation system can determine the user's current personal preferences and shopping needs for products based on the user's intention to actively search for specific information as expressed in the search text corresponding to the search click event, so as to accurately provide the user with product recommendation services that are more in line with his or her current preferences.
[0059] Step S1500: sort the recommended products according to the interest-related scores and the search-related scores to construct a recommended product set and send it to the user.
[0060] In this embodiment, the interest-related score and search-related score obtained by the product recommendation system represent the user's current personal preference and interest level for the recommended product, as well as the relevance of the recommended product to the user's current search intention. The product recommendation system performs calculations based on the search-related score and the interest-related score corresponding to each recommended product, such as directly adding the search-related score and the interest-related score corresponding to each recommended product, or assigning corresponding weights to the search-related score and the interest-related score corresponding to each recommended product and then adding them. The calculation result obtains the recommended product score corresponding to each recommended product, which is used as the basis for the product recommendation system to sort the recommended products, wherein the product recommendation system assigns the corresponding weights of the interest-related score and the search-related score according to the actual business needs of the current independent site. After the product recommendation system sorts the recommended product scores in reverse order, it selects the recommended products corresponding to a preset number of recommended product scores from the front to the back, and constructs the selected recommended products into a recommended product set according to their corresponding selection order.
[0061] In one embodiment, the product recommendation system assigns corresponding weights to the interest-related score, the product category score in the search-related score, and the product brand score, and then adds them together. The calculation result obtains the recommended product score corresponding to each recommended product, and then sorts all the recommended products in reverse order according to the recommended product scores, and selects the recommended products corresponding to the recommended product scores that are higher than a preset score threshold from the front to the back, and constructs the selected recommended products into a recommended product set according to their corresponding selection order.
[0062] The server sends the recommended product set to the user, and the client displays the recommended products that are more in line with the user's current search intent and interest preferences in order on the user's client page according to the order of the products in the recommended product set and their corresponding recommended product scores, so that the user can browse more recommended products in the recommended product set that is displayed on his client page first, thereby increasing the product exposure rate and further increasing the probability of clicking on the recommended products that meet his current preferences, so as to attract the user to browse, click, purchase, etc. on the products on the independent site. It can be seen that the product recommendation system can provide users with product recommendation services that are more in line with their current interest preferences and purchase needs.
[0063] According to the above embodiments, this application, under the assumption that the search intentions of the users during the same session are the same or similar, regards the user's current product click operation on the e-commerce platform independent station page as the user's immediate interest in the product corresponding to the product click operation. On this basis, this application analyzes and determines the user's search click event triggered by the target session in the client page provided by the e-commerce platform independent station, and determines the recommended product information whose relevance score meets the preset conditions according to the correlation between the product information corresponding to the search click event and the product information in the product database, so as to achieve rough recall of products and obtain multiple recommended products that the user is currently interested in; then, the interest scoring model is used to determine the interest-related score corresponding to each recommended product, and the corresponding products that are more in line with the user's interests can be obtained through the recommended product list sorted by the interest-related score, so that the recommended products browsed by the user are more in line with the user's current interests and needs. Subsequently, the present application also determines the search correlation score between the search feature vector and the product feature vector of the recommended product through the search feature vector corresponding to the search intent type of the search text of the search click event, so as to quickly determine the relevant recommended products that meet the user's search intent; finally, the recommended products are sorted by the interest-related score and the search-related score, and a recommended product set is constructed according to the sorting results.
[0064] Based on the above analysis, it is not difficult to understand that the technical solution of this application can reflect many technical advantages, including but not limited to:
[0065] First, this application achieves a rapid response to the user's current behavior by capturing the user's immediate interests in real time. In the process of user interaction with the independent website page of the e-commerce platform, each click is regarded as an expression of interest in a specific product. This recognition of immediate interests enables the recommendation system to dynamically adjust the recommendation list to ensure that the recommendation results are consistent with the user's current shopping intentions and interest preferences. This sensitive capture of immediate interests greatly improves the relevance of recommendations and user satisfaction.
[0066] Secondly, this application uses an interest scoring model to perform personalized scoring on recommended products. This model not only takes into account the user's immediate behavior, but also integrates the user's historical preferences and feature information, and assigns each recommended product a score that reflects its relevance to the user's interests. In this way, the recommendation system can more deeply understand the user's unique needs and provide more accurate personalized recommendations, thereby improving the user's purchase conversion rate and loyalty.
[0067] Finally, by deeply integrating search intent analysis, this application further improves the relevance of recommendation results. By analyzing the intent in the user's search text and matching it with the feature vector of the recommended products, the recommendation system can quickly identify and recommend those products that best match the user's search intent. This deep search intent analysis makes the recommendation results not only relevant to the user's immediate interests, but also closely matches the user's search query, greatly improving the user's shopping efficiency and satisfaction.
[0068] On the basis of any embodiment of the present application, a preset interest scoring model is used to determine the interest-related score corresponding to the recommended product according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product, including:
[0069] S1211, using the retrieval layer in the preset interest scoring model, taking the product description text in the clicked product information corresponding to the search click event and the product description text in the recommended product information as query information, and determining the semantic relevance score and type relevance score between each clicked product information and the query information in the behavior information sequence;
[0070] In this embodiment, the retrieval layer in the interest scoring model uses the product description text in the clicked product information corresponding to the search click event and the product description text in the recommended product information as query information, and uses a vector-based soft-search retrieval method to convert the product description text in the query information and the product description text in each clicked product information in the behavior information sequence into vectors by using an embedding data mapping technology. The vector similarity between the product description text in the query information and the product description text in each clicked product information in the behavior information sequence is obtained by inner product calculation to characterize the degree of correlation between the query information and each clicked product information in the behavior information sequence. The semantic correlation score between each clicked product information in the behavior information sequence and the query information is determined based on the vector similarity. The retrieval layer uses a hard-search retrieval method based on rules and strategies to retrieve the product category information contained in the product description text in the query information as a retrieval field, and retrieves whether the product description text in each clicked product information in the behavior information sequence has a retrieval field. If it exists, the type-related score of the corresponding clicked product information is determined to be 1, indicating that the clicked product information is related to the query information; if it does not exist, the type-related score of the corresponding clicked product information is determined to be 0, indicating that the clicked product information is not related to the query information, and the type-related score between each clicked product information and the query information in the behavior information sequence is determined. The product description text is a comprehensive text, including the product category information and product brand information of the corresponding product, and also includes the product attribute description, product feature description and product use description of the corresponding product, which respectively correspond to the basic parameters and classification information, description, unique properties and identification mark description of the product, and the corresponding usage scenario and functional use of the product.
[0071] Through the semantic relevance score and the type relevance score, the interest scoring model can intuitively obtain the correlation between each clicked product information and the query information in the behavior information sequence, and use the clicked product information with higher correlation with the query information screened out from the behavior information sequence as the input information of the interest scoring model, thereby improving the calculation accuracy of the interest scoring model.
[0072] S1212, retrieving clicked product information whose semantic relevance score meets a preset condition as first relevant product information, and retrieving clicked product information whose type relevance score meets a preset condition as second relevant product information;
[0073] In this implementation, the retrieval layer in the interest scoring model further sets a semantic similarity threshold based on the semantic relevance score, performs retrieval based on the semantic relevance score and the type relevance score, obtains the corresponding clicked product information whose semantic relevance score is not lower than the semantic similarity threshold as the first related product information, and obtains the corresponding clicked product information whose type relevance score is 1 as the second related product information.
[0074] In one embodiment, the interest scoring model sorts the semantic relevance score and the type relevance score in reverse order respectively, and retrieves a preset number of clicked product information corresponding to the semantic relevance score from front to back as the first related product information; and retrieves a preset number of clicked product information corresponding to the type relevance score from front to back as the second related product information, wherein the preset number can be flexibly set by a person skilled in the art. By directly sorting the semantic relevance score and the type relevance score in reverse order, it is possible to avoid the situation where the number of corresponding clicked product information that meets the scoring threshold of the semantic relevance score and the type relevance score is too large or too small, resulting in the number of the first related product information and the second related product information being too large or too small, thereby affecting the calculation accuracy of the interest scoring model.
[0075] By obtaining the first related product information and the second related product information, the interest scoring model can identify and filter out the clicked product information corresponding to the products that are more relevant to the user's current search intention in the behavior information sequence, so as to use the clicked product information as input information of the interest scoring model, thereby improving the calculation accuracy of the interest scoring model.
[0076] S1213, removing the clicked product information except the retrieved first related product information and second related product information from the behavior information sequence;
[0077] The interest scoring model calls the retrieval layer to eliminate the clicked product information other than the first related product information and the second related product information in the behavior information sequence, and can obtain a target behavior sequence consisting of clicked product information that is more relevant to the user's current search intent, so as to remove noise that is insufficiently relevant to the user's current search intent.
[0078] This embodiment enables the interest scoring model to determine, through the retrieval layer, a target behavior sequence that is more highly correlated with the user's current search intent, to quantify the correlation between the product description text corresponding to the clicked product information in the behavior information sequence and the query information, to identify products that are closely related to the user's current interests and needs, and to eliminate the clicked product information whose semantic relevance score and type relevance score do not meet the preset conditions, thereby removing noise that is insufficiently correlated with the user's current search intent, to improve the correlation between the target behavior sequence input into the interest scoring model and the query information, so that the recommended scoring results output by the interest scoring model are more in line with the user's actual needs and preferences, thereby improving the accuracy of the recommendation results of the interest scoring model.
[0079] Based on any embodiment of the present application, determining the correlation score between the clicked product information corresponding to the search click event and each product information in the product database includes the following steps:
[0080] S1311, determining a description correlation score between the product description text in the clicked product information corresponding to the search click event and the product description text in each product information in the product database;
[0081] The product recommendation system uses a preset text encoder, takes the product description text in the clicked product information corresponding to the search click event as input, extracts the deep semantic information of the product description text, and outputs a first text feature vector that vectorizes the deep semantic information, which characterizes the description preference of the clicked product pointed to by the user's search intention. The text encoder uses the product description text in each product information in the product database as input, extracts the deep semantic information of the product description text, and outputs a second text feature vector that vectorizes the deep semantic information. The preset vector distance algorithm is used to calculate the vector distance between the first text feature vector and the second text feature vector as the description relevance score. The vector distance algorithm can be any one of the common algorithms such as cosine similarity algorithm, Euclidean distance algorithm, Pearson coefficient algorithm, Jaccard similarity algorithm, etc.; the text encoder is pre-trained to convergence, and learns the ability to determine the corresponding vector based on the semantics of the extracted text, and the text encoder can use a model in the field of NLP processing, and the recommended model is the BERT model, and other models such as Transfomer Encoder, RoBERTa, XLM-RoBERTa, MPNet, BiBiLSTM, GPT, etc. can also be used. Since the training of these models is known to those skilled in the art, I will not elaborate on this in detail.
[0082] The product recommendation system can characterize the degree of correlation between the product description text corresponding to the clicked product information and the product description text corresponding to each product information in the product database by determining the description relevance score. The higher the description relevance score, the higher the degree of correlation between the product description text corresponding to the product with the description relevance score and the product description text that meets the user's search intention.
[0083] S1312: Determine the image correlation score between the product image in the clicked product information corresponding to the search click event and the product image in each product information in the product database;
[0084] In the product database, product images are images of products listed on an independent site that are used to display on the client page. They can display products from the overall and / or different aspects, including product main images, product detail images, etc. The product main image is usually used as the primary image to display the product because it can usually display the full picture of the corresponding product. The product recommendation system uses a preset image encoder to take the product image in the clicked product information corresponding to the search click event as input, extract the deep semantic information of the product image, and output a first image feature vector that vectorizes the deep semantic information, which represents the visual preference of the clicked product pointed to by the user's search intention. For each product image in the product information in the product database, an image encoder is used to take the product image as input, extract the deep semantic information of the product image, and output a second feature vector that vectorizes the deep semantic information. The preset vector distance algorithm is used to calculate the vector distance between the first image feature vector and the second feature vector as the image similarity, and after sorting the image similarity in reverse order, the corresponding image-related score is determined. The vector distance algorithm can be any one of the common algorithms such as cosine similarity algorithm, Euclidean distance algorithm, Pearson coefficient algorithm, Jaccard similarity algorithm, etc.; the image encoder is pre-trained to convergence and learns the ability to determine the corresponding vector based on the extracted semantics of the image, and the image encoder can adopt a model in the field of image processing, and the recommended model is Vi T (Visual Transformer) model, and other models such as CNN model, deep convolution model EffectiveNet, DenseNet, Resnet, etc. can also be adopted. In view of the fact that the training of these models is known to those skilled in the art, we will not elaborate on this in detail.
[0085] The product recommendation system can characterize the degree of correlation between the product image corresponding to the clicked product information and the product image corresponding to each product information in the product database by determining the image relevance score. The higher the image relevance score, the higher the degree of correlation between the product image corresponding to the image relevance score and the product image that meets the user's search intent.
[0086] S1313, determining corresponding correlation scores according to the description correlation scores and the picture correlation scores between the clicked product information and each product information;
[0087] In this implementation, the product recommendation system calculates the description relevance score and the image relevance score, multiplies them by their respective weights, and then adds them together to obtain the relevance score between the corresponding clicked product and each product in the product database, wherein the respective weights of the description relevance score and the image relevance score can be flexibly set according to the actual application scenario to more comprehensively evaluate the relevance between the products in the product database and the user's current search intention.
[0088] According to this embodiment, the description relevance score can reflect the semantic similarity between the product description text corresponding to the product in the product database and the product description text corresponding to the clicked product in the search click event, while the image relevance score can measure the degree of matching between the product image corresponding to the product in the product database and the product image corresponding to the clicked product in the search click event. The corresponding relevance score is determined based on the description relevance score and the image relevance score, which can more comprehensively evaluate the relevance between the products in the product database and the user's current search intent, so that the product recommendation system can obtain products with higher relevance to the user's search intent and recommend them to the user, so that the recommended products can meet the user's interests and / or needs and attract the user, thereby improving the product conversion rate.
[0089] Based on any embodiment of the present application, before responding to a search click event triggered by a user, the following steps are included:
[0090] S1411. Acquire multimodal information of a plurality of commodities, wherein the multimodal information includes text information and commodity images, and the text information includes commodity description text and / or marketing promotion text of the corresponding commodity;
[0091] The product recommendation system obtains multimodal information corresponding to multiple products provided by the independent website, wherein, by obtaining the text information, including the product description text and / or marketing promotion text of the corresponding product, it is possible to obtain the marketing promotion text used for placing the advertisement corresponding to the product on any advertising channel, and the advertising channel may be SEO, advertising services provided by social media, etc., and obtain the product description text used to describe the product attributes, product features, and product uses of the corresponding product. And the product recommendation system can obtain the appearance features of the corresponding product, including product color, product appearance style, and product brand logo, etc., by obtaining the product image, so that the product recommendation system can further determine the feature information of the product based on the text information and the product image of the product, and then infer the probability that the product recommended to the user can meet the user's personal preferences.
[0092] S1412: for each product, determine, based on the multimodal information of the product, a vectorized representation of the category to which the product belongs and a vectorized representation of the brand to which the product belongs as a product feature vector of the product;
[0093] In this embodiment, the product recommendation system calls a preset large language model, such as a GPT-4 model, that has the ability to generate vectors based on multimodal information, and inputs the multimodal information corresponding to each product into the large language model. The large language model maps the multimodal information to the corresponding space of the product category information, and encodes the category vector corresponding to the product category information of the product; and maps the multimodal information to the corresponding space of the product brand information, encodes the brand vector corresponding to the product brand information of the product, and then constructs a product feature vector based on the category vector and the brand vector.
[0094] The product recommendation system converts the multimodal information of each product into a product feature vector, so that it can quickly and effectively compare the relevance between different products, ensuring that the product recommendation system can obtain product recommendation results more quickly and improve the overall efficiency of the product recommendation process.
[0095] S1413. Store the commodity feature vectors of all commodities in a commodity feature database;
[0096] In this embodiment, the product recommendation system stores the product feature vectors of all products in a database that supports online fast reading, such as Elasticsearch (ES) database, and uses the database as a product feature library. In order to optimize the response speed and query efficiency of the recommendation system, the product recommendation system can call the product feature vectors in the product feature library online in real time, which can avoid the time loss caused by the real-time construction of the product feature vector when determining the search-related score, thereby saving the computing resources of the product recommendation system and speeding up the response time.
[0097] Through the implementation of this embodiment, the product recommendation system can more accurately capture the unique attributes of each product and the user's possible interests by acquiring the multimodal information of the product and converting it into a vectorized representation, and store the product feature vectors corresponding to the multimodal information of all products in a product feature library, which can enable the product recommendation system to reduce repeated calculation operations, improve the retrieval speed and data processing efficiency of the multimodal information, and thus improve the efficiency of the product recommendation system in obtaining product recommendation results, thereby promoting product sales on the e-commerce platform.
[0098] On the basis of any embodiment of the present application, before using the search feature vector corresponding to the intended search type represented by the search text of the search click event, the following steps are included:
[0099] S1511, embedding the search text of the search click event into a preset prompt template to obtain a prompt text, and using the prompt text to guide the large language model to encode a vectorized representation corresponding to the type of the intended search represented by the search text, wherein the product type includes the category type and / or the brand type of the product;
[0100] In this embodiment, the prompt template is a pre-designed text instruction, including a fixed text part and a fillable text part, wherein the fixed text part is text content that cannot be edited or modified, and contains a prompt text for guiding the large language model to encode a vectorized representation of the type of product that is intended to be searched represented by the search text; the fillable text part can be filled or edited in real time, and the product recommendation system can guide the large language model to obtain the product type corresponding to the user's current search intention according to the prompt template. After the product recommendation system embeds the search text of the search click event into the fillable text part of the prompt template, the prompt template is input into the large language model so that the large language model can obtain the user's current search intention represented by the search text of the search click event, and encode a vectorized representation of the product type corresponding to the product that meets the user's current search intention, including vectorized representation of the category type to which the product belongs and / or the brand type to which the product belongs.
[0101] The product recommendation system can better understand the user search intent corresponding to the search click event based on the product category information and / or product brand information corresponding to the clicked product of the search click event, so as to improve the accuracy of the product recommendation results based on the user search intent.
[0102] S1512: Use a large language model to encode a vectorized representation of the product type according to the prompt text as a search feature vector.
[0103] By obtaining the search feature vector, the product recommendation system can compare the search feature vector with the product feature vectors in the product feature library to calculate the search relevance score, and obtain recommended products that are more relevant to the user's immediate needs based on the search relevance score, which can improve the accuracy of product recommendations and enhance the personalization of product recommendations.
[0104] From this embodiment, it can be seen that the product recommendation system uses a large language model to encode a search feature vector based on the product type, and can better understand the user's immediate needs based on the search feature vector, and accurately capture and quantify the user's search intent to provide the user with recommended products that are more in line with the user's current interests, so that the e-commerce platform can flexibly adapt to changes in user needs, thereby promoting product sales conversion.
[0105] Based on any embodiment of this application, Figure 2As shown, the present application provides an interest scoring model, which has the ability to determine the interest-related score of the recommended product corresponding to the recommended product information based on user feature information, target behavior sequence, clicked product information and recommended product information.
[0106] The method uses a preset interest scoring model to determine the interest-related score corresponding to the recommended product according to the user feature information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product, including the following steps:
[0107] S1611, using the coding layer in the preset interest scoring model to determine the user feature information of the user, the behavior information sequence, the clicked product information corresponding to the search click event and the recommended product information of the recommended product, the corresponding user feature vector, the behavior coding sequence, the click coding vector and the recommended coding vector, wherein the behavior coding sequence includes the coding representation corresponding to each clicked product information;
[0108] The encoding layer Embedding Layer of the interest scoring model can convert input data into a numerical vector that can be used for calculation. When the product recommendation system inputs the user feature information of the user, the target behavior sequence, the click product information corresponding to the search click event, and the recommended product information of the recommended product into the interest scoring model, the encoding layer encodes them into a user feature vector, a behavior coding sequence User Behaviors, a click coding vector Dynamics Item, and a recommendation coding vector Target Item, wherein the user feature vector includes user profile information User ProfileFeatures composed of any one or more of the information such as user brand preference information, user category preference information, user scenario search information, user transaction number information, user registration information, and user tag information for describing the user portrait, and user context information Context composed of any one or more of the information such as user location information and user access event information for further obtaining the user's shopping intention Features, the user's region information is the user's current geographical location or region information, usually including country, city, time zone and other related information, the user's access event information is various information generated when the user visits the independent site, such as the user's browsing time period preference and average browsing time when visiting the independent site, so that the interest scoring model can learn the encoding representation of all the vectors mentioned above, ensuring that the interest scoring model can accurately understand the user's immediate needs and shopping preferences.
[0109] S1612, the first interaction layer interacts the click coding vector and the recommendation coding vector with the behavior coding sequence, determines the contribution weights corresponding to the respective coding representations in the behavior coding sequence, and weights the respective coding representations with the respective contribution weights and performs pooling to obtain a behavior feature vector;
[0110] In this embodiment, the first interaction layer performs summing and pooling on the click coding vector and the recommended coding vector to generate a first output vector corresponding to the click coding vector and the recommended coding vector. The first interaction layer provides the first output vector and the behavior coding sequence to the attention extraction module Activity Unit, so that the attention extraction module performs feature interaction between the first output vector and each click coding vector in the behavior coding sequence, thereby obtaining the feature interaction result between the first output vector and each click coding vector in the behavior coding sequence, namely the contribution weight Weight, and performs summing and pooling after weighting each click coding vector in the target coding sequence according to the contribution weight, and obtains the behavior feature vector from the pooling result, wherein the summing and pooling operation can retain the key features of the original vector while reducing the data dimension of the vector, reduce the noise influence caused by a single vector, thereby improving the stability and robustness of the model, and simplifying the reasoning efficiency of the interest scoring model.
[0111] The interest scoring model obtains the behavioral feature vector from the first interactive layer, and can obtain the degree of correlation between the clicked product corresponding to each clicked product information in the target coding sequence and the user's current product recommendation needs, and through the summation and pooling operations between vectors, it can improve the computational efficiency of the interest scoring model, so as to improve the correlation between the product recommendation results calculated by the interest scoring model and the user's current interest in the products, so that the products recommended to the user can be more in line with the user's current needs.
[0112] S1613, the second interaction layer interacts the click coding vector with the recommendation coding vector, and fully connects the interaction result, the click coding vector, and the recommendation coding vector to obtain an interest feature vector;
[0113] The interest scoring model inputs the click coding vector and the recommendation coding vector into the second interactive layer, and the second interactive layer calculates the outer product Out Product of the click coding vector and the recommendation coding vector to generate an outer product vector based on the click coding vector and the recommendation coding vector, and concatenates the outer product vector with the click coding vector and the recommendation coding vector to form a concatenated vector, which is then input into a multi-layer perceptron MLP, which processes the concatenated vector and outputs the interest feature vector, wherein the multi-layer perceptron is a neural network composed of multiple fully connected layers.
[0114] The interest scoring model interacts the click coding vector with the recommendation coding vector through the second interaction layer, and combines the processing of outer product, splicing and multi-layer perceptron, which can enhance the interest scoring model's ability to understand the user's product click behavior, integrate information of different dimensions, and further improve the expression ability of the interest scoring model, so that the interest scoring model can integrate the user's product click behavior and the product information of the corresponding product, and more accurately predict the user's current immediate interest, so that the products recommended to the user can be more in line with the user's current needs, bringing higher product sales rate to the e-commerce platform.
[0115] S1614. Perform full connection on the user feature vector, the interest feature vector, and the behavior feature vector to obtain the interest-related score of the recommended product.
[0116] The interest scoring model concatenates and flattens the user feature vector, the interest feature vector and the behavior feature vector, and then flattens them into a one-dimensional vector, so that the one-dimensional vector can be input into the multi-layer perceptron MLP, and the MLP fully connects the one-dimensional vector to output the interest-related score. The interest scoring model concatenates and flattens the user feature vector, the interest feature vector and the behavior feature vector, and processes them using a multi-layer perceptron, so that the interest scoring model can learn the user's immediate interests more comprehensively and accurately, so that the interest-related score is more in line with the user's current needs, so as to improve the relevance of product recommendations.
[0117] According to this embodiment, it can be concluded that the interest scoring model can enhance the understanding of the importance of each clicked product information in the user's behavior sequence through the first interaction layer, and after obtaining the behavior feature vector through weighted operations and pooling operations, further explore the user's immediate interest through the second interaction layer, and capture the user's potential interest in the recommended product through a full connection operation, obtain the interest feature vector, and fully connect the user feature vector, the interest feature vector and the behavior feature vector to obtain the interest-related score of the recommended product, providing a reliable scoring basis for the product recommendation system, so that the product recommendation system can understand the user's immediate needs more carefully, and realize the dynamic acquisition and real-time update of the user's current preferences, thereby improving the relevance of the recommended products to the user's current needs, and providing the user with a more accurate and efficient product recommendation service.
[0118] Based on any embodiment of the present application, sorting each recommended product according to the interest-related score and the search-related score includes the following steps:
[0119] S1711. For each recommended product, the interest-related score and the search-related score of the recommended product are weighted and summed to obtain the corresponding recommendation score:
[0120] In this implementation, the product recommendation system determines the weights of the interest-related score and the search-related score to decide the proportion of the two in the recommendation score, and normalizes the interest-related score and the search-related score so that they belong to the same numerical range. The normalized interest-related score and the search-related score are multiplied by their corresponding weights and then summed. The recommendation score corresponding to the recommended product is obtained from the sum result, wherein the weights of the interest-related score and the search-related score are adjusted in real time according to actual business needs.
[0121] In one embodiment, the product recommendation system determines the weight of the interest-related score, and determines the corresponding weights of the product category score and the product brand score in the search-related score, and weights the interest-related score, the product category score and the product brand score and sums them up, and obtains the recommendation score corresponding to the recommended product from the sum result, wherein the sum of the weights of the interest-related score, the product category score and the product brand score defaults to 1, and these two weights can be adjusted in real time according to actual business needs.
[0122] The product recommendation system takes a weighted sum of different scores and comprehensively considers the importance of each score in the current business needs according to actual needs. By adjusting the weight corresponding to each score, the recommended products that are more in line with the current user's real-time preferences can be obtained, thereby improving the relevance of the recommended products to the user's current needs and providing the user with a more accurate and efficient product recommendation service.
[0123] S1712. Sort all recommended products in descending order of recommendation scores.
[0124] The product recommendation system arranges the recommended products in descending order according to the recommendation score, that is, the higher the score, the higher the ranking of the products.
[0125] By executing this embodiment, the product recommendation system selects recommended products according to the sorting method, which can help users quickly find recommended products that best suit their current interests and purchasing needs on their client pages, so that the sorted recommended products can help users make click or purchase decisions more conveniently, thereby improving the product recommendation effect and user satisfaction of the product recommendation system.
[0126] The present application can construct a corresponding device by running the application program of each embodiment of the aforementioned method in a computer. For details, please refer to Figure 3 , Figure 3 Schematic diagram of the basic structure of the commodity recommendation device in this embodiment.
[0127] like Figure 3As shown, a product recommendation device includes: an event response module 2100, a product recall module 2200, a first score calculation module 2300, a second score calculation module 2400 and a product recommendation module 2500. The event response module 2100 is configured to respond to a search click event triggered by a user, determine a target session in a session flow, and construct a behavior information sequence according to the clicked product information corresponding to each product click event triggered by the user during the target session, wherein the last product click event during the target session is the search click event; the product recall module 2200 is configured to determine the correlation score between the clicked product information corresponding to the search click event and each product information in a product database, and recall the product information of multiple recommended products whose correlation scores meet preset conditions as recommended product information; the first score calculation module 2300 is configured to, for each recommended product information, adopt A preset interest scoring model is used to determine the interest-related score corresponding to the recommended product based on the user feature information, behavior information sequence, click product information corresponding to the search click event, and recommended product information of the recommended product; the second score calculation module 2400 is configured to use the search feature vector corresponding to the intended search type represented by the search text of the search click event to determine the search-related score between it and the product feature vector of each recommended product in the product feature library; the product recommendation module 2500 is configured to sort each recommended product according to the interest-related score and the search-related score for constructing a recommended product set to be sent to the user.
[0128] In some embodiments, the product recommendation device further includes: a first query submodule, a first retrieval submodule, and a first elimination submodule. The first query submodule is used to adopt the retrieval layer in the preset interest scoring model, take the product description text in the clicked product information corresponding to the search click event and the product description text in the recommended product information as query information, and determine the semantic relevance score and type relevance score between each clicked product information and the query information in the behavior information sequence; the first retrieval submodule is used to retrieve the clicked product information whose semantic relevance score meets the preset conditions as the first related product information, and retrieve the clicked product information whose type relevance score meets the preset conditions as the second related product information; the first elimination submodule is used to eliminate the clicked product information in the behavior information sequence except the retrieved first related product information and the second related product information.
[0129] In some embodiments, the product recommendation device further includes: a first determination submodule, a second determination submodule, and a third determination submodule. The first determination submodule is used to determine the description correlation score between the product description text in the clicked product information corresponding to the search click event and the product description text in each product information in the product database; the second determination submodule is used to determine the image correlation score between the product image in the clicked product information corresponding to the search click event and the product image in each product information in the product database; the third determination submodule is used to determine the corresponding correlation score based on the description correlation score and the image correlation score between the clicked product information and each product information.
[0130] In some embodiments, the product recommendation device further includes: a first acquisition submodule, a fourth determination submodule, and a first storage submodule. The first acquisition submodule is used to acquire multimodal information of multiple products, wherein the multimodal information includes text information and product images, and the text information includes product description text and / or marketing promotion text of the corresponding product; the fourth determination submodule is used to determine, for each product, a vectorized representation of the category to which the product belongs and a vectorized representation of the brand to which the product belongs based on the multimodal information of the product as the product feature vector of the product; and the first storage submodule is used to store the product feature vectors of all products in a product feature library.
[0131] In some embodiments, the product recommendation device further includes: a first embedding submodule and a first encoding submodule. The first embedding submodule is used to embed the search text of the search click event into a preset prompt template to obtain a prompt text, which is used to guide the large language model to encode a vectorized representation corresponding to the product type of the intended search represented by the search text, wherein the product type includes the category type and / or the brand type to which the product belongs; the first encoding submodule is used to use the large language model to encode the vectorized representation of the product type according to the prompt text as a search feature vector.
[0132] In some embodiments, the commodity recommendation device further includes: a second coding submodule, a first interaction submodule, a second interaction submodule, and a first connection submodule. The second coding submodule is used to determine the user feature information of the user, the behavior information sequence, the clicked commodity information corresponding to the search click event, and the recommended commodity information of the recommended commodity, the corresponding user feature vector, the behavior coding sequence, the click coding vector, and the recommended coding vector by using the coding layer in the preset interest scoring model, wherein the behavior coding sequence includes the coding representation corresponding to each clicked commodity information; the first interaction submodule is used to interact the click coding vector and the recommended coding vector with the behavior coding sequence by the first interaction layer, determine the contribution weight corresponding to each coding representation in the behavior coding sequence, and weight the corresponding coding representation with each contribution weight and perform pooling to obtain the behavior feature vector; the second interaction submodule is used to interact the click coding vector with the recommended coding vector by the second interaction layer, fully connect the interaction result, the click coding vector, and the recommended coding vector to obtain the interest feature vector; the first connection submodule is used to fully connect the user feature vector, the interest feature vector, and the behavior feature vector to obtain the interest-related score of the recommended commodity.
[0133] In some embodiments, the product recommendation device further includes: a first calculation submodule and a first sorting submodule. The first determination submodule is used to weight the interest-related score and the search-related score of each recommended product and then sum them to obtain the corresponding recommendation score: the first sorting submodule is used to sort all recommended products in reverse order of the recommendation score.
[0134] In order to solve the above technical problems, an embodiment of the present application also provides a computer device for running a computer program implemented according to the product recommendation method.
[0135] like Figure 4 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected via a system bus. Among them, the non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a commodity recommendation method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute a commodity recommendation method. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0136] In this embodiment, the processor is used to execute Figure 3 The memory stores the program codes and various data required to execute the above modules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program codes and data required to execute all submodules in the product recommendation device, and the server can call the program codes and data of the server to execute the functions of all submodules.
[0137] The present application also provides a non-volatile storage medium, in which the product recommendation method is written into a computer program and stored in the storage medium in the form of computer-readable instructions. When the computer-readable instructions are executed by one or more processors, it means that the program is run in the computer, thereby enabling one or more processors to execute the steps of the product recommendation method of any of the above-mentioned embodiments.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0139] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0140] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.
[0141] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A product recommendation method, It is characterized in that include: In response to a search click event triggered by a user, a target session in a session flow is determined, and a behavior information sequence is constructed according to clicked product information corresponding to each product click event triggered by the user during the target session, wherein the last product click event during the target session is the search click event; Determine the correlation score between the clicked product information corresponding to the search click event and each product information in the product database, and recall product information of multiple recommended products whose correlation scores meet preset conditions as recommended product information; For each recommended product information, a preset interest scoring model is used to determine the interest-related score corresponding to the recommended product according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product; Using the search feature vector corresponding to the intended search type represented by the search text of the search click event, determine the search correlation score between the search feature vector and the product feature vector of each of the recommended products in the product feature library; The recommended products are sorted according to the interest-related scores and the search-related scores to construct a recommended product set to be sent to the user.
2. A commodity recommendation method as claimed in claim 1, It is characterized in that The method of using a preset interest scoring model to determine the interest-related score corresponding to the recommended product according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product comprises the following steps: Adopting the retrieval layer in the preset interest scoring model, taking the product description text in the clicked product information corresponding to the search click event and the product description text in the recommended product information as query information, and determining the semantic relevance score and type relevance score between each clicked product information and the query information in the behavior information sequence; Retrieving clicked product information whose semantic relevance score meets preset conditions as first relevant product information, and retrieving clicked product information whose type relevance score meets preset conditions as second relevant product information; The clicked product information other than the retrieved first related product information and the second related product information is removed from the behavior information sequence.
3. A commodity recommendation method as claimed in claim 1, It is characterized in that The step of determining the correlation score between the clicked product information corresponding to the search click event and each product information in the product database comprises the following steps: Determine a description correlation score between the product description text in the clicked product information corresponding to the search click event and the product description text in each product information in the product database; Determine the image correlation score between the product image in the clicked product information corresponding to the search click event and the product image in each product information in the product database; The corresponding correlation score is determined according to the description correlation score and the picture correlation score between the clicked product information and each product information.
4. A commodity recommendation method according to claim 1, It is characterized in that Before responding to a search click event triggered by a user, the following steps are included: Acquire multimodal information of a plurality of commodities, wherein the multimodal information includes text information and commodity images, and the text information includes commodity description text and / or marketing promotion text of the corresponding commodities; For each product, a vectorized representation of the category to which the product belongs and a vectorized representation of the brand to which the product belongs are determined based on the multimodal information of the product as the product feature vector of the product; The product feature vectors of all products are stored in the product feature library.
5. A commodity recommendation method according to claim 1, It is characterized in that Before using the search feature vector corresponding to the intended search type represented by the search text of the search click event, the following steps are included: The search text of the search click event is embedded into a preset prompt template to obtain a prompt text, and the prompt text is used to guide the large language model to encode a vectorized representation corresponding to the type of the intended search represented by the search text, wherein the product type includes the category type and / or the brand type of the product; A large language model is used to encode a vectorized representation of the commodity type according to the prompt text as a search feature vector.
6. A commodity recommendation method according to any one of claims 1 to 5, It is characterized in that The method of using a preset interest scoring model to determine the interest-related score corresponding to the recommended product according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product comprises the following steps: The coding layer in the preset interest scoring model is used to determine the user feature information of the user, the behavior information sequence, the clicked product information corresponding to the search click event and the recommended product information of the recommended product, the corresponding user feature vector, the behavior coding sequence, the click coding vector and the recommended coding vector, wherein the behavior coding sequence includes the coding representation corresponding to each clicked product information; The first interaction layer interacts the click coding vector and the recommendation coding vector with the behavior coding sequence to determine the contribution weights corresponding to each coding representation in the behavior coding sequence, and then weights the corresponding coding representations with each contribution weight and performs pooling to obtain the behavior feature vector. The second interaction layer interacts the click coding vector with the recommendation coding vector, and fully connects the interaction result, the click coding vector and the recommendation coding vector to obtain the interest feature vector; The user feature vector, the interest feature vector, and the behavior feature vector are fully connected to obtain the interest-related score of the recommended product.
7. A product recommendation method according to any one of claims 1 to 5, It is characterized in that The step of sorting the recommended products according to the interest-related scores and the search-related scores includes the following steps: For each recommended product, the interest-related score and search-related score of the recommended product are weighted and summed to obtain the corresponding recommendation score: Sort all recommended products in descending order of recommendation rating.
8. A product recommendation device, It is characterized in that include: An event response module is configured to respond to a search click event triggered by a user, determine a target session in a session flow, and construct a behavior information sequence according to clicked product information corresponding to each product click event triggered by the user during the target session, wherein the last product click event during the target session is the search click event; A product recall module is configured to determine a correlation score between the clicked product information corresponding to the search click event and each product information in the product database, and recall product information of multiple recommended products whose correlation scores meet preset conditions as recommended product information; The first score calculation module is configured to determine, for each recommended product information, an interest-related score corresponding to the recommended product by using a preset interest score model according to the user characteristic information, the behavior information sequence of the user, the clicked product information corresponding to the search click event, and the recommended product information of the recommended product; A second score calculation module is configured to use the search feature vector corresponding to the intended search type represented by the search text of the search click event to determine the search correlation score between the search feature vector and the product feature vector of each of the recommended products in the product feature library; The product recommendation module is configured to sort the recommended products according to the interest-related scores and the search-related scores so as to construct a recommended product set and send it to the user.
9. A computer device comprising a memory and a processor, It is characterized in that The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the commodity recommendation method according to any one of claims 1 to 7.
10. A storage medium storing computer-readable instructions, It is characterized in that When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the product recommendation method according to any one of claims 1 to 7.
Citation Information
Cited By
Content recommendation method and device, electronic equipment and storage medium
CN120316357A
Commodity sorting method, electronic equipment, storage medium and computer program product
CN122434607A
