A method for estimating the duplication rate of electronic medical records based on data stream matching

By using a method based on data flow matching to extract and standardize feature words in electronic medical records, and combining it with a machine learning model to perform similarity calculations, the problem of low accuracy of duplication checking in Chinese electronic medical records is solved, the duplication checking rate and efficiency are improved, and the duplication checking rate is reduced. Misjudgment of duplicate records.

CN115983233BActive Publication Date: 2024-09-20HANGZHOU BEIGUANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310018531.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-04
Publication Date
2024-09-20
Estimated Expiration
2043-01-04

AI Technical Summary

Technical Problem

The existing Chinese electronic medical record duplication checking methods have low accuracy and high misjudgment rate, which may cause clinicians to ignore or miss important patient condition information. In particular, there are a large number of repeated records and medical nouns in medical texts, which affects the accuracy of diagnosis and treatment.

Method used

An electronic medical record duplicate checking rate estimation method based on data flow matching is used to construct a keyword dictionary and word frequency statistics table by obtaining historical medical record data, extract feature words and perform standardization processing, combined with CRF, SVM model and TextRank algorithm, using Knuth-Morris- The Pratt algorithm performs text similarity matching and calculates the similarity of feature words to estimate the duplication checking rate.

Benefits of technology

It effectively improves the accuracy and efficiency of duplication checking in Chinese electronic medical records, avoids copying errors by doctors in medical records, reduces the problem of inconsistent and untimely information, and improves the impact of subsequent treatment on patients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115983233B
    Figure CN115983233B
Patent Text Reader

Abstract

The present invention belongs to the field of data processing technology, and specifically relates to a method for estimating the duplicate checking rate of electronic medical records based on data stream matching, comprising: obtaining historical medical record data, and constructing a keyword dictionary and a word frequency statistics table according to the historical medical record data; obtaining the medical record data information of the user, and encoding the Chinese characters in the medical record data information; extracting feature words in the medical record data information to be checked for duplicates according to the keyword dictionary and the word frequency statistics table; using a domain word system to perform standardization processing on the extracted feature words to obtain unified feature words; calculating the similarity between the unified feature words and the target feature words for the encoded data stream; performing comprehensive judgment on the medical record data information according to the similarity calculation result to obtain the electronic medical record duplicate checking rate estimation result; the present invention extracts electronic medical record entities and entity relationships by comprehensively adopting CRF and SVM models, thereby improving the detection accuracy of entities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method for estimating the duplication rate of electronic medical records based on data stream matching. Background Art

[0002] Duplicate check is a common method for processing text information. Based on the duplicate check information, the information in the text can be quickly extracted and processed accordingly. At present, the mainstream methods in the field of duplicate check include SCAM algorithm based on word frequency statistics, DSC algorithm using singles filtering strategy, improved DSC-SS algorithm, I-Match algorithm improved by DSC algorithm, method of comparing document collections, tf-idf algorithm, duplicate check algorithm using web page keywords as feature items, web page duplicate check algorithm based on feature strings, and web page deduplication method based on feature sentence extraction. The above methods are used to automatically detect duplicate content in a data set, so that users can find the required content through retrieval as soon as possible, thereby reducing reprinting and avoiding recording duplicate useless information. For electronic medical record text analysis, most of them are focused on English electronic medical record analysis, while there are not many technologies and methods for evaluating the duplicate check rate of Chinese electronic medical records.

[0003] For Chinese text, semantics, grammar, syntax and other methods are often used for word segmentation. However, due to various factors, Chinese electronic medical record text analysis is prone to ambiguity, which makes many commonly used duplicate checking algorithms have low accuracy when applied to Chinese text. In the field of medical electronic medical record duplicate checking, due to the presence of a large number of medical terms and medical terms in electronic medical records, and because many patients have similar clinical manifestations, duplication is prone to occur in medical records. In addition, a large number of duplicate records make it easy for clinicians to miss or ignore important individual patient condition information. The existing duplicate checking method has a high misjudgment rate, which makes the accuracy of the duplicate checking process low. To this end, the present invention applies an advanced data stream matching duplicate checking algorithm to Chinese medical text recognition to improve the accuracy and efficiency of Chinese electronic medical record duplicate checking rate reasoning. On the one hand, the text duplication in the Chinese electronic medical record recording process is identified, thereby avoiding the adverse problem or safety hazard of ignoring important patient condition information due to repeated observation data or duplicated archival records. Summary of the invention

[0004] In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a method for estimating the duplication rate of electronic medical records based on data stream matching, the method comprising: obtaining historical medical record data, and constructing a keyword dictionary and a word frequency statistical table according to the historical medical record data; obtaining the user's medical record data information, which includes the medical record chief complaint, keywords, medical record summary, affiliated medical institution and medical care information; extracting feature words in the medical record data information to be checked for duplication according to the keyword dictionary and the word frequency statistical table; using a domain word system to standardize the extracted feature words to obtain unified feature words; calculating the similarity between the unified feature words and the target feature words; and comprehensively judging the medical record data information according to the similarity calculation result to obtain the electronic medical record duplication rate estimation result.

[0005] Preferably, the process of building a keyword dictionary and a word frequency statistics table includes: historical medical record data information includes medical problems, objective signs, evaluation and diagnosis results, and treatment plans; using the text sorting TextRank algorithm to extract feature words in the medical record data information; counting the word frequency-reverse file frequency value of the keyword in the corpus, and using the value as a weight to obtain a feature word vector; combining all feature vectors to obtain a keyword dictionary; counting the number of each keyword in the keyword dictionary, and combining all keyword numbers to obtain a word frequency statistics table.

[0006] Preferably, the process of extracting characteristic words from medical record data information using the text sorting TextRank algorithm includes: segmenting the text T into complete sentences, and performing word segmentation and part-of-speech tagging on each segmented sentence; filtering out words other than nouns, verbs, and adjectives from the part-of-speech tagged sentences; constructing a keyword graph, wherein the nodes in the keyword graph are reserved words, and the co-occurrence relationship is an edge between two points, and an edge exists between two nodes only if their corresponding words co-occur in a window of length K, where K represents the window size, i.e., a maximum of K co-occurring words; calculating the TextRank convergence value of each node; selecting the Top K words with the highest TextRank value as the final keyword; using the final keyword as a candidate keyword; and marking the candidate keyword in the original text.

[0007] Beneficial effects of the present invention:

[0008] The present invention adopts CRF and SVM models in combination, extracts electronic medical record entities and entity relationships, combines TD-IDF algorithm and TextRank algorithm to construct feature word vectors, uses Knuth-Morris-Pratt (KMP) algorithm to match character strings, and finally makes a comprehensive judgment on the similarity of texts, thereby effectively avoiding the doctor from copying the medical record of the previous patient during the process of recording the patient's medical record, thereby failing to accurately record the patient's diagnosis and treatment conditions, etc.; or applying it to the scenario where there are many repeated contents in the electronic medical record text and inconsistent and untimely information occurs, thereby reducing the impact of this aspect on the patient's subsequent treatment. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 The electronic medical record entity and entity relationship diagram of the present invention;

[0010] Figure 2 It is a system framework structure diagram of the present invention;

[0011] Figure 3 It is a flow chart of the KMP matching algorithm of the present invention;

[0012] Figure 4 It is the TFIDF algorithm flow chart of the present invention;

[0013] Figure 5 It is a schematic diagram of effective matching and invalid matching of the present invention;

[0014] Figure 6 This is a flowchart of the TextRank algorithm of the present invention for extracting medical record data information. DETAILED DESCRIPTION

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

[0016] A method for estimating the duplicate checking rate of electronic medical records based on data stream matching, the method comprising obtaining historical medical record data, constructing a keyword dictionary and a word frequency statistical table according to the historical medical record data; obtaining the medical record data information of the user, the information including the medical record chief complaint, keywords, medical record summary, etc.; extracting characteristic words in the medical record data information to be checked for duplicates according to the keyword dictionary and the word frequency statistical table; using a domain word system to perform standardization processing on the extracted characteristic words to obtain unified characteristic words; calculating the similarity between the unified characteristic words and the target characteristic words; and performing comprehensive judgment on the medical record data information according to the similarity calculation result to obtain the electronic medical record duplicate checking rate estimation result.

[0017] A specific implementation method of a system for estimating the duplication rate of electronic medical records based on data stream matching, such as Figure 2 As shown, the system includes an input module, an output module, a feature extraction module, a domain word system module, a data management module and a similarity judgment module; the input and output module is responsible for submitting the user's input information to the server, and the submitted information includes the chief complaint of the medical record, keywords, medical record abstracts, affiliated medical institutions and physicians, etc.; and the medical record duplicate check results are displayed to the user; the feature word extraction module is responsible for extracting feature words from the input title and abstract text. The keyword dictionary and word frequency statistics file will be used in the extraction process. The module uses a sequence labeling-based method and a CRF model to identify the named entities of the case. Then, a method combining machine learning and rules is used, and the SVM module is used to identify the modifications of diseases and symptoms; finally, the SVM maximum entropy and other classification models are used to extract the medical record entity relationship to obtain the feature words in the text; the domain word system module is responsible for standardizing the feature words with the same meaning and multiple words into unified feature words. The data management module is responsible for the storage, management and scheduling of medical record big data, providing keyword dictionaries and word frequency statistics for the feature word extraction module, and providing feature word vectors of massive electronic medical records for the similarity judgment module; the similarity judgment module is responsible for calculating the similarity between the electronic medical record to be checked and the massive archived electronic medical records, and using the Hadoop and Spark frameworks to perform distributed processing on the similarity judgment algorithm to improve the speed of electronic medical record duplicate checking; the similarity judgment first calculates the similarity of the electronic medical record content, and then comprehensively considers the factors of the medical institution and the physician to which it belongs, and comprehensively judges the similarity of the electronic medical records to obtain the final judgment result.

[0018] The data model that integrates multi-source electronic health record information to describe the content of electronic medical records is adopted. Keywords are extracted from the text information of medical problems, objective signs, evaluation and diagnosis, and treatment plans, and feature vectors are constructed to describe the entity content of electronic medical records from different dimensions. Taking medical problems as an example, Figure 1 As shown in the figure, the collected data contains the patient's chief complaint, past medical history, subjective symptoms and other field information in the electronic medical record. The improved TextRank algorithm is used to obtain feature words that can characterize the patient's condition. The word probability is calculated through a large amount of corpus information to reflect the closeness of phrase combination and exclude irrelevant components in the phrase, thereby ensuring the accuracy and semantic expression ability of the extracted feature words. In addition, the constructed domain word system is used to solve the problem of multiple words with the same meaning, and the extracted keywords are standardized. Figure 4 As shown in the figure, the TFIDF value of the keyword in the corpus is used as its weight, and finally the feature word vector is obtained, which is expressed as

[0019] V1={(K i ,Wi )|i=1,2,…,N}

[0020] Among them, K i represents the i-th feature word, W i represents the weight of the i-th feature word, and N represents the number of feature words used.

[0021] According to the above method, the feature word vectors of objective signs (V1), assessment information (V2), diagnosis information (V3) and treatment plan (V4) are obtained. The electronic medical record duplication checking model can be expressed as:

[0022] V={V1,w1,V2,w2,V3,w3,V4,w4}

[0023] Among them, {w i |i∈[1,4]} represents the weight of different source information, which is used to reflect the importance of source information in describing the content of electronic medical records. Considering the differences in the closeness of the association between different forms of electronic medical records, the evaluation diagnosis and treatment plan is the planning and summary of the patient's diagnosis and treatment, which is set to a higher weight; medical problems and objective signs are only partial references for patient treatment, which is set to a lower weight.

[0024] like Figure 6 As shown in FIG. 1 , the specific process of using the improved TextRank algorithm to obtain characteristic words that can characterize the patient's condition includes:

[0025] Step 1: Segment the given text T into complete sentences.

[0026] Step 2: For each sentence, perform word segmentation and part-of-speech tagging, filter out stop words, and only keep words with specified parts of speech, such as nouns, verbs, and adjectives.

[0027] Step 3: Construct a candidate keyword graph G = (V, E), where V is a node set consisting of the candidate keywords generated in step 2, and then use the co-occurrence relationship (Co-Occurrence) to construct an edge between any two points. An edge exists between two nodes only if their corresponding words co-occur in a window of length K, where K represents the window size, that is, at most K words co-occur.

[0028] Step 4: According to the formula of TextRank, iteratively propagate the weight of each node until convergence.

[0029] Step 5: Sort the node weights in reverse order to obtain the most important T words as candidate keywords.

[0030] Step 6: The most important T words obtained from step 5 are marked in the original text. If adjacent phrases are formed, they are combined into multi-word keywords.

[0031] Due to factors such as the accuracy of the feature word extraction algorithm, inconsistent feature word length standards, and a limit on the number of extracted keywords, there is a problem of information loss in the process of converting text into feature words, which leads to a decrease in the accuracy of electronic medical record duplicate checking. The present invention does not preprocess the text in the corpus for feature word extraction, but instead splits it into phrases of 2 to 8 characters in length after removing non-Chinese characters and stop words, and the phrases are separated by the symbol " / ". When actually calculating the similarity of electronic medical records, a feature word vector matching the query vector dimension is constructed from the preprocessed file based on the input feature word vector to be queried, and the similarity between the two is calculated. This method improves the accuracy of electronic medical record file duplicate checking, but it produces a higher computational complexity.

[0032] The process of calculating similarity using the KMP string matching algorithm includes: in the string matching process, first use the GB18030-2022 standard to convert Chinese characters into their GB 18030 codes in sequence, and add zeros to the front of characters with less than four digits. Then, the formed string segment is sliced, with four characters as a unit, as "one character" in the following text.

[0033] Table 1 Chinese electronic medical record preprocessing based on string encoding conversion

[0034]

[0035] For a string P (pattern string), calculate a Partial Match Table. Here, "prefix" refers to all the head combinations of a string except the last character; "suffix" refers to all the tail combinations of a string except the first character, such as Figure 3 As shown, the "partial match value" is the length of the longest common element of the "prefix" and the "suffix".

[0036] Compare the first character of a string S with the first character of a string P (the pattern string). If the first characters of the two strings do not match, move the search term one position backward, and so on, for the second, third characters of the string S until there is a character in the string that is the same as the first character of the search term. Then compare the next character of the string and the search term. If they are the same, continue to match the next character of string S with the next character of string P until there is a character in the string that is different from the corresponding character of the search term. Utilize the information that the first n characters have been matched identically, and do not move the "search position" back to the positions that have already been compared. Instead, continue to move it backward, which can improve the calculation efficiency. Given that when two characters in S and P do not match, the previous n characters are matched. By querying the partial match table, it can be known that the "partial match value" corresponding to the last matching character is m. Therefore, calculate the number of positions to move backward according to the following formula: Number of positions to move = Number of matched characters - Corresponding partial match value.

[0037] The essence of "partial match" is that the head and tail of a string may repeat in some scenarios. For example, in "electronic medical record", there are two "electronic", so its "partial match value" is 2 (the length of "electronic"). When the search term moves, the first "electronic" moves backward 4 positions (string length - partial match value) to reach the position of the second "electronic".

[0038] If the k-th character in the P string still does not match after moving the search term, continue with the above method, change the number of matched characters and the partial match value, continue to move the P string backward, and compare character by character until the last character of the search term is found to be a complete match, at which point the search is completed. If further search is required (i.e., to find all matches), the number of positions to move = "length of the P string" - 0, and then move the search term backward by the "length of the P string" positions. The character matching result is as Figure 5 shown.

[0039] Considering that repetitive electronic medical records usually have the same responsible person or undertaking unit, two correction factors are introduced to reflect the influence of the above factors. For the four information sources, namely objective signs (V1), assessment information (V2), diagnostic information (V3), and treatment plan (V4), the similarity of the electronic medical record is defined as

[0040] SIM(I,V) = max{Sim(I,V i )×w i |i ∈ [1, 4]} + Δ p +Δ o

[0041] Where Sim(·) represents the similarity function, I is the feature vector describing the medical record content extracted from the input search information, V is the description vector of the medical record content to be determined, max(·) is the maximum value function, which means selecting the maximum value of similarity from the four information sources, Δ p represents the correction factor introduced by the same physician, Δ o represents the correction factor introduced by the same medical institution, w i Refers to the weight of the four information sources.

[0042] Since there may be missing information such as medical problems, objective signs, evaluation and diagnosis, and treatment plans, the similarity is calculated for each of the four types of resources, and the result with the highest similarity is taken as the judgment result of the electronic medical record content similarity. By introducing a correction factor, it can be ensured that when the electronic medical record content similarity is consistent, electronic medical records with the same physician or the same medical institution are preferentially screened out. After the above calculation, the similarity between the electronic medical record to be checked and all existing electronic medical records can be obtained, and the electronic medical records that exceed the threshold are selected as the candidate set of suspected duplicate electronic medical records, and the final judgment result is made by experts.

[0043] In another embodiment, the electronic medical record resources of discharged patients are first searched to screen for more standardized medical record information. Secondly, the keyword dictionary, word frequency statistics file and domain word system of medical record named entities and entity relationships are constructed using the above resource information. The first two files are mainly used to enhance the accuracy of feature word extraction, while the domain word system is used to process the relationship between synonyms in medical records and standardize them into unified words in the field.

[0044] In order to verify the effectiveness of the keyword extraction algorithm, a test sample set was constructed using several medical records belonging to the same medical institution, and the accuracy, recall rate and F value were used as the evaluation indicators of the algorithm. Among them, several medical record abstracts were randomly selected as test cases, and the annotated keywords were used as positive samples; the rest were used as corpus to calculate the word probability of candidate feature words. The co-occurrence window size and word probability threshold selected in this paper performed well, and the extraction results of the TFIDF algorithm and TextRank algorithm were compared in experiments. The algorithm in this paper is superior to the traditional TextRank algorithm and TFIDF algorithm in accuracy, recall rate and F value, which verifies the effectiveness of the keyword extraction algorithm in extracting feature words from short texts of medical record abstracts.

[0045] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for estimating the duplication rate of electronic medical records based on data stream matching, characterized in that: include: Obtain historical medical record data, and build a keyword dictionary and word frequency statistics table based on the historical medical record data; obtain the user's medical record data information, which includes the medical record chief complaint, keywords, medical record summary, affiliated medical institution, and medical care information; extract the characteristic words in the medical record data information to be checked based on the keyword dictionary and word frequency statistics table; use the domain word system to standardize the extracted characteristic words to obtain unified characteristic words; calculate the similarity between the unified characteristic words and the target characteristic words; Comprehensively judge the medical record data information based on the similarity calculation results to obtain the estimated results of the electronic medical record duplication rate; The process of constructing a keyword dictionary and a word frequency statistics table includes: historical medical record data information includes medical problems, objective signs, evaluation and diagnosis results, and treatment plans; using the text sorting TextRank algorithm to extract feature words in the medical record data information; counting the word frequency-reverse file frequency value of the keyword in the corpus, and using the value as a weight to the feature word vector; combining all feature vectors to obtain a keyword dictionary; counting the number of each keyword in the keyword dictionary, combining all the number of keywords to obtain a word frequency statistics table; wherein the process of extracting feature words from the medical record data information using the text sorting TextRank algorithm includes: dividing the text T into complete sentences, and performing word segmentation and part-of-speech tagging on each sentence after segmentation; filtering out other words except nouns, verbs, and adjectives for the part-of-speech tagged sentences; constructing a keyword graph, wherein the nodes in the keyword graph are reserved words, and the co-occurrence relationship is an edge between two points. There is an edge between two nodes only when their corresponding words co-occur in a window of length K, and K represents the window size, that is, a maximum of K co-occurring words; calculating the TextRank convergence value of each node; selecting the Top with the highest TextRank value K words are used as final keywords; the final keywords are used as candidate keywords; the candidate keywords are marked in the original text; The Knuth-Morris-Pratt algorithm is used to calculate the similarity between the unified feature word and the target feature word; including: converting the Chinese characters in the feature word into the Chinese coded character set, wherein the characters with less than four digits are padded with 0 at the front end of the code; slicing the formed string segment, taking four characters as a unit, to obtain a character group; for a string P, calculating the partial match value of P, wherein the partial match value is the length of the longest common element of the string prefix and the string suffix; comparing the first character of a string S with the first character of a string P, if the first characters of the two strings do not match, the search term is shifted back by one, and so on for the second and third characters of the string S. Until one character of the string is the same as the first character of the search term; compare the next character of the string and the search term, if they are the same, continue to match the next character of the string S and the string P, until one character of the string is different from the character corresponding to the search term; query the partial match table, obtain the partial match value corresponding to the last matching character, and calculate the number of bits of the character to move backward according to the partial match value; if the kth character in the P string still does not match after this moving search, continue the above method, change the number of matched characters and the partial match value, continue to move the P string backward, compare bit by bit, until the last bit of the search term, find a complete match, and the search is completed; the similarity of electronic medical records is: SIM(I,V)=max{Sim(I,V i )×w i |i∈[1,4]}+Δ p +Δ o Where Sim(·) represents the similarity function, I is the feature vector describing the medical record content extracted from the input search information, V is the description vector of the medical record content to be determined, max(·) is the maximum value function, Δ p represents the correction factor introduced by the same physician, Δ o represents the correction factor introduced by the same medical institution, w i Refers to the weight of the four information sources.

2. According to the method for estimating the duplication rate of electronic medical records based on data stream matching in claim 1, it is characterized in that: The process of extracting characteristic words from the medical record data to be checked includes: labeling the medical record data using a sequence standard-based method; identifying the labeled medical record named entities using a conditional random field model based on a keyword dictionary and a word frequency statistics table; and extracting relationships from electronic medical record entities using a support vector machine (SVM) model to obtain characteristic words in the text.

3. The method for estimating the duplication rate of electronic medical records based on data stream matching according to claim 2 is characterized in that: The process of extracting entity relationships from medical records using the support vector machine (SVM) model includes: the first stage is to train several classifiers using labeled data; the second stage is the extraction process, using the learned classifiers to extract Chinese entity names and their relationships, and finally applying the nearest neighbor kNN and SVM classification methods to identify entity relationships from documents.

4. According to the method for estimating the duplication rate of electronic medical records based on data stream matching in claim 1, it is characterized in that: The process of using the domain word system to standardize the extracted feature words includes: finding and processing the relationship between synonymous words in the domain, and standardizing them into unified words in the domain.