Multi-granularity information processing method and device based on electronic medical records
By classifying and classifying the inpatient electronic medical record data and performing multi-granularity calculations, core phrases and interesting paragraphs are extracted, which solves the problem of processing various types of medical record data, improves the accuracy and efficiency of information processing, and provides high-quality information for intelligent diagnosis. Data resources.
Patent Information
- Application Number
- CN202311429286.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-10-31
AI Technical Summary
Existing technologies are difficult to effectively process multiple types of inpatient electronic medical record data, resulting in problems such as heavy computation, waste of resources, and flooding of high-value information.
By classifying and grading the inpatient medical record data, multiple medical record data subsets are obtained, and multi-granularity calculations are performed on them to extract core phrases and interesting paragraphs for subsequent application of the model for data analysis.
It improves the accuracy and efficiency of inpatient medical record information processing, provides sufficient sample resources and high-quality data for application model training, and enhances intelligent diagnosis capabilities.
Smart Images

Figure CN117235582B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of natural language processing, and in particular to a multi-granularity information processing method and device based on electronic medical records. Background Art
[0002] In the medical field, multi-source heterogeneous electronic medical record data contains a wealth of medical knowledge, expert experience, clinical guidelines and other information, and is a treasure trove of resources that is in urgent need of development and utilization. At the same time, electronic medical records also have the characteristics of rich contextual semantics, different content styles, prominent temporal characteristics, and broad application scenarios. It is urgent to study new efficient model training methods. Inpatient medical records can be divided into multiple types according to different contents and styles. Each type of inpatient medical record is different in information collation, content organization, and format arrangement, and each has its own emphasis. In this way, when applying intelligent inpatient electronic medical records, if the various types of medical record data are not distinguished and model training and reasoning are blindly and mechanically performed, on the one hand, the amount of calculation will be greatly increased, and precious computing resources will be consumed. On the other hand, some high-value information hidden in different types of medical records will be submerged, making it difficult to accurately extract the individual characteristics of medical records, and even more difficult to focus on relevant diagnosis and treatment knowledge.
[0003] Most existing technologies use machine learning, deep learning and other technologies to build relevant models for single tasks and single goals. It is difficult to continuously improve algorithm performance, difficult to effectively adapt to a variety of application scenarios, and even more difficult to efficiently complete the intelligent diagnosis of difficult and complex diseases. At present, multimodal, multi-task, multi-target and other modeling technologies are developing rapidly, and "pre-training + fine-tuning" has become an important new modeling paradigm. Basic models, pre-trained models, and generative large models continue to emerge. That is, using a general generative large model as the base and adding high-quality data from professional fields for fine-tuning training can effectively improve the application performance of the model in downstream scenarios such as intelligent consultation and auxiliary diagnosis. In this way, the data quality in professional fields becomes an important factor restricting the quality of model fine-tuning. Summary of the invention
[0004] In view of the above problems, an embodiment of the present invention provides a multi-granularity information processing method and device based on electronic medical records, which overcomes the above problems or at least partially solves the above problems.
[0005] According to one aspect of an embodiment of the present invention, a multi-granularity information processing method based on electronic medical records is provided, the method comprising: classifying and grading inpatient medical record data to obtain multiple medical record data subsets corresponding to the application, each of the medical record data subsets including multiple medical record texts; performing multi-granularity calculations on the medical record texts in any of the medical record data subsets to obtain core phrases and interesting paragraphs of each medical record text for subsequent input into an application model for data analysis.
[0006] Optionally, the inpatient medical record data is classified and graded with multi-granularity information to obtain multiple medical record data subsets corresponding to the application, including: classifying and grading the inpatient medical record data based on disease diagnosis, medical record type and patient ID in turn according to application requirements, and dividing the inpatient medical record data into multiple medical record data subsets, each of the medical record data subsets including multiple medical record texts of any medical record diagnosis, any medical record type and any patient ID.
[0007] Optionally, before performing multi-granularity calculation on part of the medical record texts in any of the medical record data subsets, the method includes: sorting the medical record texts in the medical record data subsets with the same disease diagnosis, the same medical record type, or even the same patient ID in chronological order.
[0008] Optionally, multi-granularity computing is performed on the medical record texts in any of the medical record data subsets to obtain core phrases and interesting segments of each medical record text, including: selecting a first preset number of medical record texts from each of the medical record data subsets belonging to the same disease diagnosis, and performing word segmentation processing to obtain benchmark keywords corresponding to the disease diagnosis; identifying and extracting core phrases and interesting segments of each medical record text in each of the medical record data subsets belonging to the same disease diagnosis based on the benchmark keywords.
[0009] Optionally, the word segmentation processing to obtain benchmark keywords corresponding to the disease diagnosis includes: performing full-text word segmentation processing on all selected medical record texts to obtain each segmentation phrase; counting each segmentation phrase and determining the benchmark keywords corresponding to the disease diagnosis.
[0010] Optionally, the counting of each segmentation phrase and determining the benchmark keywords corresponding to the disease diagnosis includes: counting the occurrence frequency of each segmentation phrase and sorting them from high to low; selecting the second preset number of segmentation phrases ranked at the top as preliminary keywords; performing clustering calculations on the preliminary keywords to obtain the benchmark keywords corresponding to the disease diagnosis.
[0011] Optionally, the core phrases and interesting passages are identified and extracted from each medical record text in each medical record data subset belonging to the same disease diagnosis according to the benchmark keywords, including: full-text scanning of each medical record text in each medical record data subset belonging to the same disease diagnosis, and identifying all the benchmark keywords in turn; vectorization is performed based on all the benchmark keywords, and vectors of the passages of interest are obtained and stored in a vector database.
[0012] Based on the same inventive concept, a multi-granularity information processing device based on electronic medical records is provided, including: a classification and grading processing unit, used to perform classification and grading processing on inpatient medical record data, and obtain multiple medical record data subsets corresponding to the application, each of the medical record data subsets including multiple medical record texts; a multi-granularity computing unit, used to perform multi-granularity computing on the medical record texts in any of the medical record data subsets, and obtain the core phrases and interesting paragraphs of each medical record text, so as to subsequently input the application model for data analysis.
[0013] Based on the same inventive concept, an embodiment of the present invention further proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method when executing the program.
[0014] Based on the same inventive concept, an embodiment of the present invention further proposes a computer storage medium, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute the aforementioned method.
[0015] The embodiment of the present invention classifies and grades the inpatient medical record data to obtain multiple medical record data subsets corresponding to the application, each of which includes multiple medical record texts; multi-granularity calculations are performed on the medical record texts in any of the medical record data subsets to obtain core phrases and interesting paragraphs of each medical record text for subsequent input into the application model for data analysis, thereby improving the accuracy and efficiency of inpatient medical record information processing and providing sufficient sample resources and high-quality data for subsequent application model training.
[0016] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0018] Figure 1 A schematic diagram of a process of a multi-granularity information processing method based on electronic medical records provided by an embodiment of the present invention is shown;
[0019] Figure 2 A schematic diagram of the "base model + data fine-tuning" strategy of an embodiment of the present invention is shown;
[0020] Figure 3 A schematic diagram of the classification and grading processing structure of an embodiment of the present invention is shown;
[0021] Figure 4 A schematic diagram of medical record classification and multi-granularity computing according to an embodiment of the present invention is shown;
[0022] Figure 5 A schematic diagram showing the structure of a multi-granularity information processing device based on electronic medical records provided by an embodiment of the present invention;
[0023] Figure 6 A schematic diagram of an electronic device in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0024] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0025] Figure 1 A schematic flow chart of a multi-granularity information processing method based on electronic medical records provided in an embodiment of the present invention is shown.
[0026] like Figure 1 As shown, the multi-granularity information processing method based on electronic medical records is applied to a server, including:
[0027] Step S11: classify and grade the inpatient medical record data to obtain multiple medical record data subsets corresponding to the application, each of which includes multiple medical record texts.
[0028] Inpatient medical records contain extensive content and rich knowledge. Some high-value information such as clinical diagnosis and treatment, disease characteristics and treatment rules are implicit and scattered in a large amount of text information. How to quickly extract and efficiently use this high-value information is a technical challenge. In addition, the number of medical record texts is huge, and there are many types of medical records of different styles and themes. How to conduct low-cost and high-efficiency mining and analysis to improve resource utilization efficiency within a limited time also requires innovative methods. Conventional single-task and single-target modeling methods are difficult to effectively respond to a variety of downstream application needs, and there are problems such as repeated processing and repeated calculation of medical record data, which is time-consuming and labor-intensive, and has low cost-effectiveness. In recent years, the "pre-training model + fine-tuning" model construction technology has developed rapidly and has become an advanced technology in the fields of natural language processing and medical text processing. For the same disease, some patients are hospitalized multiple times at different times; some patients are hospitalized multiple times to treat different diseases, and some patients are basically cured after one hospitalization. Deeply and fully mining these medical record knowledge and sorting out the changing relationship and internal logic of disease treatment outcomes will be very helpful to improve the processing performance and quality of subsequent application models.
[0029] The embodiment of the present invention is based on Figure 2 The "base model + data fine-tuning" strategy shown in the figure, by classifying and grading a large number of inpatient electronic medical record texts in turn, is convenient for building medical record data sets according to different downstream application requirements, thereby facilitating the rapid construction of fine-tuning models for different downstream tasks. Figure 3 The data pyramid shown includes, from bottom to top: classification by disease diagnosis, classification by medical record type, full text of medical records, text segments of interest, and core words. The corresponding data are: medical record data of the same diagnosis, medical record data of the same type, full text of medical records of the same patient at different time periods, text segments of interest selected from the full text of medical records, and core phrases selected from the full text of medical records. Among them, medical record types include admission records, medical records, consultation records, doctor's orders, temperature sheets, preoperative summaries, discharge records, and other types. The embodiment of the present invention continuously enriches high-value information in medical record data by constructing a data pyramid. From top to bottom, the amount of data is rapidly increasing, and useful information is rapidly "diluted"; from bottom to top, the amount of data is continuously decreasing, and key information is continuously concentrated.
[0030] In step S11, optionally, the inpatient medical records are classified and graded based on disease diagnosis, medical record type and patient ID in turn according to application requirements, and the inpatient medical record data is divided into multiple medical record data subsets, each of which includes multiple medical record texts of any medical record diagnosis, any medical record type and any patient ID. A medical record data subset represents the data of a base model. In an embodiment of the present invention, classification processing refers to dividing and categorizing the inpatient electronic medical record data in turn according to identification information such as disease diagnosis, medical record type, and patient ID. That is, logically, the inpatient medical record library is divided into several different inpatient medical record subsets according to classification conditions, and each subset is composed of multiple medical record texts with the same disease diagnosis, the same medical record type, or even the same patient ID. Specifically, Figure 4 As shown in the figure, the medical record data in the inpatient medical record database is divided into inpatient medical record data sets of various disease diagnoses according to disease diagnosis. On this basis, it is divided into subsets such as admission records, medical course records, consultation records, and discharge records according to the medical record type. Each subset is further divided according to the patient ID, including the relevant medical record data of the patient at different time periods.
[0031] Since medical records are usually archived using "database + document" technology, SQL query technology can be used to implement medical record classification processing. Based on classification processing, classification processing first sorts multiple medical records with the same disease diagnosis, the same medical record type, or even the same patient ID in chronological order, so as to facilitate the subsequent use of natural language processing technology to identify interesting passages, extract core phrases, and other multi-granular data processing.
[0032] The embodiment of the present invention establishes a classification and hierarchical processing mechanism for inpatient medical record information, and organizes the inpatient medical records into categories, which is helpful for extracting, analyzing and applying high-value information, improving the purity and abundance of useful information, and reducing the interference of irrelevant information.
[0033] Step S12: Perform multi-granularity calculations on the medical record texts in any of the medical record data subsets to obtain core phrases and interesting passages of each medical record text so as to be subsequently input into an application model for data analysis.
[0034] In step S12, optionally, a first preset number of medical record texts are selected from each of the medical record data subsets belonging to the same disease diagnosis, and word segmentation processing is performed to obtain benchmark keywords corresponding to the disease diagnosis; core phrases and interesting passages are identified and extracted from each of the medical record texts in each of the medical record data subsets belonging to the same disease diagnosis according to the benchmark keywords. The first preset number can be set as needed and is not specifically limited here.
[0035] In an embodiment of the present invention, a group of representative medical record texts are selected for each subset of medical record data belonging to the same disease diagnosis, and then word segmentation processing is performed. The representative medical record text can be a medical record text with a relatively high application frequency and relatively comprehensive information. Word segmentation processing is to perform full-text phrase division and part-of-speech identification. When performing word segmentation processing, full-text word segmentation processing is performed on all selected medical record texts to obtain each word segmentation phrase; each word segmentation phrase is counted, and the benchmark keywords corresponding to the disease diagnosis are determined. Optionally, the frequency of occurrence of each word segmentation phrase is counted and sorted from high to low; the word segmentation phrases ranked second preset number are selected as preliminary keywords; the preliminary keywords are clustered and calculated to obtain the benchmark keywords corresponding to the disease diagnosis. The second preset number can be set as needed, and is not specifically limited here, preferably data between 8 and 15. The embodiment of the present invention uses word cloud technology to count the number of occurrences of each type of word segmentation phrase, and sort them by frequency of occurrence, and the top K word segmentation phrases are regarded as preliminary keywords. Clustering calculation is used for the preliminary keywords of various medical records belonging to the same disease diagnosis, that is, the benchmark keywords for each diagnosis are calculated according to the principle of "minimum within the class, maximum between classes". The principle of "minimum within the class, maximum between classes" means that when clustering, the distance value of keywords in different classes is the largest, while the distance value of keywords belonging to the same class is the smallest.
[0036] The same processing is performed on the medical record data of various disease diagnoses to obtain the reference keywords corresponding to the respective disease diagnoses.
[0037] In an embodiment of the present invention, after obtaining the benchmark keywords corresponding to any disease diagnosis, the core phrases and interesting text segments of each medical record text in each of the medical record data subsets belonging to the same disease diagnosis are identified and extracted according to the benchmark keywords. For each medical record text of the same type, these benchmark keywords are used as identifiers to identify and extract the core phrases and interesting text segments. Note that each medical record text and all benchmark keywords are vectorized here, and subsequent processing is performed in the form of vectors. The specific method is to perform a full-text scan on the medical record text, identify all benchmark keywords in turn, and regard the paragraphs in which these benchmark keywords appear as "sentences" as units of interesting text segments, and count the overlapping areas only once, and store the vectors of the interesting text segments in the vector database for subsequent calculation. Therefore, in an embodiment of the present invention, optionally, for any medical record data subset, the full-text scan of each medical record text in each of the medical record data subsets belonging to the same disease diagnosis is performed, and all the benchmark keywords are identified in turn; vectorization is performed according to all the benchmark keywords, and the vectors of the interesting text segments are obtained and stored in the vector database, so that they can be subsequently input into the application model for data analysis.
[0038] In the embodiment of the present invention, a batch of medical records may be periodically selected according to actual conditions and recalculated using the same method as above to obtain new benchmark keywords.
[0039] The embodiment of the present invention classifies and processes the inpatient medical record data in sequence according to the progressive conditions such as "disease diagnosis-medical record type-patient ID", so that a large number of inpatient electronic medical records can be aligned and archived in a more orderly, efficient and unified manner, which is convenient for applications such as model fine-tuning and testing. At the same time, the medical record text is subjected to multi-granular information analysis and organization according to the hierarchical structure of "full text of medical record-interesting paragraph-core phrase", which facilitates more in-depth and comprehensive mining calculations of inpatient electronic medical records and improves the accuracy and efficiency of inpatient medical record information processing. In addition, the medical record text and keywords are compared, searched and calculated in the form of vectors, and the results are stored in the vector database for later use. The function of this module can be realized as a background application on-duty service to provide 7×24 hours service for medical record information processing.
[0040] The embodiments of the present invention classify and grade inpatient electronic medical records, which can be pre-processed in the form of background application duty services before application model training, and store multi-granularity calculation results in a vector database, providing sufficient sample resources and high-quality data for subsequent application model training, which can improve the application model training and reasoning performance based on inpatient electronic medical records, and further promote the application development of intelligent inpatient medical records.
[0041] To summarize, the multi-granularity information processing method based on electronic medical records in an embodiment of the present invention obtains multiple medical record data subsets corresponding to the application by classifying and grading the inpatient medical record data, and each of the medical record data subsets includes multiple medical record texts; multi-granularity calculations are performed on the medical record texts in any of the medical record data subsets to obtain core phrases and interesting paragraphs of each medical record text for subsequent input into the application model for data analysis, which can improve the accuracy and efficiency of inpatient medical record information processing and provide sufficient sample resources and high-quality data for subsequent application model training.
[0042] The above specific embodiments of the present invention are described. In some cases, the actions or steps recorded in the embodiments of the present invention can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0043] Based on the same concept, the embodiment of the present invention also provides a multi-granularity information processing device based on electronic medical records. Applied to a server. Figure 5As shown, the multi-granularity information processing device based on electronic medical records includes: a classification and grading processing unit and a multi-granularity computing unit.
[0044] A classification and grading processing unit, used for classifying and grading the inpatient medical record data, and obtaining a plurality of medical record data subsets corresponding to the application, each of which includes a plurality of medical record texts;
[0045] The multi-granularity computing unit is used to perform multi-granularity computing on the medical record texts in any of the medical record data subsets to obtain the core phrases and interesting paragraphs of each medical record text for subsequent input into the application model for data analysis.
[0046] For the convenience of description, the above device is described as various modules according to their functions. Of course, when implementing the embodiment of the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0047] The device of the above embodiment is applied to the corresponding method in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0048] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of the above embodiments is implemented.
[0049] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the method described in any of the above embodiments.
[0050] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 601, a memory 602, an input / output interface 603, a communication interface 604, and a bus 605. The processor 601, the memory 602, the input / output interface 603, and the communication interface 604 are connected to each other in communication within the device through the bus 605.
[0051] The processor 601 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided by the method embodiment of the present invention.
[0052] The memory 602 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 602 can store an operating system and other application programs. When the technical solution provided by the method embodiment of the present invention is implemented by software or firmware, the relevant program code is stored in the memory 602 and called and executed by the processor 601.
[0053] The input / output interface 603 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.
[0054] The communication interface 604 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0055] The bus 605 includes a path for transmitting information between various components of the device (eg, the processor 601 , the memory 602 , the input / output interface 603 , and the communication interface 604 ).
[0056] It should be noted that, although the above device only shows the processor 601, the memory 602, the input / output interface 603, the communication interface 604 and the bus 605, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present invention, and does not necessarily include all the components shown in the figure.
[0057] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0058] This application is intended to cover all such substitutions, modifications and variations that fall within the broad scope of all embodiments. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the scope of protection of this disclosure.
Claims
1. A multi-granularity information processing method based on electronic medical records, characterized in that: The method comprises: Classify and grade the inpatient medical record data to obtain multiple medical record data subsets corresponding to the application, each of which includes multiple medical record texts; wherein the inpatient medical record data is classified and graded based on disease diagnosis, medical record type and patient ID in turn according to application requirements, and the inpatient medical record data is divided into multiple medical record data subsets, and the inpatient medical record data is graded into disease diagnosis, medical record type, patient ID and time period, each level includes multiple classes, and each of which includes multiple medical record texts belonging to any patient ID under any disease diagnosis under any medical record type, and medical record data of a time period under a disease diagnosis and belonging to any patient ID under a medical record type corresponds to one medical record text; Perform multi-granularity calculations on the medical record texts in any of the medical record data subsets to obtain core phrases and interesting paragraphs of each medical record text so as to subsequently input them into the application model for data analysis; The multi-granularity calculation is performed on the medical record texts in any of the medical record data subsets to obtain the core phrases and interesting text segments of each medical record text, including: A first preset number of medical record texts are selected from each of the medical record data subsets belonging to the same disease diagnosis, and word segmentation processing is performed to obtain benchmark keywords corresponding to the disease diagnosis; wherein full-text word segmentation processing is performed on all selected medical record texts to obtain each word segmentation phrase; each word segmentation phrase is counted, and the benchmark keywords corresponding to the disease diagnosis are determined, including: counting the frequency of occurrence of each word segmentation phrase, and sorting them from high to low; selecting the second preset number of word segmentation phrases ranked first as preliminary keywords; performing clustering calculation on the preliminary keywords to obtain the benchmark keywords corresponding to the disease diagnosis; According to the benchmark keywords, core phrases and interesting passages are identified and extracted from each medical record text in each medical record data subset belonging to the same disease diagnosis.
2. The method according to claim 1, characterized in that Before performing multi-granularity calculation on the medical record text in any of the medical record data subsets, the method includes: The medical record texts in the medical record data subset with the same disease diagnosis and belonging to the same medical record type and the same patient ID are sorted in chronological order.
3. The method according to claim 1, characterized in that The identifying and extracting core phrases and interesting passages from each medical record text in each medical record data subset belonging to the same disease diagnosis according to the benchmark keywords includes: Performing full text scanning on each medical record text in each medical record data subset belonging to the same disease diagnosis, and sequentially identifying all the reference keywords; Vectorization is performed based on all the benchmark keywords to obtain the vector of the text of interest and store it in the vector database.
4. A multi-granularity information processing device based on electronic medical records, characterized in that: The device comprises: A classification and grading processing unit is used to classify and grade the inpatient medical record data, and obtain multiple medical record data subsets corresponding to the application, each of which includes multiple medical record texts; wherein the inpatient medical record data is classified and graded based on disease diagnosis, medical record type and patient ID in turn according to application requirements, and the inpatient medical record data is divided into multiple medical record data subsets, and the inpatient medical record data is graded into disease diagnosis, medical record type, patient ID, and time series, each level includes multiple classes, and each of the medical record data subsets includes multiple medical record texts belonging to any patient ID under any disease diagnosis under any medical record type, and medical record data of a period of time belonging to any patient ID under a disease diagnosis and a medical record type corresponds to one medical record text; The multi-granularity computing unit is used to perform multi-granularity computing on the medical record text in any of the medical record data subsets to obtain the core phrases and interesting text segments of each medical record text so as to subsequently input the application model for data analysis, including: A first preset number of medical record texts are selected from each of the medical record data subsets belonging to the same disease diagnosis, and word segmentation processing is performed to obtain benchmark keywords corresponding to the disease diagnosis; wherein full-text word segmentation processing is performed on all selected medical record texts to obtain each word segmentation phrase; each word segmentation phrase is counted, and the benchmark keywords corresponding to the disease diagnosis are determined, including: counting the frequency of occurrence of each word segmentation phrase, and sorting them from high to low; selecting the second preset number of word segmentation phrases ranked first as preliminary keywords; performing clustering calculation on the preliminary keywords to obtain the benchmark keywords corresponding to the disease diagnosis; According to the benchmark keywords, core phrases and interesting passages are identified and extracted from each medical record text in each medical record data subset belonging to the same disease diagnosis.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.
6. A computer storage medium, characterized in that: The storage medium stores at least one executable instruction, and the executable instruction enables the processor to execute the method as described in any one of claims 1-3.
