Information push method and device
By generating item identification pairs and calculating co-occurrence probability values, the problem of information overload and lack of pertinence in information push is solved, and more accurate information push is achieved to meet user needs.
Patent Information
- Application Number
- CN201910907442.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-09-24
AI Technical Summary
Existing information push technology cannot effectively reduce information overload, and the pushed information lacks pertinence and accuracy and cannot accurately meet the specific needs of users.
By generating a set of item identifier pairs, obtain the item identifier corresponding to the target scene identifier according to the pre-established correspondence between the scene identifier and the item identifier, calculate the co-occurrence probability value between the item identifier pairs, and perform aggregation and scoring based on these probability values. Finally, the information corresponding to the item identification group with a higher score is pushed.
It improves the pertinence and accuracy of information push, ensures that the pushed item information has a high probability of appearing in the target scene, meets the specific needs of users, and reduces information overload.
Smart Images

Figure CN112347342B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and specifically to an information push method and device. Background Art
[0002] Information push, also known as "network broadcasting", is a technology that reduces information overload by pushing information needed by users on the Internet through certain technical standards or protocols. Information push technology can reduce the time users spend searching on the Internet by actively pushing information to users. Summary of the invention
[0003] The embodiments of the present application provide a method and device for pushing information.
[0004] In a first aspect, an embodiment of the present application provides an information push method, the method comprising: generating a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained in the following manner: obtaining the item identification corresponding to the target scene identification according to a pre-established correspondence between the scene identification and the item identification; determining a co-occurrence probability value for the two items indicated by each item identification pair, wherein the co-occurrence probability value is used to characterize the probability that the two items appear in the same scene; aggregating the item identification pairs in the set of item identification pairs according to the item identifications, and generating a set of item identification groups based on the aggregation results; for each item identification group, generating a score corresponding to the item identification group according to the co-occurrence probability value corresponding to the item identification pairs that participate in the aggregation to generate the item identification group; selecting an item identification group from the set of item identification groups based on the score corresponding to each item identification group, and pushing the first item information corresponding to the selected item identification group.
[0005] In a second aspect, an embodiment of the present application provides an information push device, which includes: a second generation unit for a stop point, configured to: a first generation unit, configured to generate a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained in the following manner: according to a pre-established correspondence between scene identifications and item identifications, the item identification corresponding to the target scene identification is obtained; a first determination unit, configured to determine a co-occurrence probability value for two items indicated by each item identification pair, wherein the co-occurrence probability value is used to characterize the probability that the two items appear in the same scene; an aggregation unit, configured to aggregate the item identification pairs in the item identification pair set according to the item identification, and to generate an item identification group set based on the aggregation result; a second generation unit, configured to generate a score corresponding to each item identification group according to the co-occurrence probability value corresponding to the item identification pairs that participate in the aggregation to generate the item identification group; and a first push unit, configured to select an item identification group from the item identification group set based on the score corresponding to each item identification group, and to push the first item information corresponding to the selected item identification group.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method as in any embodiment of the above-mentioned information push method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements a method as in any embodiment of the above-mentioned information push method.
[0008] The information push method and device provided in the embodiments of the present application generate a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained in the following manner: according to the correspondence between the pre-established scene identification and the item identification, the item identification corresponding to the target scene identification is obtained; for the item identification pairs in the item identification pair set, a co-occurrence probability value between the two items indicated by the item identification pair set is generated; and, according to the item identifications, the item identifications in the item identification pair set can be aggregated to generate an item identification group set; and then, according to the co-occurrence probability values corresponding to the item identification pairs involved in generating the item identification group, a score for the item identification group is generated; finally, based on the scores corresponding to the respective item identification groups, an item identification group can be selected from the item identification group set, and the first item information corresponding to the selected item identification group can be pushed; thus, the technical effects can at least include: providing a new information push method. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0010] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0011] Figure 2 is a flow chart of an embodiment of the information push method according to the present application;
[0012] Figure 3 is a schematic diagram of an application scenario of the information push method according to the present application;
[0013] Figure 4 is an exemplary flow chart of a method for establishing an item co-occurrence probability model according to the present application;
[0014] Figure 5 is an exemplary flow chart of building an item network according to the present application;
[0015] Figure 6is an exemplary flow chart of generating a node set according to the present application;
[0016] Figure 7 is a structural schematic diagram of an embodiment of an information push device according to the present application;
[0017] Figure 8 It is a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION
[0018] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0020] Figure 1 An exemplary system architecture 100 to which an embodiment of the information push method or information push device of the present application can be applied is shown.
[0021] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0022] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0023] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0024] The server 105 may be a server that provides various services, such as a backend server that supports shopping applications on the terminal devices 101, 102, and 103. The backend server may analyze and process the received data such as the data acquisition request, and feed back the processing result (such as item-related information) to the terminal device.
[0025] The server 104 may be a server that provides various services. The server may provide services in response to a user's service request. It is understood that a server may provide one or more services, and the same service may also be provided by multiple servers.
[0026] It should be noted that the information push method provided in the embodiment of the present application is generally executed by the server 105 , and accordingly, the information push device is generally arranged in the server 105 .
[0027] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0028] It should be understood that Figure 1 The number of terminal devices, networks and servers in the system is only illustrative. According to the implementation requirements, there may be any number of terminal devices, networks and servers. When the electronic device on which the information push method is running does not need to perform data transmission with other electronic devices, the system architecture may only include the electronic device on which the information push method is running.
[0029] Continue to refer Figure 2 , which shows a process 200 of an embodiment of the information push method according to the present application. The information push method comprises the following steps:
[0030] Step 201, generating a set of item identification pairs.
[0031] In this embodiment, the execution subject of the information push method (for example Figure 1 The server shown) can generate a set of item identification pairs.
[0032] Here, the item identification in the item identification pair is obtained by: obtaining the item identification corresponding to the target scene identification according to the pre-established correspondence relationship between the scene identification and the item identification
[0033] Here, scenes may be predefined and scene identifiers may be generated. The scene identifier may indicate a predefined scene. As an example, the scene may include a fishing scene, with the scene identifier being "fishing scene"; a mother-infant scene, with the scene identifier being "mother-infant scene"; and a "raining scene", with the scene identifier being "raining scene".
[0034] Here, the item identifier can be used to indicate an item, such as an umbrella, milk, etc., or an A-brand umbrella, B-brand milk.
[0035] In some embodiments, a direct correspondence between a scene identifier and an object identifier may be pre-established, and the object identifier may be acquired based on the direct correspondence.
[0036] In some embodiments, an indirect correspondence between scene identifiers and item identifiers may be pre-established, and the item identifiers may be obtained based on the indirect correspondence. As an example, a set of target item categories corresponding to the target scene identifier may be obtained based on the pre-established correspondence between scene identifiers and item categories; then, the item identifiers corresponding to each target item category may be obtained based on the correspondence between the item categories and the item identifiers, as the item identifiers corresponding to the target scene identifier.
[0037] Here, the execution subject may combine the acquired item identifications in pairs to obtain at least one item identification pair, thereby generating an item identification pair set.
[0038] Step 202: determining a co-occurrence probability value for two items indicated by each pair of item identifiers.
[0039] In this embodiment, the execution entity may determine a co-occurrence probability value for two items indicated by each pair of item identifiers.
[0040] Here, the above co-occurrence probability value is used to characterize the probability of two items appearing in the same common scene.
[0041] Here, the co-occurrence probability value between two items can be determined in various ways.
[0042] Step 203 : Aggregate the item identification pairs in the item identification pair set according to the item identification, and generate an item identification group set based on the aggregation result.
[0043] In this embodiment, the execution entity may aggregate the item identification pairs in the item identification pair set according to the item identifications, and generate an item identification group set based on the aggregation result.
[0044] Here, the item identification group corresponds to the aggregation item identification, and the aggregation item identification is the item identification according to which the item identification group is generated by aggregation.
[0045] It can be understood that the number of item identifiers in the item identifier pair is 2; the number of item identifiers in the item identifier group can be at least two, that is, it can be two or more than two.
[0046] Here, the aggregation may include: selecting the item pairs including the target item identifier to obtain an aggregation pile corresponding to the target item identifier.
[0047] Here, the aggregation result may include an aggregation pile corresponding to the item identification group. The item identification pairs in the aggregation pile include the same item identification.
[0048] As an example, the set of item identification pairs includes four item identification pairs: [AB] [AC] [AD] [CD].
[0049] Aggregate according to item identification A to generate an aggregation pile [AB][AC][AD]; then, based on the aggregation pile [AB][AC][AD], an item identification group [ABCD] can be generated, or an item identification group [ABC] can be generated (for example, if the co-occurrence probability value corresponding to the item identification pair [AD] is less than a preset co-occurrence probability threshold, the item identification pair [AD] is deleted from the aggregation pile, and then an item identification group is generated based on the aggregation pile).
[0050] Aggregate according to item ID B to generate an aggregation pile [AB]; then, based on the aggregation pile, an item ID group [AB] can be generated.
[0051] Aggregation is performed according to the item identifier C to generate an aggregation pile [AC][CD]; then, based on the aggregation pile [AC][CD], an item identifier group [ACD] (corresponding to the item identifier C) can be generated.
[0052] Aggregation is performed according to the item identification D to generate an aggregation pile [AD][CD]; then, based on the aggregation pile [AD][CD], an item identification group [ACD] (corresponding to the item identification D) can be generated.
[0053] It can be seen that the aggregation result may include multiple aggregation piles, each aggregation pile may generate a corresponding item identification group, thereby obtaining multiple item identification groups, and these multiple item identification groups may be used as an item identification group set.
[0054] Step 204 , for each item identification group, a score corresponding to the item identification group is generated according to the co-occurrence probability values corresponding to the item identification pairs that participate in the aggregation to generate the item identification group.
[0055] In this embodiment, the execution entity may generate a score corresponding to each item identification group according to the co-occurrence probability values corresponding to the item identification pairs that are aggregated to generate the item identification group.
[0056] Here, the score is used to represent the probability that the set of items indicated by the item identifier appears in the target scene.
[0057] As an example, the set of item identification pairs includes four item identification pairs: [AB] [AC] [AD] [CD]. For the item identification group [ABCD], the item identification pairs involved in generating the item identification group include [AB] [AC] [AD]; for the generated item identification group [ABC], the item identification pairs involved in generating the item identification group include [AB] [AC].
[0058] Here, the co-occurrence probability value corresponding to the item identification pair may be a co-occurrence probability value of two items indicated by the item identification pair.
[0059] Here, scores corresponding to the item identification groups may be generated in various ways according to the co-occurrence probability values.
[0060] In some embodiments, the score corresponding to the item identification group may be determined by taking the average value of the co-occurrence probability values corresponding to the item identification pairs.
[0061] As an example, for the item identification group [ABCD], the item identification pairs involved in generating the item identification group include [AB] [AC] [AD]. The above-mentioned execution entity can determine the average value of the co-occurrence probability value corresponding to the item identification pair [AB], the co-occurrence probability value corresponding to the item identification pair [AC], and the co-occurrence probability value corresponding to the item identification pair [AD] as the score corresponding to the item identification group [ABCD].
[0062] Step 205 : Based on the scores corresponding to the respective item identification groups, an item identification group is selected from the item identification group set, and first item information corresponding to the selected item identification group is pushed.
[0063] In this embodiment, the execution subject may select an item identification group from the item identification group set based on the scores corresponding to each item identification group, and push the first item information corresponding to the selected item identification group.
[0064] In some embodiments, the item identification groups may be sorted according to the scores to obtain a sorting result, and then a predetermined number of item identification groups may be selected from the sorting result in descending order, and the first item information corresponding to the selected item identification groups may be pushed to the user terminal.
[0065] Here, the first item information may be some specified information. As an example, the first item information may include the transaction attribute value, size, number of items included in a single item (such as the number of bottles included in a box of beverages), etc. of the item.
[0066] Here, the first item information corresponding to the item identification group may include the first item information corresponding to each item identification in the item identification group.
[0067] Continue to see Figure 3 This is a schematic diagram of an application scenario of the information push method according to this embodiment. The details are as follows:
[0068] First, the server can obtain at least two item identifiers corresponding to the target scene identifier (for example, "baby complementary food") according to the correspondence between the scene identifier and the item identifier (for example, [fruit puree], [juice], [rice flour], [vegetable flour]), and generate a set of item identifier pairs. For example, the set of item identifier pairs may include: [fruit puree, juice] [fruit puree, rice flour] [fruit puree, vegetable flour] [rice flour, vegetable flour].
[0069] Then, the server can determine the co-occurrence probability value for the two items indicated by each item identifier pair. For example, it can be determined that the co-occurrence probability value corresponding to [fruit puree, juice] is 95%, the co-occurrence probability value corresponding to [fruit puree, rice flour] is 90%, the co-occurrence probability value corresponding to [fruit puree, vegetable flour] is 85%, and the co-occurrence probability value corresponding to [rice flour, vegetable flour] is 80%.
[0070] Then, the server may aggregate the item identifiers in the item identifier pair set according to the item identifiers, and generate an item identifier group set based on the aggregation result. Here, the item identifier group set corresponds to the item identifiers according to which the item identifier group is generated by aggregation. As an example, the item identifier group [fruit identifier, juice, rice flour, vegetable flour] may be obtained by aggregation according to fruit puree; and the item identifier group [fruit identifier, rice flour, vegetable flour] may be obtained by aggregation according to rice flour.
[0071] Afterwards, the server can generate a score corresponding to each item identification group according to the co-occurrence probability values corresponding to the item identification pairs that participate in the aggregation to generate the item identification group. As an example, for the item identification group [fruit puree, juice, rice noodles, vegetable noodles], a score of 90% is generated according to the co-occurrence probability values (95%, 90%, 85%) corresponding to the item identification pairs [fruit puree, juice] [fruit puree, rice noodles] [fruit puree, vegetable noodles] that participate in the aggregation to generate the item identification group. For the item identification group [fruit puree, rice noodles, vegetable noodles], a score of 85% is generated according to the co-occurrence probability values (90%, 80%) corresponding to the item identification pairs [fruit puree, rice noodles] [rice noodles, vegetable noodles] that participate in the aggregation to generate the item identification group.
[0072] Finally, the server may select an item identification group from the item identification groups based on the scores corresponding to each item identification group, and push the first item information corresponding to the selected item identification group. As an example, the score corresponding to the item identification group [fruit puree, juice, rice noodles, vegetable noodles] is 90%, and the score corresponding to the item identification group [fruit puree, rice noodles, vegetable noodles] is 85%. The item identification group [fruit puree, juice, rice noodles, vegetable noodles] with a higher score may be selected, and the first item information corresponding to the item identification group [fruit puree, juice, rice noodles, vegetable noodles] may be pushed.
[0073] The method shown in this embodiment obtains the item identification corresponding to the target scene identification according to the correspondence relationship between the pre-established scene identification and the item identification, and generates an item identification pair set; for the item identification pair in the item identification pair set, generates a co-occurrence probability value between the two items indicated by the item identification pair set; and, according to the item identification, the item identifications in the item identification pair set can be aggregated to generate an item identification group set; and then, according to the co-occurrence probability values corresponding to the item identification pairs involved in generating the item identification group, a score of the item identification group is generated; finally, based on the scores corresponding to the respective item identification groups, an item identification group can be selected from the item identification group set, and the first item information corresponding to the selected item identification group can be pushed; thus, the technical effects can at least include:
[0074] First, it provides a new way to push information.
[0075] Second, the first item information corresponding to the item identification group can be pushed for the target scene, thereby providing information on item combinations according to the scene, thereby improving the pertinence and accuracy of information push.
[0076] First, since the item identification is obtained based on the target scene identification, the item indicated by the obtained item identification has a higher probability of appearing in the target scene. Therefore, it can be ensured that the item identification group selected later is targeted at the target scene, providing a basis for pushing item information for the target scene.
[0077] Secondly, based on the item identification group generated by the aggregation of the item identification pair, the co-occurrence probability value corresponding to the item identification pair is used to determine the score; and the co-occurrence probability value can represent the probability of two items appearing in the same scene. Therefore, the score corresponding to the item identification group can represent the probability that the set of items indicated by the item identification group appears in the same scene. Therefore, the set of items indicated by the item identification group selected based on the score has a higher probability of appearing in the same scene.
[0078] Therefore, because the initially acquired item identification is for the target scene, the item set indicated by the selected item identification group has a higher probability of appearing in the target scene. Finally, for the item set with a higher probability of appearing in the target scene, relevant item information is pushed, so that the user can obtain accurate information for the target scene, thereby improving the pertinence and accuracy of information push.
[0079] In some embodiments, the target scenario identifier is obtained from a target user request, and the target user request corresponds to the target user information. Here, the target user request can correspond to the target user identifier, and the target user identifier can correspond to the target user information. The user information can include but is not limited to at least one of the following: user tags, user browsing history, user purchase history, user shopping cart history, etc.
[0080] In some embodiments, the above step 205 may include: selecting a candidate item identification group from the item identification group set according to the scores corresponding to each item identification group; then, selecting an item identification group from the candidate item identification group according to the matching degree between the second item information corresponding to the candidate item identification group and the target user information; and pushing the first item information corresponding to the selected item identification group.
[0081] As an example, the second item information may include but is not limited to at least one of the following: transaction attribute value, brand, etc.
[0082] As an example, the set of item identification groups includes: [ABCD] [ABC] [ACD]. According to the scores corresponding to each item identification group, a candidate item identification group [ABC] [ACD] can be selected from the item identification group set. According to the matching degree between the second item information and the target user information, the item identification group [ABC] is selected from the candidate item identification groups [ABC] [ACD]; then, the first item information corresponding to the selected item identification group [ABC] is pushed, that is, the first item information corresponding to the item identification A, the first item information corresponding to the item identification B, and the first item information corresponding to the item identification C are packaged and pushed.
[0083] In some embodiments, the matching degree between the second item information and the target user information may be calculated in various ways.
[0084] As an example, the target user information may include a shopping cart record, and the similarity between the item information in the user's shopping cart record and the second item information may be calculated as the above-mentioned matching degree.
[0085] As an example, the target user information may include user browsing records within a preset historical time period (eg, within an hour before the current time), and the similarity between the item information in the user browsing records and the second item information may be calculated as the above-mentioned matching degree.
[0086] It should be noted that, by referring to the matching degree between the target user information and the second item information and selecting the item identification group, the items indicated by the selected second item identifications can match the needs of the target user, thereby improving the pertinence of the push.
[0087] In some embodiments, the co-occurrence probability value can be predetermined. For an item identification set including all item identifications, exhaustively enumerate the pairwise combinations in the above item identification set to obtain a first combination set; then, obtain a user order set, and exhaustively enumerate the pairwise combinations for the items ordered by each user in the same order to obtain a second combination set (without deduplication); then, use the number of pairwise combinations in the second combination set as the denominator; for each pairwise combination in the first combination set, use the number of times the pairwise combination appears in the second combination set as the numerator, and use the ratio of the numerator to the above denominator as the co-occurrence probability value of the pairwise combination; thus, for each item identification pair in all item identification pairs, the co-occurrence probability value corresponding to the item identification pair can be pre-calculated.
[0088] In some embodiments, the above step 202 may include: generating a co-occurrence probability value based on a pre-established item co-occurrence probability model, wherein the co-occurrence probability value is used to characterize the probability that two items appear in the same application scenario, and the above item co-occurrence probability model is used to characterize the correspondence between feature information of the two items and the co-occurrence probability value, wherein the feature information includes an item identifier or an item feature vector obtained based on the item identifier.
[0089] In some embodiments, the above step 202 may include: for an item identification pair in the item identification pair set, importing two item feature vectors corresponding to the item identification pair into a pre-established item co-occurrence probability model to generate a co-occurrence probability value.
[0090] Here, the item co-occurrence probability model is used to characterize the correspondence between two feature vectors and co-occurrence probability values.
[0091] It should be noted that, compared with exhaustively enumerating possible item identification pairs and calculating the co-occurrence probability values in advance, using the item co-occurrence probability model to calculate the co-occurrence probability values can avoid exhausting the item identification pairs and reduce the amount of calculation. In addition, based on the actual situation, not all items may appear in the same scene; therefore, the model that represents the co-occurrence power is pre-trained, and after obtaining the item identification pairs, the co-occurrence probability values corresponding to the item identification pairs are calculated; the amount of calculation for calculating the co-occurrence probability values can be greatly reduced compared to the amount of calculation for calculating all the co-occurrence probability pairs obtained by exhaustive enumeration, thereby reducing the resources consumed by the calculation and, at the same time, reducing the resources consumed by storing the calculation results.
[0092] In some embodiments, please refer to Figure 4 , which shows an exemplary process 400 for generating an item co-occurrence model. The process 400 may include:
[0093] Step 401, select node pairs from the nodes of the item network as positive samples.
[0094] Here, the item network may be pre-established and may include nodes and connection information between two nodes.
[0095] Here, the nodes are item identifiers.
[0096] Here, the connection information may include indication information, and the indication information is used to indicate that two nodes can be directly connected. If there is indication information indicating that two nodes can be directly connected, then it can be said that the two nodes can be directly connected.
[0097] Here, the two nodes in the positive sample can be directly or indirectly connected in the above object network.
[0098] Here, two nodes can be connected in the item network, either directly or indirectly through other nodes as bridges.
[0099] Step 402: Select node pairs from the nodes of the item network as negative samples.
[0100] Here, the two nodes in the negative sample cannot be connected in the above item network. Cannot be connected can mean that they cannot be connected directly or indirectly.
[0101] Step 403: Use positive samples and negative samples to train the initial model to obtain an item co-occurrence probability model.
[0102] Here, we use positive and negative samples to train the initial model and obtain the item co-occurrence probability model. The principle is briefly described as follows: we can obtain the item feature vector from the nodes in the positive sample according to the item identifier; import the item feature vector into the initial model to generate the co-occurrence probability value; if the co-occurrence probability value is greater than the preset threshold, the result is determined to be correct and the model parameters are not adjusted; if the co-occurrence probability value is less than the preset threshold, the result is determined to be wrong and the model parameters are adjusted. We can obtain the item feature vector from the nodes in the negative sample according to the item identifier; import the item feature vector into the initial model to generate the co-occurrence probability value; if the co-occurrence probability value is less than the preset threshold, the result is determined to be correct and the model parameters are not adjusted; if the co-occurrence probability value is greater than the preset threshold, the result is determined to be wrong and the model parameters are adjusted.
[0103] Here, the initial model can be a neural network of various structures, including but not limited to convolutional neural networks, long short-term memory networks, and combinations of various neural network structures as examples.
[0104] It should be noted that the method of generating the above-mentioned item co-occurrence probability model utilizes a pre-constructed item network; using connected node pairs in the item network as positive samples and unconnected node pairs in the item network as negative samples, a limited number of samples can be used to train a model that can predict the co-occurrence probability of various item pairs.
[0105] In some embodiments, the initial model may include: a first feature extraction network, a second feature extraction network, and a discriminant network. One item feature vector in the item identification pair is input to the first feature extraction network, and the first feature extraction network outputs a third feature vector; another item feature vector in the item identification pair is output to the second feature extraction network, and the second feature extraction network outputs a fourth feature vector. The third feature vector and the fourth feature vector are input to the discriminant network, and the discriminant network may output a co-occurrence probability value. The co-occurrence probability value is compared with a preset threshold, and the parameter values of the first feature extraction network, the second feature extraction network, and the discriminant network are adjusted by backpropagation according to the comparison result.
[0106] In some embodiments, please refer to Figure 5 , which shows an exemplary process 500 for building an item network. The process 500 may include:
[0107] Step 501: Acquire operation data of at least one user.
[0108] Here, the operation data may include an item identification and operation mode information corresponding to the item identification.
[0109] As an example, the operation mode information may include but is not limited to at least one of the following: browsing, collecting, adding to shopping cart, and purchasing.
[0110] Step 502: Searching for item identification pairs that meet a preset co-occurrence condition from the operation data of each user.
[0111] Here, the preset co-occurrence condition may be a condition for determining whether at least two objects appear in the same scene. The specific content of the preset co-occurrence condition may be set according to actual conditions and is not limited here.
[0112] As an example, the preset co-occurrence condition may include but is not limited to at least one of the following: two item identifiers appear in the same order, two item identifiers appear in the shopping cart of the same user, two item identifiers appear in the favorites catalog of the same user, and two item identifiers are browsed by the same user within a short time interval (less than a preset time length).
[0113] Step 503: Generate connection information for the found item identification pairs.
[0114] Here, connection information may be generated for the found item identification pairs (i.e., meeting the preset co-occurrence condition). Here, generating connection information may include generating indication information to indicate that the found item identification pairs are directly connected in the item network.
[0115] Here, the item identification pair found may be one or at least two.
[0116] It should be noted that in the operation data of at least one user, an item identification pair that meets the preset co-occurrence condition is searched, and then connection information is generated for the found item identification. The co-occurring item identifications can be determined through the user's historical operations, thereby improving the accuracy of the found item identification pair in terms of item co-occurrence, and thus improving the accuracy of the constructed item network.
[0117] In some embodiments, the preset co-occurrence condition may include at least two co-occurrence sub-conditions, and the co-occurrence sub-conditions correspond to the operation mode information.
[0118] In some embodiments, the above step 503 may include: for each item identification pair in the found item identification pairs, determining, in the acquired operation data, each co-occurrence number generated by satisfying the co-occurrence sub-condition; weighting each co-occurrence number of the item identification pair according to the correspondence between the pre-set operation mode information and the weight, and according to the correspondence between the operation mode information and the co-occurrence sub-condition, to generate a common operation coefficient of the item identification pair, and to generate connection information including the common operation coefficient.
[0119] As an example, the weight corresponding to the operation mode information “purchase” may be 2. The weight corresponding to the operation mode information “add to cart” may be 1.
[0120] As an example, in the acquired operation data (e.g., the operation data of multiple users), the number of co-occurrences that meet the co-occurrence sub-condition "two item identifiers appear in the same order" can be multiplied by the weight 2 to obtain the first result. The number of co-occurrences that meet the co-occurrence sub-condition "two item identifiers appear in the shopping cart of the same user" can be multiplied by the weight 1 to obtain the second result. The sum of the first result and the second result is used as the common operation coefficient. The common operation coefficient is added to the connection information, that is, the connection information can include the indication information and the common operation coefficient.
[0121] It should be noted that, according to the weights corresponding to different operation mode information, the co-occurrence times that meet different sub-co-occurrence conditions are weighted to obtain the common operation coefficient. Therefore, the above method of generating the common operation coefficient can reflect the different effects of different operations on the co-occurrence judgment; thus, the common operation coefficient obtained by assigning different weights to different operations can accurately reflect the possibility of items appearing in the same scene, laying the foundation for generating an accurate item network.
[0122] In some embodiments, the above method may include: selecting a preset number of nodes from the nodes of the above item network as a node set.
[0123] Here, any two nodes in the node set can be connected through the nodes in the node set in the item network.
[0124] It should be noted that since the number of nodes required to achieve connectivity is limited, the connectivity distance between node pairs in the node set can be made shorter. Compared with a longer connectivity distance, it can better reflect the possibility that the objects corresponding to the node pairs appear in the same scene.
[0125] In some embodiments, the above step 401 may include: selecting a node pair from the above node set as a positive sample. It should be noted that the positive sample selected in this way, as a whole, can make the connection distance between the node pairs in the positive sample shorter due to limiting the number of nodes required to achieve connectivity. Compared with a longer connection distance, it can better reflect the possibility that the items corresponding to the node pair appear in the same scene.
[0126] In some embodiments, the above method may include: aggregating item identifications in a node set according to type information corresponding to the item identifications, generating an item identification cluster set, and determining type information corresponding to the item identification cluster; determining elements of the type information set according to type information corresponding to the item identification clusters in the item identification cluster set; and pushing the above type information set.
[0127] Here, the above type information may indicate the type of the item identified by the item.
[0128] Optionally, the classification basis can be set according to actual conditions and is not limited here. For example, the items can be classified into Category A and Category B according to the categories they belong to; or Brand A and Brand B can be classified according to the brands they belong to.
[0129] It should be noted that the item identification cluster obtained by aggregating the type information can mine the types of items that may co-occur. The types of items in the type information set are more likely to be purchased at the same time. Pushing the type information set to the user's terminal can inspire the user to find items that may be needed and shorten the user's blind search time; or pushing it to the terminal of the person who provides shopping consultation advice can help the above person to quickly provide advice and improve the work efficiency of the above staff.
[0130] In some embodiments, the selection of a preset number of nodes from the nodes of the item network as a node set may include: Figure 6 As shown in process 600, process 600 may include:
[0131] Step 601, determine any node of the item network as an initial node.
[0132] Step 602, taking the initial node as the current node and the head of the node queue, and executing the following output steps: determining whether the node queue is a preset length; if so, outputting the node queue.
[0133] Step 603, if not, search for a node in the item network that is directly connected to the current node; from the nodes found, select a node as the new current node based on the common operation coefficient between the current node and each of the found nodes, and add the new current node to the node queue as the end of the queue, and continue to execute the above output step.
[0134] It can be seen that step 603 is a jump step.
[0135] Step 604: determine the elements in the output node queue as elements in the node set.
[0136] It should be noted that the node set generated by the node queue can refer to the common operation coefficient to generate a node set, and the node set generated by this method has a higher possibility of co-occurrence between the items corresponding to the nodes.
[0137] In some embodiments, a node set may be generated through a node queue, and then positive samples may be obtained from the node set. It should be noted that the positive samples generated in this way can better reflect the co-occurrence between items, thereby improving the reliability of the obtained positive samples.
[0138] Further references Figure 7 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an information push device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0139] like Figure 7As shown, the information push device 700 of this embodiment includes: a first generating unit 701, a first determining unit 702, an aggregation unit 703, a second generating unit 704 and a first pushing unit 705. The first generating unit is configured to generate a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained by: obtaining the item identifications corresponding to the target scene identification according to the pre-established correspondence between the scene identification and the item identification; the first determining unit is configured to determine the co-occurrence probability value for the two items indicated by each item identification pair, wherein the co-occurrence probability value is used to characterize the probability that the two items appear in the same scene; the aggregation unit is configured to aggregate the item identification pairs in the set of item identification pairs according to the item identifications, and generate a set of item identification groups based on the aggregation results; the second generating unit is configured to generate a score corresponding to each item identification group according to the co-occurrence probability value corresponding to the item identification pairs participating in the aggregation to generate the item identification group; the first pushing unit is configured to select an item identification group from the set of item identification groups based on the score corresponding to each item identification group, and push the first item information corresponding to the selected item identification group.
[0140] In this embodiment, the specific processing of the first generation unit 701, the first determination unit 702, the aggregation unit 703, the second generation unit 704 and the first push unit 705 of the information push device 700 and the technical effects thereof can be referred to respectively. Figure 2 The relevant descriptions of step 201, step 202, step 203, step 204 and step 205 in the corresponding embodiment are not repeated here.
[0141] In some embodiments, the target scene identification is obtained from a target user request, and the target user request corresponds to the target user information; and the first push unit is further configured to: select a candidate item identification group from the item identification group set according to the scores corresponding to each item identification group; select an item identification group from the candidate item identification group according to the degree of match between the second item information corresponding to the candidate item identification group and the target user information, and push the first item information corresponding to the selected item identification group.
[0142] In some embodiments, the above-mentioned first determination unit is further configured to: for the item identification pairs in the above-mentioned item identification pair set, import the two item feature vectors of the item identification pair into a pre-established item co-occurrence probability model to generate a co-occurrence probability value, wherein the item co-occurrence probability model is used to characterize the correspondence between the two item feature vectors and the co-occurrence probability value.
[0143] In some embodiments, node pairs are selected from the nodes of the item network as positive samples, wherein the item network includes nodes and connection information, wherein the nodes are item identifiers, and the connection information includes indication information for indicating direct connection between two nodes, and the two nodes in the positive sample are directly or indirectly connected in the item network; node pairs are selected from the nodes of the item network as negative samples, wherein the two nodes in the negative sample are not connected in the item network; and an initial model is trained using the positive samples and the negative samples to obtain the item co-occurrence probability model.
[0144] In some embodiments, the above-mentioned object network is constructed in the following manner: obtaining operation data of at least one user, wherein the operation data includes an object identification and operation mode information corresponding to the object identification; searching for object identification pairs that meet preset co-occurrence conditions from the operation data of each user; and generating connection information for the found object identification pairs.
[0145] In some embodiments, the above-mentioned preset co-occurrence condition may include at least two co-occurrence sub-conditions, the co-occurrence sub-condition corresponds to the operation mode information, the connection information includes a common operation coefficient, and the common operation coefficient is generated in the following manner: for each item identification pair in the found item identification pairs, determine the number of co-occurrences generated by satisfying each co-occurrence sub-condition in the acquired operation data; according to the correspondence between the preset operation mode information and the weight, and according to the correspondence between the operation mode information and the co-occurrence sub-condition, weight the number of co-occurrences of the item identification pair to generate the common operation coefficient of the item identification pair.
[0146] In some embodiments, the above-mentioned device also includes: a selection unit (not shown in the figure), which is configured to: select a preset number of nodes from the nodes of the above-mentioned object network as a node set, wherein every two nodes in the node set can be connected through the nodes in the node set in the above-mentioned object network.
[0147] In some embodiments, the selection unit is further configured to: determine any node of the above-mentioned object network as the initial node; use the initial node as the head of the current node and the node queue, and perform the following output steps: determine whether the node queue is a preset length; if so, output the node queue; if not, search for nodes in the above-mentioned object network that are directly connected to the current node; from the found nodes, select a node as the new current node based on the common operation coefficient between the current node and each found node, and add the new current node to the node queue as the tail, and continue to execute the above-mentioned output steps; determine the elements in the output node queue as elements in the node set.
[0148] In some embodiments, the selecting node pairs from the nodes of the item network as positive samples includes: selecting node pairs from the above-mentioned node set as positive samples.
[0149] In some embodiments, the above method also includes: a third generation unit (not shown in the figure), configured to: aggregate the item identifications in the node set according to the type information corresponding to the item identifications, generate an item identification cluster set, and determine the type information corresponding to the item identification cluster; a second determination unit (not shown in the figure), configured to: determine the elements of the type information set according to the type information corresponding to the item identification clusters in the item identification cluster set; a second push unit (not shown in the figure), configured to: push the above-mentioned type information set.
[0150] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 suitable for implementing an electronic device of an embodiment of the present application. Figure 8 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0151] like Figure 8 As shown, the computer system 800 includes a processor (e.g., a central processing unit CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 806 to a random access memory (RAM) 803. Various programs and data required for the operation of the system 800 are also stored in the RAM 803. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0152] The following components are connected to the I / O interface 805: a storage section 806 including a hard disk, etc.; and a communication section 807 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 807 performs communication processing via a network such as the Internet. A drive 808 is also connected to the I / O interface 805 as needed. A removable medium 809, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 808 as needed, so that a computer program read therefrom is installed into the storage section 806 as needed.
[0153] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 807, and / or installed from the removable medium 809. When the computer program is executed by the processor 801, the above-mentioned functions defined in the method of the present application are executed. It should be noted that the above-mentioned computer-readable medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0155] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a first generation unit, a first determination unit, an aggregation unit, a second generation unit, and a first push unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the first generation unit may also be described as a "unit for obtaining item identification".
[0156] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently and not be assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device: generates a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained by: obtaining the item identifications corresponding to the target scene identification according to the pre-established correspondence between the scene identification and the item identification; determining a co-occurrence probability value for the two items indicated by each item identification pair, wherein the co-occurrence probability value is used to characterize the probability that the two items appear in the same scene; aggregating the item identification pairs in the item identification pair set according to the item identification, and generating an item identification group set based on the aggregation result; for each item identification group, generating a score corresponding to the item identification group according to the co-occurrence probability value corresponding to the item identification pairs participating in the aggregation to generate the item identification group; selecting an item identification group from the item identification group set based on the score corresponding to each item identification group, and pushing the first item information corresponding to the selected item identification group.
[0157] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A method for pushing information, include: Generate a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained by: obtaining the item identification corresponding to the target scene identification according to a pre-established correspondence relationship between the scene identification and the item identification; Determine a co-occurrence probability value for the two objects indicated by each pair of object identifiers, wherein the co-occurrence probability value is used to represent the probability that the two objects appear in the same scene; Aggregating the item identification pairs in the item identification pair set according to the item identification, and generating an item identification group set based on the aggregation result; For each item identification group, a score corresponding to the item identification group is generated according to the co-occurrence probability values corresponding to the item identification pairs that participate in the aggregation to generate the item identification group; Based on the scores corresponding to the respective item identification groups, an item identification group is selected from the item identification group set, and first item information corresponding to the selected item identification group is pushed.
2. The method according to claim 1, in, The target scenario identifier is obtained from a target user request, and the target user request corresponds to the target user information; and The selecting an item identification group from the item identification group set based on the scores corresponding to each item identification group, and pushing the first item information corresponding to the selected item identification group, includes: Selecting candidate item identification groups from the item identification group set according to the scores corresponding to the item identification groups; According to the matching degree between the second item information corresponding to the candidate item identification group and the target user information, an item identification group is selected from the candidate item identification group, and the first item information corresponding to the selected item identification group is pushed.
3. The method according to claim 1, in, The step of determining a co-occurrence probability value for two items indicated by each pair of item identifiers includes: For an item identification pair in the item identification pair set, two item feature vectors of the item identification pair are imported into a pre-established item co-occurrence probability model to generate a co-occurrence probability value, wherein the item co-occurrence probability model is used to characterize the corresponding relationship between the two item feature vectors and the co-occurrence probability value.
4. The method according to claim 3, in, The item co-occurrence probability model is obtained in the following way: Selecting a node pair as a positive sample from the nodes of the item network, wherein the item network includes nodes and connection information, wherein the node is an item identifier, and the connection information includes indication information for indicating direct connection between two nodes, and the two nodes in the positive sample are directly or indirectly connected in the item network; Selecting a node pair from the nodes of the item network as a negative sample, wherein two nodes in the negative sample are not connected in the item network; The positive samples and the negative samples are used to train an initial model to obtain the item co-occurrence probability model.
5. The method according to claim 4, in, The item network is constructed in the following way: Acquire operation data of at least one user, wherein the operation data includes an item identifier and operation mode information corresponding to the item identifier; From the operation data of each user, find the item identification pairs that meet the preset co-occurrence conditions; Generate connection information for the found item identification pairs.
6. The method according to claim 5, in, The preset co-occurrence condition may include at least two co-occurrence sub-conditions, the co-occurrence sub-conditions correspond to the operation mode information, the connection information includes a common operation coefficient, and the common operation coefficient is generated in the following manner: For each of the found item identification pairs, the number of co-occurrences generated by satisfying each co-occurrence sub-condition is determined in the acquired operation data; based on the correspondence between the pre-set operation mode information and the weight, the number of co-occurrences of the item identification pair is weighted to generate a common operation coefficient of the item identification pair.
7. The method according to claim 6, in, The method further comprises: A preset number of nodes are selected from the nodes of the item network as a node set, wherein two nodes in the node set can be connected through the nodes in the node set in the item network.
8. The method according to claim 7, in, The step of selecting a preset number of nodes from the nodes of the item network as a node set includes: Determine any node of the item network as an initial node; Take the initial node as the head of the current node and the node queue, and perform the following output steps: determine whether the node queue is a preset length; if so, output the node queue; If not, search for a node in the item network that is directly connected to the current node; from the nodes found, select a node as a new current node according to the common operation coefficient between the current node and each of the found nodes, and add the new current node to the node queue as the end of the queue, and continue to execute the above output step; Determine the elements in the output node queue as the elements in the node set.
9. The method according to any one of claims 7 or 8, in, The step of selecting node pairs from the nodes of the item network as positive samples includes: From the node set, node pairs are selected as positive samples.
10. The method according to any one of claims 6 to 8, in, The method further comprises: According to the type information corresponding to the item identifiers, the item identifiers in the node set are aggregated to generate an item identifier cluster set, and the type information corresponding to the item identifier cluster is determined; Determine an element of the type information set according to the type information corresponding to the item identification cluster in the item identification cluster set; Push the type information set.
11. An information push device, include: The first generating unit is configured to generate a set of item identification pairs, wherein the item identifications in the item identification pairs are obtained by: obtaining the item identification corresponding to the target scene identification according to a pre-established correspondence relationship between the scene identification and the item identification; A first determining unit is configured to determine a co-occurrence probability value for two items indicated by each pair of item identifiers, wherein the co-occurrence probability value is used to represent the probability that the two items appear in the same scene; an aggregation unit configured to aggregate the item identification pairs in the item identification pair set according to the item identifications, and generate an item identification group set based on the aggregation result; The second generating unit is configured to generate, for each item identification group, a score corresponding to the item identification group according to the co-occurrence probability values corresponding to the item identification pairs that participate in the aggregation to generate the item identification group; The first push unit is configured to select an item identification group from the item identification group set based on the scores corresponding to each item identification group, and push the first item information corresponding to the selected item identification group.
12. An electronic device, 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 according to any one of claims 1 to 10.
13. A computer readable medium having a computer program stored thereon, in, When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
