Object mining method and device, equipment and storage medium

By performing data conversion and factor decomposition on the user-item interaction data set and calculating object distance, the problem of low accuracy in calculating the similarity of the item's own information in the existing technology is solved, and the accuracy of similar item mining and user demand matching are improved.

CN118626536APending Publication Date: 2024-09-10BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410663536.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, when similarity is calculated using only the item's own information, the accuracy is low, resulting in low accuracy in mining similar items.

Method used

By performing data conversion on the interactive data set generated by the interaction between the user and the item, a distance matrix is ​​obtained, and factored to obtain a K-dimensional factor matrix, which is used to represent the location information of the user or item, and then calculate the distance between the target object and the potential object. object distance to generate an object candidate set.

Benefits of technology

Make full use of user information to improve the accuracy of mining results and the degree to which they meet user needs, making object mining results more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626536A
    Figure CN118626536A
Patent Text Reader

Abstract

The invention provides an object mining method and device, equipment and a storage medium, and can be applied to the technical field of artificial intelligence. The method comprises the steps that data conversion is conducted on an interaction data set generated by interaction between a user and an article, a distance matrix is obtained, the distance matrix comprises distance information between multiple objects, and the objects are used for representing the user or the article; factorization is conducted on the distance matrix, a K-dimensional factor matrix is obtained, the factor matrix comprises factor vectors of all the objects, and the factor vectors are used for representing position information of the objects in the factor matrix; for a target object in the distance matrix, respectively determining object distances between the target object and a plurality of potential objects in the distance matrix based on a factor vector of the factor matrix in each dimension; and determining an object candidate set corresponding to the target object from the plurality of potential objects based on the plurality of object distances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and more specifically, to an object mining method, device, equipment and storage medium. Background Art

[0002] As the types and quantity of items increase, intelligent recommendation of similar items becomes more and more important. In related technologies, the similarity between items is usually calculated using the information of the items themselves to complete the mining of similar items. For example, the calculation is based on information such as item specifications, item pictures, or item titles.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art: since the attribute information of the object itself is limited, only the information of the object itself is used to calculate the similarity, and the calculation result has low accuracy, resulting in low precision in similar object mining. Summary of the invention

[0004] In view of this, the present disclosure provides an object mining method, apparatus, device and storage medium.

[0005] One aspect of the present disclosure provides an object mining method, including: performing data conversion on an interaction data set generated by the interaction between a user and an object to obtain a distance matrix, wherein the distance matrix includes distance information between multiple objects, and the objects are used to characterize the users or the objects; factor decomposing the distance matrix to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector for each of the objects, and the factor vector is used to characterize the position information of the objects in the factor matrix; for a target object in the distance matrix, based on the factor vector in each dimension of the factor matrix, respectively determining the object distance between the target object and multiple potential objects in the distance matrix; based on the multiple object distances, determining a candidate set of objects corresponding to the target object from the multiple potential objects.

[0006] According to an embodiment of the present disclosure, the above-mentioned interaction data set includes explicit feedback data and implicit feedback data, and the above-mentioned interaction data set generated by the interaction between the user and the object is converted to obtain a distance matrix, including: converting the explicit feedback data in the above-mentioned interaction data set into implicit feedback data to obtain an implicit feedback data set; performing matrix conversion on the above-mentioned implicit feedback data set to obtain an interaction matrix; and determining the above-mentioned distance matrix based on the difference between the unit matrix and the above-mentioned interaction matrix.

[0007] According to an embodiment of the present disclosure, for the target object in the distance matrix, based on the factor vector in each dimension of the factor matrix, the object distance between the target object and multiple potential objects in the distance matrix is ​​determined respectively, including: for one potential object, determining the target factor vector corresponding to the target object in each dimension and the potential factor vector corresponding to the potential object in the factor matrix; based on the target factor vector and the potential factor vector in each dimension, determining the vector distance between the target object and the potential object in each dimension, wherein each dimension corresponds to different dimensional attributes; based on the interaction data between the target object and the potential object in the interaction data set, determining the weight value of each vector distance; based on multiple vector distances and the weight value corresponding to each vector distance, determining the object distance between the target object and the potential object.

[0008] According to an embodiment of the present disclosure, the weight value of each of the above-mentioned vector distances is determined based on the interaction data between the above-mentioned target object and the above-mentioned potential object in the above-mentioned interaction data set, including: for each of the above-mentioned vector distances, determining the dimensional attribute corresponding to the above-mentioned vector distance; determining the interaction data between the above-mentioned target object and the above-mentioned potential object from the above-mentioned interaction data set based on the above-mentioned dimensional attribute; integrating the number of interactions, visit frequency and preference in the above-mentioned interaction data to obtain the preference parameters of the above-mentioned target object for the above-mentioned potential object; and determining the weight value of the above-mentioned vector distance based on the difference between the above-mentioned preference parameter and the preset preference cutoff value and the preset preference maximum value.

[0009] According to an embodiment of the present disclosure, the object distance between the target object and the potential object is determined based on the multiple vector distances and the weight value corresponding to each of the vector distances, including: generating a vector matrix based on the multiple vector distances; determining a semi-positive definite symmetric matrix corresponding to the vector matrix based on the weight value corresponding to each of the vector distances; and multiplying the vector matrix with the semi-positive definite symmetric matrix to obtain the object distance.

[0010] According to an embodiment of the present disclosure, before determining the object distances between the target object in the distance matrix and multiple potential objects in the distance matrix based on the factor vectors in each dimension of the factor matrix, the method further includes: aggregating multiple factor vectors in the factor matrix using a product quantization algorithm to obtain a candidate vector set, so as to determine the object distance using the candidate vector set, wherein the candidate vector set includes multiple aggregated factor vectors.

[0011] According to an embodiment of the present disclosure, the above-mentioned method of determining a candidate set of objects corresponding to the above-mentioned target object from the above-mentioned potential objects based on the above-mentioned multiple object distances includes: sorting the above-mentioned multiple object distances to generate a distance sequence; based on the above-mentioned distance sequence, selecting a preset number of candidate objects from the above-mentioned multiple potential objects to generate the above-mentioned object candidate set.

[0012] Another aspect of the present disclosure provides an object mining device, including: a data conversion module, used to perform data conversion on an interaction data set generated by the interaction between a user and an object to obtain a distance matrix, wherein the distance matrix includes distance information between multiple objects, and the objects are used to characterize the users or the objects; a matrix decomposition module, used to factor decompose the distance matrix to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector for each of the objects, and the factor vector is used to characterize the position information of the objects in the factor matrix; a distance determination module, used to determine, for a target object in the distance matrix, the object distance between the target object and multiple potential objects in the distance matrix based on the factor vector in each dimension of the factor matrix; an object determination module, used to determine, from the multiple potential objects based on the multiple object distances, a candidate set of objects corresponding to the target object.

[0013] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0014] Another aspect of the present disclosure provides a computer program product, the computer program product comprising computer executable instructions, and the instructions are used to implement the above method when executed.

[0015] According to an embodiment of the present disclosure, a distance matrix is ​​obtained by performing data conversion on an interaction data set. Since the interaction data set includes data generated by the interaction between users and items, user information is fully utilized in the process of object mining, so that the mining results are more in line with user needs. By factoring the distance matrix and determining the factor vector, the object distance between the target object and the potential object is calculated. The object distance is used to characterize the similarity between the target object and the potential object, so that the relationship between the target object and the potential object is more intuitive. And factoring the distance matrix can make more full use of the interaction data between users and items, calculate the object distance from different dimensions, so that the relationship between the determined target object and the potential object is more accurate, and thus the final object mining result is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0017] Figure 1 An exemplary system architecture for object mining methods and apparatuses disclosed herein is schematically shown;

[0018] Figure 2 A flowchart of an object mining method according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 3 The object aggregation flow chart of the object mining method according to the embodiment of the present disclosure is schematically shown;

[0020] Figure 4 A flowchart of an object mining method according to another embodiment of the present disclosure is schematically shown;

[0021] Figure 5 A block diagram schematically shows an object mining device according to an embodiment of the present disclosure; and

[0022] Figure 6 A block diagram of an electronic device suitable for implementing an object mining method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0023] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0024] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0025] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0026] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0027] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security, and national security.

[0028] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0029] As the types and quantities of items increase, and since there are inextricable connections between items, calculating the similarity between items has wide applications in many fields such as intelligent recommendation and product exchange.

[0030] In the related art, the method of calculating the similarity of items is to use deep learning models to train various basic information of items, construct feature vectors of items, and then calculate the similarity between items. However, currently only the information of the items is considered, and the information of the user is not considered, so the accuracy of the calculation results will be affected.

[0031] The embodiments of the present disclosure provide an object mining method, an object mining device, an electronic device, a computer-readable storage medium, and a computer program product. The method includes: performing data conversion on an interaction data set generated by the interaction between a user and an object to obtain a distance matrix, wherein the distance matrix includes distance information between multiple objects, and the objects are used to characterize users or objects; factorizing the distance matrix to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector for each object, and the factor vector is used to characterize the position information of the object in the factor matrix; for a target object in the distance matrix, based on the factor vector in each dimension of the factor matrix, respectively determining the object distance between the target object and multiple potential objects in the distance matrix; based on multiple object distances, determining an object candidate set corresponding to the target object from multiple potential objects.

[0032] Figure 1 The exemplary system architecture for object mining method and apparatus of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0033] like Figure 1 As shown, the system architecture 100 according to this embodiment 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 and / or wireless communication links, etc.

[0034] 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 and / or social platform software, etc. (only as examples).

[0035] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0036] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0037] It should be noted that the object mining method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the object mining device provided in the embodiment of the present disclosure can generally be set in the server 105. The object mining method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the object mining device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Alternatively, the object mining method provided in the embodiment of the present disclosure can also be executed by the terminal devices 101, 102, or 103, or can also be executed by other terminal devices different from the terminal devices 101, 102, or 103. Accordingly, the object mining device provided in the embodiment of the present disclosure can also be set in the terminal devices 101, 102, or 103, or can be set in other terminal devices different from the terminal devices 101, 102, or 103.

[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0039] Figure 2 The flowchart of the object mining method according to the embodiment of the present disclosure is schematically shown.

[0040] like Figure 2 As shown, the method includes operations S210 to S240.

[0041] In operation S210, data conversion is performed on an interaction data set generated by the interaction between the user and the object to obtain a distance matrix, wherein the distance matrix includes distance information between multiple objects, and the objects are used to represent the user or the object.

[0042] In operation S220, the distance matrix is ​​factorized to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector of each object, and the factor vector is used to represent the position information of the object in the factor matrix.

[0043] In operation S230 , for a target object in the distance matrix, object distances between the target object and a plurality of potential objects in the distance matrix are respectively determined based on a factor vector in each dimension of the factor matrix.

[0044] In operation S240 , an object candidate set corresponding to the target object is determined from among the plurality of potential objects based on the plurality of object distances.

[0045] According to an embodiment of the present disclosure, users can interact with items through exposure browsing, search clicks, forwarding and sharing, collection and purchase, ordering and purchasing, and evaluation and commenting, thereby generating an interaction data set. The interaction data is converted to obtain a matrix distance. In the process of conversion, the interaction data set can be first converted into a matrix form to obtain an interaction matrix, and then the interaction matrix is ​​converted into a distance matrix. Among them, the distance matrix includes distance information between multiple objects, and the object can be used to characterize a user or an item. That is, the distance matrix includes not only the distance information between items, but also the distance information between users and between users and items.

[0046] According to an embodiment of the present disclosure, a factor decomposition algorithm is used to factorize the distance matrix to obtain a K-dimensional factor matrix, each dimension having different dimensional attributes. The factor matrix may include a matrix of user dimension and a matrix of item dimension. Specifically, the matrix of user dimension includes a factor vector of each user, and the matrix of item dimension includes a factor vector of each item. The factor vector is used to characterize the position information of the user and the item in the corresponding matrix.

[0047] According to an embodiment of the present disclosure, for a target object in a distance matrix, the distance between vectors can be calculated to determine the object distance between the target object and multiple potential objects in the distance matrix in each dimension. The object distance is used to measure the similarity between objects, and a candidate set of objects corresponding to the target object is determined from multiple potential objects based on multiple object distances. The object distance can be a Euclidean distance or a Mahalanobis distance.

[0048] According to an embodiment of the present disclosure, a distance matrix is ​​obtained by performing data conversion on an interaction data set. Since the interaction data set includes data generated by the interaction between users and items, user information is fully utilized in the process of object mining, so that the mining results are more in line with user needs. By factoring the distance matrix and determining the factor vector, the object distance between the target object and the potential object is calculated. The object distance is used to characterize the similarity between the target object and the potential object, so that the relationship between the target object and the potential object is more intuitive. And factoring the distance matrix can make more full use of the interaction data between users and items, calculate the object distance from different dimensions, so that the relationship between the determined target object and the potential object is more accurate, and thus the final object mining result is more accurate.

[0049] According to an embodiment of the present disclosure, the interaction data set includes explicit feedback data and implicit feedback data. The interaction data set generated by the interaction between the user and the item is converted to obtain a distance matrix, which may include the following operations:

[0050] The explicit feedback data in the interaction data set is converted into implicit feedback data to obtain an implicit feedback data set; the implicit feedback data set is subjected to matrix transformation to obtain an interaction matrix; and a distance matrix is ​​determined based on the difference between the unit matrix and the interaction matrix.

[0051] According to the embodiments of the present disclosure, there are explicit feedback and implicit feedback in the process of user interaction with items, for example, users rate items, thereby obtaining explicit feedback from users on items, and users only browse items, thereby obtaining implicit feedback from users on items.

[0052] According to the embodiments of the present disclosure, since there are far more implicit feedback scenarios than explicit feedback scenarios in real life, explicit feedback can be converted into more realistic implicit feedback. The explicit feedback data is converted to obtain an implicit feedback data set. Specifically, the preference in the explicit feedback data set can be converted into an identifier in the implicit feedback data set indicating the presence of interaction, which can be represented by "1", for example.

[0053] According to an embodiment of the present disclosure, the implicit feedback data set is transformed into a matrix. Assuming that the interaction data set has M users and K commodities, the matrix R∈R M×K to represent the interaction matrix.

[0054] According to an embodiment of the present disclosure, R ui Represents the interaction between user u and item i. After converting explicit feedback data into implicit feedback data, R in the interaction matrix R ui =1 means user u has interacted with item I, otherwise R ui =0.

[0055] According to an embodiment of the present disclosure, the interaction matrix R is converted into a distance matrix D, and the distance information D between multiple objects in the distance matrix D ui . The conversion formula is as follows:

[0056] D ui =a·(1-R ui ) 2 +b,a>0 b≥0 (1)

[0057] Among them, D ui Represents the distance information between objects, where a and b are preset parameters.

[0058] According to the embodiments of the present disclosure, data conversion is performed on the interaction data set, making it more convenient to determine the object distance, and making full use of the interaction data between the user and the object, making the determined object distance more accurate.

[0059] According to an embodiment of the present disclosure, for a target object in a distance matrix, determining the object distances between the target object and a plurality of potential objects in the distance matrix based on the factor vectors in each dimension of the factor matrix may include the following operations:

[0060] For a potential object, a target factor vector corresponding to the target object and a potential factor vector corresponding to the potential object in each dimension are determined in the factor matrix; based on the target factor vector and the potential factor vector in each dimension, the vector distance between the target object and the potential object in each dimension is determined respectively, wherein each dimension corresponds to different dimensional attributes; based on the interaction data between the target object and the potential object in the interaction data set, a weight value of each vector distance is determined; based on multiple vector distances and the weight value corresponding to each vector distance, the object distance between the target object and the potential object is determined.

[0061] According to an embodiment of the present disclosure, a factor decomposition algorithm is used to factorize the distance matrix to obtain a K-dimensional factor matrix. Specifically, the matrix P∈R of the user dimension is M×K and the matrix Q∈R of item dimensions N×K .

[0062] According to an embodiment of the present disclosure, for a potential object, a target object x is determined in a factor matrix. i The target factor vector in each dimension, and the latent object x j The potential factor vector in each dimension. Using the distance calculation between vectors, determine the vector distance between the target object and the potential object in each dimension. The calculation formula is as follows:

[0063]

[0064] in, Represents the target object x i With potential object x j The vector distance in the kth dimension, Represents the sum of the vector distances between the target object and the potential object in K dimensions.

[0065] According to the embodiments of the present disclosure, each dimension corresponds to a different dimension attribute, and it is obvious that the importance of each dimension attribute is different. Therefore, based on the interaction data between the target object and the potential object in the interaction data set, the weight value of each vector distance is determined. The weight value and the corresponding vector distance are multiplied to determine the object distance between the target object and the potential object. The calculation method is as follows:

[0066]

[0067] Among them, w i represents the weight value, Represents the object distance between the target object and the potential object.

[0068] According to the embodiments of the present disclosure, the factor decomposition algorithm is applied to the object similarity calculation, which not only deeply mines the potential information of the object attributes from the perspective of multi-dimensional space, but also introduces the deep potential information of the user, making the calculation of the object distance used to characterize the object similarity more accurate.

[0069] According to an embodiment of the present disclosure, determining the weight value of each vector distance based on the interaction data between the target object and the potential object in the interaction data set may include the following operations:

[0070] For each vector distance, determine the dimensional attribute corresponding to the vector distance; determine the interaction data between the target object and the potential object from the interaction data set based on the dimensional attribute; integrate the number of interactions, access frequency and preference in the interaction data to obtain the preference parameters of the target object for the potential object; determine the weight value of the vector distance based on the difference between the preference parameter and the preset preference cutoff value and the preset preference maximum value.

[0071] According to the embodiments of the present disclosure, users have various user behaviors for items, such as browsing and clicking, searching and collecting, adding to cart and placing orders, etc., and different user behaviors are not of the same importance to the business. For example, although different users interact with the same item, their liking for the item is obviously different. If the same weight value is assigned to different vector distances at this time, it will obviously affect the accuracy of object distance calculation. By assigning different weight values ​​to different user behaviors, the calculated object distance can be made more accurate.

[0072] According to an embodiment of the present disclosure, the weight value should be positively correlated with the user's liking for the item. The higher the user's liking for the item, the higher the weight value should be assigned to the corresponding vector distance.

[0073] According to the embodiment of the present disclosure, the dimension attribute corresponding to the vector distance is determined, and the weight values ​​corresponding to different dimension attributes are different. The interaction data between the target object and the potential object is determined from the interaction data set based on the dimension attribute. The number of interactions, access frequency and preference in the interaction data are extracted and integrated into a preference parameter R, making it an important indicator for assigning a weight value, and a weighting scheme based on the user's preference degree is proposed, as shown in formula (4):

[0074]

[0075] Among them, C ui Represents the weight value of the vector distance, R ui represents the preference parameter of the target object to the potential object, R maxrepresents the preset maximum preference value, ω is a constant used to control the confidence, and μ represents the preset preference cutoff value, which is the cutoff point of the user's liking for the item. When the score is less than μ, it is determined that the user does not like the item, and the corresponding weight value should be reduced. When the score is greater than μ, it is determined that the user likes the item, and the corresponding weight value should be increased.

[0076] According to an embodiment of the present disclosure, determining the object distance between the target object and the potential object based on multiple vector distances and a weight value corresponding to each vector distance may include the following operations:

[0077] A vector matrix is ​​generated based on multiple vector distances; a semi-positive definite symmetric matrix corresponding to the vector matrix is ​​determined based on a weight value corresponding to each vector distance; and the vector matrix is ​​multiplied by the semi-positive definite symmetric matrix to obtain an object distance.

[0078] According to an embodiment of the present disclosure, when calculating the object distance based on multiple vector distances and the weight value corresponding to each vector distance, a vector matrix can be generated based on the multiple vector distances. Based on the weight value corresponding to each vector distance, a diagonal matrix corresponding to the vector matrix is ​​determined. The specific generation formula is as follows:

[0079]

[0080] Wherein, W=diag(w), W is a diagonal matrix.

[0081] According to the embodiments of the present disclosure, it can be seen from the above formula that the non-diagonal elements of W are all 0. This shows that the coordinate axes are orthogonal and different attributes are unrelated, which is obviously inconsistent with the actual situation. For example, the "length" and "weight" attributes of an item are positively correlated, and the corresponding coordinate axes will not be orthogonal. If W in formula (5) is replaced with an ordinary semi-positive symmetric matrix M, the Mahalanobis distance can be obtained. The specific calculation formula is as follows:

[0082]

[0083] in, Represents the object distance calculated based on a positive semidefinite symmetric matrix.

[0084] According to the embodiments of the present disclosure, M is also called a "metric matrix", and metric learning is to iterate the learning of M. In order to ensure that the matrix is ​​non-negative and symmetric, M must be a semi-positive definite symmetric matrix. That is, an orthogonal basis P is required, so that M can be expressed as M=PP TThe triangle inequality is one of the most important properties of metric learning. The triangle inequality states that for any three points, the sum of the distances between any two pairs of points should be greater than or equal to the distance between the remaining pair of points. Metric learning can be viewed as a similarity propagation process, that is, metric learning propagates the similarity information of known user-item pairs to unknown user-item pairs.

[0085] Figure 3 The object aggregation flow chart of the object mining method according to the embodiment of the present disclosure is schematically shown.

[0086] According to an embodiment of the present disclosure, before determining the object distances between the target object and a plurality of potential objects in the distance matrix based on the factor vectors in each dimension of the factor matrix for the target object in the distance matrix, the following operations may also be included:

[0087] A product quantization algorithm is used to aggregate multiple factor vectors in the factor matrix to obtain a candidate vector set, so as to determine the object distance using the candidate vector set, wherein the candidate vector set includes multiple aggregated factor vectors.

[0088] According to the embodiments of the present disclosure, Figure 3 As shown, the product quantization algorithm (ProductQuantization, PQ algorithm) can be introduced to cluster and aggregate product 1, product 2...product n in the full product library to obtain the target product. Among them, the target product can be one or more. Specifically, the PQ algorithm can be used to aggregate multiple factor vectors in the factor matrix to obtain a candidate vector set. Among them, the candidate vector set includes multiple aggregated factor vectors corresponding to the target product. Using the aggregated factor vector to calculate the object distance, compared with the traditional traversal calculation of the combination of two items, the calculation time is greatly shortened, resource consumption is saved, and the efficiency of similarity calculation is improved.

[0089] According to an embodiment of the present disclosure, determining an object candidate set corresponding to a target object from a plurality of potential objects based on a plurality of object distances may include the following operations:

[0090] The distances of multiple objects are sorted to generate a distance sequence; based on the distance sequence, a preset number of candidate objects are selected from multiple potential objects to generate an object candidate set.

[0091] According to the embodiments of the present disclosure, the distances of multiple objects can be sorted in ascending order or descending order to generate a distance sequence. 10 candidate objects can be selected from the distance sequence to generate an object candidate set for use in intelligent recommendation and out-of-stock exchange services.

[0092] Figure 4A flowchart of an object mining method according to another embodiment of the present disclosure is schematically shown.

[0093] According to the embodiments of the present disclosure, Figure 4 As shown, the interaction matrix conversion module 402 is used to perform data conversion on the interaction data set 401. During the conversion process, the interaction data set can be first converted into an interaction matrix of implicit feedback. Among them, "1" in the interaction matrix indicates that there is an interaction between the user and the product, and "0" indicates that there is no interaction between the user and the product. Further, the interaction matrix is ​​converted into a distance matrix. The distance matrix is ​​factored by the metric factor decomposition module 403 to obtain a user metric factor vector and a product metric factor vector, respectively. The metric factor decomposition module 403 is used to calculate the Euclidean distance between each factor vector. During the calculation process, the preference weight of each Euclidean distance is determined based on the interaction data set 401. According to the Euclidean distance between the products and the preference weight corresponding to each Euclidean distance, the product a is determined. n and product b n The similarity between n Before calculating the Euclidean distance, the PQ algorithm can also be used to aggregate multiple factor vectors to reduce the amount of distance calculation. By making full use of user information in the process of calculating the similarity between products, the calculation results are more accurate.

[0094] Figure 5 A block diagram of an object mining device according to an embodiment of the present disclosure is schematically shown.

[0095] like Figure 5 As shown, the object mining device 500 includes a data conversion module 510, a matrix decomposition module 520, a distance determination module 530 and an object determination module 540.

[0096] The data conversion module 510 is used to perform data conversion on the interaction data set generated by the interaction between the user and the object to obtain a distance matrix, wherein the distance matrix includes distance information between multiple objects, and the objects are used to represent the user or the object. In one embodiment, the data conversion module 510 can be used to perform the operation S210 described above, which will not be repeated here.

[0097] The matrix decomposition module 520 is used to factorize the distance matrix to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector of each object, and the factor vector is used to characterize the position information of the object in the factor matrix. In one embodiment, the matrix decomposition module 520 can be used to perform the operation S220 described above, which will not be repeated here.

[0098] The distance determination module 530 is used to determine the object distance between the target object and multiple potential objects in the distance matrix based on the factor vector in each dimension of the factor matrix for the target object in the distance matrix. In one embodiment, the distance determination module 530 can be used to perform the operation S230 described above, which will not be repeated here.

[0099] The object determination module 540 is used to determine a candidate object set corresponding to the target object from multiple potential objects based on multiple object distances. In one embodiment, the object determination module 540 can be used to perform the operation S240 described above, which will not be described in detail here.

[0100] According to an embodiment of the present disclosure, the data conversion module 510 includes a data conversion submodule, a matrix conversion submodule and a matrix determination submodule.

[0101] The data conversion submodule is used to convert the explicit feedback data in the interaction data set into implicit feedback data to obtain an implicit feedback data set.

[0102] The matrix conversion submodule is used to perform matrix conversion on the implicit feedback data set to obtain the interaction matrix.

[0103] The matrix determination submodule is used to determine the distance matrix based on the difference between the unit matrix and the interaction matrix.

[0104] According to an embodiment of the present disclosure, the distance determination module 530 includes a vector determination submodule, a vector distance determination submodule, a weight determination submodule, and an object distance determination submodule.

[0105] The vector determination submodule is used to determine, for a potential object, a target factor vector corresponding to the target object in each dimension in the factor matrix and a potential factor vector corresponding to the potential object.

[0106] The vector distance determination submodule is used to determine the vector distance between the target object and the potential object in each dimension based on the target factor vector and the potential factor vector in each dimension, wherein each dimension corresponds to different dimensional attributes.

[0107] The weight determination submodule is used to determine the weight value of each vector distance based on the interaction data between the target object and the potential object in the interaction data set.

[0108] The object distance determination submodule is used to determine the object distance between the target object and the potential object based on multiple vector distances and a weight value corresponding to each vector distance.

[0109] According to an embodiment of the present disclosure, the weight determination submodule includes an attribute determination unit, a data determination unit, a data integration unit, and a weight determination unit.

[0110] The attribute determination unit is used to determine, for each vector distance, a dimensional attribute corresponding to the vector distance.

[0111] The data determination unit is used to determine the interaction data between the target object and the potential object from the interaction data set based on the dimension attributes.

[0112] The data integration unit is used to integrate the number of interactions, access frequency and preference in the interaction data to obtain the preference parameters of the target object for the potential object.

[0113] The weight determination unit is used to determine the weight value of the vector distance based on the difference between the preference parameter and the preset preference boundary value and the preset preference maximum value.

[0114] According to an embodiment of the present disclosure, the object distance determination submodule includes a matrix generation unit, a matrix determination unit, and a distance determination unit.

[0115] The matrix generation unit is used to generate a vector matrix based on a plurality of vector distances.

[0116] A matrix determination unit, configured to determine a semi-positive definite symmetric matrix corresponding to the vector matrix based on a weight value corresponding to each vector distance;

[0117] The distance determination unit is used to multiply the vector matrix with the semi-positive definite symmetric matrix to obtain the object distance.

[0118] According to an embodiment of the present disclosure, the object mining device 500 further includes a vector aggregation module.

[0119] The vector aggregation module is used to aggregate multiple factor vectors in the factor matrix using a product quantization algorithm to obtain a candidate vector set, so as to determine the object distance using the candidate vector set, wherein the candidate vector set includes multiple aggregated factor vectors.

[0120] According to an embodiment of the present disclosure, the object determination module 540 includes a sequence generation submodule and a candidate generation submodule.

[0121] The sequence generation submodule is used to sort the distances of multiple objects and generate a distance sequence.

[0122] The candidate generation submodule is used to select a preset number of candidate objects from multiple potential objects based on the distance sequence to generate an object candidate set.

[0123] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0124] For example, the object mining device 500 includes any of the data conversion module 510, the matrix decomposition module 520, the distance determination module 530 and the object determination module 540, which can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, the object mining device 500 includes at least one of the data conversion module 510, the matrix decomposition module 520, the distance determination module 530 and the object determination module 540, which can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, the object mining device 500 includes at least one of the data conversion module 510, the matrix decomposition module 520, the distance determination module 530 and the object determination module 540, which can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.

[0125] It should be noted that the object mining device part in the embodiment of the present disclosure corresponds to the object mining method part in the embodiment of the present disclosure. The description of the object mining device part specifically refers to the object mining method part, which will not be repeated here.

[0126] Figure 6 A block diagram of an electronic device suitable for implementing an object mining method according to an embodiment of the present disclosure is schematically shown. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0127] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0128] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0129] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The system 600 may further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0130] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure 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 storage medium, and the computer program contains 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 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

[0131] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0132] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0133] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603 .

[0134] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, which contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the object mining method provided by the embodiment of the present disclosure.

[0135] When the computer program is executed by the processor 601, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0136] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0137] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0139] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. An object mining method, comprising: Performing data conversion on an interaction data set generated by the interaction between the user and the object to obtain a distance matrix, wherein the distance matrix includes distance information between a plurality of objects, and the objects are used to characterize the user or the object; Factor decomposing the distance matrix to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector of each object, and the factor vector is used to represent the position information of the object in the factor matrix; For a target object in the distance matrix, based on a factor vector in each dimension of the factor matrix, respectively determining an object distance between the target object and a plurality of potential objects in the distance matrix; Based on the plurality of object distances, an object candidate set corresponding to the target object is determined from the plurality of potential objects.

2. The method according to claim 1, wherein: The interaction data set includes explicit feedback data and implicit feedback data. The interaction data set generated by the interaction between the user and the item is converted to obtain a distance matrix, including: Converting the explicit feedback data in the interaction data set into implicit feedback data to obtain an implicit feedback data set; Performing matrix transformation on the implicit feedback data set to obtain an interaction matrix; The distance matrix is ​​determined based on the difference between the identity matrix and the interaction matrix.

3. The method according to claim 1, wherein: The determining, for the target object in the distance matrix, the object distances between the target object and a plurality of potential objects in the distance matrix based on the factor vector in each dimension of the factor matrix, respectively includes: For one of the potential objects, determining in the factor matrix a target factor vector corresponding to the target object and a potential factor vector corresponding to the potential object in each dimension; Based on the target factor vector and the potential factor vector in each dimension, respectively determine the vector distance between the target object and the potential object in each dimension, wherein each dimension corresponds to a different dimensional attribute; Determining a weight value of each of the vector distances based on the interaction data between the target object and the potential object in the interaction data set; An object distance between the target object and the potential object is determined based on the plurality of vector distances and a weight value corresponding to each of the vector distances.

4. The method according to claim 3, wherein: The determining, based on the interaction data between the target object and the potential object in the interaction data set, a weight value of each vector distance comprises: For each of the vector distances, determining a dimensional attribute corresponding to the vector distance; Determining interaction data between the target object and the potential object from the interaction data set based on the dimensional attributes; Integrate the number of interactions, access frequency and preference in the interaction data to obtain the preference parameters of the target object for the potential object; Based on the difference between the preference parameter and a preset preference cutoff value and a preset preference maximum value, a weight value of the vector distance is determined.

5. The method according to claim 3, wherein: The determining the object distance between the target object and the potential object based on the plurality of vector distances and a weight value corresponding to each of the vector distances comprises: generating a vector matrix based on a plurality of said vector distances; Determine a semi-positive definite symmetric matrix corresponding to the vector matrix based on a weight value corresponding to each of the vector distances; The object distance is obtained by multiplying the vector matrix with the semi-positive definite symmetric matrix.

6. The method according to claim 1, wherein: Before determining, for the target object in the distance matrix, the object distances between the target object and a plurality of potential objects in the distance matrix based on the factor vectors in each dimension of the factor matrix, the method further includes: A plurality of factor vectors in the factor matrix are aggregated using a product quantization algorithm to obtain a candidate vector set, so as to determine the object distance using the candidate vector set, wherein the candidate vector set includes a plurality of aggregated factor vectors.

7. The method according to claim 1, wherein: The determining, based on the plurality of object distances, a candidate object set corresponding to the target object from the plurality of potential objects comprises: Sorting the distances of the plurality of objects to generate a distance sequence; Based on the distance sequence, a preset number of candidate objects are selected from the plurality of potential objects to generate the object candidate set.

8. An object mining device, comprising: A data conversion module, used to perform data conversion on an interaction data set generated by the interaction between the user and the object to obtain a distance matrix, wherein the distance matrix includes distance information between multiple objects, and the objects are used to represent the user or the object; A matrix decomposition module, used for factorizing the distance matrix to obtain a K-dimensional factor matrix, wherein the factor matrix includes a factor vector of each object, and the factor vector is used to represent the position information of the object in the factor matrix; a distance determination module, configured to determine, for a target object in the distance matrix, object distances between the target object and a plurality of potential objects in the distance matrix based on a factor vector in each dimension of the factor matrix; The object determination module is used to determine an object candidate set corresponding to the target object from the multiple potential objects based on the multiple object distances.

9. An electronic device, comprising: one or more processors; a memory for storing one or more programs, 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 7.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 7.

11. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Object positioning method and object positioning device based on wireless equipment

    CN119521153A