Next Article in Journal
Simple and Highly Efficient Detection of PSD95 Using a Nanobody and Its Recombinant Heavy-Chain Antibody Derivatives
Previous Article in Journal
New Breeding Technologies in Grasses
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automatic Generation of SBML Kinetic Models from Natural Language Texts Using GPT

Department of Bioscience and Bioinformatics, Kyushu Institute of Technology, 680-4 Kawazu, Iizuka 820-8502, Fukuoka, Japan
*
Author to whom correspondence should be addressed.
Int. J. Mol. Sci. 2023, 24(8), 7296; https://doi.org/10.3390/ijms24087296
Submission received: 6 March 2023 / Revised: 5 April 2023 / Accepted: 13 April 2023 / Published: 14 April 2023
(This article belongs to the Section Molecular Informatics)

Abstract

:
Kinetic modeling is an essential tool in systems biology research, enabling the quantitative analysis of biological systems and predicting their behavior. However, the development of kinetic models is a complex and time-consuming process. In this article, we propose a novel approach called KinModGPT, which generates kinetic models directly from natural language text. KinModGPT employs GPT as a natural language interpreter and Tellurium as an SBML generator. We demonstrate the effectiveness of KinModGPT in creating SBML kinetic models from complex natural language descriptions of biochemical reactions. KinModGPT successfully generates valid SBML models from a range of natural language model descriptions of metabolic pathways, protein–protein interaction networks, and heat shock response. This article demonstrates the potential of KinModGPT in kinetic modeling automation.

1. Introduction

Kinetic modeling plays a crucial role in systems biology, enabling researchers to quantitatively analyze and predict the behavior of complex biochemical systems, such as metabolic pathways and gene regulatory networks [1]. Kinetic models are differential equation models that describe the dynamic behavior of biochemical systems based on the interactions between their molecular components. Kinetic models are stored and distributed as SBML (Systems Biology Markup Language) files [2,3]. In addition, there are several software tools, such as Tellurium [4,5], COPASI [6,7,8], and CADLIVE [9,10,11], that support kinetic modeling. Still, the development of kinetic models is time-consuming and expert work. First, modelers survey research articles for known enzyme reactions, signal transduction pathways, and gene regulations in the system of interest, and build the chemical reaction equations with kinetic parameters. Next, modelers translate them into kinetic rate equations. A few studies have been devoted to developing natural language processing-based methods, that generate kinetic models from literature texts [12,13]. However, these studies focused on signal transduction, a specific type of biochemical system. Moreover, their complex implementation makes it challenging for non-experts to modify or extend.
In recent years, there has been significant progress in artificial intelligence (AI) technologies, particularly in the field of large language models (LLMs). GPT (generative pre-trained transformer) models stand out as the most advanced among these. ChatGPT [14], one of the GPT models, has gained public attention due to the ability to engage in natural conversations. It has been shown that GPT models have the capability to pass graduate-level exams [15,16,17] and write program codes [18]. In addition, GPT models may allow researchers to automatically build kinetic models directly from research articles. To the best of our knowledge, the capabilities of GPT models for automatic kinetic model construction have not been investigated.
This article aims to answer the question: Can a GPT model generate an SBML kinetic model from a natural language description? As GPT alone cannot create valid SBML models, we propose a novel approach called KinModGPT, which combines GPT as a natural language interpreter and Tellurium as an SBML generator. Moreover, we demonstrate that KinModGPT can generate valid SBML models from natural language descriptions of biochemical reactions.

2. Results

2.1. GPT Alone Cannot Create Valid SBML Models

First, we tested whether GPT models can directly generate an SBML model from natural language text. GPT models are LLMs trained on massive amounts of text data [19,20]. When prompted with a message to start the conversation, GPT models generate appropriate responses by repeatedly predicting the following word in the sequence. In this study, we tested three GPT models: text-davinci-003, gpt-3.5-turbo, and gpt-4 (see Section 4).
We employed four test problems, with biochemical systems with different complexities (Figure 1). The first problem, decay, is the simplest scenario, in which an SBML model is generated from just two sentences. This model has a single variable and a single reaction. The HIV model represents the mechanism of irreversible inhibition of HIV proteinase [21,22,23]. It comprises nine variables and ten reactions, and its model description consists of five sentences. The three-step model describes a hypothetical metabolic pathway with three enzyme reactions and three gene regulations. This model consists of 10 variables and 15 reactions, described in 6 sentences. Finally, the heat shock response model represents the realistic, complex regulatory mechanisms that confer robustness to heat shock in Escherichia coli [24,25,26]. The heat shock response aims to refold proteins denatured by heat. This system revolves around the transcription factor σ 32 , the chaperone protein DnaK, and the protease FtsH. The heat shock response model comprises 25 variables and 50 reactions, described in 20 sentences.
In the computational experiment, we asked the GPT models to convert each model description to an SBML model. The instruction message for the GPT models is shown in Scheme A1. The results are summarized in Table 1. For all the model descriptions tested, the GPT models generated SBML-like models. However, upon inspecting these SBML models using the Online SBML Validator [27], we discovered that all the generated SBML models were invalid, containing some errors, such as missing required attributes. The invalid SBML files cannot be imported by widely used modeling tools. In summary, GPT models alone cannot generate correct SBML models for the four test problems presented in Figure 1, highlighting the difficulty of generating SBML models from natural language texts.

2.2. KinModGPT Can Create Valid SBML Models

To generate an SBML model from natural language text, we introduce the strategy named KinModGPT, as outlined in Figure 2. First, using a GPT model, KinModGPT translates the natural language descriptions of biochemical reactions into Antimony language [28], a human-readable model definition language. Next, KinModGPT converts the resulting Antimony model into the SBML model, using Tellurium [4,5]. For KinModGPT, we provided the following prompt to the GPT model. First, we told the GPT model that the task was to translate the descriptions of biochemical reactions written in natural language, into Antimony. Second, we provided a conversion rule table that showed how each chemical reaction is represented in natural language and Antimony (Scheme A2). Then, we input the natural language model descriptions. The Python code of KinModGPT, and the created Antimony and SBML models, are available on GitHub (https://github.com/kmaeda16/KinModGPT, accessed on 12 April 2023).
We tested whether KinModGPT can create valid SBML models from text model descriptions. As a GPT model, we employed either of text-davinci-003, gpt-3.5-turbo, or gpt-4. Except for in combination with gpt-3.5-turbo, KinModGPT successfully generated SBML models for all the test problems (Table 1). We confirmed the validity of the generated SBML models using the Online SBML Validator. These valid SBML models could be imported by a widely used modeling tool, COPASI [6,7,8]. Moreover, we confirmed that these SBML models were consistent with their model descriptions.
To further examine the models, we intensively analyzed each generated SBML model. The decay model has a single reaction, by which the protein P degrades (Figure 1). The Antimony model is shown in Scheme 1. It is worth noting that KinModGPT does not require an exact match between the conversion rules and model descriptions. Indeed, KinModGPT successfully interpreted “Protein P decays. The initial concentration is 1 uM”, as the combination of the two conversion rules shown in Scheme A2: “X degrades (or decays)” and “X (concentration) is Y M (or mM or uM or nM or pM)”. The generated SBML model could be simulated as it was (Figure 3). The P concentration decreases over time.
In the model description of the HIV model (Figure 1), five sentences describe ten reactions. Indeed, the second sentence contains four reactions. KinModGPT extracted the necessary information from these complex sentences and generated a valid SBML model. The Antimony model is provided in Scheme 2. Modeling tools could simulate the SBML model without any modifications. However, to check whether the SBML model reproduces the behavior of the HIV proteinase system, we manually set known realistic values to kinetic parameters. As shown in Figure 4, the substrate (S) is converted into the product (P) over time. This reaction is catalyzed by the enzyme (E). The two monomers (M) bind to form an active enzyme (E). The enzyme–substrate complex (ES) is converted into the enzyme (E) and the product (P). The enzyme (E) can bind to the product (P) and form the enzyme–product complex (EP). The enzyme (E) also binds to the inhibitor (I) and forms the enzyme–inhibitor complex (EI). This complex is then converted into the irreversible enzyme–inhibitor complex (EJ), which gradually increases. This behavior is consistent with the network map (Figure 1), model description, and literature [21,22,23].
The three-step problem highlights the remarkable capability of KinModGPT. The model description’s first two complex sentences, “Substrate S is converted into product P through intermediates M1 and M2. The metabolic reactions are catalyzed by three enzymes, E1, E2, and E3”, contain four metabolites and three enzyme reactions. These sentences may be challenging even for experienced modelers to interpret. However, combined with text-davinci-003 or gpt-4, KinModGPT successfully interpreted and translated the sentences into the Antimony model (Scheme 3). Next, we tested whether the created SBML model could reproduce a reasonable behavior. As shown in Figure 5, the substrate (S) is converted into the product (P) through two intermediate metabolites (M1 and M2). The expression of the third enzyme (E3), is repressed compared to the first and second enzymes (E1 and E2), because the accumulated P represses the expression of E3. This behavior matches the network map and model description shown in Figure 1.
Combined with text-davinci-003 or gpt-4, KinModGPT has successfully created an SBML model for the heat shock response model, comprising 25 variables and 50 reactions, demonstrating its potential for developing complex, realistic kinetic models. The Antimony model is provided in Scheme A4 and Scheme A5. To test the created SBML model, we assigned realistic parameter values and simulated its behavior. Upon heat shock, proteins are rapidly denatured, and thus the yield (the fraction of folded proteins in the total protein pool) decreases (Figure 6). However, mRNA for the σ 32 transcription factor is activated by heat, and the produced σ 32 initiates the expression of the chaperone protein DnaK. Denatured proteins are then quickly refolded by DnaK, and thus the yield is recovered. This behavior is consistent with the literature [24,25,26].

2.3. Comparison with an Existing Tool

Gyori et al. proposed the Integrated Network and Dynamical Reasoning Assembler (INDRA), which automatically builds kinetic models from natural language texts [12]. Instead of GPT, INDRA employs DRUM (Deep Reader for Understanding Mechanisms) to interpret model descriptions. DRUM is a version of the general-purpose TRIPS natural language processing system, customized for extracting biological mechanisms from natural language text [12]. As an additional experiment, we tested whether INDRA can generate SBML models for the four test problems (Figure 1). INDRA generated valid SBML files for the decay and HIV (Table 1). However, these files were inconsistent with the model descriptions: the initial concentration was incorrect for the decay, and the SBML model for the HIV contained only one rate equation. Furthermore, INDRA failed to create SBML models for the three-step and heat shock response.

3. Discussion

In this article, we explored the possibilities of using GPT models for kinetic modeling automation. We developed KinModGPT by integrating GPT [19,20] and Tellurium [4,5]. KinModGPT successfully converted a kinetic model written in a natural language text into the SBML model. Furthermore, the created SBML models could be imported by widely used modeling tools. To our knowledge, this work presents the first method applying GPT models to kinetic modeling, representing an advance in systems biology.
How did GPT models fail to generate valid SBML files without any help from Tellurium? Despite the effectiveness of LLMs in generating natural sentences, their output may lack the precision required to generate accurate models. In contrast, even a single missing tag in SBML can lead to errors in the model. As a result, GPT models could not generate valid SBML models, not even for the simplest model with one variable and one reaction. Furthermore, fixing the generated invalid SBML models is challenging, because a manual review of the SBML files in XML format is required.
Instead of creating SBML models directly from natural language texts, KinModGPT employs Antimony language as an intermediate representation. Since Antimony language is simpler than SBML, GPT models can translate a natural language model description into Antimony language without errors. Then, the modeling tool, Tellurium, creates an SBML model from the Antimony model. When KinModGPT was combined with text-davinci-003 or gpt-4, there were no conversion errors. However, even if there were some errors, they could be easily corrected using modeling tools or by directly editing the Antimony models. This is another advantage of KinModGPT over the GPT-only approach. Interestingly, when combined with gpt-3.5-turbo, KinModGPT failed to produce correct SBML models for the three-step and heat shock response. This result is reasonable, because gpt-3.5-turbo is tuned for chat rather than precise text generation.
Despite its promising results, KinModGPT has some limitations. Firstly, the current version of the natural language–Antimony conversion rule table, covers only a part of biochemical reactions. However, the table can easily be expanded or tailored to a specific application domain. Moreover, we may eliminate the need for manual rule definition, by fine-tuning or retraining a GPT model with a large number of “Rosetta stones”, i.e., natural language model descriptions and their Antimony counterparts. Another limitation, is that the current version of KinModGPT cannot automatically set appropriate kinetic parameter values. Thus, kinetic parameters must be tuned in the downstream modeling process, to create a realistic model that complies with experimental data [29,30,31,32,33,34].
There are many software tools available for modeling and analyzing kinetic models. However, most of them require users to manually input rate equations, which can be a significant barrier to entry. To address this issue, we have been developing tools for automating the process of kinetic modeling. For instance, we developed the CADLIVE system [9,10,11], automatically converting a biochemical network map into a kinetic model. However, even with CADLIVE, users must manually create the network map. KinModGPT is unique in its ability to generate kinetic models from natural language descriptions, and eliminates the need to draw a network map. There is another similar system, called INDRA, which automatically builds kinetic models from natural language texts [12]. While INDRA focuses on modeling cell signaling pathways, its applicability to other biochemical systems remained unexplored. Therefore, we tested if INDRA can handle metabolic pathways, protein–protein interactions, and gene regulations. As shown in the Section 2, INDRA failed to generate correct SBML models for all of the test problems (Table 1), demonstrating the superiority of KinModGPT over INDRA. Furthermore, KinModGPT offers the advantage of extensibility. Due to its simple implementation, modelers can easily customize the conversion rules for translating natural language texts to Antimony. For example, we modeled enzyme reactions using the simplest irreversible Michaelis–Menten equation in the three-step model; however, by modifying the conversion rule table (written in a simple text file), modelers can easily switch to a reversible equation. In addition, as GPT is multilingual, the conversion rules can be written in languages other than English.
KinModGPT is one of the earliest applications of an LLM to biology. The application of LLMs to biology is still in its early stages; however, LLMs will significantly impact automation in biological fields. Indeed, when augmented with external tools such as a literature search tool and a chemical synthesis planner, GPT-4, the latest version of GPT, successfully proposed a compound with similar properties to the drug dasatinib, and found a supplier that sells it [20]. We used an LLM as a natural language interpreter in the present study. This approach is applicable to different tasks in biology. For example, LLMs may be able to design DNA sequences in natural language and export them as Synthetic Biology Open Language (SBOL) [35] or GenBank files. Based on instructions such as “design an operon with a Tac promoter upstream of the gfp gene and place a BbsI recognition site before and after it”, corresponding DNA sequences can be created by LLMs. Moreover, GPT can draw pictures using scalable vector graphics (SVG) and TikZ codes [36]. In the future, LLMs may be able to draw biochemical network maps using Systems Biology Graphical Notation (SBGN) [37] or CADLIVE notation [9,11]. GPT-4 can accept both image and text inputs and produce text outputs [20]. As a result, GPT-4 has the potential to assist in the interpretation of complex bioimages. For instance, seqFISH+ can image mRNAs for 10,000 genes in single cells [38]. However, the resulting images are often too complex and information-rich for humans to comprehend. Combined with literature and gene regulatory network databases, GPT-4 and future LLMs may interpret such images and provide concise descriptions, to assist scientists. In this regard, LLMs have the potential to contribute to single-cell biology [39] and spatial transcriptomics [40], among other fields.
It should be noted, that the purpose of this article is not to provide a perfect solution for kinetic modeling automation, but to demonstrate the potential of GPT models in this field. With the continued refinement of KinModGPT, AI may be able to extract information from many relevant articles to generate a kinetic model automatically. Such a development could significantly accelerate model development and improve understanding of complex biological systems.

4. Materials and Methods

4.1. GPT

Trained on massive amounts of text data, LLMs are a powerful tool for natural language processing tasks, including language translation, text summarization, and question answering. LLMs can generate human-like natural language text, by predicting the next word in a sequence given preceding words. We employed three LLMs in this study: text-davinci-003, gpt-3.5-turbo, and gpt-4. The former two are in OpenAI’s GPT-3.5 series, with 175 billion parameters [19]. gpt-3.5-turbo is the main model used in ChatGPT [14], an improvement on text-davinci-003, optimized for chat. gpt-4 [20] is the latest and most capable GPT-4 model. For GPT models, the parameter called temperature determines the randomness of responses. In this study, we set temperature = 0, for reproducibility.

4.2. Tellurium

Tellurium [4,5] is a Python library for modeling and simulating biochemical systems. For model development, Tellurium employs Antimony [28], a human-readable, text-based language, that facilitates the creation of kinetic models. Additionally, Tellurium can convert Antimony models to SBML models.

Author Contributions

Conceptualization, K.M.; software, K.M.; investigation, K.M. and H.K.; writing—original draft preparation, K.M. and H.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Grant-in-Aid for Scientific Research (C) (22K12247) and Grant-in-Aid for Scientific Research (B) (22H03688), from the Japan Society for the Promotion of Science. This work was further supported by JST PRESTO (JPMJPR20K8).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The program code for the computational experiments and the created Antimony and SBML models are available on GitHub (https://github.com/kmaeda16/KinModGPT, accessed on 12 April 2023).

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study, in the collection, analyses, or interpretation of data, in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
GPTGenerative pre-trained transformer
LLMLarge language model
SBMLSystems Biology Markup Language
COPASIComplex Pathway Simulator
CADLIVEComputer-Aided Design of Living Systems
INDRAIntegrated Network and Dynamical Reasoning Assembler

Appendix A

Scheme A1. Instruction message for the GPT-only approach. This instruction is followed by a model description (see Figure 1).
Scheme A1. Instruction message for the GPT-only approach. This instruction is followed by a model description (see Figure 1).
Ijms 24 07296 sch0a1
Scheme A2. Instruction message for KinModGPT. This instruction is followed by a model description (see Figure 1).
Scheme A2. Instruction message for KinModGPT. This instruction is followed by a model description (see Figure 1).
Ijms 24 07296 sch0a2
Scheme A3. Full model description for the heat shock response model. As the model description exceeds the maximal length per prompt for text-davinci-003 and gpt-3.5-turbo, we split it into two with a blank line.
Scheme A3. Full model description for the heat shock response model. As the model description exceeds the maximal length per prompt for text-davinci-003 and gpt-3.5-turbo, we split it into two with a blank line.
Ijms 24 07296 sch0a3
Scheme A4. The first half of the heat shock response model in Antimony language, created by KinModGPT with text-davinci-003.
Scheme A4. The first half of the heat shock response model in Antimony language, created by KinModGPT with text-davinci-003.
Ijms 24 07296 sch0a4
Scheme A5. The second half of the heat shock response model in Antimony language, created by KinModGPT with text-davinci-003.
Scheme A5. The second half of the heat shock response model in Antimony language, created by KinModGPT with text-davinci-003.
Ijms 24 07296 sch0a5

References

  1. Kitano, H. Systems biology: A brief overview. Science 2002, 295, 1662–1664. [Google Scholar] [CrossRef] [Green Version]
  2. Hucka, M.; Finney, A.; Sauro, H.M.; Bolouri, H.; Doyle, J.C.; Kitano, H.; Arkin, A.P.; Bornstein, B.J.; Bray, D.; Cornish-Bowden, A.; et al. The systems biology markup language (SBML): A medium for representation and exchange of biochemical network models. Bioinformatics 2003, 19, 524–531. [Google Scholar] [CrossRef] [Green Version]
  3. Keating, S.M.; Waltemath, D.; Konig, M.; Zhang, F.; Drager, A.; Chaouiya, C.; Bergmann, F.T.; Finney, A.; Gillespie, C.S.; Helikar, T.; et al. SBML Level 3: An extensible format for the exchange and reuse of biological models. Mol. Syst. Biol. 2020, 16, e9110. [Google Scholar] [CrossRef]
  4. Choi, K.; Medley, J.K.; Konig, M.; Stocking, K.; Smith, L.; Gu, S.; Sauro, H.M. Tellurium: An extensible python-based modeling environment for systems and synthetic biology. Biosystems 2018, 171, 74–79. [Google Scholar] [CrossRef]
  5. Medley, J.K.; Choi, K.; Konig, M.; Smith, L.; Gu, S.; Hellerstein, J.; Sealfon, S.C.; Sauro, H.M. Tellurium notebooks—An environment for reproducible dynamical modeling in systems biology. PLoS Comput. Biol. 2018, 14, e1006220. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Hoops, S.; Sahle, S.; Gauges, R.; Lee, C.; Pahle, J.; Simus, N.; Singhal, M.; Xu, L.; Mendes, P.; Kummer, U. COPASI—A COmplex PAthway SImulator. Bioinformatics 2006, 22, 3067–3074. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Mendes, P.; Hoops, S.; Sahle, S.; Gauges, R.; Dada, J.; Kummer, U. Computational modeling of biochemical networks using COPASI. Methods Mol. Biol. 2009, 500, 17–59. [Google Scholar] [PubMed]
  8. Bergmann, F.T.; Hoops, S.; Klahn, B.; Kummer, U.; Mendes, P.; Pahle, J.; Sahle, S. COPASI and its applications in biotechnology. J. Biotechnol. 2017, 261, 215–220. [Google Scholar] [CrossRef]
  9. Kurata, H.; Matoba, N.; Shimizu, N. CADLIVE for constructing a large-scale biochemical network based on a simulation-directed notation and its application to yeast cell cycle. Nucleic Acids Res. 2003, 31, 4071–4084. [Google Scholar] [CrossRef] [Green Version]
  10. Kurata, H.; Masaki, K.; Sumida, Y.; Iwasaki, R. CADLIVE dynamic simulator: Direct link of biochemical networks to dynamic models. Genome Res. 2005, 15, 590–600. [Google Scholar] [CrossRef] [Green Version]
  11. Kurata, H.; Inoue, K.; Maeda, K.; Masaki, K.; Shimokawa, Y.; Zhao, Q. Extended CADLIVE: A novel graphical notation for design of biochemical network maps and computational pathway analysis. Nucleic Acids Res. 2007, 35, e134. [Google Scholar] [CrossRef] [PubMed]
  12. Gyori, B.M.; Bachman, J.A.; Subramanian, K.; Muhlich, J.L.; Galescu, L.; Sorger, P.K. From word models to executable models of signaling networks using automated assembly. Mol. Syst. Biol. 2017, 13, 954. [Google Scholar] [CrossRef]
  13. Todorov, P.V.; Gyori, B.M.; Bachman, J.A.; Sorger, P.K. INDRA-IPM: Interactive pathway modeling using natural language with automated assembly. Bioinformatics 2019, 35, 4501–4503. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Roose, K. The Brilliance and Weirdness of ChatGPT. New York Times, 26 December 2022. [Google Scholar]
  15. Terwiesch, C. Would Chat GPT Get a Wharton MBA? A Prediction Based on Its Performance in the Operations Management Course; Mack Institute for Innovation Management at the Wharton School, University of Pennsylvania: Philadelphia, PA, USA, 2023. [Google Scholar]
  16. Choi, J.H.; Hickman, K.E.; Monahan, A.; Schwarcz, D. ChatGPT Goes to Law School; SSRN: Rochester, NY, USA, 2023. [Google Scholar]
  17. Katz, D.M.; Bommarito, M.J.; Gao, S.; Arredondo, P. GPT-4 Passes the Bar Exam; SSRN: Rochester, NY, USA, 2023. [Google Scholar]
  18. Bussler, F. Will GPT-3 Kill Coding? 2020. Available online: https://towardsdatascience.com/will-gpt-3-kill-coding-630e4518c04d (accessed on 4 March 2023).
  19. Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 2020, 33, 1877–1901. [Google Scholar]
  20. OpenAI. GPT-4 Technical Report. arXiv 2023, arXiv:2303.08774. [Google Scholar]
  21. Ji, X.; Xu, Y. libSRES: A C library for stochastic ranking evolution strategy for parameter estimation. Bioinformatics 2006, 22, 124–126. [Google Scholar] [CrossRef] [Green Version]
  22. Kuzmic, P. Program DYNAFIT for the analysis of enzyme kinetic data: Application to HIV proteinase. Anal. Biochem. 1996, 237, 260–273. [Google Scholar] [CrossRef]
  23. Mendes, P.; Kell, D. Non-linear optimization of biochemical pathways: Applications to metabolic engineering and parameter estimation. Bioinformatics 1998, 14, 869–883. [Google Scholar] [CrossRef] [Green Version]
  24. Kurata, H.; El-Samad, H.; Yi, T.-M.; Khammash, M.; Doyle, J. Feedback Regulation of the Heat Shock Response in E. coli. In Proceedings of the Conference on Decision and Control, Orlando, FL, USA, 4–7 December 2001; pp. 837–842. [Google Scholar]
  25. El-Samad, H.; Kurata, H.; Doyle, J.C.; Gross, C.A.; Khammash, M. Surviving heat shock: Control strategies for robustness and performance. Proc. Natl. Acad. Sci. USA 2005, 102, 2736–2741. [Google Scholar] [CrossRef] [Green Version]
  26. Kurata, H.; El-Samad, H.; Iwasaki, R.; Ohtake, H.; Doyle, J.C.; Grigorova, I.; Gross, C.A.; Khammash, M. Module-based analysis of robustness tradeoffs in the heat shock response system. PLoS Comput. Biol. 2006, 2, e59. [Google Scholar] [CrossRef] [Green Version]
  27. Bergmann, F.T.; Hucka, M.; Bornstein, B.J.; Jouraku, A. Online SBML Validator. Available online: https://synonym.caltech.edu/validator_servlet/ (accessed on 4 March 2023).
  28. Smith, L.P.; Bergmann, F.T.; Chandran, D.; Sauro, H.M. Antimony: A modular model definition language. Bioinformatics 2009, 25, 2452–2454. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  29. Jaqaman, K.; Danuser, G. Linking data to models: Data regression. Nat. Rev. Mol. Cell Biol. 2006, 7, 813–819. [Google Scholar] [CrossRef] [PubMed]
  30. Banga, J.R. Optimization in computational systems biology. BMC Syst. Biol. 2008, 2, 47. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  31. Ashyraliyev, M.; Fomekong-Nanfack, Y.; Kaandorp, J.A.; Blom, J.G. Systems biology: Parameter estimation for biochemical models. FEBS J. 2009, 276, 886–902. [Google Scholar] [CrossRef] [Green Version]
  32. Maeda, K.; Boogerd, F.C.; Kurata, H. libRCGA: A C library for real-coded genetic algorithms for rapid parameter estimation of kinetic models. IPSJ Trans. Bioinform. 2018, 11, 31–40. [Google Scholar] [CrossRef] [Green Version]
  33. Maeda, K.; Boogerd, F.C.; Kurata, H. RCGAToolbox: A Real-coded Genetic Algorithm Software for Parameter Estimation of Kinetic Models. IPSJ Trans. Bioinform. 2021, 14, 30–35. [Google Scholar] [CrossRef]
  34. Maeda, K.; Hatae, A.; Sakai, Y.; Boogerd, F.C.; Kurata, H. MLAGO: Machine learning-aided global optimization for Michaelis constant estimation of kinetic modeling. BMC Bioinform. 2022, 23, 455. [Google Scholar] [CrossRef]
  35. Galdzicki, M.; Clancy, K.P.; Oberortner, E.; Pocock, M.; Quinn, J.Y.; Rodriguez, C.A.; Roehner, N.; Wilson, M.L.; Adam, L.; Anderson, J.C.; et al. The Synthetic Biology Open Language (SBOL) provides a community standard for communicating designs in synthetic biology. Nat. Biotechnol. 2014, 32, 545–550. [Google Scholar] [CrossRef] [Green Version]
  36. Bubeck, S.; Chandrasekaran, V.; Eldan, R.; Gehrke, J.; Horvitz, E.; Kamar, E.; Lee, P.; Lee, Y.T.; Li, Y.; Lundberg, S. Sparks of Artificial General Intelligence: Early experiments with GPT-4. arXiv 2023, arXiv:2303.12712. [Google Scholar]
  37. Le Novere, N.; Hucka, M.; Mi, H.; Moodie, S.; Schreiber, F.; Sorokin, A.; Demir, E.; Wegner, K.; Aladjem, M.I.; Wimalaratne, S.M.; et al. The Systems Biology Graphical Notation. Nat. Biotechnol. 2009, 27, 735–741. [Google Scholar] [CrossRef]
  38. Eng, C.L.; Lawson, M.; Zhu, Q.; Dries, R.; Koulena, N.; Takei, Y.; Yun, J.; Cronin, C.; Karp, C.; Yuan, G.C.; et al. Transcriptome-scale super-resolved imaging in tissues by RNA seqFISH. Nature 2019, 568, 235–239. [Google Scholar] [CrossRef] [PubMed]
  39. Song, Q.; Zhu, X.; Jin, L.; Chen, M.; Zhang, W.; Su, J. SMGR: A joint statistical method for integrative analysis of single-cell multi-omics data. NAR Genom. Bioinform. 2022, 4, lqac056. [Google Scholar] [CrossRef] [PubMed]
  40. Tang, Z.; Zhang, T.; Yang, B.; Su, J.; Song, Q. spaCI: Deciphering spatial cellular communications through adaptive graph model. Brief Bioinform. 2023, 24, bbac563. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Test problems. We tested whether KinModGPT can create SBML models from the natural language model descriptions. For the reaction network maps, CADLIVE notation was used [9,10,11]. For simplicity, only important reactions are shown in the reaction network map for the heat shock response model. The complete model description for the heat shock response is provided in Scheme A3.
Figure 1. Test problems. We tested whether KinModGPT can create SBML models from the natural language model descriptions. For the reaction network maps, CADLIVE notation was used [9,10,11]. For simplicity, only important reactions are shown in the reaction network map for the heat shock response model. The complete model description for the heat shock response is provided in Scheme A3.
Ijms 24 07296 g001
Figure 2. Overview of KinModGPT.
Figure 2. Overview of KinModGPT.
Ijms 24 07296 g002
Scheme 1. The decay model in Antimony language, created by KinModGPT with text-davinci-003.
Scheme 1. The decay model in Antimony language, created by KinModGPT with text-davinci-003.
Ijms 24 07296 sch001
Figure 3. Simulation of the SBML model for the decay model. This model was created by KinModGPT with text-davinci-003.
Figure 3. Simulation of the SBML model for the decay model. This model was created by KinModGPT with text-davinci-003.
Ijms 24 07296 g003
Scheme 2. The HIV model in Antimony language, created by KinModGPT with text-davinci-003.
Scheme 2. The HIV model in Antimony language, created by KinModGPT with text-davinci-003.
Ijms 24 07296 sch002
Figure 4. Simulation of the created SBML model for the HIV model. (a) S t o t a l and P t o t a l represent the total S concentration ( S t o t a l = S + E S ) and the total P concentration ( P t o t a l = P + E P ), respectively. (b) E, E S , E P , E I , and E J represent the enzyme, enzyme-substrate complex, enzyme-product complex, enzyme-inhibitor complex, irreversible enzyme-inhibitor complex, respectively. Not all variables are shown, for clarity. This model was created by KinModGPT with text-davinci-003. We tuned the kinetic parameters before the simulation.
Figure 4. Simulation of the created SBML model for the HIV model. (a) S t o t a l and P t o t a l represent the total S concentration ( S t o t a l = S + E S ) and the total P concentration ( P t o t a l = P + E P ), respectively. (b) E, E S , E P , E I , and E J represent the enzyme, enzyme-substrate complex, enzyme-product complex, enzyme-inhibitor complex, irreversible enzyme-inhibitor complex, respectively. Not all variables are shown, for clarity. This model was created by KinModGPT with text-davinci-003. We tuned the kinetic parameters before the simulation.
Ijms 24 07296 g004
Scheme 3. The three-step model in Antimony language, created by KinModGPT with text-davinci-003.
Scheme 3. The three-step model in Antimony language, created by KinModGPT with text-davinci-003.
Ijms 24 07296 sch003
Figure 5. Simulation of the created SBML model for the three-step model. (a) S, M1, M2, and P represent the substrate, first intermediate metabolite, second intermediate metabolite, and product, respectively. (b) E1, E2, and E3 represent the first, second, and third enzymes, respectively. This model was created by KinModGPT with text-davinci-003.
Figure 5. Simulation of the created SBML model for the three-step model. (a) S, M1, M2, and P represent the substrate, first intermediate metabolite, second intermediate metabolite, and product, respectively. (b) E1, E2, and E3 represent the first, second, and third enzymes, respectively. This model was created by KinModGPT with text-davinci-003.
Ijms 24 07296 g005
Figure 6. Simulation of the created SBML model for the heat shock response model. (a) Yield, (b) total σ 32 , and (c) total DnaK. Heat shock occurs at 0 min and is implemented through an increase in the rate constant for protein denaturing. Yield is the fraction of folded proteins in a pool of total proteins, i.e., Y i e l d = P f o l d / ( P f o l d + P u n f o l d + P u n f o l d _ D n a K ) . Not all variables are shown, for clarity. This model was created by KinModGPT with text-davinci-003. We tuned the kinetic parameters before the simulation.
Figure 6. Simulation of the created SBML model for the heat shock response model. (a) Yield, (b) total σ 32 , and (c) total DnaK. Heat shock occurs at 0 min and is implemented through an increase in the rate constant for protein denaturing. Yield is the fraction of folded proteins in a pool of total proteins, i.e., Y i e l d = P f o l d / ( P f o l d + P u n f o l d + P u n f o l d _ D n a K ) . Not all variables are shown, for clarity. This model was created by KinModGPT with text-davinci-003. We tuned the kinetic parameters before the simulation.
Ijms 24 07296 g006
Table 1. Summary of the computational experiments. We converted four natural language model descriptions into SBML, using either of the GPT-only approaches, KinModGPT approaches, or INDRA (a competitor tool). In the KinModGPT approaches, either of the three GPT models (text-davinci-003, gpt-3.5-turbo, or gpt-4) was employed as a natural language interpreter. The validity of the generated SBML files was verified using the Online SBML Validator [27], and their consistency with the original model descriptions was manually inspected.
Table 1. Summary of the computational experiments. We converted four natural language model descriptions into SBML, using either of the GPT-only approaches, KinModGPT approaches, or INDRA (a competitor tool). In the KinModGPT approaches, either of the three GPT models (text-davinci-003, gpt-3.5-turbo, or gpt-4) was employed as a natural language interpreter. The validity of the generated SBML files was verified using the Online SBML Validator [27], and their consistency with the original model descriptions was manually inspected.
MethodModel NameAre SBML Models Created?Are the Created SBML Models Valid?Are the Created SBML Models Consistent with Their Model Descriptions?
text-davinci-003 onlyDecayYesNoN/A
HIVYesNoN/A
Three-stepYesNoN/A
Heat shock responseYesNoN/A
gpt-3.5-turbo onlyDecayYesNoN/A
HIVYesNoN/A
Three-stepYesNoN/A
Heat shock responseYesNoN/A
gpt-4 onlyDecayYesNoN/A
HIVYesNoN/A
Three-stepYesNoN/A
Heat shock responseYesNoN/A
KinModGPT (text-davinci-003)DecayYesYesYes
HIVYesYesYes
Three-stepYesYesYes
Heat shock responseYesYesYes
KinModGPT (gpt-3.5-turbo)DecayYesYesYes
HIVYesYesYes
Three-stepYesYesNo
Heat shock responseNoN/AN/A
KinModGPT (gpt-4)DecayYesYesYes
HIVYesYesYes
Three-stepYesYesYes
Heat shock responseYesYesYes
INDRADecayYesYesNo
HIVYesYesNo
Three-stepNoN/AN/A
Heat shock responseNoN/AN/A
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Maeda, K.; Kurata, H. Automatic Generation of SBML Kinetic Models from Natural Language Texts Using GPT. Int. J. Mol. Sci. 2023, 24, 7296. https://doi.org/10.3390/ijms24087296

AMA Style

Maeda K, Kurata H. Automatic Generation of SBML Kinetic Models from Natural Language Texts Using GPT. International Journal of Molecular Sciences. 2023; 24(8):7296. https://doi.org/10.3390/ijms24087296

Chicago/Turabian Style

Maeda, Kazuhiro, and Hiroyuki Kurata. 2023. "Automatic Generation of SBML Kinetic Models from Natural Language Texts Using GPT" International Journal of Molecular Sciences 24, no. 8: 7296. https://doi.org/10.3390/ijms24087296

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop