Method, device, medium and terminal for constructing medical core word knowledge base
By building a medical core word knowledge base and using corpora and synonym clustering, the problem of differences between medical terminology coding and clinical diagnosis and treatment processes has been solved, efficient medical variable extraction and diagnosis recommendations have been achieved, cost and redundancy have been reduced, and version consistency has been ensured. sex.
Patent Information
- Application Number
- CN202410444505.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-04-15
AI Technical Summary
The existing medical terminology coding system is very different from the idioms used in the clinical diagnosis and treatment process, making it difficult to use intelligent diagnosis recommendations and medication recommendations. In addition, the correctness of terminology and regular expressions requires a lot of manpower to label and tune, which is costly and difficult to be compatible with multiple versions. and management, leading to redundancy and confusion.
By building a medical core word knowledge base, using the corpus and synonym clustering, the final selected core word entries are obtained, and consistent quality control and optimization of regular matching and term matching are carried out to reduce labor costs and ensure version consistency.
It improves the production efficiency and quality of medical variables, meets the needs of intelligent diagnosis and medication recommendation, reduces version redundancy and confusion, and reduces R&D and implementation costs.
Smart Images

Figure CN118035504B
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical data processing technology, and in particular to a method, device, medium and terminal for constructing a medical core word knowledge base. Background Art
[0002] The current data application medical information software needs to extract medical variables from medical data, and after the process of concept definition, logical definition, normalization, etc., the medical data can be extracted, calculated and applied in the form of variables to establish a medical knowledge base. Regular expressions and term encoding are two common ways to achieve medical variable definition and normalization, but there are the following problems: 1) The current common medical term encoding system such as ICD10 is formulated for specific scenarios, which is quite different from the customary terms in the clinical diagnosis and treatment process, and it is difficult to meet the needs of scenarios such as intelligent diagnosis recommendations and medication recommendations in the diagnosis and treatment process. 2) In order to ensure the correctness of the terms and regular expressions, it is necessary to combine a large amount of medical data for annotation, quality control and optimization. This process is currently labor-intensive and costly to implement. 3) The knowledge base is used in multiple projects and products, and it is necessary to customize and update the terms and regular expressions based on the project and product requirements, and it is necessary to be compatible and manage multiple content versions. The existing methods are difficult to ensure the conceptual consistency of multiple content versions, which is easy to cause redundancy and confusion between new and old versions. Summary of the invention
[0003] In view of the shortcomings of the prior art mentioned above, the purpose of the present application is to provide a method, device, medium and terminal for constructing a medical core word knowledge base, which is used to solve the technical problems in the prior art of low efficiency in producing and extracting medical variables from medical data, difficulty in ensuring quality, high implementation cost, labor consumption, and difficulty in compatibility and management of multiple versions.
[0004] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a method for constructing a medical core word knowledge base, comprising:
[0005] Define the medical characteristic words that need to be included in the core words to obtain several medical core words;
[0006] Selecting one or more medical data corresponding to each medical core word from the pre-stored medical data text, each medical core word and the one or more medical data corresponding to it form a core word entry, thereby constructing a corpus containing multiple core word entries;
[0007] Performing synonym clustering on the core word items in the corpus to obtain a plurality of core word groups; each core word group includes a plurality of core word items with the same meaning but different expressions;
[0008] Extract one of the core word items from each core word group as the final core word item of the core word group;
[0009] The components of each final selected core word entry are configured to obtain a medical core word knowledge base.
[0010] In some embodiments of the first aspect of the present application, a method of performing synonym clustering on the core word entries in the corpus to obtain a plurality of core word groups includes:
[0011] Calculating the similarity between two core word entries in the corpus;
[0012] According to the similarity between two core word items in the corpus, the core word items reaching a preset similarity threshold are clustered to obtain a plurality of core word groups.
[0013] In some embodiments of the first aspect of the present application, the method of calculating the similarity between pairwise core word entries in the corpus includes: using a character similarity algorithm to calculate the similarity between pairwise core word entries in the corpus; and / or, using a semantic similarity algorithm to calculate the similarity between pairwise core word entries in the corpus.
[0014] In some embodiments of the first aspect of the present application, the method of configuring the components of each final core word entry to obtain a medical core word knowledge base includes: a combination of one or more of regular expression configuration, term encoding configuration, synonym configuration and blacklist configuration.
[0015] In some embodiments of the first aspect of the present application, the method is also used to perform the following steps: after obtaining the medical core word knowledge base, data quality control and optimization are performed based on the consistency of the regular matching results and the term matching results.
[0016] In some embodiments of the first aspect of the present application, the method of performing data quality control and optimization according to the consistency of the regular expression matching result and the term matching result includes:
[0017] Performing regular expression matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a first matching result for each of the final selected core word entries;
[0018] Performing term matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a second matching result for each of the final selected core word entries;
[0019] Calculating the consistency rate between the first matching result and the second matching result of each of the final selected core word items;
[0020] Determining the matching accuracy of each of the final selected core word entries according to the consistency rate;
[0021] According to the matching accuracy of each of the final selected core word entries, component configuration optimization is performed on each of the final selected core word entries to update the medical core word knowledge base.
[0022] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a device for constructing a medical core word knowledge base, comprising:
[0023] An acquisition module is used to define medical characteristic words that need to be included in the core words to obtain a number of medical core words;
[0024] A corpus construction module is used to select one or more medical data corresponding to each medical core word from the pre-stored medical data text, and each medical core word and its corresponding one or more medical data form a core word entry, thereby constructing a corpus containing multiple core word entries;
[0025] A clustering module, used for performing synonym clustering on the core word items in the corpus to obtain a plurality of core word groups; each core word group includes a plurality of core word items with the same meaning but different expressions;
[0026] A final selection module, used to extract one of the core word items from each core word group as the final selected core word item of the core word group;
[0027] The knowledge base construction module is used to configure the components of each final selected core word entry to obtain a medical core word knowledge base.
[0028] In some embodiments of the second aspect of the present application, the clustering module performs synonym clustering on the core word items in the corpus to obtain a plurality of core word groups, including:
[0029] Calculating the similarity between two core word entries in the corpus;
[0030] According to the similarity between two core word items in the corpus, the core word items reaching a preset similarity threshold are clustered to obtain a plurality of core word groups.
[0031] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for constructing a medical core word knowledge base as described above is implemented.
[0032] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides an electronic terminal, including: a processor and a memory; the memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory, so that the electronic terminal executes the medical core word knowledge base construction method as described above.
[0033] As described above, the medical core word knowledge base construction method, device, medium and terminal of the present application have the following beneficial effects: by constructing a corpus and clustering core words, the final core word entries are configured with components, thereby constructing a medical core word knowledge base, so that the final core word entries can meet the requirements of matching both standard medical terms and non-term regular or function expressions when applied, so as to meet the use needs of scenarios such as intelligent diagnosis recommendation and medication recommendation in the diagnosis and treatment process, enrich the use scenarios, and multiple different medical variables can reuse the same final core word entries, avoiding the repeated production of the connotation of medical variables. In addition, the final core word entries are automatically cross-validated through medical data, and data quality control and optimization are performed according to the consistency of regular matching results and term matching results, which reduces the workload of quality control and annotation, ensures the consistency and standardization of the medical core word knowledge base, avoids redundancy and confusion between different versions, and improves the production efficiency and quality of the final core word entries through quality control, which can speed up the research and development process and implementation process of medical information software of data application type, and reduce the cost of research and development and implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1A Shown is a flowchart of a method for constructing a medical core word knowledge base in one embodiment of the present application.
[0035] Figure 1B Shown is a schematic diagram of the process of obtaining core phrases in one embodiment of the present application.
[0036] Figure 2 Shown is a flowchart of core word quality control and optimization in one embodiment of the present application.
[0037] Figure 3 Shown is a structural schematic diagram of a medical core word knowledge base construction device in one embodiment of the present application.
[0038] Figure 4 Shown is a schematic diagram of the structure of an electronic terminal in one embodiment of the present application. DETAILED DESCRIPTION
[0039] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0040] It should be noted that in the following description, with reference to the accompanying drawings, several embodiments of the present application are described in the accompanying drawings. It should be understood that other embodiments may also be used, and mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.
[0041] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.
[0042] The current data application medical information software needs to extract medical variables from medical data, and after the process of concept definition, logical definition, normalization, etc., the medical data can be extracted, calculated and applied in the form of variables to establish a medical knowledge base. Regular expressions and term encoding are two common ways to achieve medical variable definition and normalization, but there are the following problems: 1) The current common medical term encoding system such as ICD10 is formulated for specific scenarios, which is quite different from the customary terms in the clinical diagnosis and treatment process, and it is difficult to meet the needs of scenarios such as intelligent diagnosis recommendations and medication recommendations in the diagnosis and treatment process. 2) In order to ensure the correctness of the terms and regular expressions, it is necessary to combine a large amount of medical data for annotation, quality control and optimization. This process is currently labor-intensive and costly to implement. 3) The knowledge base is used in multiple projects and products, and it is necessary to customize and update the terms and regular expressions based on the project and product requirements, and it is necessary to be compatible and manage multiple content versions. The existing methods are difficult to ensure the conceptual consistency of multiple content versions, which is easy to cause redundancy and confusion between new and old versions.
[0043] In order to solve the problems in the above-mentioned background technology, the present invention provides a method, device, medium and terminal for constructing a medical core word knowledge base. The medical core word knowledge base is constructed by constructing a corpus and clustering synonym groups, and the core word content is automatically cross-validated through medical data, thereby improving the production efficiency and quality of medical variables. The purpose is to solve the technical problems in the prior art of low efficiency in producing and extracting medical variables from medical data, difficulty in ensuring quality, high implementation cost, labor consumption, and difficulty in compatibility and management of multiple versions.
[0044] At the same time, in order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution in the embodiment of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the invention.
[0045] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0046] <1> Medical variables: refers to the parameters or observation indicators used in medical-related computer systems to describe, quantify or analyze medical phenomena such as patient health status, disease characteristics, and treatment effects.
[0047] <2> Medical core words: refers to the commonly used and key terms or concepts in the medical field. These core words constitute the basis of the medical knowledge system and are used to describe medical-related content such as diseases, symptoms, signs, treatment methods, drugs, anatomical structures, etc.
[0048] like Figure 1AAs shown, a schematic diagram of the process of constructing a medical core word knowledge base in an embodiment of the present invention is shown. The method for constructing a medical core word knowledge base in this embodiment mainly includes the following steps:
[0049] S101: Define medical characteristic words that need to be included in core words to obtain several medical core words.
[0050] In this embodiment, based on the professional knowledge in the medical field, the medical characteristic words that need to be included in the core words are defined, so as to select representative and recognized medical core words to ensure that the selected medical core words are accurate, representative and applicable.
[0051] S102: Filter one or more corresponding medical data for each medical core word from the pre-stored medical data text, each medical core word and its corresponding one or more medical data form a core word entry, and a corpus containing multiple core word entries is constructed based on the core word entry.
[0052] In this embodiment, the pre-stored medical data text includes but is not limited to: drug dictionaries, test dictionaries, medical records, examination reports, surgical records, etc. The pre-stored medical data text is deduplicated and cleaned to ensure the accuracy of the corresponding medical data selected for each medical core word. Among them, for structured medical data texts, such as drug dictionaries, test dictionaries, etc., after deduplication and cleaning, one or more corresponding medical data are selected for each medical core word. For unstructured text data such as medical records, examination reports, surgical records, etc., after sentence and word segmentation processing, deduplication and cleaning are performed, and after excluding stop words, one or more corresponding medical data are selected for each medical core word.
[0053] In this embodiment, each medical core word and its corresponding one or more medical data form a core word entry, and a corpus containing multiple core word entries is constructed accordingly. In the corpus, each medical core word has corresponding medical data, which ensures the professionalism and accuracy of the data in the corpus.
[0054] S103: Synonym clustering is performed on the core word items in the corpus to obtain a plurality of core word groups; each core word group includes a plurality of core word items with the same meaning but different expressions.
[0055] In this embodiment, if Figure 1B FIG. 1 is a flow chart showing a process of obtaining core word groups in an embodiment of the present invention. The method of performing synonym clustering on the core word items in the corpus to obtain multiple core word groups includes:
[0056] S1031: Calculate the similarity between any two core word entries in the corpus.
[0057] In this embodiment, the method of calculating the similarity between two core word entries in the corpus includes: using a character similarity algorithm to calculate the similarity between two core word entries in the corpus; and / or using a semantic similarity algorithm to calculate the similarity between two core word entries in the corpus.
[0058] In this embodiment, based on the character similarity algorithm and / or the semantic similarity algorithm, the similarity between any two core word entries in the corpus can be quickly calculated. The calculation method is relatively simple, which reduces the implementation cost and improves the calculation efficiency.
[0059] S1032: Clustering the core word items that reach a preset similarity threshold according to the similarity between any two core word items in the corpus to obtain a plurality of core word groups.
[0060] In this embodiment, the core word items with high similarity in the corpus are clustered based on a clustering algorithm, and the core word items that reach a preset similarity threshold are placed in the same core word group, thereby obtaining multiple core word groups. The similarity between the core word items in each core word group is reviewed and corrected, and the core word items below the preset similarity threshold are eliminated, and this is repeated until there are no similar individual core word items in the corpus.
[0061] It is worth noting that the core word items in the corpus are grouped according to their similarity and relevance through clustering algorithms, so as to effectively organize and manage these core word items, make them easier to query and use, and improve the efficiency and accuracy of organizing and managing large amounts of medical data. In addition, medical data usually has high dimensions and complexity. Clustering algorithms can effectively process high-dimensional and complex data, extract useful information, and provide strong support for the establishment of a medical knowledge base.
[0062] S104: extracting one of the core word items from each core word group as the final core word item of the core word group.
[0063] In this embodiment, one core word item is extracted from each core word group as the final core word item of the core word group, and the other core word items in the core word group are used as synonym items of the final core word item.
[0064] S105: Component configuration is performed on each of the final selected core word entries to obtain a medical core word knowledge base.
[0065] In this embodiment, the method of configuring the components of each final core word entry to obtain a medical core word knowledge base includes: one or more combinations of regular expression configuration, term encoding configuration, synonym configuration and blacklist configuration.
[0066] In this embodiment, each final selected core word entry is configured with components, and the composition of the final selected core word entry is shown in Table 1:
[0067] Table 1
[0068] Element name illustrate group_id Phrase ID Unique identifier of the core phrase word_id Core word id Unique identification code of the core word disease Disease Labels Disease labels corresponding to core words tag_name Core word tag name Core word tag name, identifying the standard concept name of the core word type Value Types Contains term encoding, regular expressions, ICD, etc. schema Field Label The domain label name of the source of the core word standard_ch Standard terminology Term standard name, required when the value type is term value value Term id, regular expression, function content version Version Core word entry version number except blacklist Exclusion Logic
[0069] It is worth noting that by configuring the above components for each final core word entry, the final core word entry can meet the requirements of medical variables matching both standard medical terms and non-term regular or function expressions when applied, and can meet the needs of scenarios such as intelligent diagnosis recommendations and medication recommendations during the diagnosis and treatment process, enriching the usage scenarios.
[0070] In this embodiment, the medical core word knowledge base includes a central word library, a branch word library, and a buffer word library. The central word library is used to store the final core word entries and their contents of the general version. The branch word library is used to store the final core word entries and their contents of each project and version branch. The buffer word library is used to temporarily store the final core word entries and their contents transmitted and summarized from the branch word library, and is used to perform data cleaning, universal modification and fusion of the final core word entries. By constructing a central word library, a branch word library, and a buffer word library, a production and management process for the final core word entries is established. As a universal standard core word library, the central word library uses the function of the branch word library to manage multiple content versions, and uses the buffer word library to perform data cleaning and fusion on the branch word library content, and finally merges the content of the branch word library into the central word library to avoid redundancy.
[0071] In this embodiment, the method is also used to perform the following steps: after obtaining the medical core word knowledge base, data quality control and optimization are performed based on the consistency of the regular matching results and the term matching results.
[0072] In this embodiment, if Figure 2 As shown, a schematic diagram of the process flow of core word quality control and optimization in an embodiment of the present invention is shown. The method of performing data quality control and optimization based on the consistency of regular matching results and term matching results includes:
[0073] S201: Perform regular matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a first matching result for each of the final selected core word entries.
[0074] In this embodiment, the corresponding regular expression is selected for medical data matching based on the content of the component configuration of each final core word entry. During matching, data screening conditions can be added as needed, such as department range, disease range, patient range, time range, etc., to obtain the first matching result for each of the final core word entries.
[0075] S202: Perform term matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a second matching result for each of the final selected core word entries.
[0076] In this embodiment, according to the content of the component configuration of each final core word entry, the corresponding term code is selected for medical data matching. During matching, data screening conditions can be added as needed, such as department range, disease range, patient range, time range, etc., to obtain a second matching result for each of the final core word entries.
[0077] S203: Calculate the consistency rate between the first matching result and the second matching result of each of the final selected core word items.
[0078] S204: Determine the matching accuracy of each of the final selected core word entries according to the consistency rate.
[0079] In this embodiment, the consistency rate of the first matching result and the second matching result of each of the final core word entries is calculated. If the consistency rate is higher than or equal to the first preset threshold, a certain amount of data is sampled from the first matching result and the second matching result of the final core word entry corresponding to the consistency rate higher than or equal to the first preset threshold, and quality control is performed to calculate the sampling accuracy. The approximate accuracy of the overall matching result is calculated through the sampling accuracy rate and the consistency rate, thereby determining the matching accuracy. If the consistency rate is lower than the first preset threshold, the difference between the regular matching result and the term matching result of the final core word entry is quality controlled to calculate the matching accuracy of the final core word entry.
[0080] S205: Optimizing the component configuration of each of the finally selected core word entries according to the matching accuracy of each of the finally selected core word entries, so as to update the medical core word knowledge base.
[0081] In this embodiment, it is determined whether the matching accuracy of each of the final selected core word entries reaches a second preset threshold, and the component configuration of the final selected core word entries whose matching accuracy does not reach the second preset threshold is optimized, and the regular expression and term encoding are tuned, etc., and the final inspection is repeated. The above process is repeated until the matching accuracy reaches the second preset threshold, and the quality control of the final selected core word entries is completed to update the medical core word knowledge base.
[0082] In this embodiment, the accuracy of the regular matching results and term matching results of each of the final selected core word entries are classified, and those with high matching rates are subjected to sampling quality control, while those with low matching rates are subjected to full quality control, thereby reducing the workload of quality control and labeling, reducing implementation costs, and at the same time improving the production efficiency and quality of the final selected core word entries through quality control.
[0083] It is worth noting that the component configuration of the final core word entries is optimized based on a combination of regular matching and term matching to update the medical core word knowledge base, thereby ensuring the consistency and standardization of the medical core word knowledge base and avoiding redundancy and confusion between different versions.
[0084] Furthermore, the method for constructing a medical core word knowledge base provided by the present invention configures the components of the final core word entries by constructing a corpus and clustering core words, thereby constructing a medical core word knowledge base, so that the final core word entries can meet the requirements of matching both standard medical terms and non-term regular or function expressions when applied, thereby meeting the use needs of scenarios such as intelligent diagnosis recommendation and medication recommendation in the diagnosis and treatment process, enriching the use scenarios, and multiple different medical variables can reuse the same final core word entries, avoiding the repeated production of the connotation of medical variables. In addition, the final core word entries are automatically cross-validated through medical data, and data quality control and optimization are performed based on the consistency of regular matching results and term matching results, which reduces the workload of quality control and annotation, ensures the consistency and standardization of the medical core word knowledge base, avoids redundancy and confusion between different versions, and improves the production efficiency and quality of the final core word entries through quality control, which can speed up the research and development process and implementation process of data application medical information software, and reduce the cost of research and development and implementation.
[0085] like Figure 3 As shown, a schematic diagram of the structure of a medical core word knowledge base construction device in an embodiment of the present invention is shown. The device includes:
[0086] The acquisition module 301 is used to define the medical characteristic words that need to be included in the core words to obtain a number of medical core words.
[0087] The corpus construction module 302 is used to select one or more corresponding medical data for each medical core word from the pre-stored medical data text. Each medical core word and its corresponding one or more medical data form a core word entry, thereby constructing a corpus containing multiple core word entries.
[0088] The clustering module 303 is used to perform synonym clustering on the core word items in the corpus to obtain a plurality of core word groups; each core word group includes a plurality of core word items with the same meaning but different expressions.
[0089] The final selection module 304 is used to extract one of the core word items from each core word group as the final selected core word item of the core word group.
[0090] The knowledge base construction module 305 is used to configure the components of each final selected core word entry to obtain a medical core word knowledge base.
[0091] In this embodiment, the clustering module 303 performs synonym clustering on the core word items in the corpus to obtain a plurality of core word groups in the following manner:
[0092] Calculating the similarity between two core word entries in the corpus;
[0093] According to the similarity between two core word items in the corpus, each core word item that reaches a preset similarity threshold is clustered to obtain a plurality of core word groups.
[0094] In this embodiment, the method of calculating the similarity between two core word entries in the corpus includes: using a character similarity algorithm to calculate the similarity between two core word entries in the corpus; and / or using a semantic similarity algorithm to calculate the similarity between two core word entries in the corpus.
[0095] In this embodiment, the knowledge base construction module 305 configures the components of each final core word entry to obtain a medical core word knowledge base in a manner including: a combination of one or more of regular expression configuration, term encoding configuration, synonym configuration and blacklist configuration.
[0096] In this embodiment, the knowledge base construction module 305 is also used to perform the following steps: after obtaining the medical core word knowledge base, data quality control and optimization are performed according to the consistency of the regular matching results and the term matching results. The main steps include:
[0097] Performing regular expression matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a first matching result for each of the final selected core word entries;
[0098] Performing term matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a second matching result for each of the final selected core word entries;
[0099] Calculating the consistency rate between the first matching result and the second matching result of each of the final selected core word items;
[0100] Determining the matching accuracy of each of the final selected core word entries according to the consistency rate;
[0101] According to the matching accuracy of each of the final selected core word entries, component configuration optimization is performed on each of the final selected core word entries to update the medical core word knowledge base.
[0102] The information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment described in the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown in the previous description of the present application, and will not be repeated here.
[0103] It should also be noted that it should be understood that the division of the various modules of the above devices is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. Moreover, these modules can be all implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware.
[0104] In one embodiment of the present invention, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for constructing a medical core word knowledge base as described above is implemented.
[0105] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0106] In the embodiments provided in the present application, the computer readable and writable storage medium may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store the desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals, or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
[0107] like Figure 4 As shown, a schematic diagram of the structure of the electronic terminal in an embodiment of the present invention is shown. The electronic terminal 400 provided in this example includes: a processor 401 and a memory 402; the memory 402 is connected to the processor 401 through a system bus and completes communication with each other, the memory 402 is used to store computer programs, and the processor 401 is used to run the computer programs stored in the memory 402, so that the electronic terminal 400 executes the medical core word knowledge base construction method as described above.
[0108] The method for constructing a medical core word knowledge base provided in the embodiment of the present invention can be implemented on the terminal side or the server side. As for the hardware structure of the electronic terminal, please refer to Figure 4 , is an optional hardware structure diagram of an electronic terminal 400 provided in an embodiment of the present invention. The terminal 400 may be a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory background processing device, etc. The electronic terminal 400 includes: at least one processor 401, a memory 402, at least one network interface 404 and a user interface 406. The various components in the device are coupled together through a bus system 405. It can be understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 3 In the specification, various buses are labeled as bus systems.
[0109] The user interface 406 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0110] It is understood that the memory 402 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.
[0111] The memory 402 in the embodiment of the present invention is used to store various categories of data to support the operation of the electronic terminal 400. Examples of these data include: any executable program for operating on the electronic terminal 400, such as an operating system 4021 and an application 4022; the operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 4022 can include various applications, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. The method for constructing a medical core word knowledge base provided in the embodiment of the present invention can be included in the application 4022.
[0112] The method disclosed in the above embodiment of the present invention can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 401 or the instruction in the form of software. The above processor 401 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 401 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 401 may be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0113] In an exemplary embodiment, the electronic terminal 400 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.
[0114] In summary, the method, device, medium and terminal for constructing a medical core word knowledge base provided by the present application configure the components of the final selected core word entries by constructing a corpus and clustering core words, thereby constructing a medical core word knowledge base, so that the final selected core word entries can meet the requirements of matching both standard medical terms and non-term regular or function expressions when applied, so as to meet the use needs of scenarios such as intelligent diagnosis recommendation and medication recommendation in the diagnosis and treatment process, enrich the use scenarios, and multiple different medical variables can reuse the same final selected core word entries, avoiding the repeated production of the connotation of medical variables. In addition, the final selected core word entries are automatically cross-validated through medical data, and data quality control and optimization are performed according to the consistency of regular matching results and term matching results, which reduces the workload of quality control and annotation, ensures the consistency and standardization of the medical core word knowledge base, avoids redundancy and confusion between different versions, and improves the production efficiency and quality of the final selected core word entries through quality control, which can speed up the research and development process and implementation process of data application medical information software, and reduce the cost of research and development and implementation. Therefore, the present application effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
[0115] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for constructing a medical core word knowledge base. It is characterized in that include: Define the medical characteristic words that need to be included in the core words to obtain several medical core words; Selecting one or more medical data corresponding to each medical core word from the pre-stored medical data text, each medical core word and the one or more medical data corresponding to it form a core word entry, thereby constructing a corpus containing multiple core word entries; Performing synonym clustering on the core word items in the corpus to obtain a plurality of core word groups; each core word group includes a plurality of core word items with the same meaning but different expressions; Extract one of the core word items from each core word group as the final core word item of the core word group; Component configuration is performed on each of the final core word entries to obtain a medical core word knowledge base; the method is also used to perform the following steps: after obtaining the medical core word knowledge base, data quality control and optimization are performed according to the consistency of the regular matching results and the term matching results, including: Performing regular expression matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a first matching result for each of the final selected core word entries; Performing term matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a second matching result for each of the final selected core word entries; Calculating the consistency rate between the first matching result and the second matching result of each of the final selected core word items; Determining the matching accuracy of each of the final selected core word entries according to the consistency rate; According to the matching accuracy of each of the final selected core word entries, component configuration optimization is performed on each of the final selected core word entries to update the medical core word knowledge base.
2. The method for constructing a medical core word knowledge base according to claim 1, It is characterized in that The method of performing synonym clustering on the core word items in the corpus to obtain multiple core word groups includes: Calculating the similarity between two core word entries in the corpus; According to the similarity between two core word items in the corpus, the core word items reaching a preset similarity threshold are clustered to obtain a plurality of core word groups.
3. The method for constructing a medical core word knowledge base according to claim 2, It is characterized in that The method of calculating the similarity between two core word entries in the corpus includes: using a character similarity algorithm to calculate the similarity between two core word entries in the corpus; and / or using a semantic similarity algorithm to calculate the similarity between two core word entries in the corpus.
4. The method for constructing a medical core word knowledge base according to claim 1, It is characterized in that The manner of configuring the components of each final core word entry to obtain a medical core word knowledge base includes: one or more combinations of regular expression configuration, term encoding configuration, synonym configuration and blacklist configuration.
5. A device for constructing a medical core word knowledge base, It is characterized in that include: An acquisition module is used to define medical characteristic words that need to be included in the core words to obtain a number of medical core words; A corpus construction module is used to select one or more medical data corresponding to each medical core word from the pre-stored medical data text, and each medical core word and its corresponding one or more medical data form a core word entry, thereby constructing a corpus containing multiple core word entries; A clustering module, used for performing synonym clustering on the core word items in the corpus to obtain a plurality of core word groups; each core word group includes a plurality of core word items with the same meaning but different expressions; A final selection module, used to extract one of the core word items from each core word group as the final selected core word item of the core word group; A knowledge base construction module is used to configure the components of each final core word entry to obtain a medical core word knowledge base; After obtaining the medical core word knowledge base, data quality control and optimization are performed based on the consistency of the regular matching results and the term matching results, including: Performing regular expression matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a first matching result for each of the final selected core word entries; Performing term matching on each of the final selected core word entries in the medical core word knowledge base in pre-stored verified medical data texts to obtain a second matching result for each of the final selected core word entries; Calculating the consistency rate between the first matching result and the second matching result of each of the final selected core word items; Determining the matching accuracy of each of the final selected core word entries according to the consistency rate; According to the matching accuracy of each of the final selected core word entries, component configuration optimization is performed on each of the final selected core word entries to update the medical core word knowledge base.
6. The medical core word knowledge base construction device according to claim 5, It is characterized in that The clustering module performs synonym clustering on the core word items in the corpus to obtain a plurality of core word groups, including: Calculating the similarity between two core word entries in the corpus; According to the similarity between two core word items in the corpus, the core word items reaching a preset similarity threshold are clustered to obtain a plurality of core word groups.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for constructing a medical core word knowledge base as described in any one of claims 1 to 4 is implemented.
8. An electronic terminal, It is characterized in that include: Processor and memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the electronic terminal executes the method for constructing a medical core word knowledge base as described in any one of claims 1 to 4.
