A method and system for assisting organization of knowledge graphs in gastroenterology

By screening and updating isolated elements in the covariance matrix in the gastroenterology knowledge map, and optimizing their feature weights, the problem of loss of low-frequency information in dimensionality reduction results caused by the unevenness of element values ​​in high-dimensional vectors is solved, and the knowledge map is improved. Analytical accuracy and completeness.

CN118484544BActive Publication Date: 2024-09-20JINING SNAIL SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925300.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-20
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

In text data in the field of gastroenterology, professional terms and commonly used drug names appear frequently, resulting in uneven element values ​​in high-dimensional vectors and uneven element values ​​in covariance matrices. The result of dimensionality reduction loses low-frequency data detail information, reducing the accuracy of knowledge graphs. Completeness and accuracy.

Method used

By obtaining the isolation degree of each element in the covariance matrix, filtering the isolated elements, updating their feature weights, optimizing the covariance matrix to make it more uniform, and using principal component analysis for dimensionality reduction to ensure that the dimensionality reduction results contain low-frequency information.

Benefits of technology

It improves the accuracy and completeness of dimensionality reduction results, avoids the loss of low-frequency information due to data inhomogeneity, and enhances the analysis effect of the gastroenterology knowledge map.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484544B
    Figure CN118484544B
Patent Text Reader

Abstract

The present invention relates to the field of computer-aided diagnosis technology, and in particular to a method and system for assisting in organizing a knowledge graph of gastroenterology. The method combines the numerical difference between an element in a covariance matrix and its neighboring elements, and the position distribution of elements with the same numerical value as the element to screen isolated elements; obtain the feature weight of the isolated element under each update, and use it to update the numerical value of the isolated element to obtain the numerical value of the isolated element under each update; based on the difference between the numerical value of the isolated element and the numerical value under each update, screen the feature weight of the isolated element under each update to obtain the optimized weight of the isolated element; perform dimensionality reduction processing on the covariance matrix based on the optimized weight of the isolated element. The present invention obtains the optimized weight of isolated elements representing rare nouns when obtaining eigenvalues ​​and eigenvectors, avoids the loss of low-frequency detail information such as rare nouns after dimensionality reduction, and improves the dimensionality reduction effect of gastroenterology knowledge data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided diagnosis, and in particular to a method and system for assisting in organizing a knowledge graph of gastroenterology. Background Art

[0002] The knowledge graph of gastroenterology is a structured knowledge management tool designed to help doctors and researchers organize, manage and query complex information about digestive system knowledge, treatment methods, drugs and pathophysiology. This type of knowledge graph usually consists of entities (such as symptoms, drugs and treatment methods, etc.) and relationships between entities (such as "treatment", "cause" and "has side effects", etc.), which can provide an intuitive way to understand the knowledge structure and internal connections in the field of gastroenterology. Natural language processing technology is usually used to extract information from gastroenterology-related text data to obtain the corresponding high-dimensional vectors. In order to facilitate the organization of the knowledge graph of gastroenterology, the high-dimensional vectors are reduced in dimensionality, and efficient analysis is performed based on the dimensionality reduction results.

[0003] In the process of dimensionality reduction of high-dimensional vectors, professional terms and common drug names frequently appear in text data in the field of gastroenterology, such as "chemotherapy", "radiotherapy" and "targeted therapy" in the field of tumors, while special treatment methods may be relatively rare, which makes the numerical distribution of elements in high-dimensional vectors uneven, resulting in uneven element values ​​in the covariance matrix obtained in the dimensionality reduction analysis of high-dimensional vectors, further causing some principal components in the obtained dimensionality reduction results to over-emphasize high-frequency features and lose low-frequency data, namely, detailed information such as rare nouns in special treatment methods, reducing the completeness and accuracy of the dimensionality reduction results of gastroenterology knowledge. Summary of the invention

[0004] In order to solve the technical problem that the existence of rare nouns in gastroenterology text data leads to uneven element values ​​in the covariance matrix, resulting in errors in the dimensionality reduction results, the purpose of the present invention is to provide a gastroenterology knowledge graph auxiliary sorting method and system, and the technical scheme adopted is as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for assisting in organizing a knowledge graph of gastroenterology, the method comprising:

[0006] Obtain high-dimensional vectors of digestive internal medicine text data; perform dimensionality reduction analysis on the high-dimensional vectors to obtain a covariance matrix;

[0007] Obtaining neighboring elements of each element in the covariance matrix; obtaining the initial isolation degree of each element in the covariance matrix based on the difference between the values ​​of each element in the covariance matrix and its neighboring elements, and the position distribution of elements with the same value as each element; selecting isolated elements from the covariance matrix based on the isolation degree;

[0008] For each isolated element, the isolation degree of the neighboring elements of the isolated element in each update is obtained, and the feature weight of the isolated element in each update is obtained according to the isolation degree of the neighboring elements of the isolated element in each update and the initial isolation degree of the isolated element; the value of the isolated element in the covariance matrix is ​​updated according to the feature weight of the isolated element in each update to obtain the value of the isolated element in each update; according to whether the difference between the value of the isolated element in the covariance matrix and the value in each update meets the selection condition, the feature weight of the isolated element in each update is screened to obtain the optimized weight of the isolated element;

[0009] The covariance matrix is ​​subjected to dimensionality reduction processing based on the optimized weights of the isolated elements.

[0010] Further, the method of obtaining the neighboring elements of each element in the covariance matrix; combining the difference between the values ​​of each element in the covariance matrix and its neighboring elements, and the position distribution of elements with the same value as each element, to obtain the initial isolation degree of each element in the covariance matrix includes:

[0011] Taking the elements other than the element in the preset window of each element in the covariance matrix as the neighboring elements of each element;

[0012] Obtain the same-valued elements of each element in the covariance matrix, where each element has the same value as the same-valued element;

[0013] Obtain a pair of each element in the covariance matrix; wherein the first element of the pair of each element is the number of rows of each element, and the second element is the number of columns of each element; calculate the Euclidean distance between each element in the covariance matrix and each pair of its same-valued elements as the characteristic distance between each element and each of its same-valued elements;

[0014] The initial isolation degree of each element in the covariance matrix is ​​obtained by combining the characteristic distance between each element in the covariance matrix and its elements with the same value, and the difference between the values ​​of each element and its neighboring elements.

[0015] Furthermore, the calculation formula of the initial isolation degree of each element in the covariance matrix is ​​as follows:

[0016] ; In the formula, is the initial isolation degree of the u-th element in the covariance matrix; is the total number of elements with the same value as the u-th element in the covariance matrix; is the characteristic distance between the u-th element in the covariance matrix and its v-th element of the same value; I is the total number of neighboring elements of each element in the covariance matrix; is the value of the u-th element in the covariance matrix; is the value of the i-th neighboring element of the u-th element in the covariance matrix; Norm is the normalization function; is the absolute value function.

[0017] Furthermore, the method for selecting isolated elements from the covariance matrix based on the isolation degree comprises:

[0018] In the covariance matrix, the elements whose initial isolation degree is greater than the preset isolation threshold are regarded as isolated elements.

[0019] Furthermore, the method for obtaining the isolation degree of neighboring elements of the isolated element in each update includes:

[0020] The value of the isolated element in the covariance matrix is ​​recorded as the initial value of the isolated element;

[0021] For each isolated element, according to the difference between the value of the isolated element in the last update and the initial value in each update, the initial isolation degree of the neighboring elements of the isolated element is updated to obtain the isolation degree of the neighboring elements of the isolated element in each update;

[0022] The isolation degree of each isolated element's neighboring elements in the first update is the initial isolation degree of each isolated element's neighboring elements;

[0023] Starting from the second update, the calculation formula for the isolation degree of each isolated element's neighboring elements at each update is as follows:

[0024] ; In the formula, is the isolation degree of the i-th neighboring element of the h-th isolated element under the q-th update; is the value of the h-th isolated element at the q-1th update; is the initial value of the hth isolated element; is the initial isolation degree of the ith neighboring element of the hth isolated element; a is the first preset positive number; Norm is the normalization function.

[0025] Furthermore, the calculation formula of the feature weight of the isolated element in each update is as follows:

[0026] ; In the formula, is the feature weight of the h-th isolated element under the q-th update; is the degree of isolation of the ith neighboring element of the hth isolated element at the qth update; I is the total number of neighboring elements of each element in the covariance matrix; is the mean of the initial isolation degrees of all neighboring elements of the hth isolated element; is the initial isolation degree of the hth isolated element; tanh is the inverse tangent function.

[0027] Furthermore, the method of updating the value of the isolated element in the covariance matrix according to the feature weight of the isolated element in each update to obtain the value of the isolated element in each update includes:

[0028] For each isolated element, a sum of the second preset positive number and the feature weight of the isolated element in each update is used as an adjustment coefficient of the isolated element in each update;

[0029] The product of the adjustment coefficient of the isolated element in each update and the initial value of the isolated element is used as the value of the isolated element in each update; the value of the isolated element in each update is recorded as the updated value of the isolated element in each update.

[0030] Furthermore, the method of screening the feature weights of the isolated elements in each update according to whether the difference between the values ​​of the isolated elements in the covariance matrix and the values ​​in each update meets the selection condition to obtain the optimized weights of the isolated elements includes:

[0031] Normalize the information entropy of the initial values ​​of the elements in the obtained covariance matrix to obtain the original entropy;

[0032] The characteristic matrix under each update is constructed by the updated values ​​of the isolated elements in the covariance matrix under each update and the initial values ​​of the remaining elements except the isolated elements; the information entropy of the values ​​of the elements in the characteristic matrix under each update is normalized to obtain the characteristic entropy under each update;

[0033] The candidate condition is a preset difference threshold;

[0034] When the difference between the original entropy and the characteristic entropy under each update is greater than a preset difference threshold, the characteristic entropy under the next update of each update is obtained, until the difference between the original entropy and the characteristic entropy under each update is less than or equal to the preset difference threshold, and the characteristic weight of the isolated element under each update is used as the optimization weight of the isolated element.

[0035] Furthermore, the method for reducing the dimension of the covariance matrix based on the optimized weights of isolated elements comprises:

[0036] The covariance matrix is ​​analyzed by principal component analysis to reduce the dimension, and the weight of each element in the covariance matrix when obtaining the eigenvalue and eigenvector is used as the contribution weight of each element in the covariance matrix;

[0037] Using the optimized weight of each isolated element as the updated contribution weight of each isolated element;

[0038] Based on the updated contribution weight of each element in the covariance matrix, principal component analysis is used to perform dimensionality reduction analysis on the covariance matrix.

[0039] In the second aspect, another embodiment of the present invention provides a gastroenterology knowledge graph auxiliary organization system, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the steps of any one of the above methods are implemented.

[0040] The present invention has the following beneficial effects:

[0041] In an embodiment of the present invention, due to the presence of rare nouns in the gastroenterology text data, the element values ​​in the high-dimensional vector are uneven, which makes the values ​​of the elements in the covariance matrix uneven, and the covariance matrix is ​​directly related to the dimensionality reduction result, that is, the eigenvalue and the eigenvector, so the analysis is performed based on the covariance matrix; the difference between the values ​​of the elements in the covariance matrix and the surrounding elements reflects the degree of isolation of the elements from the aspect of the values ​​of the elements, and the position distribution of other elements with the same value as each element reflects the degree of isolation of the elements from the aspect of the distribution position of the element values. The above two factors are comprehensively analyzed so that the isolation degree accurately presents the degree of isolation of the elements, and the isolated elements representing the rare nouns selected are more accurate; the isolated elements cause the covariance matrix to be uneven, and in order to improve the accuracy of the dimensionality reduction result, it is given The weight of isolated elements when obtaining dimensionality reduction results. Since common nouns are surrounding rare nouns, the degree of isolation of the neighboring elements of the isolated elements in each update affects the feature weight of the isolated elements in each update. The value of the isolated element in each update is obtained based on the feature weight, and the difference between the value of the isolated element and the value in each update is used to judge the change in the uniformity of the covariance matrix after the value update, and then determine the optimization weight. The covariance matrix is ​​reduced in dimension according to the optimized weight of the isolated element, which increases the uniformity of the covariance matrix without losing the original features of the original matrix, so that the obtained dimensionality reduction result solves the problem of loss of details such as rare nouns after dimensionality reduction due to data unevenness, and improves the dimensionality reduction effect of gastroenterology knowledge data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1A flowchart of the steps of a gastroenterology knowledge graph-assisted organization method provided by an embodiment of the present invention. 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 digestive internal medicine knowledge graph auxiliary organization method and system 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] The specific scenario targeted by the present invention is: in the process of using PCA dimensionality reduction to reduce the dimensionality of the high-dimensional vector in the medical scenario, due to the particularity of the medical text, after natural language processing, the element values ​​in the matrix corresponding to the high- and low-frequency texts will be uneven, which will cause the dimensionality reduction result to lose low-frequency detail information.

[0047] The specific scheme of the gastroenterology knowledge graph auxiliary organization method and system provided by the present invention is described in detail below with reference to the accompanying drawings.

[0048] See also Figure 1 , which shows a flowchart of a method for assisting in organizing a knowledge graph of gastroenterology provided by an embodiment of the present invention, the method comprising:

[0049] Step S1: Obtain a high-dimensional vector of gastroenterology text data; perform dimensionality reduction analysis on the high-dimensional vector to obtain a covariance matrix.

[0050] Specifically, the embodiment of the present invention aims to perform dimensionality reduction analysis on the knowledge graph data of gastroenterology, so that the dimensionality reduction results can accelerate the convergence speed of subsequent machine learning. First, obtain text data such as medical literature, clinical reports and medical databases about gastroenterology; then, use natural language processing (NLP) technology to analyze the text data to obtain high-dimensional vectors after extracting information. These vectors are also called word embeddings, which map words, phrases or text paragraphs to a high-dimensional space. Perform principal component analysis (PCA) on the high-dimensional vectors to achieve dimensionality reduction processing of the knowledge graph data of gastroenterology.

[0051] Among them, NLP technology and PCA technology are well-known technologies to those skilled in the art and will not be described in detail here.

[0052] In the text data about gastroenterology, the strong professionalism of the field will lead to vocabulary bias. For example, texts in specific fields, such as medical literature, often use professional terms and expressions, which leads to the frequent appearance of certain professional words in the text; in texts related to oncology, words such as "chemotherapy", "radiotherapy" and "targeted therapy" may appear frequently, while other general treatment methods are relatively rare, which will cause some element values ​​in the high-dimensional vector to appear frequently, while other element values ​​appear less frequently, resulting in uneven data distribution. In the process of dimensionality reduction analysis of high-dimensional vectors, the uneven distribution of element values ​​in the high-dimensional vectors makes the element values ​​in the covariance matrix obtained in the dimensionality reduction analysis uneven, which further causes the dimensionality reduction results to lose the detailed information of low-frequency data and reduce the integrity of the dimensionality reduction results.

[0053] In order to solve the problem that the dimensionality reduction result loses the detailed information of low-frequency data due to the uneven distribution of element values ​​in the covariance matrix during the dimensionality reduction process, the embodiment of the present invention chooses to assign weights to the low-frequency information when participating in obtaining the eigenvalues ​​and eigenvectors of the covariance matrix on the basis of ensuring the characteristics of the original matrix, and increases the weight of the low-frequency information so that the obtained eigenvalues ​​and eigenvectors can contain the low-frequency information, so as to ensure that the eigenvalues ​​and eigenvectors have low-frequency information when participating in the dimensionality reduction, thereby achieving the integrity of the information in the dimensionality reduction result.

[0054] The covariance matrix of the high-dimensional vector in the PCA dimensionality reduction process is obtained. The covariance matrix is ​​a matrix for feature analysis in the PCA dimensionality reduction process, and the covariance matrix is ​​subsequently analyzed. It should be noted that the method for obtaining the covariance matrix in the PCA dimensionality reduction process is a well-known technology and will not be repeated here.

[0055] Step S2: Obtain the neighboring elements of each element in the covariance matrix; obtain the initial isolation of each element in the covariance matrix based on the difference between the values ​​of each element in the covariance matrix and its neighboring elements, and the position distribution of elements with the same value as each element; select isolated elements from the covariance matrix based on the isolation.

[0056] Specifically, in order to determine the elements corresponding to the low-frequency information in the covariance matrix, the initial isolation of the elements in the covariance matrix is ​​obtained. The higher the isolation of the element, the greater the possibility that it corresponds to a phrase or word that appears less frequently in the text. Therefore, based on the isolation of the element, the isolated elements corresponding to the phrases or words that appear less frequently in the text in the covariance matrix are obtained.

[0057] The difference in the numerical value and distribution position of the elements in the covariance matrix will lead to the inhomogeneity or isolation of the elements in the matrix. The more inhomogeneous the numerical value of the elements in the covariance matrix, the worse the dimensionality reduction effect. The difference between the numerical value of each element in the covariance matrix and the surrounding elements reflects the degree of isolation of the elements in the matrix from the numerical value of the element, and the position distribution of the elements with the same numerical value as each element reflects the degree of isolation of the elements from the distribution position of the element value. The above two factors are analyzed comprehensively so that the isolation degree of the obtained elements accurately presents the degree of isolation of the elements.

[0058] The elements in the preset window of each element in the covariance matrix except the element are taken as the neighboring elements of each element. It should be noted that the length and width of the preset window are both 3, each element is located at the center of its preset window, and the total number of neighboring elements of each element in the covariance matrix is ​​8, which can be set by the implementer according to the specific situation. As an example, assuming that the covariance matrix is , then the neighboring elements of element c22 are c11, c12, c13, c21, c23, c31, c32 and c33; if the total number of neighboring elements of an element in the covariance matrix is ​​not equal to 8, the element will not be analyzed subsequently.

[0059] Preferably, the specific method for obtaining the initial isolation of elements in the covariance matrix is: obtaining the same-value elements of each element in the covariance matrix, and the value of each element is equal to that of its same-value elements; obtaining the binary group of each element in the covariance matrix; wherein the first element of the binary group of each element is the number of rows of each element, and the second element is the number of columns of each element; calculating the Euclidean distance between each element in the covariance matrix and the binary group of each of its same-value elements as the characteristic distance between each element and each of its same-value elements; combining the characteristic distance between each element in the covariance matrix and its same-value elements, and the difference between the values ​​of each element and its neighboring elements, obtaining the initial isolation of each element in the covariance matrix.

[0060] The calculation formula for the initial isolation of each element in the covariance matrix is ​​as follows:

[0061]

[0062] In the formula, is the initial isolation degree of the u-th element in the covariance matrix; is the total number of elements with the same value as the u-th element in the covariance matrix; is the characteristic distance between the u-th element in the covariance matrix and its v-th element of the same value; I is the total number of neighboring elements of each element in the covariance matrix; is the value of the u-th element in the covariance matrix; is the value of the i-th neighboring element of the u-th element in the covariance matrix; Norm is the normalization function; is the absolute value function.

[0063] It should be noted that after the relatively rare proper nouns in medical knowledge are converted into vectors under the text content of different rows and then the covariance matrix is ​​obtained, the rare proper nouns have fewer corresponding elements in the covariance matrix due to their low frequency of occurrence, which makes the corresponding elements of the rare proper nouns in the covariance matrix more dispersed and the rare proper nouns more isolated. Reflects the degree of isolation of an element from the distribution of its value; When is larger, the distribution distance between the u-th element and its same-valued elements is farther, that is, the value of the u-th element is more dispersed in the covariance matrix, and the correlation between the u-th element and its same-valued elements is smaller, making the u-th element more isolated. The bigger.

[0064] When a relatively rare medical term appears in a text, the value of the element in the high-dimensional vector after the transformation of the surrounding text is relatively rare. The greater the difference between the values ​​of the element and its neighboring elements in the covariance matrix, the higher the degree of isolation of the relatively rare medical term. Reflects the isolation degree of an element from the value of the element; In the case of for ,when The larger the value is, the greater the difference in the frequency of occurrence of the corresponding nouns between the u-th element and its neighboring elements in the text, and the higher the degree of isolation of the u-th element. The larger the value; because the numerical difference of the corresponding elements of the common nouns in the covariance matrix will not be too large, in the embodiment of the present invention, the situation where the value of a certain element is much larger than the value of its neighboring elements will basically not occur. The smaller the value, the smaller the number of elements with the same value as the u-th element, which means that the value of the u-th element appears less frequently in the text information, and the lower the degree of isolation of the u-th element. As The weight, expansion , so that the isolation of the uth element is more obvious, then The bigger.

[0065] In the covariance matrix, the elements with isolation degree greater than the preset isolation threshold are regarded as isolated elements, and the isolated elements correspond to relatively rare medical terms in the text. In the embodiment of the present invention, the preset isolation threshold is an empirical value of 0.8, and the implementer can set it according to the specific situation.

[0066] Step S3: for each isolated element, obtain the isolation degree of the neighboring elements of the isolated element in each update, and obtain the feature weight of the isolated element in each update according to the isolation degree of the neighboring elements of the isolated element in each update and the initial isolation degree of the isolated element; update the value of the isolated element in the covariance matrix according to the feature weight of the isolated element in each update to obtain the value of the isolated element in each update; according to whether the difference between the value of the isolated element in the covariance matrix and the value in each update meets the selection condition, screen the feature weight of the isolated element in each update to obtain the optimized weight of the isolated element.

[0067] Specifically, isolated elements are the main factor that causes the uneven covariance matrix. The credibility of the dimensionality reduction result corresponding to the uneven covariance matrix is ​​lower. In order to improve the credibility of the dimensionality reduction result, the isolated elements are given optimized weights. The optimized weights are the weights of each element in the covariance matrix when obtaining eigenvalues ​​and eigenvectors; the greater the isolation, the greater the weight is given to the isolated element. The fundamental significance of changing the weight is to change the value of the element, so that the uniformity of the changed covariance matrix is ​​higher, and the credibility of the eigenvectors and eigenvalues ​​calculated subsequently is improved.

[0068] In the process of obtaining the optimization weight of the isolated element, because the relatively rare text corresponds to more than a single element in the covariance matrix, the neighboring elements of the isolated element show higher isolation, and therefore, the isolation of the neighboring elements of the isolated element affects the isolation of the isolated element. The process of obtaining the optimization weight of the isolated element in the embodiment of the present invention is to continuously update the feature weight of the isolated element, and then obtain the value of the isolated element under each update, judge whether the feature weight meets the conditions based on the uniformity of the elements in the covariance matrix, and finally determine the optimization weight to achieve the effect of increasing the uniformity of the matrix without losing the original matrix features.

[0069] The method for obtaining the isolation degree of the neighboring elements of the isolated element in each update is as follows: the value of the isolated element in the covariance matrix is ​​recorded as the initial value of the isolated element; for each isolated element, the initial isolation degree of the neighboring elements of the isolated element is updated according to the difference between the value of the isolated element in the last update and the initial value, and the isolation degree of the neighboring elements of the isolated element in each update is obtained; the isolation degree of the neighboring elements of each isolated element in the first update is the initial isolation degree of the neighboring elements of each isolated element; starting from the second update, the calculation formula of the isolation degree of the neighboring elements of each isolated element in each update is as follows:

[0070]

[0071] In the formula, is the isolation degree of the i-th neighboring element of the h-th isolated element under the q-th update; is the value of the h-th isolated element at the q-1th update; is the initial value of the hth isolated element; is the initial isolation degree of the ith neighboring element of the hth isolated element; a is the first preset positive number, which takes the empirical value 1, and its function is to prevent the denominator from being 0, resulting in meaningless fractions; Norm is the normalization function.

[0072] It should be noted that, since the fundamental significance of changing the weight of an isolated element when obtaining eigenvalues ​​and eigenvectors is to change the value of the isolated element, in the embodiment of the present invention, The purpose is to use the difference between the value of the isolated element at the q-1th update and the original value to adjust the degree of isolation of the neighboring elements of the isolated element; if the value change of the elements in the covariance matrix is ​​more obvious, the greater the impact on the characteristics and eigenvectors of the covariance matrix, here by Limit the feature weight of isolated elements at each update; when When the value of the neighboring element of the isolated element is larger, the value of the neighboring element in the q-1th update will change more obviously compared with the initial value of the neighboring element of the isolated element, making the isolation degree of the ith neighboring element of the isolated element in the qth update The smaller it is, the larger the feature weight of the isolated element in the qth update, the smaller the update value change of the isolated element in the qth update, and the more the eigenvalues ​​and eigenvectors of the covariance matrix can be retained.

[0073] Since relatively rare texts correspond to more than just a single element in the covariance matrix, the neighboring elements of isolated elements all exhibit higher isolation. The degree of isolation of the neighboring elements of the isolated elements at each update affects the degree of isolation of the isolated elements at each update, thereby affecting the feature weight of the isolated elements at each update.

[0074] The calculation formula for the feature weight of each isolated element at each update is as follows:

[0075]

[0076] In the formula, is the feature weight of the h-th isolated element under the q-th update; is the degree of isolation of the ith neighboring element of the hth isolated element under the qth update; I is the total number of neighboring elements of each element in the covariance matrix; is the mean of the initial isolation degrees of all neighboring elements of the hth isolated element; is the initial isolation degree of the hth isolated element; tanh is the inverse tangent function.

[0077] It should be noted that in the embodiment of the present invention, a larger feature weight is assigned to an isolated element with a larger isolation degree. When the value is larger, the feature weight of the hth isolated element in each update The larger the value is. Since the rarer texts correspond to more than just a single element in the covariance matrix, the neighboring elements of the isolated element all show higher isolation; for The coefficient of The smaller the time, the The larger the value is, the more similar the isolation degree of the neighboring elements of the h-th isolated element is. The neighboring elements of the h-th isolated element all show high isolation. The probability that the noun corresponding to the h-th isolated element in the text data is a rare professional noun is higher, and a larger weight should be given to the isolated element. The bigger.

[0078] The method for obtaining the value of the isolated element in each update is as follows: for each isolated element, the sum of the second preset positive number and the feature weight of the isolated element in each update is used as the adjustment coefficient of the isolated element in each update; the product of the adjustment coefficient of the isolated element in each update and the initial value of the isolated element is used as the value of the isolated element in each update; the value of the isolated element in each update is recorded as the updated value of the isolated element in each update.

[0079] It should be noted that the value range of the feature weight of the isolated element in each update is (-1, 1). In order to increase or decrease the initial value of the isolated element, the second preset positive number b takes the empirical value 1, and the implementer can set it according to the specific situation.

[0080] The calculation formula for the updated value of each isolated element at each update is as follows:

[0081]

[0082] In the formula, is the updated value of the h-th isolated element in the q-th update; is the initial value of the hth isolated element; is the feature weight of the h-th isolated element in the q-th update; b is the second preset positive number.

[0083] It should be noted that when The larger the value, the initial value of the hth isolated element The larger the adjustment, the more the update value of the h-th isolated element in the q-th update The larger it is, the greater the uniformity of the covariance matrix after the qth update, and the better the effect of dimensionality reduction analysis on it.

[0084] The uniformity of the covariance matrix is ​​measured by the information entropy of the numerical values ​​of the elements in the covariance matrix. Based on the difference between the numerical values ​​of the isolated elements in the covariance matrix at each update and the original data, the uniformity of the covariance matrix after each update is judged, and then the weights of the isolated elements when obtaining eigenvalues ​​and eigenvectors, that is, the optimization weights, are determined.

[0085] Preferably, the specific method for obtaining the optimization weight of the isolated element is: normalizing the information entropy of the initial values ​​of the elements in the obtained covariance matrix to obtain the original entropy; constructing the feature matrix under each update by the updated values ​​of the isolated elements in the covariance matrix under each update and the initial values ​​of the remaining elements except the isolated elements; normalizing the information entropy of the values ​​of the elements in the feature matrix under each update to obtain the feature entropy under each update; the candidate condition is a preset difference threshold; when the difference between the original entropy and the feature entropy under each update is greater than the preset difference threshold, the feature entropy under the next update of each update is obtained, until the difference between the original entropy and the feature entropy under each update is less than or equal to the preset difference threshold, the feature weight of the isolated element under each update is used as the optimization weight of the isolated element. Among them, the specific method for obtaining information entropy is a well-known technology and will not be repeated here.

[0086] It should be noted that in the embodiment of the present invention, the preset difference threshold is an empirical value of 0.2, and the implementer can set it according to the specific situation; the information entropy is normalized using a normalization function, and other methods for normalizing the information entropy can also be selected in the embodiment of the present invention, such as function conversion, maximum and minimum normalization, Sigmoid function and other normalization methods, which are not limited here. The greater the degree of numerical non-uniformity of the elements in the covariance matrix, the original entropy should be greater than the characteristic entropy under each update.

[0087] As an example, getting the raw entropy Taking the process of obtaining the optimized weight of the h-th isolated element as an example, we can obtain the isolation degree of the i-th neighboring element of the h-th isolated element under the first update. It should be noted that the embodiment of the present invention sets ; Then get the feature weight of the hth isolated element under the first update , calculate the updated value of the hth isolated element under the first update ; According to the above method, the updated value of each isolated element in the first update is obtained. The updated value of the isolated element in the covariance matrix in the first update is replaced with the corresponding initial value, and the initial values ​​of the remaining elements except the isolated element remain unchanged, and the feature matrix in the first update is obtained, and the feature entropy in the first update corresponding to the feature matrix in the first update is obtained. .like 0.2, indicating that the uniformity of the feature matrix under the first update does not meet the conditions, that is, the isolated elements in the matrix have obvious isolated features, and the effect of using this matrix for dimensionality reduction analysis is poor; if 0.2, indicating that the feature matrix under the first update is relatively uniform. Using this matrix for dimensionality reduction analysis can better retain the low-frequency information in the text data and reduce the feature weight of each isolated element under the first update. as the optimization weight of the isolated element.

[0088] exist 0.2, based on the updated value of the hth isolated element in the first update With initial value , get the isolation degree of the i-th neighboring element of the h-th isolated element under the second update , and then obtain the feature weight of the hth isolated element under the second update , calculate the updated value of the hth isolated element under the second update Replace the corresponding initial values ​​of the isolated elements in the covariance matrix with the updated values ​​in the second update, and keep the initial values ​​of the remaining elements unchanged, to obtain the feature matrix in the second update, and obtain the feature entropy in the second update corresponding to the feature matrix in the second update .like 0.2, indicating that the uniformity of the feature matrix under the second update does not meet the conditions, that is, the isolated elements in the matrix have obvious isolated features, and the effect of using this matrix for dimensionality reduction analysis is poor; if 0.2, indicating that the feature matrix under the second update is relatively uniform. Using this matrix for dimensionality reduction analysis can better retain the low-frequency information in the text data and reduce the feature weight of each isolated element under the second update. As the optimization weight of the isolated element, and so on, obtain the optimization weight of each isolated element.

[0089] Step S4: Perform dimensionality reduction processing on the covariance matrix based on the optimized weights of isolated elements.

[0090] The covariance matrix is ​​analyzed by principal component analysis for dimensionality reduction. The weight of each element in the covariance matrix when obtaining eigenvalues ​​and eigenvectors is used as the contribution weight of each element in the covariance matrix. The optimized weight of each isolated element is used as the updated contribution weight of each isolated element. Based on the updated contribution weight of each element in the covariance matrix, the covariance matrix is ​​analyzed by principal component analysis for dimensionality reduction.

[0091] The eigenvalues ​​and eigenvectors are obtained by using the updated contribution weights of each element in the covariance matrix. The dimensionality reduction results are effectively reduced on the basis of ensuring that the values ​​of the elements in the covariance matrix meet the uniformity. The dimensionality reduction results avoid the effect of losing the data characteristics of some low-frequency data after dimensionality reduction. Using the dimensionality reduction results, that is, the eigenvalues ​​and eigenvectors obtained in the end, for corresponding machine learning, etc., can improve the performance and efficiency of task execution, accelerate convergence, and play a role in rapid auxiliary sorting.

[0092] It should be noted that when the principal component analysis high-dimensional vector is used for dimensionality reduction, the calculation method of the weight of each element in the covariance matrix when obtaining eigenvalues ​​and eigenvectors is a known technology and will not be repeated here. Based on the updated contribution weight of the isolated element in the covariance matrix, the contribution weights of the remaining elements except the isolated element remain unchanged, and the weight of each element in the covariance matrix when obtaining eigenvalues ​​and eigenvectors is the updated contribution weight of each element, and subsequent analysis is performed.

[0093] So far, the present invention is completed.

[0094] In summary, in an embodiment of the present invention, isolated elements are screened in combination with the numerical difference between an element in a covariance matrix and its neighboring elements, and the position distribution of elements with the same numerical value as the element; the feature weight of the isolated element under each update is obtained, and the numerical value of the isolated element is updated using the feature weight to obtain the numerical value of the isolated element under each update; based on the difference between the numerical value of the isolated element and the numerical value under each update, the feature weight of the isolated element under each update is screened to obtain the optimized weight of the isolated element; and the covariance matrix is ​​subjected to dimensionality reduction processing based on the optimized weight of the isolated element. The present invention obtains the optimized weight of isolated elements representing rare nouns when obtaining eigenvalues ​​and eigenvectors, avoids the loss of low-frequency detail information such as rare nouns after dimensionality reduction, and improves the dimensionality reduction effect of digestive internal medicine knowledge data.

[0095] Based on the same inventive concept as the above method embodiment, the embodiment of the present invention also provides a digestive medicine knowledge graph auxiliary arrangement system, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above method embodiment of the digestive medicine knowledge graph auxiliary arrangement are implemented, such as Figure 1 The method for assisting in organizing the knowledge graph of gastroenterology has been described in detail in the above embodiment and will not be repeated here.

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

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

[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for assisting the organization of knowledge graphs in gastroenterology. It is characterized in that The method includes: Obtain high-dimensional vectors of digestive internal medicine text data; perform dimensionality reduction analysis on the high-dimensional vectors to obtain a covariance matrix; Obtaining neighboring elements of each element in the covariance matrix; obtaining the initial isolation degree of each element in the covariance matrix based on the difference between the values ​​of each element in the covariance matrix and its neighboring elements, and the position distribution of elements with the same value as each element; selecting isolated elements from the covariance matrix based on the isolation degree; For each isolated element, the isolation degree of the neighboring elements of the isolated element in each update is obtained, and the feature weight of the isolated element in each update is obtained according to the isolation degree of the neighboring elements of the isolated element in each update and the initial isolation degree of the isolated element; the value of the isolated element in the covariance matrix is ​​updated according to the feature weight of the isolated element in each update to obtain the value of the isolated element in each update; according to whether the difference between the value of the isolated element in the covariance matrix and the value in each update meets the selection condition, the feature weight of the isolated element in each update is screened to obtain the optimized weight of the isolated element; Performing dimensionality reduction processing on the covariance matrix based on the optimized weights of isolated elements; The method of obtaining the neighboring elements of each element in the covariance matrix; combining the difference between the values ​​of each element in the covariance matrix and its neighboring elements, and the position distribution of elements with the same value as each element, to obtain the initial isolation degree of each element in the covariance matrix includes: Taking the elements other than the element in the preset window of each element in the covariance matrix as the neighboring elements of each element; Obtain the same-valued elements of each element in the covariance matrix, where each element has the same value as the same-valued element; Obtain a pair of each element in the covariance matrix; wherein the first element of the pair of each element is the number of rows of each element, and the second element is the number of columns of each element; calculate the Euclidean distance between each element in the covariance matrix and each pair of its same-valued elements as the characteristic distance between each element and each of its same-valued elements; Combining the characteristic distance between each element in the covariance matrix and its elements with the same value, and the difference between the values ​​of each element and its neighboring elements, the initial isolation degree of each element in the covariance matrix is ​​obtained; The calculation formula of the initial isolation degree of each element in the covariance matrix is ​​as follows: ; In the formula, is the initial isolation degree of the u-th element in the covariance matrix; is the total number of elements with the same value as the u-th element in the covariance matrix; is the characteristic distance between the u-th element in the covariance matrix and its v-th element of the same value; I is the total number of neighboring elements of each element in the covariance matrix; is the value of the u-th element in the covariance matrix; is the value of the i-th neighboring element of the u-th element in the covariance matrix; Norm is the normalization function; is the absolute value function; The method for obtaining the isolation degree of neighboring elements of an isolated element in each update includes: The value of the isolated element in the covariance matrix is ​​recorded as the initial value of the isolated element; For each isolated element, according to the difference between the value of the isolated element in the last update and the initial value in each update, the initial isolation degree of the neighboring elements of the isolated element is updated to obtain the isolation degree of the neighboring elements of the isolated element in each update; The isolation degree of each isolated element's neighboring elements in the first update is the initial isolation degree of each isolated element's neighboring elements; Starting from the second update, the calculation formula for the isolation degree of each isolated element's neighboring elements at each update is as follows: ; In the formula, is the isolation degree of the i-th neighboring element of the h-th isolated element under the q-th update; is the value of the h-th isolated element at the q-1th update; is the initial value of the hth isolated element; is the initial isolation degree of the ith neighboring element of the hth isolated element; a is the first preset positive number; Norm is the normalization function; The calculation formula of the feature weight of the isolated element at each update is as follows: ; In the formula, is the feature weight of the h-th isolated element under the q-th update; is the degree of isolation of the ith neighboring element of the hth isolated element at the qth update; I is the total number of neighboring elements of each element in the covariance matrix; is the mean of the initial isolation degrees of all neighboring elements of the hth isolated element; is the initial isolation degree of the hth isolated element; tanh is the inverse tangent function; The method for reducing the dimension of the covariance matrix based on the optimized weights of isolated elements comprises: The covariance matrix is ​​analyzed by principal component analysis to reduce the dimension, and the weight of each element in the covariance matrix when obtaining the eigenvalue and eigenvector is used as the contribution weight of each element in the covariance matrix; Using the optimized weight of each isolated element as the updated contribution weight of each isolated element; Based on the updated contribution weight of each element in the covariance matrix, principal component analysis is used to perform dimensionality reduction analysis on the covariance matrix.

2. A digestive medicine knowledge graph auxiliary arrangement method according to claim 1, It is characterized in that The method for selecting isolated elements from a covariance matrix based on the isolation degree comprises: In the covariance matrix, the elements whose initial isolation degree is greater than the preset isolation threshold are regarded as isolated elements.

3. A digestive medicine knowledge graph auxiliary arrangement method according to claim 1, It is characterized in that The method of updating the values ​​of isolated elements in the covariance matrix according to the feature weights of the isolated elements in each update to obtain the values ​​of the isolated elements in each update includes: For each isolated element, a sum of the second preset positive number and the feature weight of the isolated element in each update is used as an adjustment coefficient of the isolated element in each update; The product of the adjustment coefficient of the isolated element in each update and the initial value of the isolated element is used as the value of the isolated element in each update; the value of the isolated element in each update is recorded as the updated value of the isolated element in each update.

4. A digestive medicine knowledge graph auxiliary arrangement method according to claim 3, It is characterized in that The method of screening the feature weights of the isolated elements in each update according to whether the difference between the values ​​of the isolated elements in the covariance matrix and the values ​​in each update meets the selection condition to obtain the optimized weights of the isolated elements includes: Normalize the information entropy of the initial values ​​of the elements in the obtained covariance matrix to obtain the original entropy; The characteristic matrix under each update is constructed by the updated values ​​of the isolated elements in the covariance matrix under each update and the initial values ​​of the remaining elements except the isolated elements; the information entropy of the values ​​of the elements in the characteristic matrix under each update is normalized to obtain the characteristic entropy under each update; The candidate condition is a preset difference threshold; When the difference between the original entropy and the characteristic entropy under each update is greater than a preset difference threshold, the characteristic entropy under the next update of each update is obtained, until the difference between the original entropy and the characteristic entropy under each update is less than or equal to the preset difference threshold, and the characteristic weight of the isolated element under each update is used as the optimization weight of the isolated element.

5. A knowledge graph-assisted organization system for gastroenterology. It is characterized in that The system includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the gastroenterology knowledge graph auxiliary organization method described in any one of claims 1 to 4 are implemented.