ICD automatic coding method and device for surgical operation text in Chinese electronic medical records

By constructing unsupervised semantic graphs and gated graph neural networks, the ICD coding of surgical operation texts is automatically determined, which solves the time-consuming and error-prone problems of traditional ICD coding and achieves accurate automated coding, which is suitable for the actual needs of Chinese hospitals.

CN114065744BActive Publication Date: 2024-09-27BEIJING UNIV OF POSTS & TELECOMM
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111373822.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-09-27
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

There are a lot of manual operations in the traditional ICD coding process, which are time-consuming and error-prone. Moreover, the coding versions of different hospitals vary greatly, which increases the difficulty of coding.

Method used

An unsupervised semantic graph is constructed based on the BERT unsupervised pre-training model, global information interaction is performed through the gated graph neural network, and node feature vectors are aggregated to automatically determine the ICD code of the surgical operation text.

Benefits of technology

It achieves accurate automatic coding of surgical operation texts, saves manual time, reduces error rates, and is suitable for the actual needs of Chinese hospitals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114065744B
    Figure CN114065744B
Patent Text Reader

Abstract

The present invention relates to the field of natural language processing technology, and in particular to an ICD automatic encoding method and device for surgical operation text in Chinese electronic medical records, the method comprising: taking the surgical operation text in the structured electronic medical record as input, constructing nodes and edges containing unsupervised contextual semantic information based on the BERT unsupervised pre-training model, and obtaining an unsupervised semantic graph of each surgical operation text; inputting the constructed unsupervised semantic graph into a gated graph neural network, performing global information interaction, and obtaining a semantic graph fused with contextual semantic information and global semantic information; based on the obtained semantic graph fused with semantic information, aggregating the representation of each node to obtain an aggregated feature vector; classifying according to the aggregated feature vector, and determining the ICD code corresponding to the surgical operation text. The present invention integrates the contextual semantic information and global information in the surgical operation text, can achieve better representation performance based on the text itself, and realizes accurate encoding of the surgical operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to an ICD automatic encoding method, device, electronic equipment and storage medium for Chinese electronic medical record surgical operation text. Background Art

[0002] The International Classification of Diseases (ICD) is an international unified disease classification method developed by the WHO. It classifies diseases into categories based on their etiology, pathology, clinical manifestations, and anatomical location, making them an orderly combination and expressing them in a coding method. Today, ICD codes, as a unified classification standard, have been widely used in medical care tasks such as medical record management and medical insurance reimbursement in hospitals around the world.

[0003] ICD coding is an important task in hospital medical management. However, the traditional coding process involves a lot of manual operations. In traditional public hospitals in China, the ICD coding process first requires the attending physician to fill in the clinical diagnosis description in the electronic medical record according to the patient's condition, and then the professional coder in the hospital's medical record room determines the corresponding coding standard name based on the clinical diagnosis description. Finally, the coding standard name is converted into the corresponding ICD code and entered into the Diagnosis Related Group (DRG) system for medical statistical analysis. The whole process is very time-consuming and prone to errors. Summary of the invention

[0004] Based on the problem that manual ICD coding is time-consuming, labor-intensive and error-prone, the present invention provides an ICD automatic coding method, device, electronic device and storage medium for surgical operation text in Chinese electronic medical records, which can automatically realize ICD precise coding for structured short text of surgical operations in electronic medical records.

[0005] In a first aspect, an embodiment of the present invention provides an ICD automatic coding method for Chinese electronic medical record surgical operation text, comprising:

[0006] Taking the surgical operation text in the structured electronic medical record as input, based on the BERT unsupervised pre-training model, nodes and edges containing unsupervised contextual semantic information are constructed to obtain an unsupervised semantic graph for each surgical operation text; wherein, the nodes of the unsupervised semantic graph include chapter-level nodes, document-level nodes and up to four axis word nodes; the feature vector of the chapter-level node contains the contextual semantic information of the chapter to which the surgical operation text belongs, the feature vector of the document-level node contains the contextual semantic information of the entire surgical operation text, the feature vectors of the four axis word nodes respectively contain the four axis word semantic information of the surgical operation site, procedure, approach and disease nature, and the weight of the edge of the unsupervised semantic graph contains the semantic influence information between the two connected nodes in the surgical operation text;

[0007] Inputting the constructed unsupervised semantic graph into a gated graph neural network to perform global information interaction to obtain a semantic graph with semantic information fusion;

[0008] Based on the semantic graph obtained by fusion of semantic information, the representations of each node are aggregated to obtain an aggregated feature vector;

[0009] Classification is performed based on the aggregated feature vectors to determine the ICD code corresponding to the surgical operation text.

[0010] Optionally, constructing a node containing unsupervised contextual semantic information based on the BERT unsupervised pre-training model includes:

[0011] Inputting the surgical operation text into a first BERT model, searching for the encoded chapter corresponding to the surgical operation text, and determining the chapter title text; the first BERT model includes a BERT unsupervised pre-training model and a softmax layer;

[0012] Input the chapter title text into a second BERT model, using the representation of the [CLS] character as the initial feature vector of the chapter-level node;

[0013] Input the surgical operation text into a named entity recognition model, extract phrases of four axis words, namely, part, procedure, approach, and nature of disease, and determine the phrase position of each axis word;

[0014] The surgical operation text is input into the second BERT model, and the representation of the [CLS] character is used as the initial feature vector of the document-level node, and the average value of the representation of the characters involved in each axis word phrase is used as the initial feature vector of the corresponding axis word node.

[0015] Optionally, constructing an edge containing unsupervised contextual semantic information based on the BERT unsupervised pre-training model includes:

[0016] Calculate the directional influence relationship between every two of the axis word nodes;

[0017] Calculating the directional influence relationship between each of the axis word nodes and the document level node;

[0018] Calculating a directed influence relationship between the chapter-level node and the document-level node;

[0019] An influence matrix is ​​constructed based on the influence relationship, and the constructed influence matrix is ​​converted into a normalized adjacency matrix using an activation function to determine the weight of each edge in the unsupervised semantic graph.

[0020] Optionally, calculating the directional influence relationship between two axis word nodes includes:

[0021] Assume that the two axis word nodes are the first axis word node and the second axis word node respectively, use the [MASK] character to mask the phrase corresponding to the first axis word node in the surgical operation text, input the second BERT model, and obtain the average value of the representation of the characters involved in the phrase corresponding to the first axis word node as the first average value;

[0022] Using the [MASK] character to mask the phrases corresponding to the first axis word node and the second axis word node in the surgical operation text, inputting the phrases into the second BERT model, and obtaining the average value of the representations of the characters involved in the phrase corresponding to the first axis word node as the second average value;

[0023] Based on the Euclidean distance, the difference between the first average value and the second average value is calculated as the influence weight of the second axis word node on the first axis word node.

[0024] Optionally, calculating the directional influence relationship between the axis word node and the document-level node includes:

[0025] Using the [MASK] character to mask the phrase corresponding to the axis word node in the surgical operation text, inputting the second BERT model, using the representation of the [CLS] character as the second document parameter, and using the average value of the representation of the characters involved in the phrase corresponding to the axis word node as the second axis word parameter;

[0026] Taking the initial feature vector of the document-level node as the first document parameter, and calculating the difference between the first document parameter and the second document parameter based on the Euclidean distance as the influence weight of the axis word node on the document-level node;

[0027] The initial feature vector of the axis word node is used as the first axis word parameter, and based on the Euclidean distance, the difference between the first axis word parameter and the second axis word parameter is calculated as the influence weight of the document-level node on the axis word node.

[0028] Optionally, calculating the directed influence relationship between the chapter-level node and the document-level node includes:

[0029] The softmax layer in the first BERT model is assigned to the weight of the corresponding encoded chapter of the surgical operation text as the influence weight of the document-level node on the chapter-level node, and the influence weight of the chapter-level node on the document-level node.

[0030] Optionally, the representation of each aggregating node includes:

[0031] A weight is assigned to each node of the semantic graph through the attention mechanism, and the representation of each node is extracted based on the average function and the maximum pooling function.

[0032] In a second aspect, an embodiment of the present invention further provides an ICD automatic encoding device for Chinese electronic medical record surgical operation text, comprising:

[0033] A graph composition module is used to take the surgical operation text in the structured electronic medical record as input, and based on the BERT unsupervised pre-trained model, construct nodes and edges containing unsupervised contextual semantic information to obtain an unsupervised semantic graph for each surgical operation text; wherein the nodes of the unsupervised semantic graph include chapter-level nodes, document-level nodes, and up to four axis word nodes; the feature vector of the chapter-level node contains the contextual semantic information of the chapter to which the surgical operation text belongs, the feature vector of the document-level node contains the contextual semantic information of the entire surgical operation text, and the feature vectors of the four axis word nodes respectively contain the four axis word semantic information of the surgical operation site, procedure, approach, and disease nature; the weight of the edge of the unsupervised semantic graph contains the semantic influence information between the two connected nodes in the surgical operation text;

[0034] A fusion module is used to input the constructed unsupervised semantic graph into a gated graph neural network to perform global information interaction to obtain a semantic graph with fused semantic information;

[0035] An aggregation module is used to aggregate the representations of each node based on the semantic graph fused with the obtained semantic information to obtain an aggregated feature vector;

[0036] The classification module is used to perform classification according to the aggregated feature vectors to determine the ICD code corresponding to the surgical operation text.

[0037] In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of this specification is implemented.

[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method described in any embodiment of this specification.

[0039] The present invention provides an ICD automatic encoding method, device, electronic device and storage medium for surgical operation text in Chinese electronic medical records. The technical solution of the present invention constructs an unsupervised semantic graph based on the surgical operation text, extracts key semantic information in the surgical operation text; inputs the unsupervised semantic graph into a gated graph neural network for global information interaction, obtains a semantic graph with semantic information fusion, and further integrates the key semantic information contained in each node; based on the semantic graph with semantic information fusion, aggregates the representation of each node, obtains an aggregated feature vector, integrates the contextual semantic information and global information in the surgical operation text; classifies according to the aggregated feature vector, and determines the precise ICD encoding corresponding to the surgical operation text. The present invention fully considers the connotation characteristics of the surgical operation text, effectively integrates the contextual semantic information based on the unsupervised pre-training model and the global information based on the graph in each surgical operation text, structurally strengthens the axis word knowledge and chapter knowledge in the surgical operation text, enhances the semantic representation ability of the surgical operation text, fully extracts the text information features, and then automatically performs ICD encoding according to the extracted information features. The present invention can effectively save labor and has a low error rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are 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.

[0041] Figure 1 This is a step diagram of an ICD automatic coding method for Chinese electronic medical record surgical operation text provided by an embodiment of the present invention;

[0042] Figure 2 It is a schematic diagram of a node construction process provided by an embodiment of the present invention;

[0043] Figure 3 is a schematic diagram of an edge construction process provided by an embodiment of the present invention;

[0044] Figure 4 This is an overall flow chart of an ICD automatic coding method for Chinese electronic medical record surgical operation text provided by an embodiment of the present invention;

[0045] Figure 5 It is a step diagram of another method for automatic ICD coding of Chinese electronic medical record surgical operation text provided by an embodiment of the present invention;

[0046] Figure 6 is a hardware architecture diagram of an electronic device provided by an embodiment of the present invention;

[0047] Figure 7 It is a structural diagram of an ICD automatic encoding device for Chinese electronic medical record surgical operation text provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0049] As mentioned above, the traditional ICD coding process involves a lot of manual work, which is not only time-consuming but also prone to errors. In addition, there is also the problem of different coding versions used by hospitals in various provinces and cities. The codes and corresponding standard names in each version are quite different, which further increases the difficulty of accurate ICD coding.

[0050] ICD coding can be divided into two parts: disease coding and surgical operation coding. Among them, disease coding codes and classifications of patients' diseases according to unstructured long texts such as disease diagnosis and clinical reports in hospital medical records. Surgical operation coding codes and classifications of patients' surgical operations according to structured short texts of surgical operation descriptions in hospital medical records. The present invention focuses on realizing ICD automatic coding of structured short texts of surgical operation in Chinese electronic medical records.

[0051] Most current ICD automatic coding implementations are based on traditional machine learning methods (such as support vector machines (SVM) and Levenshtein distance) and temporal deep learning methods (such as convolutional neural networks (CNN) and recurrent neural networks (RNN)), and attempt to introduce external knowledge to enrich the information of case texts. However, these methods have limited representation capabilities for structured short texts such as surgical operation texts, insufficient information feature extraction, and high automatic coding error rates.

[0052] The present invention proposes to globally represent the surgical operation text itself based on a graph neural network without introducing external knowledge. At the same time, in view of the powerful representation ability of the contextual semantics in the text by the unsupervised pre-trained model in the prior art (such as the BERT model), the present invention further effectively integrates the global information of the surgical operation text based on the graph and the contextual semantic information based on the unsupervised pre-trained model to enhance the semantic representation ability of the surgical operation text.

[0053] In order to enhance the semantic representation capability of surgical operation text, the present invention fully considers the connotation characteristics of surgical operation text:

[0054] (1) The surgical operation text includes up to four types of axis words: location, procedure, approach, and nature of the disease. For example, "appendectomy" is composed of two axis words: location and procedure, and "pituitary adenoma resection, forehead" is composed of four axis words: location, procedure, approach, and nature of the disease. These four types of axis words play a decisive role in the classification of surgical operation codes in the text.

[0055] (2) The ICD codes for surgical procedures are divided into 18 chapters in ICD-9-CM3 according to the different parts of the body to which they belong. The surgical procedure text itself also contains implicit chapter information that needs to be mined.

[0056] In view of this, the present invention constructs a heterogeneous graph containing nodes composed of chapter titles, texts and up to four axis words for each surgical operation text, so as to achieve structural reinforcement of the axis word knowledge and chapter knowledge in the surgical operation text. At the same time, the present invention calculates the semantic dependency weight edges between nodes based on the unsupervised BERT model, and initializes the semantic features of each node in the graph based on the unsupervised BERT model. After global propagation through the graph neural network, the effective fusion of the global information based on the graph and the contextual semantic information based on the unsupervised pre-training model is achieved, thereby completing the inductive representation learning of the surgical operation text, and finally achieving accurate automatic encoding of the surgical operation text.

[0057] The specific implementation of the above concept is described below.

[0058] Please refer to Figure 1The embodiment of the present invention provides an ICD automatic encoding method for Chinese electronic medical record surgical operation text (hereinafter referred to as the method of the present invention), the method comprising:

[0059] Step 100, taking the surgical operation text in the structured electronic medical record as input, based on the BERT unsupervised pre-trained model, constructing nodes and edges containing unsupervised contextual semantic information, and obtaining an unsupervised semantic graph for each surgical operation text.

[0060] Among them, the nodes of the unsupervised semantic graph include chapter-level nodes, document-level nodes, and up to four axis word nodes. The feature vector of the chapter-level node contains the contextual semantic information of the chapter to which the surgical operation text belongs, the feature vector of the document-level node contains the contextual semantic information of the entire surgical operation text, and the feature vectors of the four axis word nodes contain the four axis word semantic information of the surgical operation site, procedure, approach, and disease nature. The weight of the edge of the unsupervised semantic graph can be calculated based on the BERT unsupervised pre-training model, which contains the semantic influence information between the two connected nodes in the surgical operation text.

[0061] At present, China's disease coding usually refers to the 1CD-10 version, and surgical operation coding usually refers to the ICD-9-CM3 version. The present invention analyzes the characteristics of surgical operation coding texts from a medical perspective: 1) All surgical operation texts can be divided into 18 chapters, and the chapters are highly related to the parts described in the text; 2) Standard surgical operation texts are mostly composed of four axis words: part, procedure, approach, and nature of the disease. These axis words contain the core knowledge of the text and can play a decisive role in automatic coding; 3) The original surgical operation text itself contains semantic information that is helpful for accurate coding. Therefore, the present invention constructs a corresponding unsupervised semantic graph (SMP-Graph) for each surgical operation text. The nodes in the unsupervised semantic graph include three types: chapter-level nodes, axis-word nodes, and document-level nodes. Among them, there are one chapter-level node and one document-level node, and there are at most four axis-word nodes. For some surgical operation texts, such as "appendectomy", which consists of two axis words, part and procedure, after constructing the unsupervised semantic graph, there may be only two axis word nodes, corresponding to the two axis words, part and procedure, that is, the feature vectors of these two nodes contain the semantic information of the two axis words, part and procedure of the surgical operation. The weight of the edge connecting the nodes reflects the degree of semantic influence (or degree of dependence) between the two nodes connected by the edge.

[0062] In step 102, the constructed unsupervised semantic graphs of each surgical operation text are input into the gated graph neural network (GGNN) respectively, and the global information of each unsupervised semantic graph is interacted respectively to achieve the deep fusion of the unsupervised contextual semantic information and the global information of the graph network, and obtain the semantic graph with the fusion of semantic information.

[0063] The present invention uses GGNN to realize global information interaction between nodes. GGNN learns node representation through the neural network of gated recurrent unit (GRU), thereby fusing neighborhood information and enriching the representation of each node itself. The information fusion between nodes is continuously strengthened with the increase of interaction time t, and finally the global information interaction of the entire structure can be realized. In this way, the global information based on the graph and the unsupervised contextualized semantic information are finally internally fused, further enhancing the semantic representation ability of the surgical operation text, and obtaining the corresponding structure-enhanced unsupervised semantic graph representation output, that is, the semantic graph of semantic information fusion.

[0064] Step 104 , for each surgical operation text, a calculation is performed based on the semantic graph obtained by fusion of the corresponding semantic information, and the representation of each node is aggregated to obtain an aggregated feature vector.

[0065] After obtaining the structure-enhanced unsupervised semantic graph representation output, the representations of all nodes are aggregated in the downstream reading stage to make the final classification prediction. Aggregating the representations of each node is preferably based on operations such as attention mechanism and maximum pooling.

[0066] Step 106, classify each surgical operation text according to the aggregated feature vector, and finally determine the ICD code corresponding to each surgical operation text.

[0067] In the ICD automatic encoding method of the surgical operation text in the Chinese electronic medical record provided by the present invention, the method of directly extracting the semantic information in the surgical operation text based on the unsupervised pre-training model is not adopted, but an unsupervised semantic graph is constructed for the connotation characteristics of the surgical operation text, and the global information based on the unsupervised semantic graph and the contextual semantic information based on the unsupervised pre-training model are effectively integrated, so as to enhance the inductive representation learning of the surgical operation text, fully mine the semantic information in the text, and finally classify based on the aggregated feature vector to achieve accurate ICD encoding. The present invention can be applied to the ICD automatic encoding of the surgical operation text in the electronic medical record to solve the actual clinical needs in the current Chinese hospital case management. It should be noted that after the feature vector with enhanced semantic representation ability of the surgical operation text is obtained in step 104, it can also be used for other analyses. The feature vector with enhanced semantic representation ability of the surgical operation text can more accurately represent the semantic information contained in the surgical operation text.

[0068] Described below Figure 1 How the various steps are performed.

[0069] First, step 100 constructs each node based on the surgical operation text, and initializes the feature vector of the node using the BERT model. Optionally, in step 100, based on the BERT unsupervised pre-trained model, constructs a node containing unsupervised contextual semantic information, specifically including:

[0070] The surgical operation text is input into the first BERT model, and the first BERT model is used to find the coded chapter corresponding to the surgical operation text to determine the chapter title text. The first BERT model includes a BERT unsupervised pre-training model and a softmax layer. As a BERT-based chapter classifier, the first BERT model can roughly find the coded chapter to which the surgical operation text belongs.

[0071] The determined chapter title text is input into the second BERT model, and the second BERT model is used to obtain the corresponding representation of each character of the text. The representation of the [CLS] character is used as the initial feature vector of the chapter-level node to initialize the feature vector of the chapter-level node. The second BERT model is a new BERT unsupervised pre-training model. The text is input into the second BERT model for processing. Each paragraph of text involves several characters. Each character (or each token) has a corresponding feature vector output, which is the representation of the character. There are some special tokens in the BERT model as placeholders. The [CLS] character is placed at the front of the text as the first token. The representation of the [CLS] character, that is, the feature vector corresponding to the [CLS] character, represents the feature vector corresponding to the entire input text, reflecting the chapter semantic information and implicit context semantic information.

[0072] The surgical operation text is input into the named entity recognition model (NER), and the phrases of the four axis words of part, procedure, approach and disease nature are extracted respectively, and the phrase position of each axis word is determined. The NER model is based on Bi-LSTM and CRF (random field), and can be used to extract accurate phrases of part, procedure, approach and disease nature in the surgical operation text. The number and type of axis words vary in different texts, and the corresponding positions (and lengths) also vary.

[0073] The entire surgical operation text is input into the second BERT model, and the representations corresponding to each character of the text are obtained using the second BERT model. For the document-level node, the representation of the [CLS] character that implicitly contains the context semantic information of the entire text is used as the initial feature vector of the document-level node, realizing the initialization of the feature vector of the document-level node. For the pivot word nodes, the average value of the representations of the characters involved in each pivot word phrase is used as the initial feature vector of the corresponding pivot word node, realizing the initialization of the feature vectors of up to four pivot word nodes. Among them, the average value of the representations of the characters involved in a pivot word phrase is obtained by adding the feature vectors corresponding to several tokens involved in the phrase and then taking the average value.

[0074] Figure 2 It is a schematic diagram of the node construction process provided by an embodiment of the present invention. First, named entity recognition is implemented through Bi-LSTM and CRF to determine four pivot words: part, surgical procedure, approach, and disease nature in the surgical operation text; then, the chapter title text is determined using a BERT-based chapter classifier (i.e., the first BERT model). Figure 2 In the Chapter (chapter) column, it represents the chapter number, in the Title (title) column, it represents the chapter title text, and in the Code Range (encoding) column, it represents the encoding to which the corresponding surgical operation text belongs; finally, the representations of individual characters (such as T [cls] corresponding to the [CLS] character, T 垂 corresponding to the character "vertical", T 部分 is the average value of T 部 and T 分 corresponding to the pivot word phrase "part"), and the corresponding representations are output to obtain each node.

[0075] The nodes constructed by the present invention in the unsupervised semantic graph reflect the characteristics of the surgical operation text at the document level, chapter level, and pivot word level, thus greatly enhancing the diversity of information representation. At the same time, compared with the traditional node initialization method that uses pre-trained Glove as the character-level node feature, the node initialization based on the unsupervised pre-training model is more flexible and contains more context semantic information.

[0076] Then, in step 100, each edge is constructed, and the weight of the edge is determined according to the semantic influence information between the two nodes connected by the edge. Optionally, in step 100, based on the BERT unsupervised pre-training model, an edge containing unsupervised context semantic information is constructed, specifically including:

[0077] Calculate the directional influence relationship between every two pivot word nodes;

[0078] Calculate the directional influence relationship between each axis word node and the document level node;

[0079] Calculate the directional influence relationship between chapter-level nodes and document-level nodes;

[0080] An influence matrix is ​​constructed based on all the calculated directed influence relationships. The constructed influence matrix is ​​converted into a normalized adjacency matrix using an activation function. The weight of each edge in the unsupervised semantic graph is determined, the construction of directed edges is completed, and the unsupervised semantic graph is obtained.

[0081] Furthermore, in step 100, the directional influence relationship between two axis word nodes is calculated, including:

[0082] Assume that the two axis word nodes are the first axis word node and the second axis word node respectively, use the [MASK] character to mask the phrase corresponding to the first axis word node in the surgical operation text, input the masked text into the second BERT model, and obtain the average value of the representation of the characters involved in the phrase corresponding to the first axis word node as the first average value;

[0083] Using the [MASK] character to mask the phrases corresponding to the first axis word node and the second axis word node in the surgical operation text, inputting the masked text into the second BERT model, and obtaining the average value of the representations of the characters involved in the phrase corresponding to the first axis word node as the second average value;

[0084] Based on the Euclidean distance, the difference between the first average value and the second average value is calculated as the influence weight of the second axis word node on the first axis word node.

[0085] By using the above method, the directional influence relationship of the second axis word node on the first axis word node can be determined. By changing the nodes specifically referred to by the first axis word node and the second axis word node, the directional influence relationship between the word pairs formed by each two axis word nodes in the unsupervised semantic graph can be calculated.

[0086] Suppose a sentence whose characterized input is a list x = [x1,…,x T ], thanks to the self-attention mechanism, the BERT model can i Mapped to the representation H of implicit contextual semantics θ (x) i , which is the corresponding feature vector, where θ represents the parameters in the network. i The representation results of vary with the changes in context information and position information, thus reflecting the degree of interdependence between characters. i With the character xj The dependency relationship between them, first block the character x i , such as replacing the character x with the character [MASK] i , and the new sequence x\{x i} is input into the BERT model, thus obtaining H θ (x\{x i}) i As character x i The corresponding characterization result. Such a characterization contains the entire context for character x i Then, in order to further reflect the character x j For character x i The influence of further occluding the character x j , that is, replace the character x with the character [MASK] i and the character x j , and the new sequence x\{x i ,x j} Input the BERT model to get H θ (x\{x i ,x j}) i As character x i The corresponding new representation result. This new representation result contains the character x j The entire context for character x i Therefore, we can calculate the character x i The distance between the two corresponding representations, indicating the character x i With the character x j Dependency relationship. Define the function f(x i ,x j ) represents the character x in the context j For another character x i The influence of is expressed as follows:

[0087] f(x i ,x j )=dis(H θ (x\{x i}) i ,H θ (x\{x i ,x j}) i )

[0088] Where dis(x,y) is a distance measure for the difference in representation. The present invention uses Euclidean distance to calculate the difference in representation. The larger the distance, the closer the character x is. j For character x i The greater the impact.

[0089] In the present invention, the nodes of the unsupervised semantic graph are words or texts as units. To evaluate the word-level and document-level dependencies, corresponding edges are constructed. To evaluate the directional influence relationship between two pivot word nodes, similarly, the sequence characters [x i :x m :x n (m < n) (abbreviated as x m:n ) corresponding to a certain node are replaced with [MASK] characters and then input into the second BERT model. Then, the representation output of the implicit context semantics is obtained from the second BERT model. The new representation of the pivot word w i is calculated from the average value of the corresponding character representations, and the expression is as follows:

[0090] f(w i , w j ) = dis(Avg(H θ (x\{x m:n}) m:n ), Avg(H θ (x\{x m:n , x p:q}) m:n ))

[0091] where x m:n and x p:q respectively represent the (sequence) characters corresponding to the pivot word w i and the pivot word w j . Let the phrase corresponding to the first pivot word node be the pivot word w i , and the phrase corresponding to the second pivot word node be the pivot word w j . Avg(H θ (x\{x m:n}) m:n represents the average value of the representations of the characters (x m:n ) involved in the pivot word w i obtained by inputting the text with the occluded character x m:n into the BERT model, that is, the first average value. Avg(H θ (x\{x m:n , x p:q}) m:n represents the average value of the representations of the characters involved in the pivot word w m:n obtained by inputting the text with the occluded characters x p:q and the character x i into the BERT model, that is, the second average value. Through the Euclidean distance calculation, the influence of the pivot word w j on the pivot word w i is obtained as f(wi ,w j ), that is, the influence weight of the second axis word node on the first axis word node.

[0092] Furthermore, in step 100, calculating the directional influence relationship between the axis word node and the document-level node includes:

[0093] Use the [MASK] character to mask the phrase corresponding to the axis word node in the surgical operation text, input the masked text into the second BERT model, use the representation of the [CLS] character as the second document parameter, and use the average value of the representation of the characters involved in the phrase corresponding to the axis word node as the second axis word parameter;

[0094] Taking the initial feature vector of the document-level node as the first document parameter, based on the Euclidean distance, the difference between the first document parameter and the second document parameter is calculated as the influence weight of the axis word node on the document-level node;

[0095] The initial feature vector of the axis word node is used as the first axis word parameter. Based on the Euclidean distance, the difference between the first axis word parameter and the second axis word parameter is calculated as the influence weight of the document-level node on the axis word node.

[0096] In this invention, in order to evaluate the dependency relationship between the axis word and the document, the [CLS] character is used as the corresponding representation of the entire document. Therefore, the influence relationship between the document and the axis word is expressed as:

[0097] f(d,w i )=dis(H θ (x) [CLS] ,H θ (x\x m:n ) [CLS] )

[0098] f(w i ,d)=dis(Avg(H θ (x) m:n ),Avg(H θ (x\{x m:n}) m:n ))

[0099] Among them, f(d,w i ) represents the axis word w i The influence on document d, f(w i ,d) represents document d for the pivot word w i The influence weight of document d is set to correspond to the complete surgical operation text, and the phrase corresponding to the axis word node is the axis word w i , then H θ(x) [CLS] H represents the character representation of [CLS] obtained by inputting the complete surgical operation text into the BERT model, that is, the initial feature vector of the document-level node, also known as the first document parameter, θ (x\x m:n ) [CLS] Indicates that the text blocks the axis word w i The corresponding character x m:n Then input the character representation of [CLS] obtained by the BERT model, i.e., the second document parameter; Avg(H θ (x) m:n ) represents the axis word w obtained by inputting the complete surgical operation text into the BERT model i The characters involved (x m:n ), that is, the initial feature vector of the axis word node, also called the first axis word parameter, Avg(H θ (x\{x m:n}) m:n ) means to block the axis word w with text i The corresponding character x m:n Then input the BERT model to get the axis word w i The average value of the representation of the characters involved is the second axis word parameter. Calculated by the above formula, f(d,w i ) is the influence weight of the axis word node on the document-level node, f(w i ,d) is the influence weight of the document-level node on the axis word node.

[0100] Furthermore, in step 100, calculating the directed influence relationship between the chapter-level node and the document-level node includes:

[0101] The softmax layer in the first BERT model is assigned to the weight of the corresponding encoded chapter of the surgical operation text as the influence weight of the document-level node on the chapter-level node, and the influence weight of the chapter-level node on the document-level node.

[0102] In the present invention, between chapters and documents, the classifier based on the BERT model used previously when constructing the nodes of the graph is used to determine the chapter to which the surgical operation text belongs, and the final weight assigned to the predicted chapter by the softmax layer is set as the influence weight between the chapter and the document, because this weight implies the semantic relationship between the text and the chapter.

[0103] By calculating the influence relationship of all word pairs, all word-documents and chapter-documents in the context, an influence matrix M∈R can be constructed |W|+2*|W|+2, where |W| represents the number of pivot words in the surgical operation text. The influence matrix M containing the semantic relationship is converted into a normalized adjacency matrix A through an activation function to obtain the corresponding weights, thereby completing the construction of the edges in the SMP-Graph. The activation function is modified from sigmoid to:

[0104]

[0105] Among them, the adjacency matrix A∈R |W|+2*|W|+2 .

[0106] Figure 3 is a schematic diagram of the edge construction process provided by an embodiment of the present invention. Taking the surgical operation text "partial pituitary gland resection, transfrontal approach" as an example, the characters of "pituitary gland" are shielded by the [MASK] character and input into the second BERT model ( Figure 3 The characters "pituitary gland" and "resection" are masked with the [MASK] character and input into the second BERT model to obtain the influence matrix. The final weight assigned to the predicted chapter by the softmax layer of the first BERT model (i.e., the weight w obtained from the chapter classifier) ​​is c ), so as to obtain the adjacency matrix A, such as Figure 3 As shown, a |W|*|W| matrix in the adjacency matrix A represents the weight of the edge between the axis words (such as represents the semantic influence weight of the second axis word on the first axis word), and the remaining elements represent the weights of the edges between the document and each axis word (such as represents the semantic influence weight of the second axis word on the document), the weight of the edge between the chapter and the document (such as E d,c Indicates the semantic influence weight of the chapter on the document), or is empty (i.e. filled with 0).

[0107] Optionally, for step 102, global information interaction is performed, and the detailed interaction formula is as follows:

[0108] a t =Ah t-1 W a

[0109] z t =σ(W z a t +U z h t-1 b z )

[0110] r t =σ(W r a t +U r h t-1 br )

[0111]

[0112]

[0113] Where σ() represents the sigmoid function, a t represents the global information received by each node in the graph network from its neighboring nodes at time step t, A represents the adjacency matrix, and h t-1 represents the node feature vector set at time step t-1, W a represents the trainable weights, W z represents the trainable weights, W h represents the trainable weight, U z represents the trainable weight, U r represents the trainable weight, U h represents the trainable weights, b z represents the trainable bias, b r represents the trainable bias, b h represents the trainable bias, represents the candidate hidden state at time step t, h t represents the node feature vector set at time step t, ⊙ represents the element-wise multiplication operation, parameters W, U and b are trainable weights and biases, z t and r t They represent the functions that control the update gate and the reset gate, respectively, and determine the contribution of the neighborhood information to the current node embedding.

[0114] Optionally, for step 104, after obtaining the semantic graph of the original surgical operation text semantic information fusion, the present invention aggregates the representation of the nodes in the downstream reading stage to perform the final classification prediction. The reading function is designed as follows:

[0115]

[0116] Where f1() and f2() are two multi-layer perceptrons, acting as a soft attention weight and nonlinear feature transformation respectively. w,d,c represents the node feature vector set after the attention mechanism is weighted, h t w,d,c Represents the set of node feature vectors at time step t.

[0117] Optionally, for step 104, aggregating the representations of each node includes:

[0118] The attention mechanism is used to assign weights to each node of the semantic graph of semantic information fusion, and the representation of each node is extracted based on the average function and the maximum pooling function. This allows each node information to contribute to the final aggregate graph representation, and nodes with higher weights contribute more to the final graph representation output. Finally, the extracted representation results are added together to achieve the aggregate representation of each node.

[0119] Optionally, for step 106, classification is performed according to the aggregated feature vectors, including:

[0120] The aggregated feature vector is sent to the softmax layer for prediction, and the parameters are trained using the cross entropy function. The expression is:

[0121]

[0122] in represents the i-th element of the one-hot vector, represents the one-hot vector predicted by the model, represents the i-th element of the one-hot vector predicted by the model, W represents the trainable weight, b represents the trainable bias, and Loss represents the loss function.

[0123] like Figure 4 and Figure 5 As shown, the embodiment of the present invention also provides an ICD automatic encoding method for Chinese electronic medical record surgical operation text, including:

[0124] Step 200: Input the surgical operation text into the first BERT model, use the first BERT model to find the coded chapter corresponding to the surgical operation text, and determine the chapter title text;

[0125] Step 202, input the chapter title text into the second BERT model, and use the character representation of [CLS] as the initial feature vector of the chapter level node;

[0126] Step 204, inputting the surgical operation text into a named entity recognition model, extracting phrases of four axis words, namely, part, procedure, approach, and nature of disease, and determining the phrase position of each axis word;

[0127] Step 206, inputting the surgical operation text into the second BERT model, using the representation of the [CLS] character as the initial feature vector of the document-level node, and using the average value of the representation of the characters involved in each axis word phrase as the initial feature vector of the corresponding axis word node;

[0128] Step 208, calculating the directional influence relationship between every two axis word nodes;

[0129] Step 210, calculating the directional influence relationship between each axis word node and the document level node;

[0130] Step 212, calculating the directed influence relationship between the chapter-level node and the document-level node;

[0131] Step 214, constructing an influence matrix based on the influence relationship, converting the constructed influence matrix into a normalized adjacency matrix using an activation function, determining the weight of each edge in the unsupervised semantic graph, and completing the unsupervised semantic graph construction;

[0132] Step 216, inputting the constructed unsupervised semantic graph into a gated graph neural network (GGNN) to perform global information interaction to obtain a semantic graph with semantic information fusion;

[0133] Step 218, based on the semantic graph obtained by fusion of semantic information, the representations of each node are aggregated to obtain an aggregated feature vector;

[0134] Step 220 , classify according to the aggregated feature vectors to determine the ICD code corresponding to the surgical operation text.

[0135] like Figure 4 As shown in the figure, the preprocessing model is composed of a named entity recognition model of axis words and a chapter classifier (i.e., the first BERT model). The original surgical operation text is preprocessed, and the document that determines the axis words in the surgical operation text and the chapter title text are input into the unsupervised training model (the second BERT model) to complete the graph network construction. After global information interaction, the representation of each node is aggregated based on attention mechanism, maximum pooling and other operations, and finally the ICD automatic encoding of the surgical operation text is realized.

[0136] In a specific embodiment, to illustrate the effectiveness of the method of the present invention, a dataset was constructed based on Chinese ICD-9-CM3 coded texts collected from real electronic medical records, and used to evaluate the performance of the method of the present invention in the task of automatic coding of surgical operations. At the same time, the method of the present invention was extensively compared with other representative text representation models.

[0137] The present invention collects a Chinese surgical operation text dataset from structured electronic medical records, which contains more than 8,400 Chinese surgical operation texts, corresponding to more than 1,400 ICD-9-CM3 surgical operation codes. All texts are short texts, no more than 80 Chinese characters. All texts in the dataset are manually annotated with ICD-9-CM3 codes by professional coders in the hospital to construct text code matching. In addition, considering the long tail effect of the dataset, the 100 most frequent surgical operation texts are selected to reconstruct a sub-dataset named CN-100, while the original dataset is named CN-full.

[0138] Continuing the current representation method for ICD automatic encoding tasks, the present invention compares the representation performance of the method of the present invention with representative baseline models in the prior art, and divides the representative prior art baseline models into three categories: 1) traditional machine learning methods, such as edit distance; 2) sequence-based deep learning methods, such as TextCNN, Text RNN and CAML; 3) deep learning methods based on unsupervised pre-trained models, such as the fine-tuned BERT model.

[0139] For the performance evaluation index, Accuracy, Recall, micro-average and macro-average F1 are used to evaluate the performance of all methods. In order to maintain the fairness of the comparison, we avoid introducing any external information to enrich the features of the original text. Therefore, all representation methods rely on the information implicit in the text for processing.

[0140] The results show that the proposed method outperforms the baseline model on both datasets, achieving an accuracy of 70.13% on the CN-full dataset and 97.63% on the CN-100 dataset. At the same time, the performance of the proposed method is higher than the fine-tuned BERT model that learns representations from unsupervised contextualized information, which shows that the proposed method can effectively integrate graph-based global information and unsupervised contextualized information into the graph structure. Therefore, the proposed method effectively improves the representation performance of surgical operation text.

[0141] like Figure 6 , Figure 7 As shown, the embodiment of the present invention also provides an ICD automatic encoding device for Chinese electronic medical record surgical operation text. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, such as Figure 6 As shown, it is a hardware architecture diagram of an electronic device where an ICD automatic encoding device for Chinese electronic medical record surgical operation text (hereinafter referred to as ICD automatic encoding device) is located in an embodiment of the present invention, except Figure 6 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the electronic device in which the device is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 7As shown, as a device in a logical sense, the CPU of the electronic device in which it is located reads the corresponding computer program in the non-volatile memory into the memory and runs it. This embodiment provides an ICD automatic encoding device for Chinese electronic medical record surgical operation text, including a composition module 401, a fusion module 402, an aggregation module 403 and a classification module 404, wherein:

[0142] The graphing module 401 is used to take the surgical operation text in the structured electronic medical record as input, and based on the BERT unsupervised pre-training model, construct nodes and edges containing unsupervised contextual semantic information to obtain an unsupervised semantic graph for each surgical operation text; wherein the nodes of the unsupervised semantic graph include chapter-level nodes, document-level nodes, and at most four axis word nodes; the feature vector of the chapter-level node contains the contextual semantic information of the chapter to which the surgical operation text belongs, the feature vector of the document-level node contains the contextual semantic information of the entire surgical operation text, the feature vectors of the four axis word nodes respectively contain the four axis word semantic information of the surgical operation site, procedure, approach, and disease nature, and the weight of the edge of the unsupervised semantic graph contains the semantic influence information between the two connected nodes in the surgical operation text;

[0143] The fusion module 402 is used to input the constructed unsupervised semantic graph into the gated graph neural network to perform global information interaction to obtain a semantic graph with semantic information fusion;

[0144] Aggregation module 403 is used to aggregate the representations of each node based on the semantic graph fused with the obtained semantic information to obtain an aggregated feature vector;

[0145] The classification module 404 is used to perform classification according to the aggregated feature vectors to determine the ICD code corresponding to the surgical operation text.

[0146] In the present invention, the composition module 401 can be used to implement the above step 100 , the fusion module 402 can be used to implement the above step 102 , the aggregation module 403 can be used to implement the above step 104 , and the classification module 404 can be used to implement the above step 106 .

[0147] It is understandable that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on an ICD automatic encoding device for a Chinese electronic medical record surgical operation text. In other embodiments of the present invention, an ICD automatic encoding device for a Chinese electronic medical record surgical operation text may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0148] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.

[0149] An embodiment of the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, an ICD automatic encoding method for Chinese electronic medical record surgical operation text in any embodiment of the present invention is implemented.

[0150] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes an ICD automatic encoding method for Chinese electronic medical record surgical operation text in any embodiment of the present invention.

[0151] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.

[0152] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0153] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0154] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0155] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0156] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical factors in the process, method, article or device including the elements.

[0157] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An ICD automatic coding method for surgical operation texts in Chinese electronic medical records, It is characterized in that include: Taking the surgical operation text in the structured electronic medical record as input, based on the BERT unsupervised pre-training model, nodes and edges containing unsupervised contextual semantic information are constructed to obtain an unsupervised semantic graph for each surgical operation text; wherein, the nodes of the unsupervised semantic graph include chapter-level nodes, document-level nodes and up to four axis word nodes; the feature vector of the chapter-level node contains the contextual semantic information of the chapter to which the surgical operation text belongs, the feature vector of the document-level node contains the contextual semantic information of the entire surgical operation text, the feature vectors of the four axis word nodes respectively contain the four axis word semantic information of the surgical operation site, procedure, approach and disease nature, and the weight of the edge of the unsupervised semantic graph contains the semantic influence information between the two connected nodes in the surgical operation text; Inputting the constructed unsupervised semantic graph into a gated graph neural network to perform global information interaction to obtain a semantic graph with fused semantic information; Based on the semantic graph obtained by fusion of semantic information, the representations of each node are aggregated to obtain an aggregated feature vector; Classify according to the aggregated feature vectors to determine the ICD code corresponding to the surgical operation text; The step of constructing a node containing unsupervised contextual semantic information based on the BERT unsupervised pre-training model includes: Inputting the surgical operation text into a first BERT model, searching for the encoded chapter corresponding to the surgical operation text, and determining the chapter title text; the first BERT model includes a BERT unsupervised pre-training model and a softmax layer; Input the chapter title text into a second BERT model, using the representation of the [CLS] character as the initial feature vector of the chapter-level node; Input the surgical operation text into a named entity recognition model, extract phrases of four axis words, namely, part, procedure, approach, and nature of disease, and determine the phrase position of each axis word; The surgical operation text is input into the second BERT model, and the representation of the [CLS] character is used as the initial feature vector of the document-level node, and the average value of the representation of the characters involved in each axis word phrase is used as the initial feature vector of the corresponding axis word node.

2. The method according to claim 1, It is characterized in that The method of constructing an edge containing unsupervised contextual semantic information based on the BERT unsupervised pre-training model includes: Calculate the directional influence relationship between every two of the axis word nodes; Calculating the directional influence relationship between each of the axis word nodes and the document level node; Calculating a directed influence relationship between the chapter-level node and the document-level node; An influence matrix is ​​constructed based on the influence relationship, and the constructed influence matrix is ​​converted into a normalized adjacency matrix using an activation function to determine the weight of each edge in the unsupervised semantic graph.

3. The method according to claim 2, It is characterized in that Calculating the directional influence relationship between the two axis word nodes includes: Assume that the two axis word nodes are the first axis word node and the second axis word node respectively, use the [MASK] character to mask the phrase corresponding to the first axis word node in the surgical operation text, input the second BERT model, and obtain the average value of the representation of the characters involved in the phrase corresponding to the first axis word node as the first average value; Using the [MASK] character to mask the phrases corresponding to the first axis word node and the second axis word node in the surgical operation text, inputting the phrases into the second BERT model, and obtaining the average value of the representations of the characters involved in the phrase corresponding to the first axis word node as the second average value; Based on the Euclidean distance, the difference between the first average value and the second average value is calculated as the influence weight of the second axis word node on the first axis word node.

4. The method according to claim 2, It is characterized in that Calculating the directional influence relationship between the axis word node and the document-level node includes: Using the [MASK] character to mask the phrase corresponding to the axis word node in the surgical operation text, inputting the second BERT model, using the representation of the [CLS] character as the second document parameter, and using the average value of the representation of the characters involved in the phrase corresponding to the axis word node as the second axis word parameter; Taking the initial feature vector of the document-level node as the first document parameter, and calculating the difference between the first document parameter and the second document parameter based on the Euclidean distance as the influence weight of the axis word node on the document-level node; The initial feature vector of the axis word node is used as the first axis word parameter, and based on the Euclidean distance, the difference between the first axis word parameter and the second axis word parameter is calculated as the influence weight of the document-level node on the axis word node.

5. The method according to claim 2, It is characterized in that Calculating the directed influence relationship between the chapter-level node and the document-level node includes: The softmax layer in the first BERT model is assigned to the weight of the corresponding encoded chapter of the surgical operation text as the influence weight of the document-level node on the chapter-level node, and the influence weight of the chapter-level node on the document-level node.

6. The method according to claim 1, It is characterized in that The representation of each node of the aggregation includes: A weight is assigned to each node of the semantic graph through the attention mechanism, and the representation of each node is extracted based on the average function and the maximum pooling function.

7. An ICD automatic coding device for Chinese electronic medical record surgical operation text, It is characterized in that include: A graph composition module is used to take the surgical operation text in the structured electronic medical record as input, and based on the BERT unsupervised pre-trained model, construct nodes and edges containing unsupervised contextual semantic information to obtain an unsupervised semantic graph for each surgical operation text; wherein the nodes of the unsupervised semantic graph include chapter-level nodes, document-level nodes, and at most four axis word nodes; the feature vector of the chapter-level node contains the contextual semantic information of the chapter to which the surgical operation text belongs, the feature vector of the document-level node contains the contextual semantic information of the entire surgical operation text, the feature vectors of the four axis word nodes respectively contain the four axis word semantic information of the surgical operation site, procedure, approach, and disease nature, and the weight of the edge of the unsupervised semantic graph contains the semantic influence information between the two connected nodes in the surgical operation text; A fusion module is used to input the constructed unsupervised semantic graph into a gated graph neural network to perform global information interaction to obtain a semantic graph with fused semantic information; An aggregation module is used to aggregate the representations of each node based on the semantic graph fused with the obtained semantic information to obtain an aggregated feature vector; A classification module, used for classifying according to the aggregated feature vectors to determine the ICD code corresponding to the surgical operation text; The step of constructing a node containing unsupervised contextual semantic information based on the BERT unsupervised pre-training model includes: Inputting the surgical operation text into a first BERT model, searching for the encoded chapter corresponding to the surgical operation text, and determining the chapter title text; the first BERT model includes a BERT unsupervised pre-training model and a softmax layer; Input the chapter title text into a second BERT model, using the representation of the [CLS] character as the initial feature vector of the chapter-level node; Input the surgical operation text into a named entity recognition model, extract phrases of four axis words, namely, part, procedure, approach, and nature of disease, and determine the phrase position of each axis word; The surgical operation text is input into the second BERT model, and the representation of the [CLS] character is used as the initial feature vector of the document-level node, and the average value of the representation of the characters involved in each axis word phrase is used as the initial feature vector of the corresponding axis word node.

8. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Visual rich document information extraction method for actual OCR scene

    CN112801010A

  • Special term unsupervised clustering method, device and system

    CN113377929A

  • Aspect-level sentiment analysis method based on graph neural network

    CN113535904A