User portrait construction method and device, computer equipment and storage medium

Through the preprocessing, entity alignment and semantic association of multi-domain knowledge graphs, combined with rule reasoning and probabilistic reasoning, the problems of knowledge graph heterogeneity and data inconsistency are solved, and the accuracy and application value of user portraits are improved.

CN119005189APending Publication Date: 2024-11-22PING AN BANK CO LTD
View PDF 0 Cites 7 Cited by

Patent Information

Application Number
CN202411034805.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the process of building user portraits, the heterogeneity between knowledge graphs leads to complex mapping between entities and relationships, which is difficult to integrate, affecting the comprehensiveness and accuracy of user portraits, and inconsistent data quality, which has redundancy, conflict, blank space and missing question.

Method used

By extracting user-related entities and attribute information from multi-domain knowledge graphs, pre-processing and generating standardized data sets, using entity alignment technology to calculate similarity and construct entity correspondence tables, using ontology mapping rules for semantic associations, and aggregating user attribute information. And combine rule reasoning and probability reasoning to build multi-dimensional user portraits.

Benefits of technology

It realizes the integration and unity of cross-domain knowledge graphs, improves the accuracy and application value of user portraits, and ensures data consistency and information utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119005189A_ABST
    Figure CN119005189A_ABST
Patent Text Reader

Abstract

The invention discloses a user portrait construction method and device, computer equipment and a storage medium, and belongs to the technical field of artificial intelligence. The scheme of the invention comprises a process of constructing a cross-domain knowledge graph from a multi-domain knowledge graph and generating a comprehensive user portrait, a standardized data set is formed by extracting and preprocessing entities and attributes of each domain knowledge graph, cross-domain association is realized by analyzing an ontology structure and establishing inter-domain ontology mapping rules, and the comprehensive user portrait is generated by utilizing the rules. And fusing different domain knowledge maps into a large-scale cross-domain map. And aggregating user cross-domain attribute information to form user entity aggregation information, and constructing a user portrait containing multi-dimensional and comprehensive information by combining rules and probabilistic reasoning and expanding user information. According to the method, the knowledge maps in different fields are fused and unified, so that the utilization rate of information is improved, and the accuracy and the application value of the user portrait are effectively improved through deep data analysis and intelligent reasoning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of artificial intelligence technology, and specifically relates to a user portrait construction method, apparatus, computer equipment and storage medium. Background Art

[0002] In the process of building user portraits, the integration of cross-domain knowledge graphs encountered multiple technical barriers. The primary difficulty lies in the heterogeneity between knowledge graphs. They are based on different ontology architectures and naming conventions, which makes the mapping of entities and relationships complicated and difficult to integrate directly. This heterogeneity not only increases the difficulty of data alignment, but also limits the comprehensiveness and accuracy of user portraits because it is impossible to effectively aggregate cross-domain user behavior characteristics.

[0003] Furthermore, in the process of constructing user portraits, users may use different identity identifiers in multiple fields, and the data quality of knowledge graphs in various fields is uneven, with both redundancy and conflict as well as gaps and omissions. This requires that in the fusion process, both data inconsistencies must be resolved and information gaps must be reasonably filled to ensure the integrity and credibility of user portraits, which poses a severe test to current technical capabilities.

[0004] Therefore, how to identify the heterogeneity between knowledge graphs and accurately capture and unify the fragmented information of knowledge graphs to build a complete user identity system is an urgent problem to be solved. Summary of the invention

[0005] The purpose of the embodiments of the present application is to propose a user portrait construction method, device, computer equipment and storage medium, aiming to improve the aggregation and application capabilities of user attribute information through the integration and analysis of multi-domain knowledge graphs, thereby achieving more accurate user portrait construction and personalized services.

[0006] In order to solve the above technical problems, the present application embodiment provides a method for constructing a user portrait, which adopts the following technical solution:

[0007] A method for constructing a user portrait, the method comprising:

[0008] Extract user-related entities and attribute information from multi-domain knowledge graphs, and pre-process the knowledge graphs of each domain to generate a standardized knowledge graph dataset;

[0009] Based on the standardized knowledge graph dataset, the entity alignment technology is used to calculate the similarity between entities in knowledge graphs of different fields, and the potential cross-domain identical entity pairs are screened out through the set similarity threshold to build an entity correspondence table;

[0010] Using the entity correspondence table and preset ontology mapping rules, semantic associations are made between entities and relationships in knowledge graphs of different fields, and knowledge graphs of various fields are connected into a cross-domain knowledge graph.

[0011] Based on the cross-domain knowledge graph, aggregate the attribute information of each user entity in different fields to obtain user entity aggregate information;

[0012] A method combining rule-based reasoning and probabilistic reasoning is used to expand the aggregated information of user entities and construct a comprehensive user portrait containing multi-dimensional information.

[0013] In order to solve the above technical problems, the embodiment of the present application also provides a user portrait construction device, which adopts the following technical solution:

[0014] A user portrait construction device, the device comprising:

[0015] The entity extraction module is used to extract user-related entities and attribute information from multi-domain knowledge graphs, and pre-process the knowledge graphs of each domain to generate a standardized knowledge graph dataset;

[0016] The entity correspondence module is used to calculate the similarity between entities in knowledge graphs of different fields based on standardized knowledge graph datasets and entity alignment technology, and to filter out potential cross-domain identical entity pairs through the set similarity threshold and construct an entity correspondence table;

[0017] The graph connection module is used to semantically associate entities and relationships in knowledge graphs of different fields using the entity correspondence table and preset ontology mapping rules, and connect the knowledge graphs of various fields into a cross-domain knowledge graph;

[0018] The attribute aggregation module is used to aggregate the attribute information of each user entity in different fields based on the cross-domain knowledge graph to obtain user entity aggregation information;

[0019] The portrait construction module is used to expand the user entity aggregation information by combining rule-based reasoning and probabilistic reasoning, and to construct a comprehensive user portrait containing multi-dimensional information.

[0020] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0021] A computer device comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the user portrait construction method as described in any one of the above items are implemented.

[0022] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0023] A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the user portrait construction method as described in any one of the above.

[0024] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0025] This application generates a standardized knowledge graph dataset by preprocessing knowledge graphs in multiple fields to ensure data consistency and processability. Then, the similarity between entities in knowledge graphs in different fields is calculated through entity alignment technology, and the corresponding similarity threshold is set to screen out potential cross-domain identical entity pairs, thereby constructing an entity correspondence table, which is the key to solving the problem of cross-domain entity consistency.

[0026] According to the entity correspondence table, the present invention further analyzes the ontology structure of the knowledge graph in each field, and establishes mapping rules for ontology concepts between fields, forming a cross-domain ontology correspondence relationship, ensuring the unified representation of the same or similar concepts in different fields, and solving the problem of multi-field ontology integration.

[0027] By using the entity correspondence table and ontology mapping rules, the entities and relationships in the knowledge graphs of different fields are semantically associated, and the knowledge graphs of various fields are connected into a cross-domain knowledge graph to aggregate the attribute information of each user entity in different fields to obtain the user entity aggregate information. Then, the user entity aggregate information is expanded by combining rule-based reasoning and probabilistic reasoning to construct a comprehensive user portrait containing multi-dimensional information.

[0028] Overall, the present invention not only improves the utilization rate of information by integrating and unifying knowledge graphs from different fields, but also effectively improves the accuracy and application value of user portraits through in-depth data analysis and intelligent reasoning. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0030] Figure 1 An exemplary system architecture diagram is shown in which the present application can be applied;

[0031] Figure 2A flowchart of an embodiment of a method for constructing a user portrait according to the present application is shown;

[0032] Figure 3 A schematic diagram of the structure of an embodiment of a user portrait construction device according to the present application is shown;

[0033] Figure 4 A schematic structural diagram of an embodiment of a computer device according to the present application is shown. DETAILED DESCRIPTION

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0037] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0038] 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 web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0039] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.

[0040] Server 105 can be a server that provides various services, such as a background server that provides support for pages displayed on terminal devices 101, 102, and 103. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms.

[0041] It should be noted that the user portrait construction method provided in the embodiment of the present application is generally executed by a server, and accordingly, the user portrait construction device is generally set in the server.

[0042] 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.

[0043] Continue to refer Figure 2 , showing a flow chart of an embodiment of the user portrait construction method according to the present application. The present application embodiment can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0044] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0045] The user portrait construction method comprises the following steps:

[0046] S201, extract user-related entities and attribute information from multi-domain knowledge graphs, and pre-process the knowledge graphs of each domain to generate a standardized knowledge graph dataset.

[0047] Specifically, the system needs to extract user-related entity and attribute information from knowledge graphs in different fields. A knowledge graph is a structured graph used to represent knowledge and its relationships, consisting of graph nodes (entities) and edges (relationships). Knowledge graphs in different fields may contain different types of information, such as user behavior on social media, purchase records on e-commerce websites, and article reading history in news media. These data are usually in various formats and of varying quality, so they need to be preprocessed after extraction, mainly including steps such as data cleaning, deduplication, format conversion, and normalization, in order to convert these data into a unified standardized knowledge graph dataset. This process ensures that subsequent processing steps are performed on a relatively consistent basis, reducing errors and complexity caused by data format and quality issues.

[0048] Furthermore, user-related entities and attribute information are extracted from multi-domain knowledge graphs, and the knowledge graphs of each domain are preprocessed to generate a standardized knowledge graph dataset, including:

[0049] Through the knowledge graph query language SPARQL, based on user attribute information, query entities and entity attributes related to users in multiple domain knowledge graphs;

[0050] Use ontology matching algorithms to match entities and entity attributes in knowledge graphs in different fields;

[0051] According to the ontology mapping rules, the matched entities and entity attributes are mapped into a unified ontology model to form standardized entities and entity attributes;

[0052] The knowledge graph embedding model is used to map the standardized entities and entity attributes into a low-dimensional vector space to obtain vector representations of entities and entity attributes.

[0053] Based on the vector representation of entities and entity attributes, the semantic similarity between entities and entity attributes is calculated by cosine similarity;

[0054] Construct semantic associations between entities and attributes based on the semantic similarity between entities and entity attributes;

[0055] The associated entities and entity attributes are converted into a standardized knowledge graph dataset in accordance with the standard knowledge graph data format.

[0056] In a specific embodiment of the present application, the standardization of the knowledge graph dataset is achieved by adopting technical means such as SPARQL query, ontology matching, embedding model and similarity calculation.

[0057] First, through the knowledge graph query language SPARQL, it is possible to query user-related entities and entity attributes in knowledge graphs in multiple fields. SPARQL is a powerful query language specifically used to retrieve and manipulate data from RDF datasets. Next, an ontology matching algorithm is used to match entities and entity attributes in knowledge graphs in different fields. The role of the ontology matching algorithm is to identify and process similar or identical concepts in different fields to achieve cross-domain knowledge integration. Subsequently, according to the ontology mapping rules, the matched entities and entity attributes are mapped to a unified ontology model. The unified ontology model is a standardized framework for representing and managing knowledge, ensuring that data from different sources can interoperate at the same semantic level. Through the ontology mapping rules, heterogeneous data in various fields can be normalized to form standardized entities and entity attributes. Then, the knowledge graph embedding model is used to map the standardized entities and entity attributes into a low-dimensional vector space. This step can effectively reduce the complexity of the data by converting the high-dimensional knowledge graph data into a low-dimensional vector representation, which is convenient for subsequent calculation and processing. The knowledge graph embedding model uses deep learning technology to learn the implicit representation of the data through training, so that the data still retains the original semantic relationship in the low-dimensional space. Then, based on the vector representation of the entity and entity attribute, the semantic similarity between the entity and the entity attribute is calculated by cosine similarity. Cosine similarity measures their similarity by calculating the cosine value of the angle between the vectors. This step can effectively identify entities and attributes with similar semantics, further enhance the semantic relevance of the data, and construct the semantic association between entities and attributes based on the semantic similarity between the entity and the entity attribute. Through the calculated similarity, the connection between entities and attributes can be established in the knowledge graph, making the knowledge graph more compact and organic. Finally, the associated entities and entity attributes are used to generate a standardized knowledge graph dataset in accordance with the standard knowledge graph data format. The standardized knowledge graph dataset has a good structure and standardization, which is convenient for subsequent storage, retrieval and analysis.

[0058] In the above embodiments, by adopting technical means such as SPARQL query, ontology matching, embedding model and similarity calculation, not only the efficiency and accuracy of data processing are improved, but also the semantic relevance of data in different fields is enhanced, laying a solid foundation for building high-quality user portraits.

[0059] S202, based on the standardized knowledge graph dataset, uses entity alignment technology to calculate the similarity between entities in knowledge graphs of different fields, and screens out potential cross-domain identical entity pairs through the set similarity threshold to construct an entity correspondence table.

[0060] Specifically, entity alignment refers to identifying different entities that represent the same real-world object in different knowledge graphs. By calculating the similarity between entities in knowledge graphs of different fields, common methods include calculations based on attribute similarity, contextual similarity, and structural similarity. Based on these methods, it is possible to evaluate whether two entities are semantically consistent. For example, a user's username on social media and a user's username on an e-commerce website can be used to determine whether they are the same user through similarity calculations. By setting a similarity threshold, potential cross-domain identical entity pairs can be screened out and an entity correspondence table can be constructed. This step is the key to cross-domain knowledge fusion, ensuring that user entities in different fields can be correctly matched.

[0061] Furthermore, based on the standardized knowledge graph dataset, the entity alignment technology is used to calculate the similarity between entities in knowledge graphs of different fields, and the potential cross-domain identical entity pairs are screened out through the set similarity threshold to construct an entity correspondence table, including:

[0062] Obtain low-dimensional vector representations of entities in standardized knowledge graph datasets through knowledge representation learning algorithms;

[0063] Based on the low-dimensional vector representation of the entity, a similarity measurement method is used to calculate the similarity between entities in knowledge graphs of different fields;

[0064] By calculating the similarity between entities in knowledge graphs of different domains and setting the similarity threshold, potential cross-domain identical entity pairs are screened out, and the screened potential cross-domain identical entity pairs are used to construct an entity correspondence table, where the entity correspondence table records the entity pairs determined to be the same entity in knowledge graphs of different domains;

[0065] For each entity pair in the entity correspondence table, a binary classification model is used to determine whether the entity pair is the same entity, and the entity pair classification prediction result is obtained;

[0066] According to the entity pair classification prediction results, determine the entity alignment in the cross-domain knowledge graph and obtain the entity alignment result;

[0067] Based on the entity alignment results, an entity correspondence table of the cross-domain knowledge graph was constructed.

[0068] In a specific embodiment of the present application, based on a standardized knowledge graph dataset, entity alignment technology is used to identify and process the same entity across domains, and an entity correspondence table is constructed, thereby achieving integration of cross-domain knowledge graphs.

[0069] First, the low-dimensional vector representation of the entities in the standardized knowledge graph dataset is obtained through the knowledge representation learning algorithm. Knowledge representation learning algorithms, such as TransE, TransH, Node2Vec, etc., can embed entities and relationships in the knowledge graph into a low-dimensional vector space, retaining the original semantic and structural information. Next, based on the low-dimensional vector representation of the entity, the similarity between entities in the knowledge graphs of different fields is calculated using a similarity measurement method. Commonly used similarity measurement methods include cosine similarity, Euclidean distance, etc. Then, the potential cross-domain identical entity pairs are screened out by calculating the similarity and the preset similarity threshold, ensuring that the screened entity pairs have a high confidence. These potential entity pairs are recorded in the entity correspondence table. Subsequently, for each entity pair in the entity correspondence table, a binary classification model is used to determine whether the entity pair is the same entity. The binary classification model can be a method based on machine learning or deep learning, such as logistic regression, support vector machine (SVM), neural network, etc. According to the entity pair classification prediction results, the entity alignment in the cross-domain knowledge graph is determined to obtain the entity alignment result. Finally, based on the entity alignment results, an entity correspondence table of the cross-domain knowledge graph is constructed, and the correspondence between entities in knowledge graphs in different fields is established to form a unified cross-domain knowledge graph. The cross-domain knowledge graph not only integrates information from multiple fields, but also provides a more comprehensive and rich knowledge representation, providing strong data support for various application scenarios, such as personalized recommendations, user behavior analysis, knowledge discovery, etc.

[0070] In the above embodiments, through technical means such as knowledge representation learning, similarity measurement, and binary classification model, not only the efficiency and accuracy of entity alignment are improved, but also the high quality and consistency of cross-domain knowledge graphs are ensured.

[0071] Furthermore, the user portrait construction method also includes:

[0072] According to the entity correspondence table, analyze the ontology structure of the knowledge graph in each field, establish the mapping rules of ontology concepts between fields, and form cross-domain ontology correspondence;

[0073] Among them, according to the entity correspondence table, the ontology structure of the knowledge graph in each field is analyzed, the mapping rules of ontology concepts between fields are established, and the cross-domain ontology correspondence is formed, which specifically includes:

[0074] According to the entity correspondence table, the ontology structure analysis algorithm is used to analyze the ontology structure of the knowledge graph in each field, and the ontology concept hierarchical relationship of the knowledge graph in each field is obtained;

[0075] The similarity between the hierarchical relationships of ontology concepts in different domain knowledge graphs is calculated through the preset domain ontology concept similarity calculation model;

[0076] According to the similarity between the hierarchical relationships of ontology concepts in knowledge graphs of different fields, the mapping rules of ontology concepts between fields are established;

[0077] The semantic correspondence between ontologies in different domains is determined according to the mapping rules, and the cross-domain ontology correspondence is obtained.

[0078] In a specific embodiment of the present application, the user portrait construction method further analyzes the entity correspondence table, explores the ontology structure of the knowledge graph in each field, and establishes the mapping rules of the ontology concepts between fields. In this way, a cross-domain ontology correspondence can be formed, ensuring the unity and consistency of concepts and relationships in knowledge graphs in different fields, so that the cross-domain knowledge graph is not only aligned at the entity level, but also achieves semantic consistency at the concept and relationship level.

[0079] First, through the entity correspondence table, the ontology structure analysis algorithm is used to systematically analyze the ontology structure of each domain knowledge graph. The ontology structure analysis algorithm can deeply explore the hierarchical relationship and structural characteristics of concepts in each domain knowledge graph, including the parent-child relationship, attribute definition and relationship description of concepts, so as to form a comprehensive understanding of the ontology. Secondly, the similarity between the hierarchical relationships of ontology concepts in different domain knowledge graphs is calculated using the preset domain ontology concept similarity calculation model. Then, according to the similarity between the hierarchical relationships of ontology concepts in different domain knowledge graphs, the mapping rules of ontology concepts between domains are established. The mapping rules define how to map concepts in one domain to similar concepts in another domain, ensuring the semantic correspondence and consistency of concepts between different domains. Finally, the semantic correspondence between ontologies in different domains is determined according to the mapping rules, and then the cross-domain ontology correspondence is obtained, ensuring that the concepts in the cross-domain knowledge graphs have a high degree of semantic matching and relevance.

[0080] In the above embodiments, by establishing and maintaining these cross-domain ontology correspondences, the integration and interaction of knowledge in different fields can be effectively promoted, providing reliable semantic support and data foundation for applications such as user behavior analysis and intelligent recommendation in complex environments.

[0081] S203, using the entity correspondence table and preset ontology mapping rules, semantically associate the entities and relationships in the knowledge graphs of different fields, and connect the knowledge graphs of various fields into a cross-domain knowledge graph.

[0082] Specifically, the knowledge graphs are semantically associated using the entity correspondence table and the preset ontology mapping rules. Ontology mapping rules are rules used to define the relationship between the same or similar concepts in different fields, ensuring that knowledge in different fields can understand and connect with each other at the semantic level. Through these rules, entities and relationships in different fields can be semantically associated. For example, the "friend relationship" in social media is mapped to the "recommendation relationship" in the e-commerce platform. This process connects the knowledge graphs in various fields into a unified cross-domain knowledge graph, so that the user's data in different fields can be associated and analyzed in the same graph.

[0083] Furthermore, the entity correspondence table and the preset ontology mapping rules are used to semantically associate entities and relationships in knowledge graphs in different fields, and connect the knowledge graphs in various fields into a cross-domain knowledge graph, including:

[0084] A knowledge fusion algorithm is adopted, and the cross-domain ontology correspondence is used as a constraint condition. Based on the preset ontology mapping rules, the entities and relationships in the knowledge graphs of different fields are fused to obtain a cross-domain knowledge graph.

[0085] In a specific embodiment of the present application, an entity correspondence table and preset ontology mapping rules are used to realize semantic associations between entities and relationships in knowledge graphs of different domains, thereby constructing a cross-domain knowledge graph.

[0086] Through the entity correspondence table and the preset ontology mapping rules, the entities and relationships in the knowledge graphs of different fields are systematically semantically associated. The entity correspondence table provides matching information between entities, and the ontology mapping rules ensure the semantic consistency of related concepts in different fields. The knowledge fusion algorithm is adopted, and the entities and relationships in the knowledge graphs of different fields are fused with the cross-domain ontology correspondence as the constraint condition. The knowledge fusion algorithm can be based on logical reasoning, graph matching or semantic analysis. By integrating knowledge from different fields, conflicts are eliminated, and duplications are merged to ensure the consistency and integrity of the cross-domain knowledge graph.

[0087] Through the above steps, we can obtain a cross-domain knowledge graph, which realizes the effective integration and interaction of knowledge in different domains at the semantic level, and provides strong support and foundation for complex application scenarios such as intelligent search and cross-domain information recommendation.

[0088] S204: Based on the cross-domain knowledge graph, aggregate the attribute information of each user entity in different fields to obtain user entity aggregate information.

[0089] Specifically, the attribute information of each user entity in different fields is aggregated based on the constructed cross-domain knowledge graph. The purpose of this step is to centrally process the user information scattered in different fields to form a complete user portrait. For example, a user's interest tags on social media, purchase preferences on e-commerce websites, reading habits on news media, etc. can all be aggregated to the same user entity. In this way, the aggregated information of the user entity can be obtained, which contains the user's behavior and characteristics in various fields.

[0090] Furthermore, based on the cross-domain knowledge graph, the attribute information of each user entity in different fields is aggregated to obtain user entity aggregate information, including:

[0091] The entities and entity relationships in the cross-domain knowledge graph are mapped to a low-dimensional vector space through the knowledge graph embedding algorithm to obtain the embedding vectors of the entities and entity relationships.

[0092] According to the link relationship of user entities in the cross-domain knowledge graph, a random walk algorithm is used to sample user entities in the embedding vector space to obtain the attribute information embedding vectors of user entities in different fields;

[0093] The user entity information is clustered based on the attribute information embedding vector to obtain user entity aggregation information containing attribute information of user entities in different fields.

[0094] In a specific embodiment of the present application, a combination of knowledge graph embedding, random walk and clustering algorithms can be used to achieve effective aggregation of user entity attribute information in cross-domain knowledge graphs.

[0095] The entities and entity relationships in the cross-domain knowledge graph are mapped to a low-dimensional vector space through the knowledge graph embedding algorithm to obtain the embedding vectors of the entities and entity relationships. The embedding vectors retain the semantic and structural information of the entities and relationships in the original graph, making subsequent calculations and processing more efficient. According to the link relationship of the user entity in the cross-domain knowledge graph, the random walk algorithm is used to sample the user entity in the embedding vector space. The random walk algorithm simulates the movement path of the user entity in the graph, can capture the attribute information of the user in different fields, and generate the attribute information embedding vector of the user entity. Subsequently, the user entity information is clustered based on the attribute information embedding vector. The clustering algorithm can be K-means, hierarchical clustering or other suitable methods. By clustering the embedding vector, similar user entity attribute information can be aggregated together to obtain user entity aggregate information containing attribute information of user entities in different fields.

[0096] In the above embodiment, by integrating the attribute information of users in different fields in a unified low-dimensional vector space, comprehensive and accurate data support is provided for the construction of user portraits. This aggregated information not only helps to more deeply understand user behaviors and characteristics, but also plays an important role in applications such as personalized recommendations and user analysis.

[0097] Furthermore, the user entity information is clustered based on the attribute information embedding vector to obtain user entity aggregation information containing attribute information of the user entity in different fields, including:

[0098] Perform cluster analysis on the attribute information embedding vectors, and use the k-means clustering algorithm to aggregate similar attribute information embedding vectors to form aggregated user entity attribute information embedding vectors;

[0099] Based on the aggregated user entity attribute information embedding vector, the similarity of user entities in different fields is calculated by cosine similarity;

[0100] Determine whether the similarity of user entities in different fields is greater than a preset similarity threshold;

[0101] If the similarity of the user entity in different fields is greater than the similarity threshold, the attribute information of the corresponding field is added to the user entity aggregation information to obtain the user entity aggregation information including the attribute information of the user entity in different fields.

[0102] In a specific embodiment of the present application, user entity information is clustered based on attribute information embedding vectors, thereby obtaining user entity aggregation information containing user attribute information in different fields.

[0103] First, perform cluster analysis on the attribute information embedding vector, and use the k-means clustering algorithm to aggregate similar attribute information embedding vectors. Secondly, based on the aggregated user entity attribute information embedding vector, calculate the similarity of user entities in different fields through cosine similarity. Subsequently, determine whether the similarity of user entities in different fields is greater than the preset similarity threshold. The purpose of setting the similarity threshold is to filter out those user entities with large differences in attribute characteristics, ensuring that only relatively consistent entity attribute information is added to the final user entity aggregate information. Finally, if the similarity of user entities in different fields meets or exceeds the similarity threshold, the attribute information of the corresponding field is added to the user entity aggregate information.

[0104] In the above embodiment, a comprehensive user entity aggregation information is obtained, which includes attribute information of users in different fields. This information is obtained through aggregation and similarity calculation of embedded vectors and can support the needs of various intelligent applications, such as personalized recommendations, behavioral analysis, etc. This method effectively integrates data from multiple fields and provides important support for accurate modeling of user portraits.

[0105] S205, using a method combining rule-based reasoning and probabilistic reasoning to expand the user entity aggregation information and construct a comprehensive user portrait containing multi-dimensional information.

[0106] Specifically, we further expand the aggregated user information and build a comprehensive user profile containing multi-dimensional information, combining rule-based reasoning and probabilistic reasoning. Rule-based reasoning is based on inferences based on preset rules and logic, such as "if a user often mentions fitness on social media, then he may be interested in health products", while probabilistic reasoning is based on statistics and machine learning methods, using historical data and models for prediction and inference, such as predicting a user's future purchase behavior based on his purchase history. Through the combination of these two reasoning methods, the information of user entities can be comprehensively expanded and improved to build a multi-dimensional user profile that covers multiple aspects such as user interests, behaviors, preferences, and social relationships.

[0107] Furthermore, a method combining rule-based reasoning and probabilistic reasoning is used to expand the aggregated information of user entities and construct a comprehensive user profile containing multi-dimensional information, including:

[0108] Use the preset naive Bayes classifier to classify the user entity aggregation information to obtain the user's basic dimensional attributes and high-dimensional attributes;

[0109] Obtain rule conditions from the predefined rule library and determine whether the basic dimension attributes of the user entity aggregate information meet the rule conditions;

[0110] If the rule conditions are met, the basic dimension attributes are added to the user portrait;

[0111] Based on rule conditions, high-dimensional attributes and basic dimensional attributes in user portraits are inferred and integrated to build a comprehensive user portrait.

[0112] In a specific embodiment of the present application, by combining rule reasoning and probabilistic reasoning methods, the user entity aggregation information is expanded to construct a comprehensive user portrait containing multi-dimensional information, providing a systematic and scientific method to enhance the accuracy and richness of user portraits.

[0113] First, the preset naive Bayes classifier is used to classify the aggregated information of user entities. The naive Bayes classifier is a classification algorithm based on probability theory. It uses the conditional independence assumption between features and can effectively process and classify high-dimensional data. Here, through the naive Bayes classifier, the aggregated information of users can be divided into basic dimension attributes and high-dimensional attributes. The basic dimension attributes include the basic information of users, such as age, gender, geographic location, etc.; the high-dimensional attributes contain more complex and detailed information, such as interests, hobbies, consumption habits, etc.

[0114] Next, obtain the rule conditions from the predefined rule base and determine whether the basic dimension attributes of the user entity aggregate information meet the rule conditions. The rule base stores a large number of empirical or logical rules for judging and reasoning about user behaviors and characteristics. By screening and matching the rule conditions, the information in the user's basic dimension attributes that meets the specific rule conditions can be identified.

[0115] If the basic dimension attributes of the user entity aggregate information meet the rule conditions, these basic dimension attributes are added to the user profile. Through this operation process, the user profile not only contains the initial basic information, but also integrates the attributes that meet the rule conditions, making the profile more detailed and accurate.

[0116] Subsequently, based on the rule conditions, the high-dimensional attributes and the basic dimensional attributes in the user portrait are reasoned and integrated to construct a comprehensive user portrait, which combines the advantages of rule reasoning and probabilistic reasoning. Through rule reasoning, expert knowledge and empirical rules can be used for logical inference; through probabilistic reasoning, statistical data and probability models can be used for uncertainty processing and prediction, and multi-dimensional information can be comprehensively considered to construct a comprehensive and three-dimensional user portrait.

[0117] In the above embodiments, the combination of rule reasoning and probabilistic reasoning is of great significance in processing user portraits. Rule reasoning can ensure the logic and interpretability of the reasoning process, while probabilistic reasoning can handle complex and uncertain data and improve the robustness and adaptability of reasoning. In this way, the constructed user portrait not only contains the user's basic information and high-dimensional information, but also integrates complex behavior patterns and feature information, providing strong data support and decision-making basis for applications such as personalized recommendations, precision marketing, and user behavior analysis.

[0118] In the above embodiments, the present application discloses a method for constructing a user portrait, which belongs to the field of artificial intelligence technology. The present application scheme includes a process of constructing a cross-domain knowledge graph from a multi-domain knowledge graph and generating a comprehensive user portrait, by extracting and preprocessing the entities and attributes of the knowledge graphs in each field, forming a standardized data set, and establishing inter-domain ontology mapping rules by analyzing the ontology structure to achieve cross-domain associations. Using these rules, knowledge graphs in different fields are fused into a large-scale cross-domain graph. Aggregate user cross-domain attribute information to form user entity aggregation information, combine rules with probabilistic reasoning, expand user information, and construct a user portrait containing multi-dimensional and comprehensive information. By integrating and unifying knowledge graphs in different fields, the present application not only improves the utilization rate of information, but also effectively improves the accuracy and application value of user portraits through in-depth data analysis and intelligent reasoning.

[0119] In this embodiment, the user portrait construction method is executed on the electronic device (eg Figure 1 The server shown in the figure) can receive instructions or obtain data through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0120] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned knowledge graph dataset, the above-mentioned knowledge graph dataset can also be stored in a blockchain node.

[0121] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0122] 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 computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0123] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0124] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a user portrait construction device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0125] like Figure 3 As shown, the user portrait construction device 300 described in this embodiment includes:

[0126] The entity extraction module 301 is used to extract user-related entities and attribute information from multi-domain knowledge graphs, and pre-process the knowledge graphs of each domain to generate a standardized knowledge graph dataset;

[0127] The entity correspondence module 302 is used to calculate the similarity between entities in knowledge graphs of different fields based on a standardized knowledge graph dataset and using entity alignment technology, and to screen out potential cross-domain identical entity pairs through a set similarity threshold, and to construct an entity correspondence table;

[0128] The graph connection module 303 is used to semantically associate entities and relationships in knowledge graphs of different fields using the entity correspondence table and preset ontology mapping rules, and connect the knowledge graphs of various fields into a cross-domain knowledge graph;

[0129] The attribute aggregation module 304 is used to aggregate the attribute information of each user entity in different fields based on the cross-domain knowledge graph to obtain user entity aggregation information;

[0130] The portrait construction module 305 is used to expand the user entity aggregation information by combining rule-based reasoning and probabilistic reasoning to construct a comprehensive user portrait containing multi-dimensional information.

[0131] In the above embodiments, the present application discloses a user portrait construction device, which belongs to the field of artificial intelligence technology. The present application scheme includes the process of constructing a cross-domain knowledge graph from a multi-domain knowledge graph and generating a comprehensive user portrait, by extracting and preprocessing the entities and attributes of the knowledge graphs in each field, forming a standardized data set, and by analyzing the ontology structure, establishing inter-domain ontology mapping rules, and realizing cross-domain associations. Using these rules, knowledge graphs in different fields are fused into a large-scale cross-domain graph. Aggregate user cross-domain attribute information to form user entity aggregation information, combine rules and probabilistic reasoning, expand user information, and construct a user portrait containing multi-dimensional and comprehensive information. By integrating and unifying knowledge graphs in different fields, the present application not only improves the utilization rate of information, but also effectively improves the accuracy and application value of user portraits through in-depth data analysis and intelligent reasoning.

[0132] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0133] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmab l eGate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0134] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0135] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the user portrait construction method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0136] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the user portrait construction method.

[0137] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0138] In the above embodiment, the present application discloses a computer device, which belongs to the field of artificial intelligence technology. The scheme of the present application includes the process of constructing a cross-domain knowledge graph from a multi-domain knowledge graph and generating a comprehensive user portrait, by extracting and preprocessing the entities and attributes of the knowledge graphs in each field, forming a standardized data set, and establishing inter-domain ontology mapping rules by analyzing the ontology structure to achieve cross-domain association. Using these rules, knowledge graphs in different fields are fused into a large-scale cross-domain graph. Aggregate user cross-domain attribute information to form user entity aggregation information, combine rules and probabilistic reasoning, expand user information, and construct a user portrait containing multi-dimensional and comprehensive information. By integrating and unifying knowledge graphs in different fields, the present application not only improves the utilization rate of information, but also effectively improves the accuracy and application value of user portraits through in-depth data analysis and intelligent reasoning.

[0139] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the user portrait construction method as described above.

[0140] In the above embodiments, the present application discloses a computer-readable storage medium, which belongs to the field of artificial intelligence technology. The present application scheme includes the process of constructing a cross-domain knowledge graph from a multi-domain knowledge graph and generating a comprehensive user portrait, by extracting and preprocessing the entities and attributes of the knowledge graphs in each field, forming a standardized data set, and establishing inter-domain ontology mapping rules by analyzing the ontology structure to achieve cross-domain associations. Using these rules, knowledge graphs in different fields are fused into a large-scale cross-domain graph. Aggregate user cross-domain attribute information to form user entity aggregation information, combine rules and probabilistic reasoning, expand user information, and construct a user portrait containing multi-dimensional and comprehensive information. By integrating and unifying knowledge graphs in different fields, the present application not only improves the utilization rate of information, but also effectively improves the accuracy and application value of user portraits through in-depth data analysis and intelligent reasoning.

[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0142] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0143] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A method for constructing a user portrait. It is characterized in that The method comprises: Extract user-related entities and attribute information from multi-domain knowledge graphs, and pre-process the knowledge graphs of each domain to generate a standardized knowledge graph dataset; Based on the standardized knowledge graph dataset, the entity alignment technology is used to calculate the similarity between entities in knowledge graphs of different fields, and potential cross-domain identical entity pairs are screened out through the set similarity threshold to construct an entity correspondence table; By using the entity correspondence table and the preset ontology mapping rules, the entities and relationships in the knowledge graphs of different fields are semantically associated, and the knowledge graphs of various fields are connected into a cross-domain knowledge graph; Based on the cross-domain knowledge graph, attribute information of each user entity in different fields is aggregated to obtain user entity aggregate information; A method combining rule-based reasoning and probabilistic reasoning is used to expand the user entity aggregation information and construct a comprehensive user portrait containing multi-dimensional information.

2. The user portrait construction method according to claim 1, It is characterized in that Extract user-related entities and attribute information from multi-domain knowledge graphs, and preprocess the knowledge graphs of each domain to generate a standardized knowledge graph dataset, including: Through the knowledge graph query language SPARQL, based on user attribute information, query entities and entity attributes related to users in multiple domain knowledge graphs; Use ontology matching algorithms to match entities and entity attributes in knowledge graphs in different fields; According to the ontology mapping rules, the matched entities and entity attributes are mapped into a unified ontology model to form standardized entities and entity attributes; A knowledge graph embedding model is used to map the standardized entities and entity attributes into a low-dimensional vector space to obtain vector representations of the entities and entity attributes; Based on the vector representation of the entity and the entity attribute, calculating the semantic similarity between the entity and the entity attribute by cosine similarity; Building semantic associations between entities and attributes based on semantic similarities between the entities and entity attributes; The associated entities and entity attributes are used to generate the standardized knowledge graph dataset in a standard knowledge graph data format.

3. The user portrait construction method according to claim 2, It is characterized in that Based on the standardized knowledge graph dataset, the entity alignment technology is used to calculate the similarity between entities in knowledge graphs of different fields, and potential cross-domain identical entity pairs are screened out through the set similarity threshold to construct an entity correspondence table, including: Obtaining a low-dimensional vector representation of entities in the standardized knowledge graph dataset through a knowledge representation learning algorithm; Based on the low-dimensional vector representation of the entity, a similarity measurement method is used to calculate the similarity between entities in knowledge graphs of different fields; By calculating the similarity between entities in knowledge graphs of different domains and setting the similarity threshold, potential cross-domain identical entity pairs are screened out, and an entity correspondence table is constructed for the screened potential cross-domain identical entity pairs, wherein the entity correspondence table records the entity pairs determined to be the same entity in knowledge graphs of different domains; For each entity pair in the entity correspondence table, determining whether the entity pair is the same entity through a binary classification model, and obtaining a classification prediction result of the entity pair; According to the entity pair classification prediction result, determining the entity alignment in the cross-domain knowledge graph to obtain an entity alignment result; An entity correspondence table of the cross-domain knowledge graph is constructed based on the entity alignment results.

4. The user portrait construction method according to claim 1, It is characterized in that After the step of constructing the entity correspondence table, the method further includes: According to the entity correspondence table, the ontology structure of the knowledge graph of each field is analyzed, and the mapping rules of the ontology concepts between fields are established to form a cross-domain ontology correspondence relationship; According to the entity correspondence table, the ontology structure of each domain knowledge graph is analyzed, and the mapping rules of ontology concepts between domains are established to form cross-domain ontology correspondence, which specifically includes: According to the entity correspondence table, an ontology structure analysis algorithm is used to analyze the ontology structure of the knowledge graph in each field, and obtain the ontology concept hierarchical relationship of the knowledge graph in each field; The similarity between the hierarchical relationships of ontology concepts in different domain knowledge graphs is calculated through the preset domain ontology concept similarity calculation model; According to the similarity between the hierarchical relationships of ontology concepts in knowledge graphs of different fields, the mapping rules of ontology concepts between fields are established; Determine the semantic correspondence between ontologies in different domains according to the mapping rules to obtain the cross-domain ontology correspondence; By using the entity correspondence table and the preset ontology mapping rules, the entities and relationships in the knowledge graphs of different fields are semantically associated, and the knowledge graphs of various fields are connected into a cross-domain knowledge graph, including: A knowledge fusion algorithm is adopted, and the cross-domain ontology correspondence is used as a constraint condition. Based on the preset ontology mapping rules, entities and relationships in knowledge graphs of different fields are fused to obtain the cross-domain knowledge graph.

5. The user portrait construction method according to claim 1, It is characterized in that Based on the cross-domain knowledge graph, attribute information of each user entity in different fields is aggregated to obtain user entity aggregate information, including: Mapping entities and entity relationships in the cross-domain knowledge graph to a low-dimensional vector space through a knowledge graph embedding algorithm to obtain embedding vectors of entities and entity relationships; According to the link relationship of the user entity in the cross-domain knowledge graph, a random walk algorithm is used to sample the user entity in the embedding vector space to obtain the attribute information embedding vector of the user entity in different fields; The user entity information is clustered based on the attribute information embedding vector to obtain user entity aggregation information including attribute information of user entities in different fields.

6. The user portrait construction method according to claim 5, It is characterized in that Clustering the user entity information based on the attribute information embedding vector to obtain user entity aggregation information containing attribute information of the user entity in different fields, including: Performing cluster analysis on the attribute information embedding vectors, and aggregating similar attribute information embedding vectors using a k-means clustering algorithm to form aggregated user entity attribute information embedding vectors; Calculating the similarity of user entities in different fields by cosine similarity based on the aggregated user entity attribute information embedding vector; Determine whether the similarity of the user entity in different fields is greater than a preset similarity threshold; If the similarity of the user entity in different fields is greater than the similarity threshold, the attribute information of the corresponding field is added to the user entity aggregation information to obtain the user entity aggregation information including the attribute information of the user entity in different fields.

7. The user portrait construction method according to claim 1, It is characterized in that The user entity aggregate information is expanded by combining rule-based reasoning and probabilistic reasoning to construct a comprehensive user profile containing multi-dimensional information, including: Using a preset naive Bayes classifier, classify the user entity aggregate information to obtain the user's basic dimensional attributes and high dimensional attributes; Obtaining rule conditions from a predefined rule library, and determining whether the basic dimension attributes of the user entity aggregate information meet the rule conditions; If the rule conditions are met, the basic dimension attributes are added to the user portrait; Based on the rule conditions, the high-dimensional attributes and the basic dimensional attributes in the user portrait are inferred and fused to construct the comprehensive user portrait.

8. A user portrait construction device, It is characterized in that The device comprises: The entity extraction module is used to extract user-related entities and attribute information from multi-domain knowledge graphs, and pre-process the knowledge graphs of each domain to generate a standardized knowledge graph dataset; An entity correspondence module is used to calculate the similarity between entities in knowledge graphs of different fields based on the standardized knowledge graph dataset and adopt entity alignment technology, and to screen out potential cross-domain identical entity pairs through a set similarity threshold to construct an entity correspondence table; A graph connection module, which is used to use the entity correspondence table and the preset ontology mapping rules to semantically associate entities and relationships in knowledge graphs of different fields, and connect the knowledge graphs of various fields into a cross-domain knowledge graph; An attribute aggregation module, used to aggregate the attribute information of each user entity in different fields based on the cross-domain knowledge graph to obtain user entity aggregate information; The portrait construction module is used to expand the user entity aggregate information by adopting a method combining rule-based reasoning and probabilistic reasoning to construct a comprehensive user portrait containing multi-dimensional information.

9. A computer device, It is characterized in that It includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the user portrait construction method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the user portrait construction method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Object matching method based on attribute alignment and feature fusion

    CN119807764A

  • Fault diagnosis method and system for new energy access power distribution network

    CN119827895A

  • Knowledge graph-based semantic association and logic rule reasoning method

    CN120011368A

  • Distributed data dynamic weaving method

    CN120498889A

  • A distributed data dynamic weaving method

    CN120498889B