A multi-interest sequence recommendation method, system and device

By constructing a global project co-occurrence graph and utilizing a multi-head graph attention network and graph convolution, combined with a time-aware attention mechanism, the problem of interest differentiation and failure to capture temporal relationships in existing methods is solved, achieving higher recommendation accuracy and user satisfaction.

CN116776004BActive Publication Date: 2026-11-24CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310832230.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2026-11-24
Estimated Expiration
2043-07-07

AI Technical Summary

Technical Problem

Existing multi-interest sequence recommendation methods fail to effectively distinguish the importance of user interests and do not fully capture the semantic and temporal relationships between items, resulting in low recommendation accuracy and low user satisfaction.

Method used

We adopt a multi-interest sequence recommendation method based on global item relationships and time information awareness. By constructing a global item co-occurrence graph, we use a multi-head graph attention network and graph convolution to capture the semantic and temporal dependencies of items. Combined with a time-aware attention mechanism, we improve the ability to capture interest changes.

Benefits of technology

It improves the accuracy of multi-interest sequence recommendations and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116776004B_ABST
    Figure CN116776004B_ABST
Patent Text Reader

Abstract

This invention provides a multi-interest sequence recommendation method, system, and device. The method includes: constructing a multi-interest sequence recommendation model based on global item relationships and time information awareness; training the multi-interest sequence recommendation model using historical interaction sequences and corresponding timestamp sequences of users in a dataset to obtain a trained multi-interest sequence recommendation model; inputting the historical interaction sequences and corresponding timestamp sequences of the user to be recommended into the trained multi-interest sequence recommendation model to obtain multiple interests of the user to be recommended; calculating and ranking the associations between the multiple interests and candidate items to obtain the top-N items with the highest relevance, and recommending the obtained item list to the user. This invention employs a multi-interest sequence recommendation method based on global item relationships and time information awareness, capturing the semantic and temporal dependencies of items, thereby fundamentally solving the problems of low accuracy and low user satisfaction in existing multi-interest sequence recommendation methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of personalized recommendation, specifically relating to a method, system, and device for recommending multiple interest sequences. Background Technology

[0002] With the rapid development of information technology and the internet, mobile phones, computers, and other electronic devices have become increasingly widespread, and the internet has permeated every aspect of people's lives, resulting in a massive increase in the amount of diverse resources available online. Faced with this explosive growth in data resources, it has become difficult for people to find the content they care about from the vast amount of information. While search engines can alleviate the "information overload" problem caused by the data explosion to some extent, they rely on whether people have a relatively clear need. In contrast, recommendation systems can analyze and extract user preferences based on their interaction history and proactively recommend content that users may be interested in. This can effectively alleviate the information overload problem while saving users time and improving the user experience.

[0003] Sequence recommendation arranges user's historical interactions in chronological order and models the dependencies between items, aiming to predict items a user might be interested in at the next moment. Currently, mainstream methods applied to sequence recommendation include RNNs, GNNs, and attention mechanisms.

[0004] However, existing multi-interest sequence recommendation methods mostly focus on what a user's multiple interests are without differentiating the importance of these interests. User interests tend to decay over time, and sequence recommendations inherently contain temporal information. Existing methods do not reflect this temporal decay of user interests and fail to assign different weights to multiple interests, which is inconsistent with real-world scenarios and reduces recommendation accuracy. Furthermore, to obtain dependencies between items, existing methods model these relationships based on user interaction history, typically relying on only a single factor: co-occurrence frequency. However, items themselves possess semantic information (attributes, etc.), and interactions between items have a temporal sequence relationship. In other words, existing methods do not model relationships between items from both semantic and temporal perspectives, failing to fully capture information and further impacting recommendation accuracy. Therefore, current multi-interest sequence recommendation methods suffer from low accuracy and low user satisfaction.

[0005] Therefore, how to improve the accuracy of multi-interest sequence recommendation methods and enhance user satisfaction is an urgent problem to be solved in this field. Summary of the Invention

[0006] The purpose of this invention is to address the shortcomings of existing technologies by providing a multi-interest sequence recommendation method, system, and device. The multi-interest sequence recommendation method of this invention employs a global item relationship and time-awareness approach. Through the establishment of global item relationships, processing of time information, and the design of a time-aware attention mechanism, it considers changes in user interests and utilizes multi-head graph attention networks and graph convolution to capture item semantic and temporal dependencies, thus capturing information more comprehensively. This fundamentally solves the problems of low accuracy and low user satisfaction in existing multi-interest sequence recommendation methods.

[0007] To achieve the above objectives, the present invention adopts the following technical solution: This invention proposes a multi-interest sequence recommendation method, applied to e-commerce platforms, characterized by the following steps: S1. Construct a multi-interest sequence recommendation model based on global project relationships and time information awareness; S2. Using the historical interaction sequences of users in the dataset and the corresponding timestamp sequences, train the multi-interest sequence recommendation model based on global item relationships and time information awareness to obtain the trained multi-interest sequence recommendation model based on global item relationships and time information awareness; Step S2 specifically includes the following: Step (1) Obtain the user's historical interaction sequence and corresponding timestamp sequence from the dataset; Step (2) Based on the timestamp sequence, calculate the time interval between each item and the last item and perform a truncation operation to obtain the time interval sequence; Step (3) Input the historical interaction sequence and the time interval sequence into the embedding layer to obtain the user interaction embedding representation. and time interval embedding representation ; Step (4) performs self-attention calculation on the user interaction embedding representation to obtain the item representation in the current sequence. ; Step (5) Based on the user interaction embedding representation, construct a global project co-occurrence graph; Step (6) Based on the global item co-occurrence graph, for any node i in the graph, a multi-head graph attention network is used to capture the semantic-conditional associations between it and its neighboring item nodes, thus obtaining an item representation containing semantic relevance. ; Step (7) Filter the global item co-occurrence graph according to the set time threshold, and process the interaction time interval of items to obtain the time interval embedding matrix where the interaction time interval is less than the time threshold; then use graph convolution operation to aggregate time-related neighbor information to obtain item representation containing time-related information. ; Step (8) represents the items containing semantic relevance. and the project representation containing time-series correlation The process involves merging components, constructing a global project relationship graph, and obtaining a global dependency embedding representation. ; Step (9) Use the gating fusion unit to aggregate the item representations in the current sequence. and the global dependency embedding representation Received user feedback ; Step (10) embeds the time interval into a representation. The user representation is used as an attention mechanism in the query. As the key and value of the attention mechanism, extract the user's K interests; Step (11) For the target item, use the argmax operation to select the most relevant interest from K interests, calculate the probability of user interaction with the target item based on the interest, and use softmax sampling to minimize the loss function to train the model.

[0008] S3. Obtain the historical interaction sequence and corresponding timestamp sequence of the user to be recommended, and input the historical interaction sequence and corresponding timestamp sequence of the user to be recommended into the trained multi-interest sequence recommendation model based on global item relationship and time information perception to obtain multiple interests of the user to be recommended; wherein, the user's historical interaction sequence includes Dell laptop - Xiaomi laptop - Apple laptop - sports pants - desk - sports hoodie - school desk, and the multiple interests of the user to be recommended are laptop, sportswear and furniture (school desk and chair); S4. Calculate and sort the associations between the multiple interests and candidate projects to obtain the top-N projects with the highest relevance, generate a target project recommendation list, and recommend the target project recommendation list to the user.

[0009] Further, step (5) constructs a global item co-occurrence graph based on the user interaction embedding representation, specifically by: including users' interaction history items with a distance not exceeding [a certain value]. Two items are considered as a co-occurring item pair, that is, for any item Its neighboring project set is represented as ;in, This is a hyperparameter used to limit the modeling scope of co-occurring item pairs; A global project co-occurrence graph is constructed based on the historical interactions of all users. ,in , where V represents the set of items.

[0010] Further, step (6) uses a multi-head graph attention network to capture the semantic conditional associations between any node i in the graph and its neighboring item nodes based on the global item co-occurrence graph, thus obtaining an item representation containing semantic relevance. Specifically:

[0011] in, Indicates project Embedded representation, This indicates a splicing operation. Indicates multiple bets

[0012] The head of willpower The number of heads representing multi-head attention. A learnable transformation matrix. express The item representation obtained after the head-th head transformation; , For nodes in the global project co-occurrence graph, express The set of neighboring project nodes, This represents the importance weight of different neighbors under semantic meaning. This indicates a splicing operation. and All are activation functions; Further, step (7) specifically involves: based on the set time threshold... The global item co-occurrence graph is filtered, and the interaction time intervals of items are truncated to obtain items whose interaction time intervals are less than the time threshold. Time interval embedding matrix Then, graph convolution operations are used to aggregate temporally related neighbor information to obtain an item representation that includes temporal correlation. : ; in, Let be the learnable parameters, and R be the association strength matrix between items that satisfy the time interval threshold. For the project and projects The time-series correlation score, For the project Embedded representation.

[0013] Further, step (9) uses a gating fusion unit to aggregate the item representations in the current sequence. and the global dependency embedding representation Received user feedback Specifically:

[0014] in, A learnable transformation matrix. .

[0015] Further, step (10) embeds the time interval into a representation. The user representation is used as an attention mechanism in the query. As the key and value of the attention mechanism, extract the user's K interests, specifically:

[0016] in, , For learnable parameters, A represents the degree of contribution of each item in the sequence to multiple interests, S represents the user's multiple interests, and K represents the number of user interests.

[0017] Furthermore, in step 11, the formula for calculating the probability of the user interaction target item is as follows: ; in, Expressing interest The embedded representation of the target item v; The loss function is as follows: 。

[0018] Further, step S4 involves calculating and ranking the associations between the multiple interests and candidate items to obtain the top-N items with the highest relevance, specifically as follows:

[0019] in, This represents a candidate project. Indicates the user's first... One interest.

[0020] The present invention also proposes a multi-interest sequence recommendation system, characterized in that the recommendation system executes the multi-interest sequence recommendation method, including: a multi-interest sequence recommendation model construction module, a multi-interest sequence recommendation model training module, an interest acquisition module, and an item recommendation module; The module for building a multi-interest sequence recommendation model constructs a multi-interest sequence recommendation model based on global item relationships and time information awareness. The multi-interest sequence recommendation model training module uses the historical interaction sequences of users in the dataset and the corresponding timestamp sequences to train the multi-interest sequence recommendation model based on global item relationships and time information awareness, so as to obtain the trained multi-interest sequence recommendation model based on global item relationships and time information awareness. The interest acquisition module acquires the historical interaction sequence and corresponding timestamp sequence of the user to be recommended, and inputs the historical interaction sequence and corresponding timestamp sequence of the user to be recommended into the trained multi-interest sequence recommendation model based on global item relationship and time information awareness to obtain multiple interests of the user to be recommended. The project recommendation module calculates and sorts the associations between the multiple interests and candidate projects, obtains the top-N projects with the highest relevance, generates a target project recommendation list, and recommends the target project recommendation list to the user.

[0021] The present invention also proposes a computer device, the device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0022] Compared with existing technologies, this invention has the following advantages: It adopts a multi-interest sequence recommendation method based on global item relationships and time information awareness. By establishing global item relationships, processing time information, and designing a time-aware attention mechanism, it takes into account changes in user interests and uses multi-head graph attention networks and graph convolution to capture item semantic and temporal dependencies, thereby capturing information more completely, improving the accuracy of the multi-interest sequence recommendation method, and thus improving the user experience. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic diagram of a multi-interest sequence recommendation method provided in an embodiment of the present invention.

[0025] Figure 2 This is a schematic diagram of a multi-interest sequence recommendation model based on global project relationships and time information awareness, provided in an embodiment of the present invention.

[0026] Figure 3 This is a schematic diagram illustrating the aggregation of global relationships from semantic and temporal perspectives, provided as an embodiment of the present invention.

[0027] Figure 4 This is a schematic diagram of a gating fusion unit provided in an embodiment of the present invention.

[0028] Figure 5 This is a schematic diagram of a multi-interest sequence recommendation system provided in an embodiment of the present invention. Detailed Implementation

[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0031] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the scope of the invention.

[0032] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0033] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0034] This invention provides a multi-interest sequence recommendation method, applied to e-commerce platforms. For example... Figure 1 As shown, the multi-interest sequence recommendation method includes the following steps S1 to S4.

[0035] S1. Construct a multi-interest sequence recommendation model based on global item relationships and time information awareness. The multi-interest sequence recommendation model based on global item relationships and time information awareness is as follows: Figure 2 As shown.

[0036] S2. Using the historical interaction sequences of users in the dataset and the corresponding timestamp sequences, train the multi-interest sequence recommendation model based on global item relationships and time information awareness to obtain the trained multi-interest sequence recommendation model based on global item relationships and time information awareness; Step S2 specifically includes the following: Step (1) Obtain the user's historical interaction sequence and corresponding timestamp sequence from the dataset.

[0037] Specifically, let and These represent a set of users and a set of projects, respectively. A user The historical interaction sequence is represented as The corresponding timestamp sequence is Each training sample is used before To predict the user's first behavior Each behavior. That is, the training sample is represented as The corresponding timestamp sequences are also processed in the same way. All users' historical interaction sequences are processed using the above steps as input.

[0038] In one embodiment, the user's historical interaction sequence is augmented by additionally using the first t consecutive sub-actions of the original sequence as input. For example, for a historical interaction sequence... Expanding it can generate continuous subsequences of the following: , [ ], ..., [ The same operation is performed on the timestamp sequence corresponding to the user's historical interaction sequence. That is, for the timestamp sequence... Expanding it can generate continuous subsequences of the following: , [ ], ..., [ ].

[0039] Step (2) Calculate the time interval between each item and the last item based on the timestamp sequence and perform a truncation operation to obtain the time interval sequence.

[0040] Specifically, based on the timestamp sequence, the time interval between each item and the last item is calculated and truncated. This process ensures that longer time intervals have lower weights while maintaining that items interacting within a short period have the same time interval information, ultimately resulting in the time interval sequence. .

[0041]

[0042] This sequence serves as the corresponding time information contained in the input sequence.

[0043] in, Indicates the input sequence number of the first... The element and the first The timestamp interval difference of each element (the last element of the input sequence); 1 / The basic unit for representing time. Indicates the timestamp of the target project. This is a threshold. The interaction interval duration varies significantly across different application scenarios, therefore... The value needs to be adjusted according to the actual situation.

[0044] Step (3) Input the historical interaction sequence and the time interval sequence into the embedding layer to obtain the user interaction embedding representation. and time interval embedding representation .

[0045] Furthermore, each input historical interaction sequence Convert to a fixed length A sequence whose length is greater than If cropping is not performed, padding is applied to the left side of the sequence for alignment. The corresponding timestamp sequence undergoes the same operation. This is then processed through an embedding layer to obtain the user interaction embedding representation. and time interval embedding representation .

[0046] Specifically, the length is obtained through the look-up operation. User interaction embedded representation and time interval embedding representation .

[0047] Step (4) performs self-attention calculation on the user interaction embedding representation to obtain the item representation in the current sequence. .

[0048] The specific calculation method is as follows: First, according to calculate , and Three vectors: ; Secondly, , and As the query, key, and value in the Attention network, [the following is a separate, unrelated sentence:] (Note: The original text contains some inconsistencies and grammatical errors. A more accurate translation would require the full context.) The mental calculation yields the item representation in the current sequence. :

[0049] in, These are learnable parameters.

[0050] Step (5) Based on the user interaction embedding representation, construct a global project co-occurrence graph.

[0051] To simulate the possible evolution of user interests, based on the interaction history of all users, the distance should not exceed [a certain value]. The two projects are considered as co-occurring projects in establishing a global project co-occurrence graph. Specifically, this means: including users' interaction history with intervals not exceeding [a certain value]. Two items are considered as a co-occurring item pair, that is, for any item Its neighboring project set is represented as ;in, This is a hyperparameter used to limit the modeling scope of co-occurring item pairs; A global project co-occurrence graph is constructed based on the historical interactions of all users. ,in Where V represents the set of items. For example, a global co-occurrence graph of items can be constructed based on the interaction history. If, for user A, items v1 and v3 appear simultaneously in her historical interactions, then v1 and v3 form a co-occurrence pair.

[0052] After obtaining the global project co-occurrence graph, a global project relationship graph is constructed based on the global project co-occurrence graph; specifically, Figure 2 The “Global Project Relationship Diagram” is the result obtained by extracting and fusing the relationships between projects from both semantic and temporal perspectives based on the Global Project Co-occurrence Diagram, specifically including steps (6) to (8).

[0053] Step (6) Based on the global item co-occurrence graph, for any node i in the graph, a multi-head graph attention network is used to capture the semantic-conditional associations between it and its neighboring item nodes, thus obtaining an item representation containing semantic relevance. ; Based on graph Specifically, capturing the semantic associations of items involves:

[0054] in, Indicates project Embedded representation, This indicates a splicing operation. Indicates multiple bets

[0055] The head of willpower The number of heads representing multi-head attention. A learnable transformation matrix. express The item representation obtained after the head-th head transformation; , For nodes in the global project co-occurrence graph, express The set of neighboring project nodes, This represents the importance weight of different neighbors under semantic meaning. This indicates a splicing operation. and All of these are activation functions.

[0056] Step (7) Filter the global item co-occurrence graph according to the set time threshold, and process the interaction time interval of items to obtain the time interval embedding matrix where the interaction time interval is less than the time threshold; then use graph convolution operation to aggregate time-related neighbor information to obtain item representation containing time-related information. ; Based on graph This captures the temporal relationships between projects. Specifically, it is based on a set time threshold. The global item co-occurrence graph is filtered, and the interaction time intervals of items are truncated using the same method as in step (2) to obtain items whose interaction time intervals are less than the time threshold. Time interval embedding matrix Then, graph convolution operations are used to aggregate temporally related neighbor information to obtain an item representation that includes temporal correlation. : ; in, Let be the learnable parameters, and R be the association strength matrix between items that satisfy the time interval threshold. For the project and projects The time-series correlation score, For the project Embedded representation.

[0057] Step (8) represents the items containing semantic relevance. and the project representation containing time-series correlation The process involves merging components, constructing a global project relationship graph, and obtaining a global dependency embedding representation. The process of aggregating global relationships from semantic and temporal perspectives is as follows: Figure 3 As shown; the specific formula is as follows: ; Step (9) Use the gating fusion unit to aggregate the item representations in the current sequence. and the global dependency embedding representation Received user feedback The gating fusion unit is specifically as follows: Figure 4 As shown; Specifically:

[0058] in, A learnable transformation matrix. , This is a globally dependent embedding representation; .

[0059] Step (10) embeds the time interval into a representation. The user representation is used as an attention mechanism in the query. As the key and value of the attention mechanism, extract the user's K interests S. .

[0060] Specifically:

[0061] in, , For learnable parameters, A represents the degree of contribution of each item in the sequence to multiple interests, S represents the user's multiple interests, and K represents the number of user interests.

[0062] Step (11) For the target item, use the argmax operation to select the most relevant interest from K interests, calculate the probability of user interaction with the target item based on the interest, and use softmax sampling to minimize the loss function to train the model.

[0063] The formula for calculating the probability of the user interaction target item is as follows: ; in, Expressing interest The embedded representation of the target item v; Since the above equation has high time complexity, softmax sampling is used to minimize the following loss function. Train the pairwise model: 。

[0064] S3. Obtain the historical interaction sequence and corresponding timestamp sequence of the user to be recommended, and input the historical interaction sequence and corresponding timestamp sequence of the user to be recommended into the trained multi-interest sequence recommendation model based on global item relationship and time information perception to obtain multiple interests of the user to be recommended; wherein, the user's historical interaction sequence includes Dell laptop - Xiaomi laptop - Apple laptop - sports pants - desk - sports hoodie - school desk, and the multiple interests of the user to be recommended are laptop, sportswear and furniture such as desks and chairs.

[0065] In a specific embodiment, on an e-commerce platform, if the current user's interaction history is "Dell laptop - Xiaomi laptop - Apple laptop - sweatpants - desk - sports hoodie - school desk", then based on the co-occurrence and relative time order between products (browsing sweatpants and sports hoodies may lead to the purchase of sports shoes, sports socks, etc.; browsing school desks may lead to the purchase of desk lamps, school desks and chairs, etc.), the current user's interests can be extracted as "laptop", "sports clothing" and "furniture school desks and chairs", etc.

[0066] S4. Calculate and sort the associations between the multiple interests and candidate projects to obtain the top-N projects with the highest relevance, generate a target project recommendation list, and recommend the target project recommendation list to the user.

[0067] The specific method is as follows:

[0068] in, This represents a candidate project. Indicates the user's first... One interest.

[0069] Specifically, the candidate projects are obtained from project set V.

[0070] Figure 5 This is a multi-interest sequence recommendation system provided in an embodiment of the present invention. For example... Figure 5 As shown, the multi-interest sequence recommendation system includes: a multi-interest sequence recommendation model construction module, a multi-interest sequence recommendation model training module, an interest acquisition module, and an item recommendation module; The module for building a multi-interest sequence recommendation model constructs a multi-interest sequence recommendation model based on global item relationships and time information awareness. The multi-interest sequence recommendation model training module uses the historical interaction sequences of users in the dataset and the corresponding timestamp sequences to train the multi-interest sequence recommendation model based on global item relationships and time information awareness, so as to obtain the trained multi-interest sequence recommendation model based on global item relationships and time information awareness. The interest acquisition module acquires the historical interaction sequence and corresponding timestamp sequence of the user to be recommended, and inputs the historical interaction sequence and corresponding timestamp sequence of the user to be recommended into the trained multi-interest sequence recommendation model based on global item relationship and time information awareness to obtain multiple interests of the user to be recommended. The project recommendation module calculates and sorts the associations between the multiple interests and candidate projects, obtains the top-N projects with the highest relevance, generates a target project recommendation list, and recommends the target project recommendation list to the user.

[0071] The aforementioned multi-interest sequence recommendation system can be implemented as a computer program that can run on a computer device.

[0072] The computer device can be a server, which can be a standalone server or a server cluster consisting of multiple servers.

[0073] Computer devices include processors, memory, and network interfaces connected via a system bus, wherein the memory may include non-volatile storage media and internal memory.

[0074] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform a multi-interest sequence recommendation method.

[0075] This processor provides computing and control capabilities to support the operation of the entire computer device.

[0076] This internal memory provides an environment for the execution of computer programs in non-volatile storage media, which, when executed by a processor, enable the processor to perform a multi-interest sequence recommendation method.

[0077] This network interface is used for network communication with other devices. Those skilled in the art will understand that the above-described computer device structure is only a partial structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.

[0078] The processor is used to run a computer program stored in a memory, which implements the multi-interest sequence recommendation method described in Embodiment 1.

[0079] It should be understood that, in the embodiments of this application, the processor may be a Central Processing Unit (CPU), but it may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0080] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0081] The present invention also provides a storage medium. This storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein when executed by a processor, the computer program causes the processor to perform the multi-interest sequence recommendation method described in Embodiment 1.

[0082] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0083] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0084] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0085] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0086] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0087] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A multi-interest sequence recommendation method, applied to an e-commerce platform, characterized in that, Including the following steps: S1. Construct a multi-interest sequence recommendation model based on global product relationships and time information perception; S2. Using the historical interaction sequences of users in the dataset and the corresponding timestamp sequences, train the multi-interest sequence recommendation model based on global product relationships and time information awareness to obtain the trained multi-interest sequence recommendation model based on global product relationships and time information awareness; Step S2 specifically includes the following: Step (1) Obtain the user's historical interaction sequence and corresponding timestamp sequence from the dataset; Step (2) Based on the timestamp sequence, calculate the time interval between each product and the last product and perform a truncation operation to obtain the time interval sequence; Step (3) Input the historical interaction sequence and the time interval sequence into the embedding layer to obtain the user interaction embedding representation. and time interval embedding representation ; Step (4) Perform self-attention calculation on the user interaction embedding representation to obtain the product representation in the current sequence. ; Step (5) Based on the user interaction embedding representation, construct a global product co-occurrence graph; Step (6) Based on the global product co-occurrence graph, for any node i in the graph, a multi-head graph attention network is used to capture the semantic associations between it and its neighboring product nodes, thereby obtaining a product representation containing semantic relevance. ; Step (7) Filter the global product co-occurrence graph according to the set time threshold, and process the interaction time interval of the items to obtain the time interval embedding matrix where the interaction time interval is less than the time threshold; then use graph convolution operation to aggregate the temporally related neighbor information to obtain the product representation containing temporal correlation. ; Step (8) represents the product containing semantic relevance. and the product representation containing time-series correlation The components are merged to construct a global product relationship graph and obtain a global dependency embedding representation. ; Step (9) Use the gating fusion unit to aggregate the product representations in the current sequence. and the global dependency embedding representation Received user feedback ; Step (10) embeds the time interval into a representation. The user representation is used as an attention mechanism in the query. As the key and value of the attention mechanism, extract the user's K interests; Step (11) For the target product, use the argmax operation to select the most relevant interest from K interests, calculate the probability of user interaction with the target product based on the interest, and use softmax sampling to minimize the loss function to train the model; S3. Obtain the historical interaction sequence and corresponding timestamp sequence of the user to be recommended, and input the historical interaction sequence and corresponding timestamp sequence of the user to be recommended into the trained multi-interest sequence recommendation model based on global product relationship and time information perception to obtain multiple interests of the user to be recommended; wherein, the user's historical interaction sequence includes the product sequence purchased by the user in the past, and the multiple interests of the user to be recommended are multiple products or product types; S4. Calculate and sort the associations between the multiple interests and candidate products to obtain the top-N products with the highest relevance, generate a target item recommendation list, and recommend the target product recommendation list to the user.

2. The method according to claim 1, characterized in that, Step (5) Based on the user interaction embedding representation, construct a global product co-occurrence graph, specifically as follows: The user's interaction history should not be more than [a certain distance]. Two goods are considered as a co-occurring goods pair, that is, for any item Its neighboring goods set is represented as ;in, This is a hyperparameter used to limit the modeling scope of co-occurring product pairs; Construct a global product co-occurrence graph based on all users' historical interactions. ,in , where V represents the set of goods.

3. The method according to claim 1, characterized in that, Step (6) Based on the global product co-occurrence graph, for any node i in the graph, a multi-head graph attention network is used to capture the semantic associations between it and its neighboring product nodes, thereby obtaining a product representation containing semantic relevance. Specifically: in, Indicates goods Embedded representation, This indicates a splicing operation. Indicates multiple bets The head of willpower The number of heads representing multi-head attention. A learnable transformation matrix. express The product representation obtained after the head-th head transformation; , For nodes in the global product co-occurrence graph, express The set of neighboring product nodes, This represents the importance weight of different neighbors under semantic meaning. This indicates a splicing operation. and All of these are activation functions.

4. The method according to claim 1, characterized in that, Step (7) specifically involves: based on the set time threshold... The global product co-occurrence graph is filtered, and the interaction time interval of each item is truncated to obtain items whose interaction time interval is less than the time threshold. Time interval embedding matrix Then, graph convolution operations are used to aggregate temporally related neighbor information to obtain a product representation that includes temporal correlation. : ; in, Let be the learnable parameters, and R be the association strength matrix between items that satisfy the time interval threshold. For goods and goods The time-series correlation score, For goods Embedded representation.

5. The method according to claim 1, characterized in that, Step (9) Use the gating fusion unit to aggregate the product representations in the current sequence. and the global dependency embedding representation Received user feedback Specifically: ; in, A learnable transformation matrix. , This is a globally dependent embedding representation.

6. The method according to claim 1, characterized in that, Step (10) embeds the time interval into a representation. The user representation is used as an attention mechanism in the query. As the key and value of the attention mechanism, extract the user's K interests S, specifically: in, , For learnable parameters, A represents the degree of contribution of each item in the sequence to multiple interests, S represents the user's multiple interests, and K represents the number of user interests.

7. The method according to claim 1, characterized in that, In step 11, the formula for calculating the probability of user interaction with the target product is as follows: ; in, Expressing interest The embedded representation of the target product v; The loss function is as follows: 。 8. The method according to claim 1, characterized in that, Step S4: Calculate and sort the associations between the multiple interests and candidate products to obtain the top-N products with the highest relevance, specifically: in, This represents a candidate product. Indicates the user's first One interest.

9. A multi-interest sequence recommendation system, characterized in that, The recommendation system executes the multi-interest sequence recommendation method as described in claim 1.

10. A computer device, characterized in that, The device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 8.