Chemical literature analysis and reaction information extraction method and device based on large language model
Through the combination of large language model and ChatGPT, the problems of low efficiency, high cost and poor generalization of extracting reaction data in chemical literature are solved, and efficient extraction and reference processing of different journals is achieved, which significantly improves the chemical reaction data Extraction mass and speed.
Patent Information
- Application Number
- CN202410915423.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art is inefficient, cost-effective and poorly versatile when extracting chemical reaction data from chemical literature, and is particularly difficult to adapt to the writing style and processing reference problems of different chemical journals.
Using a large language model-based approach, literature is retrieved through the Web of Science database, OCR technology is used to convert formats, and combined with ChatGPT's contextual understanding ability to identify and replace compound references to generate high-quality chemical reaction data.
It realizes efficient extraction of academic journals with different styles, reduces costs, improves generalizability and extraction speed, and solves the shortcomings of traditional methods in complex formats and reference processing.
Smart Images

Figure CN118888046A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of chemical informatics, and in particular relates to a method and device for chemical literature parsing and reaction information extraction based on a large language model. Background Art
[0002] In the field of chemical informatics and machine learning, it is crucial to obtain chemical reaction data and build high-quality chemical reaction data (library). One effective source is to obtain data through high-throughput experiments (HTE), but the cost of HTE data acquisition is very high. The cost of obtaining 2,000 HTE data through wet experiments is more than 100,000 yuan, which greatly limits the application of batch acquisition of HTE data. Therefore, obtaining reaction data from chemical literature is a promising research direction.
[0003] Traditional methods for extracting reaction information from chemical literature include manual extraction, rule-based extraction, and model-based extraction. Schleinitz et al. constructed the NiCOlit dataset from 45 articles through manual extraction, which contains detailed reaction conditions of nickel-catalyzed carbon-oxygen bond coupling reactions. However, manual extraction is inefficient and expensive, which limits its wide application. ChemDataExtrator designed multiple rule-based grammars for phrase parsing and information extraction. However, this rule-based method has problems with generalization because it is difficult to adapt to various chemical journals with different writing styles. Lowe also used rule-based extraction methods to construct the USPTO dataset, which has been widely used. However, this method can only be applied to patent documents with a single format, not journal documents. Guo et al. defined the chemical literature extraction task as a structure prediction task, dividing the chemical reaction data into two distributions. A deep learning framework was used to extract information about reactants and products respectively [6]. However, the scarcity of annotated reactions hindered the training of the deep learning framework and reduced the performance of the model. Zheng et al. designed precise prompt instructions to guide ChatGPT to extract metal-organic framework (MOFs) data from academic journals [7]. However, this method is difficult to apply to the task of extracting information from chemical reaction data, especially when faced with the problem of reference and generalization (reference and generalization mean that many substances in the article are not represented by their original chemical names, but by some codes. For example, when the article needs to mention "1,2-dimethoxybenzene" multiple times, a simplified name (such as 3a) will be used to represent the substance to avoid the lengthy phenomenon caused by writing the full name each time. This simplified name is reference).
[0004] The main drawbacks of manual chemical reaction data extraction are that it is time-consuming, costly and cannot be widely used; rule-based chemical reaction data extraction methods are usually less versatile. For example, the USPTO dataset extraction method widely used in the industry is only applicable to patent documents with a single format, but is ineffective when facing academic documents with complex and diverse formats. The main purpose of the present invention is to use advanced large-scale language models and algorithms to extract high-quality chemical reaction data from chemical articles, solve the shortcomings of the above-mentioned technologies, and have the advantages of low cost, high speed and good versatility. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies of the prior art and provide a method and device for chemical literature parsing and reaction information extraction based on a large language model.
[0006] The object of the present invention is achieved through the following technical scheme: A method for chemical literature parsing and reaction information extraction based on a large language model, comprising the following steps:
[0007] (1) Collect chemical literature and perform OCR and screening to obtain a processed chemical literature dataset;
[0008] (2) Perform information extraction on the processed chemical literature dataset to obtain a reaction information extraction set.
[0009] Furthermore, the step (1) specifically includes the following sub-steps:
[0010] (1.1) Using the Web of Science database and using "Suzuki-Miraura" or "Suzuki coupling" as the search criteria, the DOI of literature related to the Suzuki-Miraura reaction was searched, and then using the journal literature database, a wide range of chemical literature was collected based on the DOI number to obtain the first chemical literature data set;
[0011] (1.2) using optical character recognition technology to convert each document in the first chemical document dataset from PDF format to TXT format to obtain a second chemical document dataset;
[0012] (1.3) Analyze each document in the second chemical literature data set, remove the documents that do not contain the key phrase from the data set, and obtain a processed chemical literature data set.
[0013] Furthermore, the journal literature database includes but is not limited to the American Chemical Society electronic journal full-text database ACS, the Elsevier Cell Press database, the Nature journal database, the AAAS Science database, and the Wiley Online Library database.
[0014] Furthermore, the step (2) specifically includes the following sub-steps:
[0015] (2.1) Prompt instructions to let the artificial intelligence assistant extract chemical information from each document in the processed chemical literature dataset to obtain a reaction information set;
[0016] (2.2) For each document in the processed chemical literature dataset, the AI assistant uses ChatGPT’s ability to understand the document text and its context to accurately identify the compound reference form in each document and obtain the reference set;
[0017] (2.3) Map each reference in the reference set to the corresponding complete chemical name, and create a dictionary or a lightweight data exchange format JSON format file to record;
[0018] (2.4) Use a dictionary or a lightweight data exchange format JSON file to replace each reference in the chemical information set with a complete chemical name to obtain a reaction information extraction set.
[0019] Furthermore, the chemical information includes reactants, products, solvents, reaction reagents and yields.
[0020] Furthermore, the compound is represented by a combination of numbers and letters.
[0021] Furthermore, the step (2.3) is specifically as follows:
[0022] The artificial intelligence assistant uses ChatGPT's contextual understanding ability to scan each document in the processed chemical literature dataset to obtain the complete chemical name corresponding to each reference in the reference set, and creates a dictionary / or a lightweight data exchange format JSON format file to record it, where the key of the JSON format file is the reference form and the value is the complete chemical name.
[0023] Furthermore, the step (2.4) is specifically as follows:
[0024] The artificial intelligence assistant traverses the chemical information collection, and whenever it encounters a reference, it uses a dictionary and / or a lightweight data exchange format JSON format file to obtain the corresponding complete chemical name and replace it. The replacement process is completed by using a string replacement function.
[0025] The present invention also includes a chemical literature parsing and reaction information extraction device based on a large language model, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used for the above-mentioned chemical literature parsing and reaction information extraction method based on a large language model.
[0026] The present invention also includes a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned chemical literature parsing and reaction information extraction method based on a large language model is implemented.
[0027] The beneficial effects of the present invention are:
[0028] 1) The present invention applies a large language model to the field of chemical reaction data information extraction for the first time, achieving a new breakthrough in this field. Compared with traditional conventional toolkits or mature software, the present invention can be applied to various academic journals with different styles, while traditional software can only be applied to patent documents or one (several) types of documents with a relatively simple format; therefore, the present invention has better universality than the prior art;
[0029] 2) Compared with the technology of extracting metal-organic framework (MOFs) data from academic journals using ChatGPT by Zheng et al., the latter can only be applied to MOFs data but not to the extraction of chemical reaction data information, and the latter cannot solve the common and key reference problems in chemical literature; compared with the latter, the present invention is more targeted and has better performance and effect when facing complex problems;
[0030] 3) Compared with the traditional method of manually collecting and extracting chemical data, the present invention is more efficient, less costly and has more stable overall performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flowchart of a method for chemical literature parsing and reaction information extraction based on a large language model;
[0032] Figure 2 This is an overall flow chart of a method for chemical literature parsing and reaction information extraction based on a large language model;
[0033] Figure 3 Schematic diagram of the process of step (2.1) in Example 1;
[0034] Figure 4 Schematic diagram of the process of step (2.3) in Example 1;
[0035] Figure 5This is a structural diagram of a chemical literature parsing and reaction information extraction device based on a large language model. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the present invention more clear, the present invention is further described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0037] The present invention provides a chemical literature parsing and reaction information extraction method based on a large language model, which is used to extract high-quality chemical reaction data from chemical literature. It aims to solve the defect that traditionally, the field of chemical informatics can only use conventional toolkits or manual collection methods to obtain chemical data, but cannot use advanced AI technology to extract chemical data, and achieve a new breakthrough in the field of using AI technology to collect chemical reaction data.
[0038] Example 1
[0039] like Figure 1 and Figure 2 As shown, the present invention provides a method for chemical literature parsing and reaction information extraction based on a large language model, comprising the following steps:
[0040] (1) Collect chemical literature and perform OCR and screening to obtain a processed chemical literature dataset.
[0041] The step (1) specifically includes the following sub-steps:
[0042] (1.1) Chemical literature collection stage: In the initial stage of the research, it is very important to obtain high-quality chemical literature resources. To this end, the present invention uses the Web of Science database and uses "Suzuki-Miraura" or "Suzuki coupling" as the search condition to search for the DOI (Document ID) of the literature related to the Suzuki-Miraura reaction, and then uses the journal literature database to collect a wide range of chemical literature through the DOI number to obtain the first chemical literature data set.
[0043] The journal literature database includes but is not limited to the American Chemical Society electronic journal full-text database ACS, Elsevier Cell Press database, Nature journal database, AAAS Science database, Wiley Online Library database, etc.
[0044] (1.2) Application stage of optical character recognition (OCR) technology: The chemical documents obtained in the chemical document collection stage are in PDF format, and the present invention needs to convert these documents into a computer-readable format. The present invention uses optical character recognition (OCR) technology to convert each document in the first chemical document data set from PDF format to TXT format to obtain a second chemical document data set. Doing so can make the documents more suitable for the next step of processing. However, it is worth noting that although the OCR process is usually accurate, it is not completely correct. Occasionally, problems may occur in complex layouts and low-quality scans, which may cause errors in the generated text information.
[0045] (1.3) Text quality control stage: In view of the potential error risk in the OCR stage, the present invention establishes a quality control mechanism to ensure the reliability of the data set. Each document in the second chemical literature data set is analyzed, and the documents that do not contain the key phrases are removed from the data set to obtain a processed chemical literature data set.
[0046] The key phrases are General Procedure, Typical Procedure or General Experiment. These phrases usually represent the synthesis operation paragraph part in the literature. The literature that does not contain these phrases is considered to be of insufficient quality or inappropriate and is therefore excluded from the literature data set.
[0047] (2) Perform information extraction on the processed chemical literature dataset to obtain a reaction information extraction set.
[0048] The step (2) specifically includes the following sub-steps:
[0049] (2.1) Prompt instructions are used to let the AI assistant extract chemical information from each document in the processed chemical literature dataset to obtain a set of reaction information; the chemical information includes reactants, products, solvents, reaction reagents, and yields. This process is similar to how human chemists analyze detailed experimental records and extract key data information about related reactions.
[0050] The specific prompt instructions are: "You are a professional organic chemistry expert. Please answer the questions or requirements mentioned in the following text truthfully: Please use a JSON formatted file to summarize all the chemical reaction information in the following text paragraph, including: yield, reactants / reagents, solvents, and product information. Please note that the text generally includes general steps (general descriptions applicable to multiple reactions) and specific steps (applicable to a specific reaction). Please note that the keys (or column headers) of the JSON file are yield, reactants / reagents, solvents, and products. If some of the values are missing, please fill them with NaN."
[0051] The input of this stage is the processed chemical literature dataset, and the output is a text in JSON format, which contains multiple reaction information. Each reaction information includes reactants / reagents, solvents, products (if the reactants or products in the specific paragraph are represented by full chemical names, the full names of the products or reactants are directly obtained; if there are only reference names, the references are obtained) and yields. The process of extracting the reaction information set is as follows Figure 3 shown.
[0052] (2.2) When obtaining complete chemical information data, the first task is to identify and solve the problem of reference. Reference is widespread in chemical literature. This is mainly because the chemical names of reaction raw materials and products are often long and non-intuitive. In order to avoid the length of the article being too long, a simpler reference form (hereinafter referred to as reference) is often used in standard writing. Reference is usually represented by a combination of numbers and letters. Although this kind of reference is very convenient and effective for chemical readers who are familiar with the context, it is a great challenge for computers to read and understand.
[0053] For each document in the processed chemical literature dataset, the AI assistant uses ChatGPT's ability to understand the document text and its context to accurately identify the compound reference form in each document and obtain a reference set. The compound reference form is a combination of numbers and letters.
[0054] To address this challenge, the present invention equips the AI assistant with the ability to identify and solve this problem. This process is not just a scan and read of the document, but also an in-depth understanding and analysis of the text based on the context, and the specific text range identified is the same as the text range in step (2.1). For each document, the AI assistant uses ChatGPT's ability to understand the text and its context to accurately identify these references. It uses GPT's Transformer-based architecture, which enables it to understand dependencies within and between sentences. When encountering potential references, the AI assistant will verify it based on the commonly used reference patterns in chemical literature (references generally have obvious dependencies on context. Generally, the following content types will appear near the reference name: 1. Complete chemical name; 2. Statements describing the reaction of the reference with other substances; 3. Specific weight or volume units appear; 4. Physical and chemical operations are performed on the reference, such as dissolving, extracting, separating, purifying, drying, etc., or having the words product (product) and reactant (reactant)). This step ensures that the identified anaphora are not false positives, such as numbers and letters that happen to appear together in the text (which look similar to anaphora but are not actually anaphora). Figure 3 a", in fact, 3a here does not refer to a chemical name).
[0055] Once the reference is verified, the AI assistant records it for use in subsequent steps. This record is sequential (referring to the order in which it appears in the text), ensuring that all references in the original text are accurately identified and recorded. This step is crucial because it lays the foundation for the mapping between the reference and its corresponding full chemical name in subsequent tasks.
[0056] In summary, the task of identifying references is a complex process that requires AI assistants to perform recognition verification, text reading, and context analysis. The accuracy and efficiency of this task are critical to the success of subsequent steps. Through this task, the AI assistant demonstrated its ability to understand and apply the complexity of chemical literature, laying the foundation for extracting chemical reaction data.
[0057] The specific prompt instructions are: "You are a professional organic chemistry expert. Please answer the questions or requirements mentioned in the following text truthfully: Please find all the reference forms that appear in the text. Reference names are often used in chemical reactions to replace the full chemical names of reactants / products. In the text, reference names usually appear near the text listed in the following situations. I will give you specific examples: 1. Near the full chemical name, such as A2-necked RB flask was charged with 1,4-benzenediboronic acid(30;90.0mg,0.54mmol), 30 is the reference name of 1,4-benzenediboronic acid; 2. Describe the reaction with other substances, such as 2-Bromo-5-(trifluoromethyl)pyridine(171mg,1mmol)and 1(646mg,1.7mmol)were reacted according to TP 1to afford the desired product, 1 is the reference form; 3. Weight or volume units appear near the text, such as 4 (620mg, 1.7mmol), 4 is the reference form; 4. Physical and chemical operations are performed on the reference, such as dissolving, extracting, separating, purifying, drying, etc., or there are words such as product (product) and reactant (reactant), such as After column chromatography purification (3x 20cm, cyclohexane / EtOAc, 5:1), the product 5a was isolated as a yellow solid, 5a is the reference form. Please generate a list of all the extracted reference forms for saving, and be careful not to save the same reference repeatedly. ".
[0058] The input of this stage is the processed chemical literature dataset, and the output is a list of all the reference forms in the processed chemical literature dataset.
[0059] (2.3) Map each reference in the reference set to the corresponding complete chemical name, and create a dictionary / or a lightweight data exchange format JSON format file to record. The artificial intelligence assistant uses ChatGPT's context understanding ability to scan each document in the processed chemical literature dataset to obtain the complete chemical name corresponding to each reference in the reference set.
[0060] The artificial intelligence assistant uses ChatGPT's contextual understanding ability to scan each document in the processed chemical literature dataset to obtain the complete chemical name corresponding to each reference in the reference set, and creates a dictionary / or a lightweight data exchange format JSON format file to record it, where the key of the JSON format file is the reference form and the value is the complete chemical name.
[0061] The third task performed by the AI assistant is to map the references to the corresponding full chemical names. This process converts the abbreviated reference symbols into the corresponding full names, making the chemical reaction data information described in the text more comprehensive. Based on the identification of references, the AI assistant begins to map these references to their full chemical names. To this end, the AI assistant uses ChatGPT's contextual understanding capabilities to scan each document in the processed chemical literature dataset to obtain the full chemical name corresponding to each reference in the reference set, and creates a dictionary / or lightweight data exchange format JSON format file to record, where the key of the JSON format file is the reference form and the value is the full chemical name.
[0062] When AI assistants handle this complex task, it usually involves understanding the grammatical structure of complex sentences or combining information scattered across multiple sentences. Once the full chemical name corresponding to the reference is determined, the AI assistant will carefully record this mapping relationship in a structured format (create a dictionary / or a lightweight data exchange format JSON format to record, where the key is the reference and the value is the full chemical name). This data structure design is flexible, and if a more accurate or more complete definition of the reference relationship is encountered in the text later, the data structure will be updated to ensure higher accuracy.
[0063] In summary, this step involves complex text information understanding, which requires the AI assistant to establish connections between different paragraphs in the text. This task is crucial for the accuracy and completeness of reference replacement and chemical information extraction.
[0064] The prompt instruction for this task is: "You are a professional organic chemistry expert. I will provide you with a list of reference forms and a chemical text. Please find the specific complete chemical names of these reference forms in the text and generate a JSON format file to save the reference forms and complete chemical names. The key of the JSON file is the reference form and the value is the complete chemical name. The list content of the reference form is [29,17] (the list changes depending on the article)."
[0065] The input of this stage is the processed chemical literature dataset, and the output is a file in JSON format.
[0066] The process of mapping a reference to a corresponding complete chemical name is as follows Figure 4 shown.
[0067] (2.4) Use a dictionary or a lightweight data exchange format JSON file to replace each reference in the chemical information set with a complete chemical name to obtain a reaction information extraction set.
[0068] The artificial intelligence assistant traverses the chemical information collection, and whenever it encounters a reference, it uses a dictionary and / or a lightweight data exchange format JSON format file to obtain the corresponding complete chemical name and replace it. The replacement process is completed by using a string replacement function.
[0069] This task is a key step in the operation of the AI assistant and involves replacing all identified references in the text of Task 1 with their corresponding full chemical names. This task is first implemented by utilizing the dictionary / JSON format file created in Phase 2.3, where the keys are references and the values are the corresponding full chemical names. The AI assistant then searches through the text extracted from Task 1, and whenever it encounters a reference, it consults the dictionary to obtain the corresponding full chemical name and replaces the reference with it. This is done by using a string replace function that scans the text for references and replaces them with the full chemical name.
[0070] This replacement process is similar to the search and replace operation in a text editor, but is much larger and more complex due to the complexity of chemical nomenclature. The end result is a text where the references have been replaced by the full chemical name, making subsequent information extraction tasks more comprehensive and accurate.
[0071] The output of this task is a structured dataset (csv file or excel file) containing information such as reactants, products, solvents, reaction reagents, yields, etc. for each reaction described in the text. This dataset serves as the final output of the AI assistant.
[0072] Engineering implementation via ChatGPT (technical details of step (2))
[0073] Generate prompt instructions using ChatGPT
[0074] ChatGPT has the ability to generate similar text based on a given prompt. The AI assistant uses this ability of ChatGPT to generate initial prompts for the task. These prompts serve as a starting point for the AI assistant to focus on specific information and data of interest in the document text.
[0075] Wrapper function execution
[0076] The final step of the project is to execute the encapsulated function. This function takes the text as input, applies the previously obtained prompt instructions to extract the required information, and returns this information as an output value. The function is encapsulated in such a way that it can be easily integrated into other systems or workflows, making the AI assistant a versatile tool for chemical information extraction.
[0077] In summary, the engineering implementation of the present invention relies on the careful orchestration of multiple components, each with a specific role, working together towards the common goal of effective and efficient chemical information extraction. By leveraging the power of GPT and the flexibility of a multi-task framework, the present invention is able to tackle the complex task of extracting chemical information from literature, opening up new possibilities in the field of cheminformatics. The AI assistant uses a systematic and rigorous approach, making it a suitable tool for information extraction from chemical reaction data. By breaking down the complex task of chemical information extraction into manageable subtasks, the AI assistant is efficient and scalable, paving the way for future advances in the field.
[0078] The key points and protection points of the present invention are:
[0079] 1. The present invention applies a large language model to the extraction of chemical reaction data information for the first time, achieving a new breakthrough in this field, which is a feature that traditional manual extraction methods, conventional toolkit extraction methods, etc. do not have.
[0080] 2. The present invention creatively proposes a multi-task chemical artificial intelligence assistant with an end-to-end framework driven by a large language model. For the first time, the concept of artificial intelligence agent is combined with an artificial intelligence-based chemical assistant. The artificial intelligence agent-based framework is used to extract chemical data information, which greatly saves manpower and realizes intelligent automation of tasks.
[0081] 3. The present invention designs a novel method for automatically iterating and optimizing prompt instructions. This iterative optimization method is one of the important links to ensure the efficiency of task execution of artificial intelligence assistants.
[0082] The present invention has the advantages of good universality, strong pertinence, more outstanding ability to solve complex problems, higher efficiency, lower cost and more stable comprehensive performance.
[0083] Since there are currently no other complete open source tools for extracting chemical reaction data information from academic journals, the present invention mainly compares with the way human chemists manually collect data to preliminarily verify the effect and performance of the artificial intelligence assistant in the present invention in extracting chemical reaction data information, mainly the accuracy, average cost and average speed indicators.
[0084] The present invention compares the evaluation indicators of human chemists and artificial intelligence assistants for collecting chemical reaction condition data. For human chemists, in order to reduce uncertainty and randomness, 10 master's or doctoral students in chemistry-related majors were selected in the comparative study to collect data, and the data results of the 10 chemistry graduate students were averaged to conduct a comprehensive comparison with the artificial intelligence assistant, as shown in Table 1.
[0085] As can be seen from Table 1, our AI assistant is comparable to human chemists in data accuracy, but has significant advantages in cost and speed.
[0086] Table 1: Comparison of the accuracy, average cost, and average time of collecting chemical reaction condition data by human chemists and AI assistants
[0087] Accuracy Average cost (per reaction) Average speed (per reaction) Human chemist collection (10 people) 90% 10 Yuan 288 seconds AI Assistant Extraction 87% 0.018 yuan 0.43 seconds
[0088] Example 2
[0089] The present embodiment relates to a chemical literature parsing and reaction information extraction device based on a large language model, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used for a chemical literature parsing and reaction information extraction method based on a large language model in the above-mentioned embodiment 1; the device embodiment can be applied to any device with data processing capabilities, and the any device with data processing capabilities can be a device or apparatus such as a computer.
[0090] like Figure 5 At the hardware level, the knowledge distillation device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1Of course, in addition to the software implementation, the present invention does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0091] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0092] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0093] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0094] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0095] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0096] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0097] Example 3
[0098] An embodiment of the present invention also provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, the method for chemical literature parsing and reaction information extraction based on a large language model of the above-mentioned embodiment 1 is implemented.
[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for chemical literature parsing and reaction information extraction based on a large language model, characterized in that: The following steps are involved: (1) Collect chemical literature and perform OCR and screening to obtain a processed chemical literature dataset; (2) Perform information extraction on the processed chemical literature dataset to obtain a reaction information extraction set.
2. A method for chemical literature parsing and reaction information extraction based on a large language model according to claim 1, characterized in that: The step (1) specifically includes the following sub-steps: (1.1) Using the Web of Science database and using "Suzuki-Miraura" or "Suzuki coupling" as the search criteria, the DOI of literature related to the Suzuki-Miraura reaction was searched, and then using the journal literature database, a wide range of chemical literature was collected based on the DOI number to obtain the first chemical literature data set; (1.2) using optical character recognition technology to convert each document in the first chemical document dataset from PDF format to TXT format to obtain a second chemical document dataset; (1.3) Analyze each document in the second chemical literature data set, remove the documents that do not contain the key phrase from the data set, and obtain a processed chemical literature data set.
3. A method for chemical literature parsing and reaction information extraction based on a large language model according to claim 2, characterized in that: The journal literature database includes but is not limited to the American Chemical Society electronic journal full-text database ACS, the Elsevier Cell Press database, the Nature journal database, the AAAS Science database, and the Wiley Online Library database.
4. The method for chemical literature parsing and reaction information extraction based on a large language model according to claim 1, characterized in that: The step (2) specifically includes the following sub-steps: (2.1) Prompt instructions to let the artificial intelligence assistant extract chemical information from each document in the processed chemical literature dataset to obtain a reaction information set; (2.2) For each document in the processed chemical literature dataset, the AI assistant uses ChatGPT’s ability to understand the document text and its context to accurately identify the compound reference form in each document and obtain the reference set; (2.3) Map each reference in the reference set to the corresponding complete chemical name, and create a dictionary or a lightweight data exchange format JSON format file to record; (2.4) Use a dictionary or a lightweight data exchange format JSON file to replace each reference in the chemical information set with a complete chemical name to obtain a reaction information extraction set.
5. A method for chemical literature parsing and reaction information extraction based on a large language model according to claim 4, characterized in that: The chemical information includes reactants, products, solvents, reaction reagents and yields.
6. A method for chemical literature parsing and reaction information extraction based on a large language model according to claim 4, characterized in that: The compound reference form is represented by a combination of numbers and letters.
7. A method for chemical literature parsing and reaction information extraction based on a large language model according to claim 4, characterized in that: The step (2.3) is specifically: The artificial intelligence assistant uses ChatGPT's contextual understanding ability to scan each document in the processed chemical literature dataset to obtain the complete chemical name corresponding to each reference in the reference set, and creates a dictionary / or a lightweight data exchange format JSON format file to record it, where the key of the JSON format file is the reference form and the value is the complete chemical name.
8. The method for chemical literature parsing and reaction information extraction based on a large language model according to claim 4, characterized in that: The step (2.4) is specifically: The artificial intelligence assistant traverses the chemical information collection, and whenever it encounters a reference, it uses a dictionary and / or a lightweight data exchange format JSON format file to obtain the corresponding complete chemical name and replace it. The replacement process is completed by using a string replacement function.
9. A chemical literature parsing and reaction information extraction device based on a large language model, characterized in that: It comprises a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used to implement a chemical literature parsing and reaction information extraction method based on a large language model as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, a method for chemical literature parsing and reaction information extraction based on a large language model as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method and system for constructing near-drug spatial database based on image and text data in public literature
CN115458077A
Information processing method and system of chemical entity, computer system and storage medium
CN116187327A
System and method for second-order cue word of large language model for digital human intellectualization
CN116881415A
Chemical reaction teaching method and system based on large language model
CN116994664A
Literature review generation method based on large language model
CN117709306A
Cited By
Enzyme activity parameter extraction method and system based on large language model
CN119443093A
Computing device, method, computer readable storage medium and computer program product for document meta-analysis
CN119830891A
Method and device for automatically extracting key information of chemical literature
CN120781834A
A method and device for automatically extracting key information from chemical literature
CN120781834B
