A method for constructing a knowledge graph of scientific research data for AI digital humans
By constructing paragraph feature word vectors and modifying cosine similarity, the problem of semantic correlation not being considered in the nearest neighbor propagation clustering algorithm is solved, more accurate entity disambiguation and knowledge graph construction are achieved, and the information consistency of medical scientific research data is improved. .
Patent Information
- Application Number
- CN202410571422.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-10
AI Technical Summary
When constructing a medical research knowledge graph, the existing nearest neighbor propagation clustering algorithm fails to effectively consider the semantic correlation between feature word vectors, resulting in inaccurate entity disambiguation results.
By obtaining entities in scientific research documents, we construct paragraph feature word vectors, analyze the similarity between word segments and synonyms, calculate the similarity weight coefficient of aligned feature word vectors, modify the cosine similarity, and then perform entity clustering based on the modified similarity matrix. class to build a knowledge graph.
It improves the accuracy of entity clustering and the information consistency of the knowledge graph, ensuring more reliable organization and understanding of scientific research data.
Smart Images

Figure CN118170927B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method for constructing a scientific research data knowledge graph for an AI digital human. Background Art
[0002] In recent years, the rapid development of artificial intelligence technology has led to the widespread application and development of digital human technology. AI digital human technology refers to the use of computers to simulate human behavior and thinking processes to complete tasks such as human-computer interaction and natural language processing. Knowledge graph technology organizes elements such as entities, attributes, and relationships into a network graph to facilitate computer understanding and processing of knowledge. The combination of AI digital human technology and knowledge graph technology can realize more intelligent digital humans and improve the efficiency and quality of human-computer interaction and natural language processing.
[0003] In the process of building a knowledge graph, entity disambiguation is a key step, and its main purpose is to ensure the accuracy and consistency of information in the knowledge graph. In the field of medical research, entity disambiguation is a very important task. Because medical research data is full of professional terms and named entities, such as disease names, drug names, gene names, protein names, etc., these entities are often highly specific and may have different meanings in different contexts. For example, "diabetes" as a medical term can be both the name of a disease and the manifestation of symptoms. The neighbor propagation clustering algorithm (AP algorithm) is currently commonly used in the entity disambiguation process. In the clustering process of the AP algorithm, the similarity matrix must first be constructed based on the similarity between different feature word vectors, where the similarity is determined based on the square of the negative Euclidean distance between different feature word vectors, without considering the semantic correlation between different feature word vectors, which will lead to inaccurate clustering results. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a method for constructing a knowledge graph of scientific research data for AI digital humans.
[0005] This application provides a method for constructing a knowledge graph of scientific research data for AI digital humans. The technical solution adopted is as follows:
[0006] Acquire scientific research document and extract entities from the scientific research document;
[0007] Construct a feature word vector of the scientific research document paragraph where the entity is located;
[0008] Based on the feature word vector, the similarity between the participles and their synonyms in the corresponding paragraphs of the two scientific research document where the entity is located is analyzed to obtain the alignment between the participles in the corresponding paragraphs of the two scientific research document where the entity is located, and the alignment feature word vector is obtained according to the alignment;
[0009] According to the alignment degree and in combination with the relative position of the paragraph where the entity is located, obtaining the similarity weight coefficients of the two aligned feature word vectors in the corresponding paragraphs of the two scientific research document where the entity is located;
[0010] According to the similarity weight coefficient, combined with the cosine similarity between the two aligned feature word vectors, a modified cosine similarity between the two aligned feature word vectors is obtained;
[0011] According to the modified cosine similarity, a modified similarity matrix between the aligned feature word vectors is obtained, and the entities are clustered based on the modified similarity matrix to complete the construction of the scientific research material knowledge graph.
[0012] In some embodiments of the present invention, constructing a feature word vector of the scientific research document paragraph where the entity is located includes:
[0013] Divide each scientific research document containing the entity into B paragraphs;
[0014] Use JieBa word segmentation tool to segment all paragraphs;
[0015] The TF-IDF method is used to calculate the TF-IDF value of each word in each paragraph, and the TF-IDF value of each word is recorded as the characteristic word vector value of each word, so as to obtain the characteristic word vector of the scientific research document paragraph where the entity is located.
[0016] In some embodiments of the present invention, based on the feature word vector, analyzing the similarity between the segmentation words and their synonyms in the corresponding paragraphs of the two scientific research document where the entity is located, and obtaining the alignment between the segmentation words in the corresponding paragraphs of the two scientific research document where the entity is located, includes:
[0017] Use the word2vec model to calculate the similarity between the word segments in the corresponding paragraphs of the two scientific research documents where the entity is located;
[0018] Using the word2vec model, analyzing the similarity between the synonyms of the segmented words in the corresponding paragraphs of the two scientific research document where the entity is located, and obtaining the similarity coefficient between the synonyms of the segmented words in the corresponding paragraphs of the two scientific research document where the entity is located;
[0019] The similarity between the participles and the similarity coefficients between the synonyms of the participles are weighted to obtain the alignment between the participles in the corresponding paragraphs of the two scientific research documents where the entity is located.
[0020] In some embodiments of the present invention, the similarity coefficient calculation formula between the synonyms of the segmentation words is:
[0021]
[0022] In the formula, Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The similarity coefficient of the synonyms of the participles, Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The number of similarities of synonyms of the participle, Indicates The entity in In the document The first The number of synonyms of a participle, Indicates The entity in In the document The first The number of synonyms of a participle, Indicates all The mean similarity of similar participle synonyms.
[0023] In some embodiments of the present invention, the weights of the similarity between the segmented words and the similarity coefficient between the synonyms of the segmented words are respectively and .
[0024] In some embodiments of the present invention, according to the alignment degree and in combination with the relative position of the paragraph where the entity is located, obtaining the similarity weight coefficients of two aligned feature word vectors corresponding to the paragraphs of the two scientific research document documents where the entity is located includes:
[0025] Calculate the average of the alignments of all the segmented words in a scientific research document paragraph where the entity is located and the segmented words in another scientific research document paragraph where the entity is located;
[0026] Calculate the degree of aggregation between all the segmented words in a scientific research document paragraph where the entity is located and the alignment degree of the segmented words in another scientific research document paragraph where the entity is located;
[0027] According to the alignment, the mean of the alignment and the clustering between the alignments, combined with the relative position of the paragraph where the entity is located, the similarity weight coefficients of the two aligned feature word vectors corresponding to the paragraphs of the two scientific research documents where the entity is located are obtained.
[0028] In some embodiments of the present invention, the similarity weight coefficient calculation formula is:
[0029]
[0030] In the formula, Indicates The entity in In the document Aligned feature word vectors of paragraphs and The entity in In the document Aligned feature word vectors of paragraphs The similarity weight coefficient is Indicates The entity in document or The entity in The total number of paragraphs in documents, Indicates The entity in document or The entity in In the document The number value of the paragraph, Indicates The entity in In the document All the participles in the paragraph and The entity in In the document The alignment of all the words in the paragraph The mean of Indicates The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of all the words in the paragraph The degree of aggregation between Indicates The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of all the words in the paragraph The number of values less than 0.3, Represents the normalization function.
[0031] In some embodiments of the present invention, obtaining a modified cosine similarity between the two aligned feature word vectors according to the similarity weight coefficient and in combination with the cosine similarity between the two aligned feature word vectors includes:
[0032] Calculate the sum of similarity weight coefficients of two aligned feature word vectors of all corresponding paragraphs in the two scientific research document where the entity is located;
[0033] The sum of the similarity weight coefficients is used as the weight of the cosine similarity between the two feature word vectors to obtain the modified cosine similarity between the two feature word vectors.
[0034] In some embodiments of the present invention, a modified similarity matrix between the aligned feature word vectors is obtained according to the modified cosine similarity, and the entities are clustered using a neighbor propagation algorithm based on the modified similarity matrix to obtain entity clusters with the same name as the entities. The entity clusters construct triples within the clusters to complete the construction of the scientific research material knowledge graph.
[0035] In some embodiments of the present invention, the LTP4 model is used to extract entities in the scientific research document.
[0036] Compared with the prior art, the method for constructing a knowledge graph of scientific research data for AI digital humans provided by the present invention has the following beneficial effects:
[0037] The present invention first obtains scientific research documents and extracts entities in the scientific research documents; then constructs the feature word vectors of the scientific research document paragraphs where the entities are located; for the feature word vectors constituted by the scientific research documents in the present invention, the present invention only calculates the numerical difference between the feature word vectors for the distance index of the traditional neighbor propagation algorithm without considering the semantic similarity between the feature word vectors, which leads to errors in the distance index results. First, the present invention constructs feature word vectors in units of paragraphs, and then aligns different feature word vectors by calculating the alignment between the feature word vectors of the corresponding paragraphs, and then corrects the traditional cosine similarity distance index by the paragraph similarity between the two aligned feature word vectors, and then uses the corrected distance index to calculate the similarity between the feature word vectors, thereby obtaining a more accurate clustering result, and the constructed scientific research knowledge graph is more reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A basic flow chart of a method for constructing a scientific research data knowledge graph for an AI digital human provided in an embodiment of the present application;
[0040] Figure 2 A basic flow chart of a method for constructing a feature word vector of a scientific research document paragraph where an entity is located provided in an embodiment of the present application;
[0041] Figure 3 A basic flow chart of a method for obtaining the alignment between word segments in corresponding paragraphs of two scientific research documents where an entity is located, provided in an embodiment of the present application;
[0042] Figure 4 A basic flow chart of a method for obtaining similarity weight coefficients of two feature word vectors corresponding to paragraphs of two scientific research documents where an entity is located, provided in an embodiment of the present application;
[0043] Figure 5 A clustering result of entities with the same name provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a method for constructing a scientific research data knowledge graph for an AI digital human proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0046] In the process of building a knowledge graph, entity disambiguation is a key step, and its main purpose is to ensure the accuracy and consistency of information in the knowledge graph. Therefore, the purpose of the present invention is to correct the distance index between feature word vectors in the neighbor propagation clustering algorithm, thereby obtaining more accurate clustering results, and ultimately ensuring the accuracy and consistency of information in the knowledge graph.
[0047] In order to achieve the above objectives, the present invention provides a method for constructing a knowledge graph of scientific research data for AI digital humans.
[0048] The following is a specific solution of a method for constructing a scientific research data knowledge graph for an AI digital human provided by the present invention, in conjunction with the accompanying drawings.
[0049] Figure 1 A basic flow chart of a method for constructing a scientific research data knowledge graph for an AI digital human provided in an embodiment of the present application; Figure 2 A basic flow chart of a method for constructing a feature word vector of a scientific research document paragraph where an entity is located provided in an embodiment of the present application; Figure 3 A basic flow chart of a method for obtaining the alignment between word segments in corresponding paragraphs of two scientific research documents where an entity is located, provided in an embodiment of the present application; Figure 4 A basic flow chart of a method for obtaining similarity weight coefficients of two feature word vectors corresponding to paragraphs of two scientific research documents where an entity is located, provided in an embodiment of the present application; Figure 5 A clustering result of entities with the same name provided in an embodiment of the present application.
[0050] like Figure 1 As shown, a method for constructing a scientific research data knowledge graph for an AI digital human provided by an embodiment of the present invention specifically includes the following steps:
[0051] S100: Acquire scientific research document and extract entities from the scientific research document.
[0052] The present invention takes the scientific research data in the field of medical research as an example, and first obtains all the scientific research document data in the daily experimental process. Then use the LTP4 model developed by the Social Computing and Information Retrieval Center of Harbin Institute of Technology to extract the entities in each scientific research document. For example, a text is "Long-term high blood pressure will increase the heart load and may cause angina pectoris, myocardial infarction, heart failure and other heart problems." The entities extracted using the LTP4 model are "hypertension", "heart", "angina pectoris", "myocardial infarction", and "heart failure." After obtaining the entities of all scientific research documents, an entity matrix is constructed. The constructed entity matrix is recorded as . The matrix A row in represents a scientific research document, and each column corresponds to an entity. As shown in Table 1:
[0053] Table 1 Entity matrix of scientific research documents
[0054]
[0055] Among them, the first column indicates that entity M1 exists in scientific research document N1, but not in scientific research document N2; the second column indicates that entity M2 exists in both scientific research document N1 and scientific research document N2; the second column indicates that entity M3 does not exist in scientific research document N1, but exists in scientific research document N2.
[0056] At this point, all entities in the scientific research document have been obtained.
[0057] After the entity matrix is obtained according to step S100, each entity exists in multiple scientific research documents. It has different definitions and meanings in different scientific research documents. For example, the entity "hypertension" can be used to describe the cause, treatment method, complications, etc. in the scientific research document. If the entity "hypertension" is not carefully distinguished, then wrong or incomplete results may be obtained when querying specific information later. Therefore, this embodiment corrects the distance index between feature word vectors to disambiguate entities with the same name.
[0058] S200: Construct the feature word vector of the scientific research document paragraph where the entity is located.
[0059] In the process of clustering samples to be disambiguated using the proximity propagation clustering algorithm (AP algorithm), the first thing to do is to calculate the characteristic word vector of the entity in each scientific research document. For each entity in the entity matrix, the traditional method directly extracts the TF-IDF values of all the word segments in the scientific research document as the characteristic word vector when calculating the characteristic word vector of each entity in the scientific research document. However, since each scientific research document usually contains multiple paragraphs such as title, summary, research content, and research results, there may be some paragraphs in different scientific research documents that are similar, while some paragraphs are not similar. If the TF-IDF values of all the word segments in the document are directly extracted as the characteristic word vector without segmented extraction, the similarity results between different characteristic word vectors will be biased.
[0060] Based on the above analysis, if Figure 2 As shown in the figure, the feature word vector of the scientific research document paragraph where the entity is located is constructed, including:
[0061] S201: Divide each scientific research document containing the entity into B paragraphs.
[0062] S202: Use JieBa word segmentation tool to perform word segmentation on all paragraphs.
[0063] S203: Use the TF-IDF method to calculate the TF-IDF value of each word in each paragraph, record the TF-IDF value of each word as the feature word vector value of each word, and obtain the feature word vector of the scientific research document paragraph where the entity is located.
[0064] For Entities, assuming that they exist in A scientific research documents, each of which is divided into B paragraphs, and then use the JieBa word segmentation tool to segment all paragraphs, and then use the TF-IDF method to calculate the TF-IDF value of each word in each paragraph. TF-IDF is an existing method and will not be repeated here. The TF-IDF value of each word is recorded as the feature word vector value of each word. The feature word vector is constructed according to the paragraph, then The entity in The feature word vector in a document can be expressed as ,in Indicates The entity in In the document The feature word vector of each paragraph.
[0065] S300: Based on the feature word vector, analyze the similarity between the segment words and their synonyms in the corresponding paragraphs of the two scientific research documents where the entity is located, obtain the alignment between the segment words in the corresponding paragraphs of the two scientific research documents where the entity is located, and obtain the aligned feature word vector according to the alignment.
[0066] For The entity in In the document The feature word vector of each paragraph and The entity in In the document The feature word vector of each paragraph , since the word segments at the corresponding positions in the two feature word vector sequences are not aligned, the two feature word vector sequences need to be aligned first. The entity in In the document The feature word vector of each paragraph is the benchmark sequence. For the first word segmentation, calculate its and feature word vector The alignment between the word segments in the word is maximized. The corresponding word is Middle Since the present invention acquires medical research knowledge, the acquired words have certain professionalism and the same concept may be expressed by multiple different terms. Therefore, the present invention first uses the public UMLS unified medical system to acquire the synonyms of the words corresponding to each segmentation in the feature word vector.
[0067] Based on the above analysis, if Figure 3 As shown, based on the feature word vector, the similarity between the segmented words and their synonyms in the corresponding paragraphs of the two scientific research documents where the entity is located is analyzed to obtain the alignment between the segmented words in the corresponding paragraphs of the two scientific research documents where the entity is located, including:
[0068] S301: Use the word2vec model to calculate the similarity between the word segments in the corresponding paragraphs of the two scientific research documents where the entity is located.
[0069] First, use the word2vec model to calculate the The entity in In the document The feature word vector of each paragraph Middle The participle and The entity in In the document The feature word vector of each paragraph Middle If the similarity is greater than 0.5, it means that the two words are related, and the corresponding similarity matching value is 1, otherwise it means the two words are unrelated, and the corresponding similarity matching value is 0. The word2vec model is a prior art for calculating the similarity between two word segments, which will not be described in detail here.
[0070] S302: Using the word2vec model, analyze the similarity between the synonyms of the word segments in the corresponding paragraphs of the two scientific research documents where the entity is located, and obtain the similarity coefficient between the synonyms of the word segments in the corresponding paragraphs of the two scientific research documents where the entity is located.
[0071] Since two words may have great semantic differences, but their corresponding synonyms may have more in common, the alignment of the two words is quantified based on the similarity between their synonyms. The entity in In the document The feature word vector of each paragraph Middle Starting from the first synonym of the word, use the word2vec model to calculate its sum The entity in In the document The feature word vector of each paragraph Middle The similarity of all synonyms of a word. If the similarity is greater than 0.5, it means that the feature word vector Middle The first synonym and feature word vector of the word segment Middle The number of matching values corresponding to the synonyms of the word Add 1. Repeat the above method until the feature word vector No. All synonyms of each participle are calculated.
[0072] The similarity coefficient calculation formula between synonyms for constructing participles is:
[0073]
[0074] In the formula, Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The similarity coefficient of the synonyms of the participles, Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The number of similarities of synonyms of the participle, Indicates The entity in In the document The first The number of synonyms of a participle, Indicates The entity in In the document The first The number of synonyms of a participle, Indicates all The mean similarity of similar participle synonyms.
[0075] when When The entity in In the document The first The number of synonyms of the participle is greater than that of the The entity in In the document The first The number of synonyms of a participle. As the denominator, the calculated similarity coefficient will be small, which is not conducive to the calculation of alignment. The larger the value, the The entity in In the document The first The more relative matches there are for the synonyms of the first participle, the The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The greater the similarity coefficient of the synonyms of the participle, the greater the similarity coefficient of the synonyms of the participle. The larger the value of The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The greater the similarity of the synonyms of the first participle, the The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The greater the similarity coefficient of the synonyms of the participle, the greater the similarity coefficient of the synonyms of the participle When The entity in In the document The first The number of synonyms of the participle is less than that of the The entity in In the document The first The number of synonyms of a participle, in this case the denominator is More suitable.
[0076] S303: Weighting the similarity between the segmented words and the similarity coefficient between the synonyms of the segmented words to obtain the alignment between the segmented words in the corresponding paragraphs of the two scientific research document where the entity is located.
[0077] The similarity between the participles and the similarity coefficient between the synonyms of the participles are weighted. The weights of the similarity between the participles and the similarity coefficient between the synonyms of the participles are and , obtain the alignment between the word segments in the corresponding paragraphs of the two scientific research documents where the entity is located. That is, the calculation formula for the alignment between word segments is:
[0078]
[0079] In the formula, Indicates The entity in In the document The first The participle and The entity in In the document The first The alignment of the word segments, Indicates The entity in In the document The first The participle and The entity in In the document The first The similarity coefficient of the participle itself, which takes the value of 0 or 1; Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The similarity coefficient of the synonyms of the participles, is a normalization function; the similarity coefficient of the word segmentation itself is higher than the similarity coefficient of the synonym of the word segmentation, so the weights are set to and .
[0080] S304: Obtaining an alignment feature word vector according to the alignment degree.
[0081] According to the above method, we can calculate the The entity in In the document The first The participle and The entity in In the document The alignment of each word segment in the paragraph. The entity in In the document The first The participle and The entity in In the document The maximum value of all alignments of each word in the paragraph In the The entity in In the document The corresponding participle in the paragraph is recorded as The entity in In the document The first The alignment word of each participle.
[0082] At this point, you can The entity in In the document Each participle and the The entity in of the documents Each word segment of the paragraph is aligned. Then the feature word vector can be obtained and Aligned feature word vectors and .
[0083] S400: According to the alignment degree and the relative position of the paragraph where the entity is located, obtain the similarity weight coefficients of the two aligned feature word vectors in the corresponding paragraphs of the two scientific research document where the entity is located.
[0084] According to the above steps, the feature word vector and After the alignment process, the distance index of the feature word vector after the alignment process is quantified. In the traditional quantization process, only the cosine similarity of the two aligned feature word vectors is considered. and They respectively represent the information of the same segment in different scientific research documents. If the semantic similarity between segments is not considered and only the cosine similarity between the aligned feature word vectors is considered, the quantified distance index cannot accurately express the similarity of the two aligned feature word vectors. Therefore, it is necessary to quantify and correct the traditional cosine similarity according to the semantic similarity between the corresponding segments in different scientific research documents.
[0085] Based on the above analysis, if Figure 4 As shown, according to the alignment degree and the relative position of the paragraph where the entity is located, the similarity weight coefficients of the two aligned feature word vectors of the corresponding paragraphs of the two scientific research documents where the entity is located are obtained, including:
[0086] S401: Calculate the average of the alignments of all the word segments in a scientific research document paragraph where the entity is located and the word segments in another scientific research document paragraph where the entity is located.
[0087] According to the above steps, The entity in In the document The first The participle and The entity in In the document The maximum value of all alignments of each word in the paragraph is taken as the first The entity in In the document The first The participle and The entity in In the document Alignment of word segments in paragraphs . Further, the The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of the word segmentation of the paragraphs, that is, according to the alignment feature word vector Get all alignments in the order of corresponding word segments Calculate the time series of the value. The entity in In the document All the participles of the paragraph and The entity in In the document All alignments of the word segments of the paragraph The mean .
[0088] S402: Calculate the degree of aggregation between all the word segments in a scientific research document paragraph where the entity is located and the degree of alignment of the word segments in another scientific research document paragraph where the entity is located.
[0089] Calculate the The entity in In the document All the participles of the paragraph and The entity in In the document All alignments of the word segments of the paragraph The degree of aggregation between them, using all alignments Variance To express.
[0090] S403: According to the alignment, the mean of the alignment and the concentration between the alignments, combined with the relative position of the paragraph where the entity is located, obtain the similarity weight coefficients of the two aligned feature word vectors of the corresponding paragraphs of the two scientific research documents where the entity is located.
[0091] According to The entity in In the document All the participles of the paragraph and The entity in In the document The number of words in the paragraph whose alignment is less than 0.3, and The entity in In the document All the participles of the paragraph and The entity in In the document All alignments of the word segments of the paragraph The mean and aggregation , combined with the relative position of the paragraph where the entity is located , obtain the two aligned feature word vectors of the corresponding paragraphs of the two scientific research documents where the entity is located and Similarity weight coefficient . Furthermore, the similarity weight coefficient The calculation formula is:
[0092]
[0093] In the formula, Indicates The entity in In the document Aligned feature word vectors of paragraphs and The entity in In the document Aligned feature word vectors of paragraphs The similarity weight coefficient is Indicates The entity in document or The entity in The total number of paragraphs in documents, Indicates The entity in document or The entity in In the document The number value of the paragraph, Indicates The entity in In the document All the participles in the paragraph and The entity in In the document The alignment of all the words in the paragraph The mean of Indicates The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of all the words in the paragraph The degree of aggregation between Indicates The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of all the words in the paragraph The number of values less than 0.3, Represents the normalization function.
[0094] The larger the value, the The closer the paragraph is to the article title, the closer the paragraph is to the article title in the scientific research document, the greater the degree to which it contains the core of the scientific research document. The greater the distance index weight of a paragraph, the greater the corresponding similarity weight coefficient. Represents the alignment feature word vector and The paragraph similarity of The larger the value, the more the feature word vectors are aligned. and The higher the alignment of the middle word, the The smaller the value of, the more aligned the feature word vectors are. and The more concentrated the alignment distribution of the middle word is, the higher the corresponding alignment feature word vector and The greater the paragraph similarity; The smaller the value, the more aligned the feature word vectors are. and The fewer the number of abnormal alignments, the corresponding alignment feature word vector and The greater the paragraph similarity; The larger the value, the more the feature word vectors are aligned. and The larger the similarity weight coefficient is.
[0095] S500: According to the similarity weight coefficient, combined with the cosine similarity between the two aligned feature word vectors, a modified cosine similarity between the two aligned feature word vectors is obtained.
[0096] According to the similarity weight coefficient, combined with the cosine similarity between the two aligned feature word vectors, the modified cosine similarity between the two aligned feature word vectors is obtained, including: calculating the sum of the similarity weight coefficients of the two aligned feature word vectors of all corresponding paragraphs in the two scientific research documents where the entities are located; the sum of the similarity weight coefficients is used as the weight of the cosine similarity between the two aligned feature word vectors to obtain the modified cosine similarity between the two aligned feature word vectors. The calculation formula of the modified cosine similarity is:
[0097]
[0098] In the formula, Represents the alignment feature word vector and The modified cosine similarity of Indicates The entity in In the document Aligned feature word vectors of paragraphs and The entity in In the document Aligned feature word vectors of paragraphs The similarity weight coefficient is Represents the alignment feature word vector and The cosine similarity value between The total number of paragraphs in the scientific research document.
[0099] S600: According to the modified cosine similarity, a modified similarity matrix between the aligned feature word vectors is obtained, entities are clustered based on the modified similarity matrix, and the construction of the scientific research material knowledge graph is completed.
[0100] According to step S500, the modified cosine similarity between two different feature word vectors can be obtained, and then the modified similarity matrix between the aligned feature word vectors can be obtained. Based on the modified similarity matrix, the nearest neighbor propagation algorithm is used to align the first Entities are clustered to obtain entity clusters with the same name as the entity, such as Figure 5 As shown, complete the The final clustering result is the corresponding The final knowledge graph of an entity can have R and The entity clusters with the same name as the entities are constructed within their clusters. That is, when constructing the knowledge graph, the R and The entity clusters with the same name as the entity are constructed into triples in the clusters corresponding to themselves, and the scientific research data knowledge graph is constructed. The scientific research data knowledge graph constructed in this embodiment can organize and understand medical research data more finely, making the constructed knowledge graph richer.
[0101] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0102] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for constructing a knowledge graph of scientific research data for AI digital humans, characterized in that: The method comprises: Acquire scientific research document and extract entities from the scientific research document; Construct a feature word vector of the scientific research document paragraph where the entity is located; Based on the feature word vector, the similarities between the participles and their synonyms in the corresponding paragraphs of the two scientific research document where the entity is located are analyzed to obtain the alignment between the participles in the corresponding paragraphs of the two scientific research document where the entity is located, and the alignment feature word vector is obtained according to the alignment; According to the alignment degree and in combination with the relative position of the paragraph where the entity is located, obtaining the similarity weight coefficients of the two aligned feature word vectors in the corresponding paragraphs of the two scientific research document where the entity is located; According to the similarity weight coefficient, combined with the cosine similarity between the two aligned feature word vectors, a modified cosine similarity between the two aligned feature word vectors is obtained; According to the modified cosine similarity, a modified similarity matrix between the aligned feature word vectors is obtained, and the entities are clustered based on the modified similarity matrix to complete the construction of the scientific research material knowledge graph; Based on the feature word vector, the similarity between the segmented words and their synonyms in the corresponding paragraphs of the two scientific research documents where the entity is located is analyzed to obtain the alignment between the segmented words in the corresponding paragraphs of the two scientific research documents where the entity is located, including: Use the word2vec model to calculate the similarity between the word segments in the corresponding paragraphs of the two scientific research documents where the entity is located; Using the word2vec model, analyzing the similarity between the synonyms of the segmented words in the corresponding paragraphs of the two scientific research document where the entity is located, and obtaining the similarity coefficient between the synonyms of the segmented words in the corresponding paragraphs of the two scientific research document where the entity is located; Weighting the similarity between the segmentations and the similarity coefficients between the synonyms of the segmentations to obtain the alignment between the segmentations in the corresponding paragraphs of the two scientific research documents where the entity is located; The similarity coefficient calculation formula between the synonyms of the participle is: In the formula, Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The similarity coefficient of the synonyms of the participles, Indicates The entity in In the document The first Synonyms and synonyms of the participle The entity in In the document The first The number of similarities of synonyms of the participle, Indicates The entity in In the document The first The number of synonyms of a participle, Indicates The entity in In the document The first The number of synonyms of a participle, Indicates all The mean of the similarities corresponding to similar participle synonyms; According to the alignment degree and in combination with the relative position of the paragraph where the entity is located, the similarity weight coefficients of the two aligned feature word vectors of the corresponding paragraphs of the two scientific research document where the entity is located are obtained, including: Calculate the average of the alignments of all the segmented words in a scientific research document paragraph where the entity is located and the segmented words in another scientific research document paragraph where the entity is located; Calculate the degree of aggregation between all the segmented words in a scientific research document paragraph where the entity is located and the alignment degree of the segmented words in another scientific research document paragraph where the entity is located; According to the alignment degree, the mean of the alignment degrees and the concentration degree between the alignment degrees, combined with the relative position of the paragraph where the entity is located, obtain the similarity weight coefficient of two aligned feature word vectors of the corresponding paragraphs of the two scientific research document documents where the entity is located; The similarity weight coefficient calculation formula is: In the formula, Indicates The entity in In the document Aligned feature word vectors of paragraphs and The entity in In the document Aligned feature word vectors of paragraphs The similarity weight coefficient is Indicates The entity in document or The entity in The total number of paragraphs in documents, Indicates The entity in document or The entity in In the document The number value of the paragraph, Indicates The entity in In the document All the participles in the paragraph and The entity in In the document The alignment of all the words in the paragraph The mean of Indicates The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of all the words in the paragraph The degree of aggregation between Indicates The entity in In the document All the participles of the paragraph and The entity in In the document The alignment of all the words in the paragraph The number of values less than 0.3 in Represents the normalization function.
2. A method for constructing a scientific research data knowledge graph for AI digital human according to claim 1, characterized in that: Construct the feature word vector of the scientific research document paragraph where the entity is located, including: Divide each scientific research document containing the entity into B paragraphs; Use JieBa word segmentation tool to segment all paragraphs; The TF-IDF method is used to calculate the TF-IDF value of each word in each paragraph, and the TF-IDF value of each word is recorded as the characteristic word vector value of each word, so as to obtain the characteristic word vector of the scientific research document paragraph where the entity is located.
3. A method for constructing a scientific research data knowledge graph for AI digital human according to claim 1, characterized in that: The weights of the similarity between the word segments and the similarity coefficient between the synonyms of the word segments are respectively and .
4. A method for constructing a scientific research data knowledge graph for AI digital human according to claim 1, characterized in that: According to the similarity weight coefficient, combined with the cosine similarity between the two aligned feature word vectors, a modified cosine similarity between the two aligned feature word vectors is obtained, including: Calculate the sum of similarity weight coefficients of two aligned feature word vectors of all corresponding paragraphs in the two scientific research document where the entity is located; The sum of the similarity weight coefficients is used as the weight of the cosine similarity between the two aligned feature word vectors to obtain the modified cosine similarity between the two feature word vectors.
5. The method for constructing a scientific research data knowledge graph for AI digital human according to claim 1, characterized in that: According to the modified cosine similarity, a modified similarity matrix between the aligned feature word vectors is obtained, and the entities are clustered using the neighbor propagation algorithm based on the modified similarity matrix to obtain entity clusters with the same name as the entities. The entity clusters construct triples within the clusters to complete the construction of the scientific research material knowledge graph.
6. A method for constructing a scientific research data knowledge graph for AI digital human according to claim 1, characterized in that: The LTP4 model is used to extract entities from the scientific research document.
