Cerebral stroke judgment method, device and system independent of ICD coding
By using text vector fusion and neural network judgment of current history and diagnosis information, the problem of low ICD coding accuracy is solved, accurate identification and screening of stroke patients is achieved, and the accuracy of screening of stroke populations is improved.
Patent Information
- Application Number
- CN202410800436.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology relies on ICD coding to identify stroke patients, which has low accuracy and cannot determine whether they have been admitted to the hospital due to stroke, making it difficult to accurately locate people with stroke.
By obtaining the patient's current history text and diagnostic information, use a pre-trained model (such as BERT) to generate text vectors, perform feature fusion in the attention feature fusion module, combine with the multi-scale channel attention module, and input it into the feedforward neural network Make a judgment to determine whether the patient has a stroke and is admitted to the hospital due to a stroke.
It achieves the accurate identification of stroke patients and determines whether they are hospitalized due to stroke without relying on ICD codes, which improves the accuracy of screening people with stroke.
Smart Images

Figure CN118737434A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of stroke population screening, and in particular, to a stroke determination method, device and system that are independent of ICD coding. Background Art
[0002] Stroke is commonly known as a stroke. It is divided into two types: ischemic stroke and hemorrhagic stroke. It is a disease caused by various reasons that damage cerebral blood vessels and cause focal or overall brain tissue damage. The incidence of the disease is higher in cold seasons. Stroke has the characteristics of high incidence, disability rate, recurrence rate and mortality rate, and is the leading cause of death among Chinese residents.
[0003] With the development of medical information technology, a large amount of electronic medical record data is generated. Using it to conduct real-world research can better reflect clinical reality. For research on electronic medical record databases for stroke, the first thing is to locate the exact population, but currently the population is mainly located based on ICD codes. However, the ICD code missing rate is high, and the annotation accuracy and consistency are poor, making it difficult to accurately locate the stroke population and determine whether they are hospitalized due to stroke. The current medical history and diagnostic information in the electronic medical record data can assist in accurate population location; however, these long text data are not highly standardized, and the data are difficult to use directly. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, the present application provides a stroke determination method, device and system that are independent of ICD coding, so as to solve the problem that the existing stroke patient identification relies on ICD coding with low accuracy and cannot determine whether the patient is admitted to the hospital due to stroke.
[0005] The technical solution adopted by this application to solve its technical problem is:
[0006] In a first aspect, a method for determining stroke that is independent of ICD coding is provided, comprising:
[0007] Obtaining a long text of the current medical history and diagnosis information of the patient to be identified, wherein the long text of the current medical history is obtained based on the electronic medical record of the patient to be identified, and the diagnosis information is used to describe the disease manifestations of the patient to be identified;
[0008] Inputting the long text of the current medical history into a first pre-trained model to obtain a first text vector, and inputting the diagnosis information into a second pre-trained model to obtain a second text vector;
[0009] Inputting the first text vector and the second text vector into an attention feature fusion module for feature fusion to obtain a target vector;
[0010] The target vector is input into a classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke.
[0011] Furthermore, the step of inputting the first text vector and the second text vector into an attention feature fusion module for feature fusion to obtain a target vector includes:
[0012] The attention feature fusion module calculates the sum of the first text vector and the second text vector to obtain a fused text vector;
[0013] Inputting the fused text vector into a multi-scale channel attention module to obtain a fusion weight, where the fusion weight is greater than or equal to 0 and less than or equal to 1;
[0014] The target vector is obtained based on the fusion weight; target vector=first text vector*fusion weight+second text vector*(1-fusion weight).
[0015] Furthermore, the classification network is a feedforward neural network.
[0016] Furthermore, inputting the target vector into a classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke comprises:
[0017] The feedforward neural network extracts features of different dimensions of the target vector and gives a weight to each feature;
[0018] The weight of each feature is added up to obtain the final weight. When the final weight is greater than the preset value, the feedforward neural network outputs 1, judging that the patient to be identified is a stroke patient and is hospitalized due to stroke; otherwise, the feedforward neural network outputs 0, judging that the patient to be identified is not hospitalized due to stroke.
[0019] Furthermore, the first pre-trained model and the second pre-trained model adopt a BERT language model.
[0020] Furthermore, the first pre-trained model and the second pre-trained model have different parameters.
[0021] Furthermore, the diagnostic information includes multiple items.
[0022] Furthermore, when the diagnostic information is input into the second pre-trained model to obtain the second text vector, the diagnostic information is sorted in descending order of importance and then input into the second pre-trained model to obtain the second text vector.
[0023] In a second aspect, a stroke determination device that does not rely on ICD coding is provided, comprising:
[0024] An information acquisition module, used to acquire a long text of the current medical history and diagnosis information of the patient to be identified, wherein the long text of the current medical history is obtained based on the electronic medical record of the patient to be identified, and the diagnosis information is used to describe the acute disease manifestations of the patient to be identified;
[0025] A vector acquisition module, used for inputting the long text of the current medical history into a first pre-trained model to obtain a first text vector, and inputting the diagnosis information into a second pre-trained model to obtain a second text vector;
[0026] A vector fusion module, used for inputting the first text vector and the second text vector into an attention feature fusion module for feature fusion to obtain a target vector;
[0027] The final judgment module is used to input the target vector into the classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke.
[0028] In a third aspect, a stroke judgment system that does not rely on ICD coding is provided, including:
[0029] at least one processor and at least one memory;
[0030] The memory stores executable instructions of the processor;
[0031] The processor is configured to execute the above-mentioned stroke determination method.
[0032] Beneficial effects:
[0033] The technical solution of the present application provides a method, device and system for determining stroke that is independent of ICD coding. After obtaining the long text of the current medical history and diagnostic information of the patient to be identified, the first text vector and the second text vector are respectively input into the pre-trained model, and the feature fusion is performed based on the attention feature fusion module to obtain the target vector, and the classification network is used to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke. Due to the high missing rate of ICD coding, the poor accuracy and consistency of annotation, it is difficult to accurately identify stroke patients based on ICD coding and it is impossible to determine whether they are hospitalized due to a stroke. The long text of the current medical history and the diagnostic information are the basic information of the electronic medical record data and the original data of the patient's disease information. Therefore, the long text of the current medical history and the diagnostic information can be used to accurately identify whether the patient has a stroke and is hospitalized due to a stroke, so as to accurately screen the stroke research population with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1This is a flow chart of a stroke determination method that is independent of ICD coding and provided in an embodiment of the present application;
[0036] Figure 2 It is a schematic diagram of a stroke determination method that is independent of ICD coding provided in an embodiment of the present application;
[0037] Figure 3 It is a schematic diagram of the structure of a stroke determination device that does not rely on ICD coding provided by an embodiment of the present application;
[0038] Figure 4 It is a schematic diagram of the structure of a stroke judgment system that is independent of ICD coding and provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme of the present application is described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other implementation methods obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0040] It should be emphasized that this application is not used for direct diagnosis of patients, but is an auxiliary method for screening people in the database, that is, predicting the risk of stroke among people in the database so that timely examination or treatment can be carried out.
[0041] Reference Figure 1 The present application embodiment provides a method for determining stroke that is independent of ICD coding, including:
[0042] S11: Obtain the long text of the current medical history and diagnosis information of the patient to be identified, wherein the long text of the current medical history is obtained based on the electronic medical record of the patient to be identified, and the diagnosis information is used to describe the disease manifestations of the patient to be identified. The long text of the current medical history can be obtained from the electronic medical record system in the hospital, because nowadays doctors need to enter the patient's relevant information into the system when diagnosing and treating patients, in order to form an electronic medical record or disease diagnosis book. Compared with ICD coding, the current medical history and diagnosis text information are direct and basic information related to the patient's disease, and are not secondary information that is re-encoded. It is more accurate to determine whether the patient has suffered from a stroke and thus determine the research population. It can also determine whether the patient is hospitalized due to a stroke and collect research-related data more accurately.
[0043] S12: Input the long text of the current medical history into the first pre-trained model to obtain a first text vector, and input the diagnosis information into the second pre-trained model to obtain a second text vector.
[0044] In addition, the diagnostic information generally includes multiple items. In order to facilitate subsequent processing, when the diagnostic information is input into the second pre-trained model to obtain the second text vector, the diagnostic information is sorted in descending order of importance and then input into the second pre-trained model to obtain the second text vector.
[0045] The first pre-trained model and the second pre-trained model use the BERT language model. The first pre-trained model and the second pre-trained model have different parameters. The main advantage of the BERT model is that it uses pre-training technology, thereby improving the accuracy of natural language processing. The application of BERT in natural language processing includes tasks such as text classification, named entity recognition, and sentiment analysis, and has achieved remarkable results. Of course, other language models can also be used in this application, such as a language model based on n-gram. Or a neural network model of word2vec or fastText.
[0046] S13: Input the first text vector and the second text vector into the attention feature fusion module for feature fusion to obtain a target vector. Specifically, the attention feature fusion module calculates the sum of the first text vector and the second text vector to obtain a fused text vector; inputs the fused text vector into the multi-scale channel attention module (MS-CAM) to obtain a fusion weight, which is greater than or equal to 0 and less than or equal to 1; obtains the target vector based on the fusion weight; target vector = first text vector * fusion weight + second text vector * (1-fusion weight).
[0047] Multi-scale Channel Attention Module (MS-CAM): MS-CAM mainly continues the idea of SENet, combines local / global features on CNN, and uses attention to fuse multi-scale information in space.
[0048] There are two major differences in MS-CAM: MS-CAM focuses on the scale of channels through point-by-point convolution (1x1 convolution), instead of convolution kernels of different sizes, using point convolution to make MS-CAM as lightweight as possible. MS-CAM does not focus on local and global context features in the backbone network, but in the channel attention module.
[0049] S14: Input the target vector into a classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke.
[0050] Among them, the classification network is a feedforward neural network. Feedforward Neural Network is a common neural network model with a wide range of applications. It is a network structure composed of multiple layers of neurons. Information can only propagate forward in the network without cyclic connections. Feedforward neural networks have strong pattern recognition capabilities, can cope with complex nonlinear problems, and classify input data.
[0051] Inputting the target vector into a classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke comprises:
[0052] The feedforward neural network extracts features of different dimensions of the target vector and gives a weight for each feature; the weight of each feature is added up to obtain a final weight, and when the final weight is greater than a preset value, the feedforward neural network outputs 1, judging that the patient to be identified is a stroke patient and is hospitalized due to stroke; otherwise, the feedforward neural network outputs 0, judging that the patient to be identified is not hospitalized due to stroke.
[0053] Of course, in addition to the feedforward neural network, the present application can also use a feedback neural network. The characteristic of the feedback network is that there is a feedback connection between the processing units in addition to the feedforward connection. Compared with the feedforward neural network, it has stronger computing power, and its most prominent advantage is that it has strong associative memory and optimization computing functions. According to the characteristics of the network structure, they are divided into two categories: full feedback network structure and partial feedback network structure. The specific selection can be based on the actual situation. This application will not be described in detail here.
[0054] like Figure 2 As shown, the embodiment of the present application provides a specific implementation method, which adopts two BERT language models, an attention feature fusion module, namely an AFF module, and a feedforward neural network.
[0055] Among them, the training set and test set data used in the above model training are shown in Table 1:
[0056] Table 1
[0057]
[0058] The steps are roughly as follows:
[0059] 1. Input the long text of the current medical history and the diagnosis information. In particular, the diagnosis information includes several diagnoses, the first one is the main diagnosis, and the higher the ranking, the more important it is.
[0060] 2. Send the two texts in (1) to two BERT (Bidirectional EncoderRepresentations from Transformers) with different parameters.
[0061] ) language model to obtain text vector representations of both.
[0062] 3. Use an AFF (Attentional Feature Fusion) module to combine the text vector representation of the current medical history and the vector representation of the diagnosis text.
[0063] This module uses a special attention mechanism to link the priority of diagnostic information with the patient's disease information in the long text of the current medical history, so that the model can understand whether the patient has a stroke and is hospitalized due to a stroke based on the input information.
[0064] 4. The output of (3) is fed into a feedforward neural network to classify whether the patient has a stroke. If the model output is 1, the patient is a stroke patient and is hospitalized for stroke. If the output is 0, the patient is not hospitalized for stroke.
[0065] Compared with the method of directly judging by extracting the vector of the current medical history text using ordinary BERT, the precision rate (precision), recall rate (recal 1) and macro index (Macro-F1) of this application scheme are shown in Table 2:
[0066] Table 2
[0067] model Precision reCa|| Macro-F1 Regular BERT 0.88 0.88 0.88 Solution of the present invention 0.93 0.92 0.92
[0068] This application provides a method for intelligently judging stroke based only on the patient's current medical history and diagnostic data, taking into account the attention fusion mechanism of the importance of diagnostic sorting, without the need for ICD coded data, and only based on the medical history text and diagnostic information to obtain excellent accuracy. Compared with the prior art, it is possible to achieve excellent accuracy by using only text data that is relatively easy to obtain in electronic medical records such as current medical history and diagnostic information without the need for ICD coded data.
[0069] The present application also provides a stroke determination device that does not rely on ICD coding. Figure 3 As shown, including:
[0070] The information acquisition module 31 is used to obtain the long text of the current medical history and diagnosis information of the patient to be identified. The long text of the current medical history is obtained based on the electronic medical record of the patient to be identified, and the diagnosis information is used to describe the disease manifestations of the patient to be identified; the diagnosis information includes multiple.
[0071] The vector acquisition module 32 is used to input the long text of the current medical history into the first pre-trained model to obtain a first text vector, and input the diagnosis information into the second pre-trained model to obtain a second text vector; when the diagnosis information is input into the second pre-trained model to obtain the second text vector, the diagnosis information is sorted in descending order of importance, and then input into the second pre-trained model to obtain the second text vector.
[0072] The first pre-training model and the second pre-training model adopt the BERT language model. The first pre-training model and the second pre-training model have different parameters.
[0073] The vector fusion module 33 is used to input the first text vector and the second text vector into the attention feature fusion module for feature fusion to obtain a target vector; the attention feature fusion module calculates the sum of the first text vector and the second text vector to obtain a fused text vector; the fused text vector is input into the multi-scale channel attention module to obtain a fusion weight, and the fusion weight is greater than or equal to 0 and less than or equal to 1; the target vector is obtained based on the fusion weight; the target vector = first text vector * fusion weight + second text vector * (1-fusion weight).
[0074] The final judgment module 34 is used to input the target vector into the classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke. The classification network is a feedforward neural network. The step of inputting the target vector into the classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke includes:
[0075] The feedforward neural network extracts features of different dimensions of the target vector and gives a weight for each feature; the weight of each feature is added up to obtain a final weight, and when the final weight is greater than a preset value, the feedforward neural network outputs 1, judging that the patient to be identified is a stroke patient and is hospitalized due to stroke; otherwise, the feedforward neural network outputs 0, judging that the patient to be identified is not hospitalized due to stroke.
[0076] The stroke judgment device provided in the embodiment of the present application, after obtaining the long text of the current medical history and the diagnosis information of the patient to be identified, respectively inputs the pre-trained model to obtain the first text vector and the second text vector, performs feature fusion based on the attention feature fusion module to obtain the target vector, and judges whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke according to the classification network. Due to the high missing rate of ICD codes, the poor annotation accuracy and consistency, it is difficult to accurately identify stroke patients based on ICD codes and it is impossible to judge whether they are hospitalized due to a stroke, while the long text of the current medical history and the diagnosis information are the basic information of the electronic medical record data and the original data of the patient's disease information. Therefore, the long text of the current medical history and the diagnosis information can be used to accurately identify whether the patient suffers from a stroke and is hospitalized due to a stroke, so as to accurately screen the stroke research population with high accuracy.
[0077] like Figure 4 As shown, the embodiment of the present application also provides a stroke determination system 40 that does not rely on ICD coding, including:
[0078] at least one processor 41 and at least one memory 42;
[0079] The memory stores executable instructions of the processor;
[0080] The processor is configured to execute the stroke determination method independent of ICD coding provided in the above embodiment.
[0081] The stroke judgment system provided in the embodiment of the present application, after obtaining the long text of the current medical history and the diagnosis information of the patient to be identified, respectively inputs the pre-trained model to obtain the first text vector and the second text vector, performs feature fusion based on the attention feature fusion module to obtain the target vector, and judges whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke according to the classification network. Due to the high missing rate of ICD codes, the poor accuracy and consistency of annotations, it is difficult to accurately identify stroke patients based on ICD codes and it is impossible to judge whether they are hospitalized due to a stroke, and the long text of the current medical history and the diagnosis information are the basic information of the electronic medical record data and the original data of the patient's disease information. Therefore, the long text of the current medical history and the diagnosis information can be used to accurately identify whether the patient suffers from a stroke and is hospitalized due to a stroke, so as to accurately screen the stroke research population with high accuracy.
[0082] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0083] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0084] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0085] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0086] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0087] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0088] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0089] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0090] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A stroke diagnosis method that does not rely on ICD coding. It is characterized in that include: Obtaining a long text of the current medical history and diagnosis information of the patient to be identified, wherein the long text of the current medical history is obtained based on the electronic medical record of the patient to be identified, and the diagnosis information is used to describe the disease manifestations of the patient to be identified; Inputting the long text of the current medical history into a first pre-trained model to obtain a first text vector, and inputting the diagnosis information into a second pre-trained model to obtain a second text vector; Inputting the first text vector and the second text vector into an attention feature fusion module for feature fusion to obtain a target vector; The target vector is input into a classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke.
2. The method according to claim 1, Features: The step of inputting the first text vector and the second text vector into an attention feature fusion module for feature fusion to obtain a target vector includes: The attention feature fusion module calculates the sum of the first text vector and the second text vector to obtain a fused text vector; Inputting the fused text vector into a multi-scale channel attention module to obtain a fusion weight, where the fusion weight is greater than or equal to 0 and less than or equal to 1; The target vector is obtained based on the fusion weight; target vector=first text vector*fusion weight+second text vector*(1-fusion weight).
3. The method according to claim 1, Features: The classification network is a feed-forward neural network.
4. The method according to claim 3, Features: Inputting the target vector into a classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke comprises: The feedforward neural network extracts features of different dimensions of the target vector and gives a weight to each feature; The weight of each feature is added up to obtain the final weight. When the final weight is greater than the preset value, the feedforward neural network outputs 1, judging that the patient to be identified is a stroke patient and is hospitalized due to stroke; otherwise, the feedforward neural network outputs 0, judging that the patient to be identified is not hospitalized due to stroke.
5. The method according to claim 1, Features: The first pre-trained model and the second pre-trained model adopt the BERT language model.
6. The method according to claim 1, Features: The first pre-trained model and the second pre-trained model have different parameters.
7. The method according to claim 1, Features: The diagnostic information includes multiple items.
8. The method according to claim 7, Features: When the diagnosis information is input into the second pre-trained model to obtain the second text vector, the diagnosis information is sorted in descending order of importance and then input into the second pre-trained model to obtain the second text vector.
9. A stroke diagnosis device that does not rely on ICD coding. It is characterized in that include: An information acquisition module, used to acquire a long text of the current medical history and diagnostic information of the patient to be identified, wherein the long text of the current medical history is obtained based on the electronic medical record of the patient to be identified, and the diagnostic information is used to describe the disease manifestations of the patient to be identified; A vector acquisition module, used for inputting the long text of the current medical history into a first pre-trained model to obtain a first text vector, and inputting the diagnosis information into a second pre-trained model to obtain a second text vector; A vector fusion module, used for inputting the first text vector and the second text vector into an attention feature fusion module for feature fusion to obtain a target vector; The final judgment module is used to input the target vector into the classification network to determine whether the patient to be identified suffers from a stroke and is hospitalized due to a stroke.
10. A stroke diagnosis system that does not rely on ICD coding. It is characterized in that include: at least one processor and at least one memory; The memory stores executable instructions of the processor; The processor is configured to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Intelligent cerebral apoplexy staging method and device and storage medium
CN119517386A
