# Integrating Large Language Models into Functional-Structural Plant Models: Feasibility and Potential Applications?

**URL:** <https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180>\
**Category:** Modelling\
**Created:** [April 29, 2023, 3:23pm UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180 "2023-04-29T15:23:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![michele.butturini](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@michele.butturini](https://fspm.discourse.group/u/michele.butturini)\
**Post date:** [April 29, 2023, 3:23pm UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/1 "2023-04-29T15:23:32Z")

</div>

As technology and artificial intelligence continue to advance, large language models, such as OpenAI’s GPT-4, have demonstrated remarkable capabilities in various applications.

I am curious to know your thoughts on the potential integration of these language models into functional-structural plant models (FSPMs).

Do you believe that large language models can contribute to enhancing the accuracy, efficiency, and predictive capabilities of FSPMs? If so, what specific applications do you foresee these models having a significant impact on, and what challenges might we face in implementing this integration?

I was thinking about this topic because the Lyndenmayer Grammar is indeed a grammar for a language that can describe plant topology, geometry, and development. I was fantasizing: could I ask a prompt to build a plant just by describing it in natural language?

I look forward to your insights and discussions on this fascinating topic.

---

<div class="post-metadata">

**Author:** ![JimHanan](https://dub1.discourse-cdn.com/flex005/user_avatar/fspm.discourse.group/jimhanan/32/83_2.png) [@JimHanan](https://fspm.discourse.group/u/JimHanan)\
**Post date:** [May 1, 2023, 6:04am UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/2 "2023-05-01T06:04:47Z")

</div>

Hi Michele,

Would be great if you could give some references for that first statement, so our discussion could start from the same background.

First thought that comes to mind would be that it might be a way to get template models for plants, but describing details of growth rates and durations and the timing of processes controlling branching and flowering, and responses to environment, for instance, may be more difficult.

---

<div class="post-metadata">

**Author:** ![AlejandroMorales](https://dub1.discourse-cdn.com/flex005/user_avatar/fspm.discourse.group/alejandromorales/32/33_2.png) [@AlejandroMorales](https://fspm.discourse.group/u/AlejandroMorales)\
**Post date:** [May 1, 2023, 7:15am UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/3 "2023-05-01T07:15:53Z")

</div>

The closest thing may be AIs for code generation ([Code Whisperer](https://aws.amazon.com/codewhisperer/) or [Github Copilot](https://github.com/features/copilot)) but those AIs rely on being trained on large amounts of code and performance is much lower on less common languages or types of applications. By the way, such AIs can already help you with writing bits of the code in an FSP model and sometimes write an entire function for you (e.g. Github Copilot can write the code to compute solar angles from DOY, latitude and time of day).

If you would want it to generate L-systems, you would probably need to feed a lot of examples for such an AI to produce reasonable outcomes and even then, they tend to work better for “code completion”, meaning that they help with small steps within the program. We are still far from AI producing a whole program, unless it is something small and very routine like what I illustrate above.

Having said, GPT-4 is being connected with [Wolfram Alpha](https://writings.stephenwolfram.com/2023/03/chatgpt-gets-its-wolfram-superpowers/) which is a logical system (more along the lines of classic “symbolic AI”) that knows about L-systems. So maybe that is one possible route, but I would be skeptical for now and focus on “code completion” AIs to help you write the functionality part of the model.

---

<div class="post-metadata">

**Author:** ![michele.butturini](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@michele.butturini](https://fspm.discourse.group/u/michele.butturini)\
**Post date:** [May 1, 2023, 7:40am UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/4 "2023-05-01T07:40:02Z")

</div>

do you mean this statement?

> As technology and artificial intelligence continue to advance, large language models, such as OpenAI’s GPT-4, have demonstrated remarkable capabilities in various applications.

---

<div class="post-metadata">

**Author:** ![michele.butturini](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@michele.butturini](https://fspm.discourse.group/u/michele.butturini)\
**Post date:** [May 1, 2023, 10:04am UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/5 "2023-05-01T10:04:56Z")

</div>

thank you! I just joined the chatGPT plugin waiting list; as soon as I get access to the plugin, I will try and post the result here.

What I am thinking of is definitely support for coding, but also support for generating the basic structure of the plant and its development.

An example of what I imagine is a prompt where I insert the following requests:

“Generate an organ module.”  
“Generate leaf, stem, fruit, flower, and meristem as organ modules.”  
“At the start, there are just 10 meristems representing individual plants. They are disposed in a 2x5 grid at a 50 cm distance.”  
“At germination, the meristem generates a stem and two leaves.”

etc

---

<div class="post-metadata">

**Author:** ![JimHanan](https://dub1.discourse-cdn.com/flex005/user_avatar/fspm.discourse.group/jimhanan/32/83_2.png) [@JimHanan](https://fspm.discourse.group/u/JimHanan)\
**Post date:** [May 1, 2023, 8:18pm UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/6 "2023-05-01T20:18:30Z")

</div>

Yep… just want an idea of the applications you are thinking are relevant, so I can see how its applied.

---

<div class="post-metadata">

**Author:** ![michele.butturini](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@michele.butturini](https://fspm.discourse.group/u/michele.butturini)\
**Post date:** [May 2, 2023, 11:52am UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/7 "2023-05-02T11:52:46Z")

</div>

Few examples are the following:

> **[AgentGPT: Autonomous AI in your browser 🤖](https://agentgpt.reworkd.ai/)**
>
> HEADING\_DESCRIPTION

[https://chat.openai.com/](https://chat.openai.com/)

> **[GitHub Copilot · Your AI pair programmer](https://github.com/features/copilot)**
>
> GitHub Copilot works alongside you directly in your editor, suggesting whole lines or entire functions for you.

Something like Github Copilot to help build FSPM would be great

Is this what you were asking?

---

<div class="post-metadata">

**Author:** ![JimHanan](https://dub1.discourse-cdn.com/flex005/user_avatar/fspm.discourse.group/jimhanan/32/83_2.png) [@JimHanan](https://fspm.discourse.group/u/JimHanan)\
**Post date:** [May 3, 2023, 12:10am UTC](https://fspm.discourse.group/t/integrating-large-language-models-into-functional-structural-plant-models-feasibility-and-potential-applications/180/8 "2023-05-03T00:10:35Z")

</div>

Yes thanks, I’ll have a look…
