Method, device, equipment and storage medium for mining entities to be recommended
By generating similarity calculations between user behavior vectors and entity vectors, and using the word2vec model, the problem of poor user experience in the existing technology is solved, personalized entity recommendations are realized, and user experience and entity relevance are improved.
Patent Information
- Application Number
- CN202110763657.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-07-06
AI Technical Summary
It is difficult for existing technology to provide personalized entity recommendations through user behavior data, resulting in poor user experience.
By generating user behavior vectors, combining entity vectors to calculate similarity scores, and giving priority to recommending entities similar to user behaviors, the word2vec deep learning model is used to process one-hot encoding to generate vector expressions of users and entities.
It realizes the provision of personalized entity recommendations based on user behavior data, improves user experience, and enhances the correlation between entities and users.
Smart Images

Figure CN113496432B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for mining entities to be recommended. Background Art
[0002] Currently, with the support of big data, many fields need to push entities (such as stores, products or videos, etc.) based on users' daily habits or preferences.
[0003] Therefore, there is an urgent need for a method of information recommendation that combines user behavior data to provide users with personalized push services and improve user experience. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a method, device, equipment and storage medium for mining entities to be recommended, so as to provide personalized push services to users in combination with user behavior data.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] The first aspect of the present application provides a method for mining entities to be recommended, comprising:
[0007] Generate a user behavior vector for the user's browsing entity behavior in the current scene; wherein the user behavior vector is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the user's browsing entities and browsing order in the current scene;
[0008] For the entity in the current scene, using the vector of the entity and the vector of the user behavior, calculate the similarity score between the entity and the user;
[0009] Among the entities in the current scene, entities with high priority in similarity scores with the user are used as entities to be recommended to the user.
[0010] Optionally, generating a user behavior vector for the user's wandering entity behavior in the current scene includes:
[0011] According to the browsing order of the user, the vectors of each entity visited by the user in the current scene are combined to obtain the behavior sequence of the user;
[0012] The weight of each visited entity is used to perform weighted sum processing on the user's behavior sequence to obtain a vector of the user's user behavior.
[0013] Optionally, it also includes:
[0014] If the vector of the entity visited by the user in the current scene does not exist, when the user's behavior sequence is combined, the vector of the entity without the vector is replaced by the vector of the entity without the vector.
[0015] Optionally, the calculating a similarity score between the entity and the user by using the vector of the entity and the vector of the user behavior includes:
[0016] Calculating the cosine distance between the vector of the entity and the vector of the user behavior;
[0017] The similarity score between the entity and the user is calculated using the cosine distance between the vector of the entity and the vector of the user behavior.
[0018] Optionally, the method for generating the vector of the entity includes:
[0019] The one-hot encoding of the entity is processed by a vector generation model to obtain a vector of the entity; wherein the vector generation model belongs to a word2vec deep learning model, which is trained based on the one-hot encoding of the entity in the user's historical behavior sequence and the label corresponding to the entity.
[0020] Optionally, the method for generating the vector of each entity visited by the user in the current scene includes:
[0021] A vector generation model is used to process the one-hot encoding of each entity visited by the user in the current scene to obtain the vector of each entity visited by the user in the current scene; wherein the vector generation model belongs to a word2vec deep learning model, which is trained based on the one-hot encoding of entities in the user's historical behavior sequence and the labels corresponding to the entities. The second aspect of the present application provides a mining device for entities to be recommended, comprising:
[0022] A generating unit, configured to generate a user behavior vector for the browsing entity behavior of the user in the current scene; wherein the user behavior vector is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the browsing entities of the user in the current scene and the browsing order;
[0023] A calculation unit, configured to calculate, for an entity in a current scene, a similarity score between the entity and the user using a vector of the entity and a vector of the user behavior;
[0024] A control unit is used to use entities in the current scene that have high priority in similarity scores with the user as entities to be recommended to the user.
[0025] Optionally, when the generating unit generates the vector of the user behavior according to the wandering entity behavior of the user in the current scene, it is used to:
[0026] According to the browsing order of the user, the vectors of each entity visited by the user in the current scene are combined to obtain the user's behavior sequence; using the weight of each entity visited, the user's behavior sequence is weighted summed to obtain the user's user behavior vector.
[0027] Optionally, it also includes:
[0028] A replacement unit is used to replace the vector of the entity without the vector with the vector of the entity belonging to the entity without the vector when combining to obtain the behavior sequence of the user if the vector of the entity visited by the user in the current scene does not exist.
[0029] A third aspect of the present application provides an electronic device, including:
[0030] one or more processors;
[0031] a storage device having one or more programs stored thereon;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for mining entities to be recommended as described in any one of the first aspects.
[0033] A fourth aspect of the present application is a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for mining entities to be recommended as described in any one of the first aspects.
[0034] It can be seen from the above technical scheme that the embodiments of the present application provide a method, device, equipment and storage medium for mining entities to be recommended. In the method for mining entities to be recommended, a vector of user behavior is generated for the user's browsing behavior of entities in the current scene. Since the vector of user behavior is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the entities visited by the user in the current scene and the browsing order, which belongs to the user's behavior data, therefore, for the entity of the current scene, the similarity score between the entity and the user is calculated using the vector of the entity and the vector of the user behavior, and the entity in the current scene with a high priority similarity score to the user is used as the user's entity to be recommended, thereby achieving the purpose of providing the user with personalized push entities in combination with the user's behavior data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1a A flowchart of a method for constructing a vector generation model provided in an embodiment of the present application;
[0037] Figure 1b A diagram showing the construction process of the vector generation model provided in the embodiment of the present application;
[0038] Figure 2a A flowchart of a method for mining entities to be recommended provided in an embodiment of the present application;
[0039] Figure 2b A diagram showing a method for mining entities to be recommended provided in an embodiment of the present application;
[0040] Figure 3 A display diagram showing the similarity of store vectors provided in an embodiment of the present application;
[0041] Figure 4 A structural diagram of an excavation device for an entity to be recommended provided in an embodiment of the present application;
[0042] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0045] The present application embodiment provides a method for constructing a vector generation model. For details, see Figure 1a , a method for vector generation model, comprising:
[0046] S101, obtaining a sample wandering entity sequence.
[0047] Among them, when users browse offline or online, they will uniquely encode the entities they browsed in a period of time according to the browsing order to form a sample browsing entity sequence. Entities can be online commodities, stores, videos, and offline stores. When the entity is a commodity, it can also be understood that the entity has several dimensions: brand, format, city, etc. In addition, the sample entities that make up the sample browsing entity sequence can be collected based on multiple scenarios. In this way, through sample training of a large number of different scenarios, the vector representation of the entity's brand, format, and city can be obtained. In a new scenario, even if there is no information about any entity here, the vector representation of the corresponding brand, format, or city can still be extracted based on the information learned from the fusion of other multi-scenario data.
[0048] It should also be noted that the one-hot encoding of an entity can be written as an N-dimensional vector in which only one component is 1 and the others are zero.
[0049] Generate a store shopping sequence by randomly walking the network. Assuming that in scenario S, the store set is B, the customer flow transfer matrix can be expressed as Assume that the passenger flow transfer matrix has been normalized, that is, Given the current store i, the probability of visiting the next store j is . In addition, the other two parameters are: L represents the maximum length of each store-shopping sequence, and N represents the number of store-shopping sequences in the scene. For M different scenes, according to the above method, a total of M*N store-shopping sequences can be obtained.
[0050] In one example, a specific store sequence is [Adidas, Under Armour, MUJI, Uniqlo, Coucou, DJI, The Art Store]. Based on this store sequence, multiple sample shopping entity sequences are obtained as shown in the following table. For simplicity, the store name of the entity is used to replace the one-hot encoding representation of the entity in this example.
[0051] It should also be noted that the sample wandering entity sequence can also be obtained by users wandering on the basis of interest networks. The interest network is a user interest transfer matrix generated based on customer flow data; each node in the user interest transfer matrix represents a store, and the lines between nodes are used to illustrate the flow of customers between stores; the optimal node is the node with the largest weighted gain in the current interest network.
[0052] The interest network can be constructed using the construction method proposed in the following content:
[0053] Acquire multiple user interaction information, wherein each user interaction information is used to indicate that the user has an interactive behavior with an entity in a target scene; parse the user interaction information to obtain the entity indicated by the user interaction information and the customer flow between the entities indicated by the user interaction information, wherein the customer flow is used to indicate that after the user has an interactive behavior with an entity in the target scene, the user has an interactive behavior with another entity in the target scene; take each entity indicated by the user interaction information as a node of an interest network, and use the customer flow between the entities indicated by the user interaction information to establish a connection relationship between two nodes of the interest network, wherein the connection relationship between the two nodes of the interest network represents the customer flow between the entities corresponding to the two nodes; calculate the weight of each node in the interest network, and calculate the weight of the connection relationship between two nodes with a connection relationship in the interest network.
[0054] S102, processing the sample wandering entity sequence with a set sliding window length to obtain a label corresponding to each input of the training sample; wherein each input of the training sample is each entity in the sample wandering entity sequence.
[0055] In the above example, a sliding window length is set to 2, that is, two words are selected on the left and right of the central word as its context words, and the following sample wandering entity sequence is processed with this sliding window length to obtain the following training samples.
[0056]
[0057] S103, training the network parameters in the word2vec deep learning model with the training samples to obtain a trained model; wherein the trained model is a vector generation model.
[0058] After training, the embedded representation (Dense Embeddings) of each entity, that is, the vector of the entity, can be obtained by multiplying its one-hot encoding x and the network parameter W of the trained vector generation model. , where: W is the weight matrix between the input layer and the hidden layer of the vector generation model.
[0059] It should also be noted that if you need to use the vector generation model to process the one-hot encoding of the business type to which the entity belongs or the city where the entity is located to obtain the vector of the business type and the vector of the city, then during the model training process, the training samples need to set the one-hot encoding of the business type and the one-hot encoding of the city, such as Figure 1b As shown, SI0 is the unique hot code of the brand, SI1 is the unique hot code of the business format, and SIn is the unique hot code of the city.
[0060] The present application embodiment provides a method for mining entities to be recommended, such as Figure 2a As shown, including:
[0061] S201. Generate a user behavior vector for the user's wandering entity behavior in the current scene.
[0062] The current scene can refer to an online scene or an offline scene. When a user browses online, the user's identifier, such as the name and account number of the sample user, is used to find the user's browsing trajectory from the online user's browsing trajectory, and then the user's browsing trajectory is analyzed to obtain the entities visited by the user in the online scene and the order of browsing.
[0063] When a user is shopping offline, the user's identifier, such as biometric information such as facial images, head images, or body images, is used to find the video data belonging to the user from the video data of the offline scene, extract the user's store shopping trajectory, and then analyze the user's store shopping trajectory to obtain the entities visited by the user in the offline scene and the order of their shopping.
[0064] Regardless of whether it is an offline scenario or an online scenario, after obtaining the entities visited by the user in the offline or online scenario and the order of their visits, a unique hot encoding of the visited entities is constructed, and the unique hot encoding of the visited entities is processed using a vector generation model to obtain a vector of the visited entities. The vectors of each visited entity of the user can be combined to form a user's behavior sequence according to the user's visit order. After obtaining the user's behavior sequence, the user's behavior sequence needs to be expressed as a vector. Therefore, the vector of the user's behavior is the vector expression of the user's behavior sequence.
[0065] Optionally, in another embodiment of the present application, an implementation of step S201 includes:
[0066] Generate vectors of entities visited by users in online scenarios.
[0067] According to the user's browsing order, the vectors of each entity visited by the user in the current scene are combined to obtain the user's behavior sequence.
[0068] The weight of each visited entity is used to perform weighted summation on the user's behavior sequence to obtain the user's behavior vector.
[0069] Among them, using weights to perform weighted summation processing on the user's behavior sequence is a way to express the vector of user behavior as a vector.
[0070] like Figure 2b , assuming that a user's behavior sequence is , where each entity b corresponds to a vector .make is the weight of the browsing order of entities in the behavior sequence, then the user's behavior sequence can be expressed as the weighted vector of the entities visited by the user .
[0071] It should be noted that the weight of each visited entity can be limited based on the entity alone, that is, different entities have different weights, or it can be associated with the user's behavior. For example, for a user u, the entities in his behavior sequence are b1, b2, b3, b4 in chronological order, and their weights p1, p2, p3, p4 can be determined according to time decay.
[0072] Optionally, if the vector of the entity visited in the online scene cannot be generated, when the user's behavior sequence is combined, the vector of the entity without a vector is replaced by the vector of the entity without a vector.
[0073] When the entity is a store, the entity's attributes include the store's business format and the city where the store is located. Optionally, if the store's brand is k, the trained vector is ; If the vector generation model does not obtain the vector of the store, the business format vector corresponding to the store will be used instead If still not found, use the city vector replace.
[0074] Of course, the business type vector and the city vector can also be obtained by processing the unique hot encoding of the business type to which the store belongs and the unique hot encoding of the city to which the store belongs through the vector generation model.
[0075] It should also be noted that since the vector generation model is trained by using the browsing behaviors of other users, which can be called sample users, in multiple sample scenarios, therefore, for each entity involved in the user's browsing in the current scenario, the generated entity vector can also be understood as being obtained by using sample data. For the user's browsing behavior in a new scenario without any data accumulation, it is possible to obtain the correlation between the user's browsing behavior and the entities in the scenario, so as to mine the entities that meet the user's preferences in the new scenario.
[0076] S202: For the entity in the current scene, the similarity between the entity and the user is calculated using the entity vector and the user behavior vector.
[0077] The similarity between an entity and a user can reflect the entity's attractiveness to the user. If the similarity is high, it means that the entity is one that the user likes and is very attractive to the user. Otherwise, it is not very attractive.
[0078] Furthermore, if the similarity between an entity and a user needs to be calculated, the entity vector and the user behavior vector are needed, both of which must be in the form of vectors. Therefore, in step S201, the user's behavior sequence needs to be expressed as a vector.
[0079] It should be noted that in the current scenario, in addition to the entities that the user browsed, there are other entities that are highly relevant to the user and meet his preferences. Therefore, it is necessary to filter out the entities that meet the user's preferences from the entities that the user did not browse. Of course, the way to filter is to calculate the similarity between the user and the entity.
[0080] Optionally, an implementation of this step includes:
[0081] Calculate the cosine distance between the entity's vector and the user action's vector.
[0082] The similarity score between the entity and the user is calculated using the cosine distance between the entity vector and the user behavior vector.
[0083] It should be noted that vectors have the property that the more semantically similar the entities are, the smaller the cosine distance is. The smaller the cosine distance is, the smaller the angle between the two vectors is, the more similar they are and the stronger the correlation is. In extreme cases, the cosine similarity of the same vector is 1 and the distance is 0. Figure 3 As shown, the brands of Adidas and Nike have very high similarity, and the coffee and catering industries have a strong correlation.
[0084] Therefore, for any two vectors u, v , the cochord distance is defined as:
[0085] dist( u,v ) = 1-
[0086] For an entity in this scenario i , you can calculate the similarity score between it and the user .
[0087] S203: Entities in the current scene that have high priority in similarity scores with the user are used as entities to be recommended to the user.
[0088] From the above content, it can be seen that: the smaller the cosine distance between the entity vector and the user behavior vector, the greater the similarity score between the entity and the user, and the stronger the correlation between the entity and the user.
[0089] Thus, all entities are sorted by similarity scores, and the top K entities with the largest scores are recommended to the user, where K can be a value set according to the actual situation. Of course, entities with similarity scores greater than a set value can also be recommended to the user as entities to be recommended.
[0090] High-priority entities refer to entities with a high probability of being screened out when all entities in the current scene are screened according to the similarity score between the entity and the user. Specifically, they refer to the first K entities among all entities sorted from high to low according to the similarity score, or entities with a similarity score greater than a set value.
[0091] In the method for mining entities to be recommended provided in the embodiment of the present application, a vector of user behavior is generated for the user's browsing entity behavior in the current scene. Since the vector of user behavior is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the entities visited by the user in the current scene and the browsing order, which belongs to the user's behavior data, for the entity in the current scene, the similarity score between the entity and the user is calculated using the vector of the entity and the vector of the user behavior, and the entities in the current scene with high priority in similarity score with the user are used as the user's entities to be recommended, thereby achieving the purpose of providing the user with personalized push entities in combination with the user's behavior data.
[0092] Another embodiment of the present application provides a mining device for entities to be recommended, such as Figure 4 As shown, including:
[0093] A generating unit 401 is used to generate a user behavior vector for the browsing entity behavior of the user in the current scene; wherein the user behavior vector is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to represent the browsing entities of the user in the current scene and the browsing order;
[0094] A calculation unit 402 is used to calculate a similarity score between an entity and the user in the current scene by using a vector of the entity and a vector of the user behavior;
[0095] The control unit 403 is configured to use entities in the current scene that have high priority in similarity scores with the user as entities to be recommended to the user.
[0096] In the device for mining entities to be recommended provided in the embodiment of the present application, the generation unit 401 generates a vector of user behavior for the user's browsing entity behavior in the current scene. Since the vector of user behavior is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the entities visited by the user in the current scene and the browsing order, which belongs to the user's behavior data, the calculation unit 402 calculates the similarity score between the entity and the user for the entity in the current scene using the entity's vector and the user's behavior vector. The control unit 403 uses the entity in the current scene that has a high priority similarity score with the user as the user's entity to be recommended, thereby achieving the purpose of providing the user with personalized push entities in combination with the user's behavior data.
[0097] Optionally, in another embodiment of the present application, when the generating unit 401 generates a vector of user behavior for the wandering entity behavior of the user in the current scene, it is used to:
[0098] According to the user's browsing order, the vectors of each entity visited by the user in the current scene are combined to obtain the user's behavior sequence; using the weight of each entity visited, the user's behavior sequence is weighted summed to obtain the user's user behavior vector.
[0099] Optionally, in another embodiment of the present application, the mining device for entities to be recommended further includes:
[0100] The replacement unit is used to replace the vector of the entity without the vector with the vector of the entity belonging to the entity without the vector when combining to obtain the user's behavior sequence if the vector of the entity visited by the user in the current scene does not exist.
[0101] Optionally, in another embodiment of the present application, when the calculation unit 402 calculates the similarity score between the entity and the user using the vector of the entity and the vector of the user behavior, it is used to:
[0102] The cosine distance between the entity vector and the user behavior vector is calculated; the similarity score between the entity and the user is calculated using the cosine distance between the entity vector and the user behavior vector.
[0103] Optionally, in another embodiment of the present application, in the device for mining entities to be recommended, the generating unit 401 is further used to generate a vector of the entity, and a method for generating the entity vector includes:
[0104] The vector generation model is used to process the one-hot encoding of the entity to obtain the entity's vector; wherein the vector generation model belongs to the word2vec deep learning model, which is trained based on the one-hot encoding of the entity in the user's historical behavior sequence and the label corresponding to the entity.
[0105] In the device for mining entities to be recommended disclosed in the above embodiments, the specific working process of each unit can be found in the corresponding method embodiment content, which will not be repeated here.
[0106] Another embodiment of the present application also discloses an electronic device, such as Figure 5 As shown, including:
[0107] One or more processors 501;
[0108] A storage device 502 having one or more programs stored thereon;
[0109] When the one or more programs are executed by the one or more processors 501, the one or more processors 501 implement the method for mining entities to be recommended as described in any one of the above embodiments.
[0110] Another embodiment of the present application further discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for mining entities to be recommended as described in any one of the above embodiments is implemented.
[0111] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0112] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0113] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. The implementation of the present invention is for legal use. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for mining entities to be recommended, characterized in that: include: Generate a user behavior vector for the user's browsing entity behavior in the current scene; wherein the user behavior vector is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the user's browsing entities and browsing order in the current scene; For the entity in the current scene, using the vector of the entity and the vector of the user behavior, calculate the similarity score between the entity and the user; Taking entities in the current scene that have a high priority in similarity score with the user as entities to be recommended to the user; Among them, the method for generating the vector of the entity includes: using a vector generation model to process the one-hot encoding of the entity to obtain the vector of the entity; wherein the vector generation model belongs to a word2vec deep learning model, which is trained based on the one-hot encoding of the entity in the user's historical behavior sequence and the label corresponding to the entity.
2. The excavation method according to claim 1, characterized in that: The step of generating a user behavior vector based on the user's wandering entity behavior in the current scene includes: According to the browsing order of the user, the vectors of each entity visited by the user in the current scene are combined to obtain the behavior sequence of the user; The weight of each visited entity is used to perform weighted sum processing on the user's behavior sequence to obtain a vector of the user's user behavior.
3. The excavation method according to claim 2, characterized in that: Also includes: If the vector of the entity visited by the user in the current scene does not exist, when the user's behavior sequence is combined, the vector of the entity without the vector is replaced by the vector of the entity without the vector.
4. The excavation method according to any one of claims 1 to 3, characterized in that: The calculating a similarity score between the entity and the user by using the vector of the entity and the vector of the user behavior includes: Calculating the cosine distance between the vector of the entity and the vector of the user behavior; The similarity score between the entity and the user is calculated using the cosine distance between the vector of the entity and the vector of the user behavior.
5. The excavation method according to claim 2, characterized in that: The method for generating a vector of each entity visited by the user in the current scene includes: A vector generation model is used to process the one-hot encoding of each entity visited by the user in the current scene to obtain a vector of each entity visited by the user in the current scene; wherein the vector generation model belongs to a word2vec deep learning model, which is trained based on the one-hot encoding of entities in the user's historical behavior sequence and the labels corresponding to the entities.
6. A device for mining entities to be recommended, characterized in that: include: A generating unit, configured to generate a user behavior vector for the browsing entity behavior of the user in the current scene; wherein the user behavior vector is a vector expression of the user's behavior sequence, and the user's behavior sequence is used to characterize the browsing entities and browsing order of the user in the current scene; A calculation unit, configured to calculate, for an entity in a current scene, a similarity score between the entity and the user using a vector of the entity and a vector of the user behavior; A control unit, configured to select entities in the current scene that have a high priority in similarity score with the user as entities to be recommended to the user; The generation unit is also used to generate a vector of an entity, and the method for generating an entity vector includes: using a vector generation model to process the one-hot encoding of the entity to obtain the vector of the entity; wherein the vector generation model belongs to a word2vec deep learning model, which is trained based on the one-hot encoding of the entity in the user's historical behavior sequence and the label corresponding to the entity.
7. The device according to claim 6, characterized in that When the generating unit generates a vector of user behavior based on the wandering entity behavior of the user in the current scene, it is used to: According to the browsing order of the user, the vectors of each entity visited by the user in the current scene are combined to obtain the behavior sequence of the user; and the weight of each entity visited is used to perform weighted summation processing on the behavior sequence of the user to obtain the vector of the user's user behavior.
8. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for mining entities to be recommended as described in any one of claims 1 to 5.
9. A computer storage medium, characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the method for mining entities to be recommended as claimed in any one of claims 1 to 5 is implemented.
