Method and device for merging large-scale drug data lists, equipment and medium

Through the combination of the union lookup algorithm and UMLS and MESH data sets, the problem of irregular writing of drug name entities is solved, the efficiency of merging large-scale drug data lists is significantly improved, and efficient drug synonyms are unified and standardized, which is suitable for medicine. Natural language processing.

CN118675647APending Publication Date: 2024-09-20HUI SUAN GENE TECH (SHANGHAI) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962956.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Named entity recognition technology in the prior art finds that drug name entities are not written in a standardized manner in medical literature, resulting in the traditional loop iteration method being inefficient and difficult to complete when processing large-scale data.

Method used

An efficient list merging algorithm based on union-find is used to screen and parse drug entry words and synonyms through UMLS and MESH data sets, and path compression is used to optimize the union-find, which significantly improves the speed of the merging process.

Benefits of technology

It achieves efficient merging of drug data lists, improves the speed and efficiency of processing large-scale data, reduces memory overhead, and has better scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675647A
    Figure CN118675647A
Patent Text Reader

Abstract

The invention provides a method, a device, equipment and a medium for merging large-scale drug data lists.The method comprises the steps that data conforming to a drug concept semantic type is screened out according to a latest UMLS data set, and drug entry words and synonyms of the drug entry words are analyzed according to a latest MESH data set; all medicine names and synonym names with the same concept number are inquired in the MESH data set through the entity names of the medicines, the merged inquiry result serves as a synonym set of the medicines, and the synonym sets of all the medicines are traversed according to the merged inquiry result; merging any at least two synonym sets with the same elements to serve as a synonym set of a new drug; a drug number is defined for each drug to characterize a standardized drug name for the set. According to the method, the speed of the merging process is remarkably increased especially when a large number of repeated elements exist.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of training set data generation, and in particular to a method, device, equipment and medium for merging large-scale drug data lists. Background Art

[0002] The development of artificial intelligence needs to go through three stages: computational intelligence, perceptual intelligence, and cognitive intelligence. With the development of high-performance computing, GPU acceleration and other technologies, the computational intelligence of machines has far exceeded the human level; and using deep neural network (DNN) algorithms, computers have basically reached the level that humans can think of in the field of perceptual intelligence, such as self-driving cars and medical image recognition. However, cognitive intelligence requires reasoning, planning, association, creation, and other advanced "thinking" based on language, concepts, relationships, attributes, etc., and using powerful computing power and oceans of data cannot help much in improving cognitive intelligence. At present, it may only be at the level of a six-year-old human child.

[0003] At present, the consensus in the field of artificial intelligence is that knowledge graph is the cornerstone of perceptual intelligence to cognitive intelligence, because it can solve the problem of semantic understanding and knowledge reasoning. Knowledge graph is a concept proposed by Google in 2012. From an academic perspective, knowledge graph is a knowledge base used to represent semantic network. From the perspective of practical application, knowledge graph is actually a multi-relational graph constructed by "triples". The triples are composed of entity, attribute and relation, in the form of <entity, relation, entity> or <entity, attribute, attribute value>. Therefore, in the process of building the knowledge base graph, the core is to extract triple relationships from massive knowledge data, and the core of triples is the "entity" used to represent knowledge concepts in the knowledge graph.

[0004] In free text, the same "entity" often has multiple different referential names due to writing habits, field differences, etc. For example, for an anti-tumor drug, possible names include development name, common compound name, and post-marketing product name. In addition, English drug names often have problems such as word order swapping and omission of space characters. Summary of the invention

[0005] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a method, device, equipment and medium for merging large-scale drug data lists to solve the problem of irregular writing of drug name entities found in medical literature by named entity recognition technology in the prior art. More specifically, especially when there are a large number of repeated elements, the traditional loop iteration method is inefficient (and may be difficult to complete) when processing large-scale data. For this reason, an efficient list merging algorithm based on union-find is proposed to significantly improve the speed of the merging process.

[0006] To achieve the above-mentioned purpose and other related purposes, the present application provides a method for merging a large-scale drug data list, the method comprising: screening out data that conforms to the semantic type of drug concepts according to the latest UMLS data set, and parsing the drug entry words and their synonyms according to the latest MESH data set; querying all drug names and synonym names with the same concept number in the MESH data set by the entity name of the drug, and using the merged query results as the synonym set of the drug, and traversing the synonym sets of all drugs accordingly; merging any at least two synonym sets with the same elements to form a synonym set of a new drug; defining a drug number for each synonym set of a drug to characterize the standardized drug name of the synonym set; In which, an entity name of a drug is defined as a list, and all different synonym names constitute n lists of the drug, that is, the synonym set of the drug mentioned above; each list includes m elements, which refer to the noun term of the drug; Specifically: Initialization: For each element in the list, add it as a node and find the set, and record the identifier of the list to which it belongs; Traversal: Traverse the elements in each list, check the list it belongs to and whether the element already exists in the list and check the set. If it exists, it means that the two lists have the same elements, merge them into one set; Path compression: While merging, use path compression to optimize and search. Result extraction: by querying and finding sets, a merged list set is obtained, that is, each set contains lists with the same elements, that is, the synonym set of the new drug mentioned above; In the specific union-find algorithm mentioned above: the initial construction of the union-find requires O(n * m) time, while the complexity of path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackermann function, and the overall time complexity is approximately O(n * m + α(n)).

[0007] In one embodiment of the present application, when performing a search operation in path compression, the depth of the tree is shallowed by directly connecting each node on the path to the root node; when performing a merge operation, a smaller tree is connected to a larger tree according to the rank or size of the tree, thereby preventing the tree from becoming too deep.

[0008] In one embodiment of the present application, the semantic types that conform to the drug concept in the UMLS dataset include any one or more of: chem, chvs, orch, nnon, aapp, chvf, phsu, bodm, bacs, horm, enzy, vita, imft and sbst.

[0009] In one embodiment of the present application, the method includes: parsing the MESH dataset vocabulary and constructing a MESH synonym expectation library; querying the concept number of each drug through the umls_subset of the UMLS dataset and the mesh_subset of the MESH dataset respectively; and querying all other synonyms in the umls_subset and mesh_subset through the concept number.

[0010] In one embodiment of the present application, different synonyms with the same drug number represent the same drug; wherein the drug number can also be customized as a standardized drug name through each synonym set.

[0011] To achieve the above-mentioned purpose and other related purposes, the present application provides a device for merging lists of large-scale drug data, the device comprising: an acquisition module, for filtering out data that conforms to the semantic type of drug concepts according to the latest UMLS data set, and parsing the drug entry words and their synonyms according to the latest MESH data set; a processing module, for querying all drug names and synonym names with the same concept number in the MESH data set by the entity name of the drug, and using the merged query results as the synonym set of the drug, and traversing the synonym sets of all drugs accordingly; merging any at least two synonym sets with the same elements to form a synonym set of a new drug; defining a drug number for each synonym set of a drug to characterize the standardized drug name of the synonym set; an algorithm module, defining an entity name of a drug as a list, and all different synonym names constitute n lists of the drug; each list includes m elements, which refer to the noun term of the drug; Path compression is used to optimize the union-find set. The merged list set is obtained by querying the union-find set, that is, each set contains lists with the same elements. The initial construction and search requires O(n * m) time, while the complexity of path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackermann function and grows extremely slowly. The overall time complexity is approximately O(n * m+ α(n)).

[0012] To achieve the above-mentioned purpose and other related purposes, the present application provides a computer device, which includes: a memory and a processor; the memory is used to store computer instructions; the processor executes the computer instructions to implement the above-mentioned method.

[0013] To achieve the above-mentioned purpose and other related purposes, the present application provides a computer-readable storage medium storing computer instructions, which execute the above-mentioned method when executed.

[0014] In summary, the present application provides a method, device, equipment and medium for merging large-scale drug data lists, which filters out data that conforms to the semantic type of drug concepts according to the latest UMLS data set, and parses the drug entry words and their synonyms according to the latest MESH data set; in the MESH data set, all drug names and synonym names with the same concept number are queried by the entity name of the drug, and the merged query results are used as the synonym set of the drug, and the synonym sets of all drugs are traversed accordingly; any at least two synonym sets with the same elements are merged to form a synonym set of a new drug; a drug number is defined for each synonym set of a drug to characterize the standardized drug name of the synonym set, and path compression is used to optimize the union and set search; a merged list set is obtained by querying and union-finding, that is, each set contains a list with the same elements.

[0015] It has the following beneficial effects: This application can unify the drug names identified in different texts by integrating vocabulary libraries such as UMLS and MESH. It can also be used to build a comprehensive drug synonym corpus for the development and application of medical natural language processing.

[0016] The algorithm of this application is highly efficient: the union-find algorithm has a lower time complexity, and performs better when processing large-scale data. Space efficiency: the union-find algorithm only requires additional space to store node relationships, and has less memory overhead than the loop iteration method. Scalability: Since the time complexity of the union-find algorithm is less related to the increase in the number of elements, the algorithm performance is more scalable when processing larger-scale data. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Shown is a flow chart of a method for merging large-scale drug data lists in one embodiment of the present application.

[0018] Figure 2 Shown is a schematic diagram of a scenario of UMLS application in an embodiment of the present application.

[0019] Figure 3 Shown is a schematic diagram of a module for incorporating a device with a large-scale drug data list in one embodiment of the present application.

[0020] Figure 4 Shown is a schematic diagram of the structure of a computer device in one embodiment of the present application.

[0021] Figure 5 Shown is a specific flow chart of the union-find algorithm in one embodiment of the present application. DETAILED DESCRIPTION

[0022] 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.

[0023] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Although the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation, the type, quantity and proportion of each component in actual implementation may be changed arbitrarily, and the component layout may also be more complicated.

[0024] 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, steps, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, steps, 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, steps or operations is inherently mutually exclusive in some way.

[0025] In the process of building a knowledge graph, it is necessary to identify named entities in massive domain-related texts, such as drug named entities and disease named entities. Due to writing habits, domain differences, and other reasons, the same drug may be represented by different names in different texts. Therefore, after identifying the drug entities, an algorithm is needed to standardize different drug names, which plays an important role in subsequent text mining, statistical analysis, and knowledge graph construction.

[0026] To solve the above problems, this application has developed a set of algorithms and processes by integrating vocabulary libraries such as UMLS and MESH to unify the drug names identified in different texts. It can also be used to build a comprehensive drug synonym corpus for the development and application of medical natural language processing.

[0027] like Figure 1 FIG. 1 is a flow chart of a method for merging a large-scale drug data list in one embodiment of the present application. As shown in the figure, the method includes: Step S101: Filter out data that conforms to the semantic type of drug concepts according to the latest UMLS dataset, and parse the drug entry words and their synonyms according to the latest MESH dataset.

[0028] The Unified Medical Language System (UMLS) is a giant medical terminology system that has been developed by the U.S. National Library of Medicine for more than 20 years. It covers clinical, basic, pharmacy, biology, medical management and other medical and medical-related disciplines, and includes about 2 million medical concepts. The medical vocabulary is unprecedented, reaching more than 5 million. UMLS has been applied to electronic medical records, health services, public health statistics, biomedical literature classification, clinical basic and health services research and other fields. Therefore, the Chinese translation of UMLS medical terminology is a historical milestone for the development of my country's medical industry. However, the Chinese translation of UMLS medical terminology is a huge and complex project. UMLS brings together hundreds of existing health and biomedical terminology standards, which can support interoperability between different computer systems. For example Figure 2 The schematic diagram of the UMLS application scenario is shown.

[0029] In multiple embodiments, as a UMLS knowledge source and tool, the super thesaurus is a very large terminology library that integrates terms and related information from biomedical and health ontologies, thesauri, sub-tables, disease coding sets, expert systems, and vocabularies, such as MESH, RxNorm, NSOMED CT, ICD-9-CM, ICD-10-DM, CPT, LOINC, etc. It is a comprehensive integration of concepts, terms, definitions, and relationships from all source vocabularies.

[0030] Simply put, download the latest UMLS Metathesaurus dataset, filter the "semantic type" data that conforms to the concept of "drug", download the latest MESH dataset (mesh_subset), and parse the drug entry words and their synonyms.

[0031] In one embodiment of the present application, the semantic types that conform to the drug concept in the UMLS dataset include but are not limited to: any one or more of chem, chvs, orch, nnon, aapp, chvf, phsu, bodm, bacs, horm, enzy, vita, imft and sbst, and the words that conform to the above semantic types in the UMLS dataset are screened out.

[0032] The entry words mentioned here are used for the word list, and are only an entry point for word search and retrieval. They cannot be used for indexing and retrieval. They include synonyms and near-synonyms that failed in the normalization process, and specific words that were merged and grouped. Entry words can also be called informal subject words, that is, non-standard reference words.

[0033] Step S102: Search all drug names and synonym names with the same concept number in the MESH data set by the entity name of the drug, and use the merged query results as the synonym set of the drug, and traverse the synonym sets of all drugs accordingly.

[0034] In one embodiment of the present application, the method includes: A. Parse the vocabulary of the MESH dataset and build a MESH synonym prediction library; B. Query the concept ID of each drug through umls_subset of UMLS dataset and mesh_subset of MESH dataset respectively; C. Search all other synonyms in umls_subset and mesh_subset by the concept number.

[0035] In short, query all drug names {x_u1, x_u2, x_u3, ..} with the same concept ID through drug entity name (X) in UMLS_subset; query the synonym names {x_m1, x_m2, x_m3...} of drugs through drug entity name (X) in mesh_subset; use the merged query results as all synonym sets of X, X_set: [x_u1, x_u2, x_u3... x_m1, x_m2, x_m3...]; repeat steps ce for other drug entity nouns that need to be standardized; traverse all drug synonym sets.

[0036] Step S103: merge any at least two synonym sets with the same elements to form a synonym set of a new drug.

[0037] In one or more embodiments, if any two sets have the same elements, the two sets are merged into a new drug synonym set.

[0038] Step S104: defining a drug number for each synonym set of a drug to represent the standardized drug name of the synonym set.

[0039] That is, an independent number is defined for each drug (including new drugs) synonym set to represent the standardized drug name of the set.

[0040] In this application, reference is made to Figure 5 As shown, an entity name of a drug is defined as a list, and all different synonym names constitute n lists of the drug, that is, the synonym set of the drug mentioned above; each list includes m elements, which refer to the noun term of the drug; Specifically: S1: Initialization, for each element in the list, add it as a node and query the set, and record the identifier of the list to which it belongs; S2: Traverse, traverse the elements in each list, check the list it belongs to and whether the element already exists in the list and check the set. If it exists, it means that the two lists have the same elements, merge them into one set; S3: Path compression, while merging, path compression is used to optimize and search; S4: Result extraction, by querying and finding the set, a merged list set is obtained, that is, each set contains lists with the same elements, that is, the synonym set of the new drug mentioned above; In the specific algorithm of the union-find mentioned above: the initial construction of the union-find requires O(n * m) time, while the complexity of the path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackerman function, and the overall time complexity is approximately O(n * m + α(n)), so that it is possible to integrate drug terms from different sources and use algorithms to merge synonymous data. If the amount of data is small, it is a simple problem. However, in the face of massive data, it is difficult to merge all the terminology in a short time without a suitable algorithm.

[0041] For example, in conventional traditional loop iteration methods, that is, when there are a large number of repeated elements, the traditional loop iteration method is inefficient when processing large-scale data (it may be difficult to complete). For each element of the n lists, it is necessary to compare with other elements, resulting in a time complexity of O(n^2 * m^2). This method is extremely inefficient when n is large and cannot merge all the terminology in a short time.

[0042] The algorithm of the present invention can significantly improve the speed of the merging process.

[0043] In the present invention, in order to more clearly express the process of the algorithm, the following specific embodiments are provided: Define n lists, each list contains m elements. For example, define an entity name of a drug as a list, and all different synonym names constitute n lists of the drug, that is, the synonym set of the drug mentioned above; each list includes m elements, which refers to the noun term of the drug; adopt a union-find data structure, in which each element is regarded as a node, and each node is an independent set initially; The specific algorithm flow is as follows: Initialization: For each element in the list, add it as a node and find the set, and record the identifier of the list to which it belongs.

[0044] Traversal: Traverse the elements in each list, and for each element, check the list it belongs to and whether the element already exists in the union-find set. If so, it means that the two lists have the same elements, and merge them into one set.

[0045] Path compression: While performing the merge, path compression is used to optimize the search to reduce the depth of the tree and improve the efficiency of the query and merge.

[0046] Result extraction: Finally, the merged list set is obtained by querying and finding the set, that is, each set contains lists with the same elements; The process of the union-find algorithm is as follows: the initial construction of the union-find takes O(n * m) time, while the complexity of the path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackerman function and grows extremely slowly. Therefore, the overall time complexity is approximately O(n * m + α(n)), which is usually much smaller than the complexity of the loop iteration method in practice; For example, if there are 50,000 lists (representing independent drugs), each containing 10 elements (noun terms), the time complexity of the loop iteration method will be much higher than the union-find algorithm.

[0047] The time complexity of the loop iteration method is: T循环迭代 =(50000^2×10^2) =2.5×1011 The time complexity of the union-find algorithm is: T 并查集 =50000×10+α(50000) By comparing T 循环迭代 and T 并查集 , we can see that the union-find algorithm can significantly save time in large-scale data. This advantage increases with the increase of data size, making the union-find algorithm an effective choice for processing large-scale list merging. It is particularly suitable for the same "entity" often has multiple different reference names due to writing habits, field differences, etc. The present invention can significantly improve the speed of the merging process.

[0048] In the present invention, it is noted that the time complexity of the initial construction and search is O(n * m), where m is the number of elements and n is the number of merge and search operations (n ​​lists of different synonym names constitute the drug). In the initial construction phase, it is usually necessary to perform some basic initialization operations on each element, such as creating an array to store the parent node of each element. The complexity of this operation is O(m).

[0049] In the present invention, path compression and merging operations are two key operations of the union-find set, and the time complexity can be explained by the anti-Ackermann function (α(n)), which is an extremely slowly growing function and can almost be considered as a constant time complexity.

[0050] Path Compression: When performing a find operation, the depth of the tree is made shallower by connecting each node on the path directly to the root node. In subsequent operations, the efficiency of the find operation will be greatly improved.

[0051] Union by Rank / Size: When performing a union operation, smaller trees are connected to larger trees based on their rank (depth) or size, thus preventing the trees from becoming too deep.

[0052] These optimizations make the amortized time complexity of each operation close to O(α(n)), where α(n) is the inverse Ackermann function, which grows extremely slowly and will never exceed 4 for all practical n (such as the number of particles in the universe).

[0053] In the present invention, it should also be noted that the present invention integrates vocabulary libraries such as UMLS and MESH, and more specifically, constructs a MESH synonym expectation library by parsing the vocabulary list of the MESH data set, and queries the concept number ID of each drug through the umls_subset of the UMLS data set and the mesh_subset of the MESH data set, and then merges them with the union-find algorithm, which significantly saves the merging time.

[0054] In the present application, different synonyms with the same drug number represent the same drug; wherein, the drug number can also be customized as a standardized drug name through each synonym set, that is, the present application is not limited to the drug number, but can also be a textual drug name.

[0055] To facilitate understanding of the various steps of the method described in this application, the specific implementation method is as follows: a) The semantic types used to represent drugs in the UMLS dataset include: ['chem', 'chvs', 'orch', 'nnon', 'aapp', 'chvf', 'phsu', 'bodm', 'bacs', 'horm', 'enzy', 'vita', 'imft', 'sbst']. Filter out the words in the UMLS dataset that match the above semantic types.

[0056] b) Parse the MESH vocabulary and build a MESH synonym prediction library.

[0057] c) List of words to be standardized. For example, the drug name or concept ID of the anticancer drug erlotinib includes: [tarceva,osi-774,cp358774,osimertinib,azd-9291,bpi-2009,Conmana,icotinib].

[0058] d) Use umls_subset and mesh_subset to query the concept IDs (UMLSconceptID or MESHID) of these drugs respectively: erlotinib hydrochloride : ['C1533491'] ['D000069347'] tarceva : ['C1135136'] ['D000069347'] osi-774: ['C1135137'] ['D000069347'] cp358774: ['C0910101'] ['D000069347'] osimertinib : ['C4058811'] ['C000596361'] azd-9291 : ['C3896906'] [] bpi-2009 : ['C4306021'] [] conmana: ['C3274574'] [] icotinib : ['C2604307'] ['C531470'].

[0059] e) Use the above concept number to query all other synonyms of the anti-tumor drug erlotinib in umls_subset and mesh_subset: tarceva ---> ['erlotinib', '358774, cp', 'tarceva', 'cp 358,774', 'hydrochloride, erlotinib', 'osi774', 'erlotinib hydrochloride', 'osi-774', 'cp358,774', '11c-erlotinib', 'osi 774', 'erlotinib hcl', 'hcl, erlotinib', '358,774, cp', '11c erlotinib', 'cp-358774', 'cp-358,774', 'cp358774', 'cp358774'] osi-774 ---> ['erlotinib', '358774, cp', 'tarceva', 'hydrochloride,erlotinib', 'cp 358,774', 'osi774', 'erlotinib hydrochloride', 'osi-774', 'cp358,774', '11c-erlotinib', 'osi 774', 'erlotinib hcl', 'hcl, erlotinib', '358,774, cp', '11c erlotinib', 'cp-358774', 'cp-358,774', 'cp358774', 'cp358774'] cp358774 ---> ['358774, cp', 'erlotinib', 'tarceva', 'cp 358,774', 'hydrochloride, erlotinib', 'osi774', 'erlotinib hydrochloride', 'cp358,774','osi-774', '11c-erlotinib', 'osi 774', '358,774, cp', 'erlotinib hcl', 'hcl,erlotinib', '11c erlotinib', 'cp-358774', 'cp-358,774', 'cp358774', 'cp358774'] osimertinib ---> ['azd9291', 'osimertinib', 'osimertinib(substance)', 'tagrisso', 'osimertinibum', 'mereletinib'] azd-9291 ---> ['azd9291', 'egfr inhibitor azd9291', 'azd-9291'] bpi-2009 ---> ['bpi-2009'] conmana ---> ['conmana'] icotinib ---> ['conmana', 'icotinib', 'bpi-2009', 'bpi-2009h'].

[0060] f) Merge sets with the same elements and set different drug numbers: Table 1 Drug numbers of synonym sets

[0061] g)*Synonyms with the same drug number refer to the same drug. You can also customize the standard drug name using the above synonym list.

[0062] like Figure 3 As shown, it is a schematic diagram of a module for merging a device with a large-scale drug data list in one embodiment of the present application. As shown in the figure, the device 300 includes: The acquisition module 301 is used to filter out data that conforms to the semantic type of drug concepts according to the latest UMLS data set, and parse the drug entry words and their synonyms according to the latest MESH data set; Processing module 302 is used to query all drug names and synonym names with the same concept number through the entity name of the drug in the MESH data set, and use the merged query results as the synonym set of the drug to traverse the synonym sets of all drugs; merge any at least two synonym sets with the same elements to form a synonym set of a new drug; define a drug number for each synonym set of the drug to represent the standardized drug name of the synonym set.

[0063] Algorithm module 303, defines an entity name of a drug as a list, and all different synonym names constitute n lists of the drug; each list includes m elements, and the element refers to the noun term of the drug; Path compression is used to optimize the union-find set. The merged list set is obtained by querying the union-find set, that is, each set contains lists with the same elements. The initial construction and search requires O(n * m) time, while the complexity of path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackermann function and grows extremely slowly. The overall time complexity is approximately O(n * m+ α(n)).

[0064] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned system 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.

[0065] It should also be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these units can all be 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. For example, the processing module 302 can be a separately established processing element, or it can be integrated in a certain chip of the above system for implementation. In addition, it can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0066] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0067] like Figure 4 As shown, it is a schematic diagram of the structure of a computer device in an embodiment of the present application. As shown in the figure, the computer device 400 includes: a memory 401 and a processor 402; the memory 401 is used to store computer instructions; the processor 402 executes the computer instructions to implement the following Figure 1 The method described.

[0068] In some embodiments, the number of the memory 401 in the computer device 400 can be one or more, the number of the processor 402 can be one or more, and Figure 4 Take one as an example.

[0069] In one embodiment of the present application, the processor 402 in the computer device 400 will follow the following steps: Figure 1 In the above steps, one or more instructions corresponding to the process of the application are loaded into the memory 401, and the processor 402 runs the application stored in the memory 401, thereby achieving the following Figure 1 The method described.

[0070] The memory 401 may include a random access memory (RAM), or may include a non-volatile memory, such as at least one disk memory. The memory 401 stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.

[0071] The processor 402 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0072] In some specific applications, the various components of the computer device 400 are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, Figure 4 In the text, all kinds of buses are called bus systems.

[0073] In one embodiment of the present application, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following Figure 1 The method described.

[0074] The computer-readable storage medium, as can be understood by ordinary technicians in this field, can be implemented 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, it executes the embodiments including the aforementioned system and the functions of each unit; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0075] In summary, the present application provides a method, device, equipment and medium for merging large-scale drug data lists, which filters out data that conforms to the semantic type of drug concepts based on the latest UMLS data set, and parses the drug entry words and their synonyms based on the latest MESH data set; in the MESH data set, all drug names and synonym names with the same concept number are queried by the entity name of the drug, and the merged query results are used as the synonym set of the drug, and the synonym sets of all drugs are traversed based on them; any at least two synonym sets with the same elements are merged to form a synonym set of a new drug; a drug number is defined for each synonym set of a drug to characterize the standardized drug name of the synonym set.

[0076] The present invention effectively overcomes various shortcomings of the prior art and has high industrial utilization value.

[0077] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present invention. 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 those of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present application.

Claims

1. A method for merging large-scale drug data lists, characterized in that: The method comprises: According to the latest UMLS dataset, we filter out the data that matches the semantic type of drug concepts, and according to the latest MESH dataset, we parse the drug entry words and their synonyms. In the MESH dataset, all drug names and synonym names with the same concept number are queried by the entity name of the drug, and the combined query results are used as the synonym set of the drug, and the synonym sets of all drugs are traversed based on them; Merge any at least two synonym sets with the same elements to form a synonym set for a new drug; A drug number is defined for each synonym set of a drug to represent a standardized drug name of the synonym set; In which, an entity name of a drug is defined as a list, and all different synonym names constitute n lists of the drug, that is, the synonym set of the drug mentioned above; each list includes m elements, which refer to the noun term of the drug; Specifically: Initialization: For each element in the list, add it as a node and find the set, and record the identifier of the list to which it belongs; Traversal: Traverse the elements in each list, check the list it belongs to and whether the element already exists in the list and check the set. If it exists, it means that the two lists have the same elements, merge them into one set; Path compression: While merging, use path compression to optimize and search. Result extraction: by querying and finding sets, a merged list set is obtained, that is, each set contains lists with the same elements, that is, the synonym set of the new drug mentioned above; In the specific union-find algorithm mentioned above: the initial construction of the union-find requires O(n * m) time, while the complexity of path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackermann function, and the overall time complexity is approximately O(n * m + α(n)).

2. The method according to claim 1, characterized in that: Path compression shallows the tree by connecting each node on the path directly to the root node when performing a lookup operation, and prevents the tree from becoming too deep by connecting smaller trees to larger trees based on their rank or size when performing a merge operation.

3. The method according to claim 1, characterized in that The semantic types of drug concepts in the UMLS dataset include any one or more of chem, chvs, orch, nnon, aapp, chvf, phsu, bodm, bacs, horm, enzy, vita, imft and sbst.

4. The method according to claim 1, characterized in that: The method comprises: Parse the vocabulary of MESH dataset and build a MESH synonym prediction library; The concept number of each drug is queried through umls_subset of the UMLS dataset and mesh_subset of the MESH dataset; All other synonyms are queried in umls_subset and mesh_subset by the concept number.

5. The method according to claim 1, characterized in that Different synonyms with the same drug number represent the same drug; wherein the drug number can also be customized as a standardized drug name through each synonym set.

6. A device for merging large-scale drug data lists, characterized in that The device comprises: The acquisition module is used to filter out data that conforms to the semantic type of drug concepts based on the latest UMLS dataset, and parse the drug entry words and their synonyms based on the latest MESH dataset; A processing module is used to query all drug names and synonym names with the same concept number through the entity name of the drug in the MESH data set, and use the merged query results as the synonym set of the drug, and traverse the synonym sets of all drugs accordingly; merge any at least two synonym sets with the same elements to form a synonym set of a new drug; define a drug number for each synonym set of the drug to characterize the standardized drug name of the synonym set, wherein the MESH data set vocabulary is parsed to build a MESH synonym expectation library; query the concept number of each drug through the umls_subset of the UMLS data set and the mesh_subset of the MESH data set respectively; query all other synonyms in the umls_subset and mesh_subset through the concept number; The algorithm module defines an entity name of a drug as a list, and all different synonym names constitute n lists of the drug; each list includes m elements, which refer to the noun term of the drug; Path compression is used to optimize the union-find set. The merged list set is obtained by querying the union-find set, that is, each set contains lists with the same elements. The initial construction and search requires O(n * m) time, while the complexity of path compression and merging operations is approximately O(α(n)), where α(n) is the inverse function of the Ackermann function and grows extremely slowly. The overall time complexity is approximately O(n * m +α(n)).

7. A computer device, characterized in that: The device comprises: a memory and a processor; the memory is used to store computer instructions; the processor executes the computer instructions to implement the method according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that: Computer instructions are stored, and when the computer instructions are executed, the method according to any one of claims 1 to 4 is performed.