User big data recommendation method and system based on artificial intelligence

By introducing the knowledge graph and the isolated forest model into the data recommendation system, the problems of difficulty in feature extraction, cold start and data sparseness are solved, the accuracy and interpretability of recommendations are improved, and the capabilities of the recommendation system are enhanced.

CN118690084AInactive Publication Date: 2024-09-24QINGDAO ZHONGHE SHUZHI INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410873450.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing data recommendation methods have limitations in feature extraction difficulties, cold start and data sparse issues, lack of interpretability, high computational cost, and difficulty in effectively utilizing the implicit relationship between users and items.

Method used

The user big data recommendation method based on artificial intelligence is used to build a knowledge graph, extract user interest knowledge, use the isolation forest model to classify entity objects, calculate the degree of interest, and recommend candidate entity objects whose relationship distance to the user is within a set range.

Benefits of technology

It improves the accuracy and interpretability of recommendations, digs out potential relationships between users and items, enhances the capabilities of the recommendation system, and reduces computing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690084A
    Figure CN118690084A
Patent Text Reader

Abstract

The invention relates to the field of data recommendation, and particularly provides a user big data recommendation method and system based on artificial intelligence. Knowledge graph information is introduced into a recommendation algorithm. According to the recommendation system fused with the knowledge graph, the users, the users and the articles and the articles are mutually connected, semantic information between data is enhanced, the hidden incidence relation between the users and the articles is expanded, and the interest of the users is further found, so that the recommendation accuracy is improved, and better interpretability is achieved; the method comprises the following steps: establishing a knowledge graph, extracting feature information capable of reflecting entity features from the knowledge graph, further mining implicit information between a user and a project, then planing out multi-dimensional features of the entities layer by layer by adopting an iForest model, and mining a potential association relationship between the entities interested by the user and to-be-recommended entities so as to enhance the recommendation ability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data recommendation, and in particular to a method and system for recommending user big data based on artificial intelligence. Background Art

[0002] The advent of the digital age has brought users a huge amount of data. How to use this data reasonably is a crucial issue. When faced with explosive information, users cannot find the information they need accurately and quickly, which causes information overload. The recommendation system can recommend information and items that users may be interested in to users in a timely manner based on their potential needs, interests and behaviors. Currently, almost all applications use recommendation systems to provide users with more accurate recommendations to attract more users to use their applications for a long time.

[0003] As the core of the recommendation system, big data recommendation technology aims to model user interest preferences by learning user information and user behavior. At present, it can be mainly divided into three categories: content-based recommendation method, collaborative filtering-based recommendation method and hybrid recommendation method. Among them, the content-based recommendation method selects items with similar features to the user's preferred items, but this method is difficult to extract features of some items, such as images, music, movies, etc. If the person who provides these items does not provide metadata, such as style, actors, directors and authors, it is not easy to automatically extract features, resulting in poor recommendation results. Collaborative filtering technology uses the characteristics of similar interests and preferences between similar users to discover the user's potential preference for items. Its advantage is that it does not require complex feature extraction of items, and only requires the use of users' historical rating data, making the algorithm simple; however, this method is difficult to model the explicit relationship between different information of users and items. At the same time, there are problems such as cold start and data sparsity that are difficult to solve, and there is no interpretability for the recommendation results. Hybrid recommendation methods often use hybrid recommendation technologies such as weighting, dynamic switching, and feature combination. The weighted hybrid method combines and weights the candidate results generated by different recommendation algorithms to generate the final recommendation ranking results. Dynamic switching is based on certain standards and dynamically switches between different algorithms. The feature combination method obtains features from different information sources and then provides them to a single algorithm. The above methods all combine algorithms to overcome the technical limitations brought by a single algorithm. However, the difficulty in applying hybrid recommendation technology lies in the need to select appropriate fusion strategies according to different recommendation scenarios. Due to the complex operation and logical structure, the operating cost of the recommendation system is increased. Summary of the invention

[0004] The purpose of the present invention is to provide a user big data recommendation method based on artificial intelligence to overcome the technical problems existing in the above-mentioned existing recommendation methods, wherein the method comprises:

[0005] Step 1) Establish a knowledge graph for user recommendation, wherein the knowledge graph includes the acquired user interest knowledge and entity objects to be recommended;

[0006] Step 2) extracting entity objects with identified interest in user interest knowledge, defining multi-dimensional attributes of the entity objects with identified interest and assigning corresponding attribute values;

[0007] Step 3) Randomly select attributes to generate a limited number of isolated trees, use the isolated trees to classify the entity objects with identified interest, and select the isolated trees with the best classification effect to form an isolation forest;

[0008] Step 4) Extract the entity objects to be recommended within the set distance from the user in the knowledge graph as candidate entity objects, add the candidate entity objects to the isolated trees of the isolation forest for classification, calculate the interest of the candidate entity objects based on the classification results, and select a limited number of candidate entity objects with high interest rankings to recommend to the user.

[0009] The above scheme is further preferred, wherein the knowledge graph includes a triple consisting of a head entity object, a relationship and a tail entity object, and the head entity object and the tail entity object are connected by a relationship.

[0010] In the above scheme, the user interest knowledge further preferably includes an interest triple consisting of a user, an interest relationship and an interest object, and a non-interest triple consisting of a user, a non-interest relationship and a non-interest object.

[0011] In the above solution, it is further preferred that the interested objects and uninterested objects are divided according to the identified user's interest value in the entity object.

[0012] In the above scheme, preferably, the generation process of the isolated tree is:

[0013] Step 301) randomly extracting a set number of entity objects from the interested object set and the uninterested object set to form a sub-sample set, and putting the sub-sample set into the root node of the binary tree;

[0014] Step 302) randomly select an attribute, divide the subsample set into two parts based on the attribute split point, put the entity objects with attribute values ​​less than the split point into the left child node of the current node, and put the entity objects with attribute values ​​not less than the split point into the right child node of the current node;

[0015] Step 303) recursively executes step 302) in the left child node and the right child node until only one entity object in the child node or the child node reaches the specified height.

[0016] The above scheme is further preferred, wherein the selection process of the isolated tree is as follows: normalizing the path height and interest of each entity object in the subsample set, then performing similarity comparison on the path height and interest of each entity object, calculating the total similarity value of the current isolated tree with respect to the subsample set, sorting the total similarity values ​​of each isolated tree from high to low, and selecting a limited number of isolated trees with high total similarity values ​​to join the isolation forest, wherein the path height is the number of node hops between the node where the entity object is located and the root node in the isolation tree.

[0017] In the above scheme, further preferably, the process of calculating the interest of the candidate entity object is: calculating the mean of the path heights of the candidate entity object in each isolated tree, and quantifying the mean into a corresponding interest value.

[0018] On the other hand, the present invention also provides a user big data recommendation system based on artificial intelligence, which is used to implement the recommendation method in the above scheme. The system includes: a knowledge graph construction module, an entity object extraction module, an attribute assignment module, an isolation forest generation module, and a recommendation execution module;

[0019] A knowledge graph construction module is used to build a knowledge graph for user recommendations, wherein the knowledge graph contains the acquired user interest knowledge and entity objects to be recommended;

[0020] The entity object extraction module is used to extract the entity objects with identified interest in the user's interest knowledge;

[0021] An attribute assignment module, used to define multi-dimensional attributes of entity objects of identified interest and assign corresponding attribute values;

[0022] The isolation forest generation module is used to randomly select attributes to generate a limited number of isolated trees, use the isolated trees to classify the entity objects with identified interest, and select the isolated trees with the best classification effect to form an isolation forest;

[0023] The recommendation execution module is used to extract the entity objects to be recommended whose relationship distance with the user is within a set range in the knowledge graph as candidate entity objects, add the candidate entity objects to the isolated trees of the isolation forest for classification, calculate the interest of the candidate entity objects based on the classification results, and select a limited number of candidate entity objects with high interest rankings to recommend to the user.

[0024] The advantages of the recommendation method and system provided by the present invention are:

[0025] The present invention introduces knowledge graph information into the recommendation algorithm. The recommendation system integrating knowledge graph connects users with users, users with items, and items with items, enhances the semantic information between data, expands the hidden associations between users and items, and further discovers the interests of users, thereby improving the accuracy of recommendations and having better interpretability; at the same time, feature information that can reflect the characteristics of entities is extracted from the knowledge graph, and the implicit information between users and items is further mined. Then, the iForest model is used to analyze the multi-dimensional features of entities layer by layer, and the potential associations between entities of interest to users and entities to be recommended are mined, so as to enhance the recommendation ability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A flow chart of the user big data recommendation method provided by the present invention;

[0027] Figure 2 The knowledge chain between users and entity objects displayed in the knowledge graph of the embodiment of the present invention;

[0028] Figure 3 This is a structural diagram of the user big data recommendation system provided by the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0030] Traditional recommendation systems have less interactive information between users and items. For example, it is impossible for each user to rate all products, which will cause the user-item matrix to be sparse. At the same time, new users and items will have cold start problems due to the lack of corresponding historical information. To this end, the present invention introduces knowledge graph information into the recommendation algorithm. Knowledge graph is a directed information heterogeneous network that contains rich semantic associations between entities. Many entities in the recommendation system usually correspond to entities in many fields, so that knowledge can be transferred between fields. The recommendation system that integrates the knowledge graph connects users to users, users to items, and items to items, enhances the semantic information between data, expands the hidden associations between users and items, and further discovers the interests of users, thereby improving the accuracy of recommendations and having better interpretability.

[0031] However, most recommendation systems based on knowledge graphs only consider the information interaction between users / projects and knowledge graphs, and fail to effectively model the feature information of users / projects so as to effectively fuse the user / project features with the knowledge graph, resulting in the failure to fully utilize the structural information of the knowledge graph. To this end, the present invention further mines the implicit information between users and projects by extracting feature information that can reflect the characteristics of entities in the knowledge graph, so as to enhance the recommendation ability of the system. However, on the other hand, it should be considered that the knowledge graph itself does not have the ability to analyze entity features, and it is impossible to find the commonalities and laws of entities that meet the user's interest preferences from complex data relationships. Further, the present invention uses the isolation forest (iForest) model to analyze the multi-dimensional features of the entity layer by layer, and mine the potential association between the user's interested entity and the entity to be recommended. The iForest algorithm itself is an algorithm for anomaly monitoring, which can process large-scale multi-dimensional data. In the isolation forest, anomalies are defined as "outliers that are easily isolated", which can be understood as points that are sparsely distributed and far away from a high-density group. In the feature space, sparsely distributed areas indicate that the probability of an event occurring in the area is very low, so the data falling in these areas can be considered abnormal. From the perspective of the feature relationship of the data, the reason why abnormal data points can be isolated earlier is that their feature information is very different from that of normal data points. According to this feature, the present invention extracts entity objects of interest and disinterest to the user in the knowledge graph respectively, and the entity objects of interest can be compared to normal data points, while the entity objects of disinterest can be compared to abnormal data points. Then, according to the different classification features and feature values ​​between the entity objects, under the strategy of random feature segmentation, the entity objects of disinterest that are significantly different from the user's preferences can be separated from the isolated tree earlier, so that they have a shorter path in the tree, and the entity objects closer to the leaf nodes are more in line with the user's preferences. Since the iForest algorithm often uses the term attribute to characterize the node segmentation rules, the features of the above-mentioned entity objects are defined as attributes in the present invention, and their feature values ​​are attribute values, and the two have the same meaning.

[0032] In the knowledge graph construction stage, the relationship data between users and entity objects (items) obtained through knowledge extraction is known and reliable, so these relationship data can be used to form a training sample set to train the isolation forest, and the isolated trees with relatively accurate user preference classification are selected and added to the isolation forest. Then the entity objects to be recommended are added to the trained isolation forest, and the final recommended objects are confirmed to the user based on the model output results. Specifically, the user big data recommendation method based on artificial intelligence provided by the present invention refers to Figure 1 As shown, the method specifically includes the following implementation steps:

[0033] Step 1) Establish a knowledge graph for user recommendation, wherein the knowledge graph includes the acquired user interest knowledge and entity objects to be recommended;

[0034] Step 2) extracting entity objects with identified interest in user interest knowledge, defining multi-dimensional attributes of the entity objects with identified interest and assigning corresponding attribute values;

[0035] Step 3) Randomly select attributes to generate a limited number of isolated trees, use the isolated trees to classify the entity objects with identified interest, and select the isolated trees with the best classification effect to form an isolation forest;

[0036] Step 4) Extract the entity objects to be recommended within the set distance from the user in the knowledge graph as candidate entity objects, add the candidate entity objects to the isolated trees of the isolation forest for classification, calculate the interest of the candidate entity objects based on the classification results, and select a limited number of candidate entity objects with high interest rankings to recommend to the user.

[0037] In the field of personalized recommendation, knowledge graphs are used as auxiliary information to integrate with user behavior data, expand the hidden association information between users and items, and make the recommendation results explainable. Knowledge graphs are a heterogeneous network composed of entities and their interrelated relationships. They cover multiple types of nodes in directed graphs and the associations between nodes, giving them super strong representation capabilities, because different attributes of an entity can be obtained from different relationships, and high-order relationships between entities can also be obtained in relationship links. The specific structure of the knowledge graph is usually expressed in the form of triples, which is formally defined as , h represents the head entity object, t represents the tail entity object, r represents the relationship between the two, E and R represent the entity set and relationship set respectively. In the multidimensional feature space, each entity represents a node, and the relationship between entities is represented by a directed edge, that is, from the head entity object to the tail entity object.

[0038] The interaction information between users and items can be mapped to the entities of the knowledge graph by matching. Assume that the set of registered users in the recommendation system is , the recorded items are , the interaction data between users and items can be represented by the interaction matrix, that is, the interaction matrix between users and items is defined as , the value of any element in the matrix is the user u's evaluation of item v. For the convenience of calculation, it can be defined as a value in the positive integer set, such as a positive integer in the range of [1,6]. The closer to 1, the less interested the user is in the item, while the closer to 6, the more in line with the user's preference. When , it means that user u has no evaluation record for item v. For scoring, the interest behaviors of commodities on e-commerce platforms mainly include users' browsing, clicking, interest annotation, and purchase of items. The corresponding triples are (users, browsing / clicking / annotating / purchasing, items). For example, the accumulated browsing frequency, click count, like / dislike annotation, and purchase quantity or number of records are recorded, and then combined with the pre-set weights of each relationship, the corresponding scores can be obtained by weighted operation. For elements with no associated user-item, the values ​​are set to NULL, and the items corresponding to these elements can be used as entity objects to be recommended. For services such as web pages and video platforms, the main interest behaviors include users’ browsing, playing, searching, and commenting on targets. The corresponding triples are (users, browsing / playing / searching / commenting, targets). The targets are entity objects extracted from unstructured data such as web pages or videos, such as movie names extracted from videos, or brand names of certain services or commodities extracted from web pages. Then, by accumulating browsing frequency, video content playback volume, user stay time, and related content searches or comments, the corresponding scores can be obtained by weighted operations combined with the pre-set weights of each relationship. For elements with no associated user-target, the values ​​are set to NULL, and the targets corresponding to these elements can be used as entity objects to be recommended. As mentioned earlier, assuming that the elements in the matrix When the value of is set to a positive integer in the range of [1,6], since the scores obtained by the above calculation are not standardized, the scores need to be normalized so that each score is constrained in the range of [1,6], and then the nearest positive integer is selected as the final value by rounding. The normalization process can use the minimum-maximum method and the standard deviation method to compress the original values ​​of the dispersed distribution into the constrained value range.

[0039] According to the rating, the entity objects can be divided into different interest groups, for example: y u , v ∈[1 , 3] The entity object (item) of is defined as an uninteresting object, and the corresponding uninteresting triple is defined as (user, uninteresting relationship, uninteresting object). y u , v ∈[4 , 6] The entity object (item) is defined as the object of interest, and the corresponding triplet of interest is defined as (user, interest relationship, object of interest), which constitutes the set of interested objects and the set of uninterested objects.

[0040] Knowledge graph is a structured semantic knowledge base, but its data source includes not only easily identifiable structured data (such as relational databases and linked data), but also semi-structured data (such as XML, JSON, encyclopedia) and unstructured data (such as pictures, audio, and video) that are difficult to identify. Therefore, in the process of constructing the triples of knowledge graph, how to extract elements such as entities, relationships, and attributes from the data source is a key issue. For semi- / unstructured data in different fields, knowledge extraction is used to extract the required elements of knowledge graphs such as entities, attributes, relationships, and events, and form structured knowledge and store them in knowledge graphs. After simple preprocessing, structured data can be directly used as input for recommendation systems, but semi-structured and unstructured data need to be automatically or semi-automatically extracted from knowledge through machine learning. Knowledge extraction specifically includes entity extraction, attribute extraction, and relationship extraction. The task of entity extraction is to use the original data to identify and extract the named entities involved, such as extracting user or item entity objects in text data based on rules and dictionaries, machine learning, or deep learning. The task of relationship extraction is to extract the semantic relationship between entities from text information, link the relationship with related entities, and thus form a network structure diagram, such as extracting the relationship between user-item, user-user, and item-item based on templates, supervised learning, weakly supervised learning, etc. Attribute extraction is to extract the attribute information of related entities from different data sources, that is, the characteristics of the entity itself, and the attribute value is to obtain the characteristic value of the entity itself, and summarize the established entity object attributes and attribute values.

[0041] After extracting knowledge from the data, it is necessary to organize and integrate the knowledge and merge different representations of the same thing to build a more accurate and rich knowledge graph. In the process of knowledge fusion, the main task is to align entities, that is, to determine whether two entities with different names are the same entity. For example, some entities may have multiple expressions, such as "tomato" and "tomatoes", and a specific name may correspond to multiple different entities. The similarity comparison method of attributes between entities can be used to determine whether the two point to a common entity in order to eliminate contradictions and ambiguities.

[0042] The present invention constructs the knowledge graph in a bottom-up manner, extracts the required information from publicly collected data sources, constructs from the bottom, summarizes and processes the existing entities, and gradually develops to the upper layer after defining the concept, and stores the extracted knowledge in the data layer and model layer of the knowledge base. The data layer stores knowledge as a unit of facts, and stores specific instances of user-recommended knowledge, while the model layer is based on the former, as the core of the knowledge graph, and is usually managed through the ontology library, and the extracted knowledge is stored in it. The RDF structure is used to describe entities and relationships in the form of triples, and the XML syntax is used to represent the data model.

[0043] Although the knowledge graph stored in RDF can be updated and expanded well, the relationships and entities in the knowledge graph are usually discrete and sparse, and cannot be directly digitized. Through the knowledge graph embedding algorithm, entities and relationships are mapped to a continuous vector space to obtain a low-dimensional dense vector representation to facilitate operations, so that the knowledge graph can be well embedded in the recommendation algorithm for content recommendation. Embedding methods such as TransE, TransH, TransR, and TransD can be used. In an example provided by the present invention, the TransE algorithm is used to perform knowledge graph embedding. Specifically, the triples Using a simple formula It means that the expected embedding vector Close to the tail entity embedding vector t, that is, a distance algorithm is defined To measure and t. If If we directly use it as a loss function, h, r, and t will slowly approach 0, so we need to take negative sample. During training, we can randomly replace h or t, using and Represents a negative example. The final objective function is:

[0044]

[0045] m represents the margin value. It is expected that the distance between positive sampling and negative sampling will be close to m. The larger the m is, the greater the difference between the positive and negative example prediction scores will be. After the embedding of the above knowledge graph is completed, a complete knowledge graph for user recommendation is generated, which contains all the acquired user interest knowledge and entity objects to be recommended, as a standard data source for recommendation to users.

[0046] The entity objects with identified interest levels are the interested objects and the uninterested objects in the above triples. Since the entity objects in the above embodiment are divided into interest groups based on scores, the interest levels refer to the element scores in the user-item interaction matrix.

[0047] Integrate user interest knowledge into the knowledge graph, and then establish a knowledge chain between users and other entity objects through knowledge recognition, extraction and embedding technologies, such as Figure 2 As shown, foods A and B that the user is interested in can be associated with foods D and E of the same category through the "classification" relationship and the "staple food" entity. Food C that the user is not interested in can be associated with foods F and G of the same origin through the "origin" relationship and the "imported product" entity. Food DF is used as the entity to be recommended for the current user.

[0048] After the knowledge graph is constructed, the present invention uses the isolation forest model to analyze the multi-dimensional features of the entity layer by layer to dig out the potential association between the entity of interest to the user and the entity to be recommended. The user's interest knowledge is input into the isolation tree for sample training, and the isolation tree with better classification effect is selected to participate in the recommendation decision process of the entity to be recommended.

[0049] Isolation forest is an unsupervised detection method suitable for continuous data, that is, it does not require labeled samples for training, but the sample features need to be continuous. iForest uses a very efficient strategy for finding which points are easy to be isolated. In the isolation tree, the data set is randomly split recursively until all sample points are isolated. Under this random splitting strategy, abnormal points usually have shorter paths. Isolation forest does not describe normal samples, but optimizes the description of abnormal samples by taking advantage of the fact that anomalies are sparsely distributed in space. Isolation forest does not assume the distribution of the data set, does not need to train a mathematical model to fit normal data, and does not need to set labels for the data set. It has excellent anomaly monitoring capabilities. Since users always pay more attention to and interact with items or goods they like, such as repeatedly clicking, browsing, playing, purchasing, etc., while the interaction records for items or goods they do not like are relatively sparse, the distribution difference of the collected interaction data is very similar to the abnormal monitoring environment, and any item or product has multiple attributes, which meets the requirement of the isolation forest algorithm for continuous data features. Therefore, the normal and abnormal samples used in the isolation forest are replaced with objects of interest and objects of no interest to the user, and then a certain number of attributes are used to randomly split the entity object set, which can also separate the uninterested objects earlier, and further calculate the corresponding interest level according to the depth of the entity object in the isolation forest to realize the item classification and recommendation functions.

[0050] The following is a specific example to illustrate the implementation process of constructing an isolation forest model for user recommendation. First, multiple isolation trees are randomly generated for each user who needs recommendation services using interested and uninterested objects. The generation process of the isolation tree is as follows:

[0051] Step 1: randomly extract a set number of entity objects from the object set of interest and the object set of no interest to form a sub-sample set, and put the sub-sample set into the root node of the binary tree;

[0052] Step 2: randomly select an attribute, divide the subsample set into two parts based on the attribute split point, put the entity objects whose attribute values ​​are less than the split point into the left child node of the current node, and put the entity objects whose attribute values ​​are not less than the split point into the right child node of the current node;

[0053] Step 3: recursively execute step 2 in the left child node and the right child node until only one entity object in the child node or the child node reaches the specified height.

[0054] Assume that in an example of food recommendation on an e-commerce platform, the food that user u is interested in and not interested in is obtained from the knowledge graph statistics, which form the food set of interest and uninteresting food set . The attributes contained in each food in the food set are counted. The attributes can be obtained from the entity attribute extraction stage of the knowledge graph, or they can be supplemented manually to generate an attribute set. The attribute set includes not only discrete attributes, such as domestic or imported food according to the origin attribute, instant food or processed food according to the way of consumption, snacks, ingredients, staple food and other characteristics according to the functional attributes, and sweet, salty, spicy and other characteristics according to the taste attributes. The split point of the discrete attribute can be set to a fixed value, and the two attribute values ​​are set to a value at both ends of the fixed value, such as setting the split point q of the origin attribute to 0, the attribute value of domestic food is set to 0, and the attribute value of imported food is set to 1. It also includes continuous attributes divided by thresholds, such as price, weight, amount, size and other numerical attributes. The split point of the continuous attribute can be set to the average value, median value of all foods for the attribute, or a random value generated within the threshold range.

[0055] According to the growth height set by the isolated tree, a certain number of elements are randomly selected from the food set of interest and the food set of no interest to form a sub-sample set. The number of elements in the two sets can be calculated according to the preset ratio. However, in order to ensure the effectiveness of the isolation forest algorithm, the ratio of the food set of interest must be significantly greater than that of the food set of no interest. In addition, due to the sparsity of the entity objects of no interest, the number of elements in the food set of interest is much larger than that in the food set of no interest. At this time, the number ratio of the elements of the two sets can be calculated first, and then the corresponding proportion of elements are allocated to the sub-sample set according to the ratio. Each isolated tree corresponds to a unique sub-sample set, and the greater the difference between the sub-sample sets of different isolated trees, the lower the correlation between the isolated trees, which can better mine the real attributes that meet the user's preferences and reduce the risk of the classification results falling into the local optimal problem. To this end, the food objects that have been selected by the previous isolated tree can be deleted from the set, and the remaining elements of the set can be used as the data source for constructing the sub-sample set of the next isolated tree to maximize the difference between the sub-sample sets.

[0056] The present invention analyzes the attributes covered by the entity object itself, identifies the key attribute factors that affect the user's interest preference, and considers that there are certain differences in the attribute characteristics between the user's uninterested objects and the interested objects. The uninterested objects only need to undergo fewer segmentations to be divided into an independent subspace, which is reflected in an isolated tree as the position where the uninterested objects stay will be closer to the root node. On the contrary, the interested objects will be far away from the root node, and the more interesting the objects are, the closer they are to the leaf nodes. Therefore, it is possible to judge whether each entity object is an interested target based on its average height in each isolated tree, that is, the probability that the entity object with a small average height is uninteresting is very high, while the entity object with a large average height is more in line with the user's interest preference.

[0057] Then, an isolated tree with relatively accurate user preference classification is selected from a large number of isolated trees and added to the isolated forest. Since the attributes assigned to each node of the isolated tree are randomly selected from the attribute set, not every isolated tree can correctly classify the entity objects associated with the user, so it is necessary to select the generated isolated trees. The optimal conditions need to be met: the position of the uninterested object is closer to the root node, and the position of the interested object is closer to the leaf node. Specifically, in an embodiment provided by the present invention, the selection process of the isolated tree is: the path height and interest of each entity object in the sub-sample set are normalized, and then the path height and interest of each entity object are compared with similarity, and the total similarity value of the current isolated tree with respect to the sub-sample set is calculated, and the total similarity value of each isolated tree is sorted from high to low, and a limited number of isolated trees with a high total similarity value are selected to join the isolated forest, and the path height is the number of node hops between the node where the entity object is located and the root node in the isolated tree.

[0058] For entity objects, the dimensions of their path height in the isolated tree and the user's interest are different, which makes it impossible to compare the two. Normalization can convert dimensional data into dimensionless data and normalize the data to the same order of magnitude to solve the comparability problem between data. In an example provided by the present invention, the minimum-maximum normalization method is used to linearly map the path height and interest value to the range of [0,1]. The value obtained by the minimum-maximum normalization process can be expressed as:

[0059]

[0060] where x and Respectively represent the values ​​before and after normalization, min(x) and max(x) represent the minimum and maximum values ​​in the data set. In any isolated tree, substitute the path height p and interest degree q of each entity object into the above formula to obtain the corresponding corrected path height and interest , accordingly, min(p) and min(q) represent the minimum values ​​of the path height and interest in the subsample set, while max(p) and max(q) represent the maximum values ​​of the path height and interest in the subsample set.

[0061] Then, the path heights and interest levels between the entity objects in the sub-sample set are compared for similarity. In an example provided by the present invention, a cosine similarity algorithm is used for calculation, and cosine similarity is based on the angle between two vectors to calculate the similarity. The path heights and interest levels of each entity object in the sub-sample set are extracted to form a path height set and an interest level set. The path height set and the interest level set can be regarded as two different vectors. For a sub-sample set containing D entity objects, a D-dimensional path height vector and interest level vector can be generated in a multi-dimensional space, and the parameter value on each dimension in the vector corresponds to an entity object. Accordingly, the formula for calculating the cosine similarity between two vectors can be expressed as:

[0062]

[0063] Where P and Q represent the two vectors corresponding to the path height set and the interest set respectively. is the value of the i-th dimension (i-th entity object) in vector P, is the value of the i-th dimension (i-th entity object) in the vector Q. and are all normalized and corrected values, θ is the angle between the two vectors, If the directions of the two vectors are opposite, the similarity value will be closer to -1, that is, the similarity between the two is low. On the contrary, if the two vectors point to roughly the same direction, their similarity value will be closer to 1, which means that they are highly similar, that is, the path height of most or all entity objects in the current isolated tree is consistent with the interest value, that is, the entity object with higher user interest is closer to the leaf node in the isolated tree, and on the contrary, the entity object with lower user interest is closer to the root node in the isolated tree. This classification result is in line with user preferences.

[0064] In another embodiment provided by the present invention, the Pearson correlation coefficient method is also used to calculate the similarity between the path height vector and the interest vector. This method measures the similarity between the two vectors by calculating the linear correlation between the two vectors. The Pearson correlation coefficient can be expressed as:

[0065]

[0066] in represents the covariance between vectors P and Q, is the standard deviation of vector P, is the standard deviation of vector Q. The output range of the Pearson correlation coefficient is [-1,1], where 0 represents no correlation between the two vectors, negative values ​​represent negative correlation, and positive values ​​represent positive correlation. Among the similarity values ​​calculated by the above formula, the isolated trees corresponding to the coefficients close to 1 are selected and added to the isolation forest.

[0067] The height and number of isolated trees can be determined according to the size of the object set of interest and the object set of no interest. Since the sub-sample set of the isolated tree is randomly differentiated from the object set, the larger the size of the object set for the user, the larger the size and number of the sub-sample set that can be allocated. Therefore, if the user has sufficient user interest knowledge in the knowledge graph, more isolated trees will be established, and it is easier to train an isolated forest that meets the requirements. Since the isolated forest decision introduces an integrated method, the average height of the entity object in the forest is converted into the user interest degree. Therefore, the more individuals in the forest, the more stable the algorithm. When the user's interest knowledge is less, the number of isolated trees generated is also less. If all isolated trees cannot accurately classify the sub-sample set, or only a few of them meet the requirements, this will cause the isolated forest to affect the effectiveness of the decision due to the small number of individuals. For this reason, when multiple isolated trees generated in the first round do not meet the requirements, an isolated tree optimization strategy is provided. First, the total similarity values ​​of each isolated tree are sorted from high to low, and one or more isolated trees with the highest total similarity values ​​are selected and defined as the preferred isolated trees; then the preferred isolated tree is copied, and the attributes on one or more nodes in the copy are randomly replaced, and multiple mutant trees are generated from the preferred isolated tree; then the mutant tree continues to classify the subsample set of the preferred isolated tree, and the total similarity value corresponding to the mutant tree is calculated according to the classification result, and the total similarity value is re-sorted, and the tree individuals whose similarity value reaches the set threshold are added to the isolated forest. If the number of tree individuals that meet the requirements still does not meet the minimum number of individuals required for the isolated forest, one or more isolated trees with the highest total similarity values ​​are further selected from the remaining isolated trees, and the above operations are repeated as the preferred isolated trees until an isolated forest that meets the minimum number of individuals is generated.

[0068] The present invention uses the trained isolation forest to calculate the interest of candidate entity objects with respect to users. The candidate entity objects are determined by the user relationship distance. In the knowledge graph, users are associated with other entities through triples to form a relationship path. The relationship path is the relationship sequence of the knowledge graph. Given a relationship path of length n , where h refers to the user to be recommended, is the i-th relationship, is the i-th entity object. Assume that the user has If nm entities have been marked with interest, then nm entities can be obtained from the current path as candidate entity objects. It should be clear that the entity objects marked with interest in the relationship path are not necessarily continuous, and there are multiple relationship paths extending outward from user h. The number of paths depends on the number of entity objects directly associated with the user. The candidate entity objects on all relationship paths are brought together, and then the candidate entity object set is obtained after deduplication. The closer the relationship distance with the user, the stronger the association between the entity object and the user, and the more recommendation value it has. In this embodiment, the length of the relationship path setting is used as the search range of the entity object, and the entities whose relationship distance with the user does not exceed the path length are searched and accumulated and added to the candidate entity object set.

[0069] The candidate entity object set is added to the root node of each isolated tree in the isolation forest. Each isolated tree will classify any candidate entity object, and the output result is the height of the candidate entity object in each isolated tree. The calculation process of the interest of the candidate entity object is: the mean of the path height of the candidate entity object in each isolated tree is counted, and the mean is quantified into the corresponding interest value. The quantization is to map the value range of the path height to the interest value range. Specifically, the formula for converting the path height p to the interest value q can be expressed as:

[0070]

[0071] and Indicates the maximum and minimum values ​​of interest. and It represents the maximum and minimum values ​​of the path height, and recommends a limited number of candidate entity objects with high interest rankings to users.

[0072] On the other hand, in order to implement the above recommendation method, the present invention also provides a user big data recommendation system based on artificial intelligence, such as Figure 3 As shown, the system includes: a knowledge graph construction module, an entity object extraction module, an attribute assignment module, an isolation forest generation module, and a recommendation execution module;

[0073] A knowledge graph construction module is used to build a knowledge graph for user recommendations, wherein the knowledge graph contains the acquired user interest knowledge and entity objects to be recommended;

[0074] The entity object extraction module is used to extract the entity objects with identified interest in the user's interest knowledge;

[0075] An attribute assignment module, used to define multi-dimensional attributes of entity objects of identified interest and assign corresponding attribute values;

[0076] The isolation forest generation module is used to randomly select attributes to generate a limited number of isolated trees, use the isolated trees to classify the entity objects with identified interest, and select the isolated trees with the best classification effect to form an isolation forest;

[0077] The recommendation execution module is used to extract the entity objects to be recommended whose relationship distance with the user is within a set range in the knowledge graph as candidate entity objects, add the candidate entity objects to the isolated trees of the isolation forest for classification, calculate the interest of the candidate entity objects based on the classification results, and select a limited number of candidate entity objects with high interest rankings to recommend to the user.

[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0079] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.

Claims

1. A user big data recommendation method based on artificial intelligence, characterized in that: The method includes: Step 1) Establish a knowledge graph for user recommendation, wherein the knowledge graph includes the acquired user interest knowledge and entity objects to be recommended; Step 2) extracting entity objects with identified interest in user interest knowledge, defining multi-dimensional attributes of the entity objects with identified interest and assigning corresponding attribute values; Step 3) Randomly select attributes to generate a limited number of isolated trees, use the isolated trees to classify the entity objects with identified interest, and select the isolated trees with the best classification effect to form an isolation forest; Step 4) Extract the entity objects to be recommended within the set distance from the user in the knowledge graph as candidate entity objects, add the candidate entity objects to the isolated trees of the isolation forest for classification, calculate the interest of the candidate entity objects based on the classification results, and select a limited number of candidate entity objects with high interest rankings to recommend to the user.

2. The method for recommending user big data based on artificial intelligence according to claim 1, characterized in that: The knowledge graph includes a triple consisting of a head entity object, a relationship and a tail entity object, and the head entity object and the tail entity object are connected by a relationship.

3. The method for recommending user big data based on artificial intelligence according to claim 2, characterized in that: The user interest knowledge includes an interest triple consisting of a user, an interest relationship and an interest object, and a non-interest triple consisting of a user, a non-interest relationship and a non-interest object.

4. The method for recommending user big data based on artificial intelligence according to claim 3 is characterized in that: The interested objects and uninterested objects are divided according to the identified user's interest value in the entity object.

5. The method for recommending user big data based on artificial intelligence according to claim 3, characterized in that: The generation process of the isolated tree is: Step 301) randomly extracting a set number of entity objects from the interested object set and the uninterested object set to form a sub-sample set, and putting the sub-sample set into the root node of the binary tree; Step 302) randomly select an attribute, divide the subsample set into two parts based on the attribute split point, put the entity objects with attribute values ​​less than the split point into the left child node of the current node, and put the entity objects with attribute values ​​not less than the split point into the right child node of the current node; Step 303) recursively executes step 302) in the left child node and the right child node until only one entity object in the child node or the child node reaches the specified height.

6. The method for recommending user big data based on artificial intelligence according to claim 5, characterized in that: The selection process of the isolated tree is as follows: normalizing the path height and interest of each entity object in the subsample set, then performing similarity comparison on the path height and interest of each entity object, calculating the total similarity value of the current isolated tree with respect to the subsample set, sorting the total similarity values ​​of each isolated tree from high to low, and selecting a limited number of isolated trees with high total similarity values ​​to join the isolated forest. The path height is the number of node hops between the node where the entity object is located and the root node in the isolated tree.

7. The method for recommending user big data based on artificial intelligence according to claim 6, characterized in that: The process of calculating the interest of the candidate entity object is as follows: calculating the mean of the path heights of the candidate entity object in each isolated tree, and quantifying the mean into a corresponding interest value.

8. A user big data recommendation system based on artificial intelligence, characterized in that: The system comprises: a knowledge graph construction module, an entity object extraction module, an attribute assignment module, an isolation forest generation module, and a recommendation execution module; A knowledge graph construction module is used to build a knowledge graph for user recommendations, wherein the knowledge graph contains the acquired user interest knowledge and entity objects to be recommended; The entity object extraction module is used to extract the entity objects with identified interest in the user's interest knowledge; An attribute assignment module, used to define multi-dimensional attributes of entity objects of identified interest and assign corresponding attribute values; The isolation forest generation module is used to randomly select attributes to generate a limited number of isolated trees, use the isolated trees to classify the entity objects with identified interest, and select the isolated trees with the best classification effect to form an isolation forest; The recommendation execution module is used to extract the entity objects to be recommended whose relationship distance with the user is within a set range in the knowledge graph as candidate entity objects, add the candidate entity objects to the isolated trees of the isolation forest for classification, calculate the interest of the candidate entity objects based on the classification results, and select a limited number of candidate entity objects with high interest rankings to recommend to the user.

Citation Information

Cited By

  • Information recommendation method and device based on knowledge graph

    CN119988729A

  • Information recommendation method and device based on knowledge graph

    CN119988729B