{"id":1019391,"date":"2024-04-01T11:22:36","date_gmt":"2024-04-01T18:22:36","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/?post_type=msr-blog-post&#038;p=1019391"},"modified":"2024-04-01T11:30:47","modified_gmt":"2024-04-01T18:30:47","slug":"generative-ai-in-agriculture","status":"publish","type":"msr-blog-post","link":"https:\/\/www.microsoft.com\/en-us\/research\/articles\/generative-ai-in-agriculture\/","title":{"rendered":"Generative AI in agriculture"},"content":{"rendered":"\n<div style=\"padding-bottom:64px; padding-top:64px\" class=\"wp-block-msr-immersive-section alignfull row wp-block-msr-immersive-section\">\n\t\n\t<div class=\"container\">\n\t\t<div class=\"wp-block-msr-immersive-section__inner\">\n\t\t\t<h2 class=\"wp-block-heading has-text-align-center\" id=\"personas-in-agriculture\">Personas in agriculture<\/h2>\n\n\n\n<div class=\"wp-block-columns are-vertically-aligned-top is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_farmer-agriculture.png\" alt=\"farmer icon\" class=\"wp-image-1020432\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"farmer\">Farmer<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Decision making for seeds, purchases, and management<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_wheat-agriculture.png\" alt=\"agro wheat stalks icon\" class=\"wp-image-1020447\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"agronomist\">Input provider \/ Agronomist<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Communicate with farmer & advisories, input purchase decisions<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_head-shoulders-consumer.png\" alt=\"person icon\" class=\"wp-image-1020435\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"banker\">Consumer<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Nutrition and organic,&nbsp;sustainable produce<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_seed-grocery-bag-retail.png\" alt=\"agro seed icon | grocery bag\" class=\"wp-image-1020441\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"agronomist\">CPG\/Retailer<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Purchasing decisions, sustainability<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns are-vertically-aligned-top is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_truck-supply-chain.png\" alt=\"supply chain - truck icon\" class=\"wp-image-1020444\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"farmer\">Food manufacturing \/ Supply chain<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Coordinate with farmers on prices and food standards<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_bank-building.png\" alt=\"bank icon\" class=\"wp-image-1020426\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"banker\">Banker<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Communicate with farmers about loans and insurance<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_institution-building.png\" alt=\"institution building icon\" class=\"wp-image-1020438\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"policy-maker\">Policy maker<\/h4>\n\n\n\n<p class=\"has-text-align-center\">Make policy documents accessible to farmers<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"120\" height=\"120\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/04\/icon_data-point-line-graph.png\" alt=\"data point line graph icon\" class=\"wp-image-1020429\" style=\"width:75px\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\" id=\"policy-maker\">Researcher \/ Data scientist<\/h4>\n\n\n\n<p class=\"has-text-align-center\">AI workflow automation<\/p>\n<\/div>\n<\/div>\t\t<\/div>\n\t<\/div>\n\n\t<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"customizing-llms\">Customizing LLMs<\/h3>\n\n\n\n<div class=\"wp-block-columns are-vertically-aligned-top is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"477\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam.png\" alt=\"GenAI | Agronomist Exam\" class=\"wp-image-1020099\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam.png 848w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam-300x169.png 300w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam-768x432.png 768w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam-655x368.png 655w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam-240x135.png 240w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Agronomist-Exam-640x360.png 640w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"agronomist-exam\">Agronomist exam<\/h4>\n\n\n\n<p>One of the challenges in the agriculture sector is the lack of qualified agronomists who can provide expert advice on crop production and protection. To address this gap, Microsoft Research conducted a study that evaluates the performance of LLMs like GPT-4 in answering agriculture-related questions from certification exams in Brazil, India, and the USA. The results show that GPT-4 can achieve high scores on these exams, demonstrating its ability to understand and generate domain-specific knowledge. The study also suggests that LLMs can be used as an agronomist assistant, providing guidance and feedback to farmers and students.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-cta\"><a data-bi-type=\"button\" class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.microsoft.com\/en-us\/research\/publication\/gpt-4-as-an-agronomist-assistant-answering-agriculture-exams-using-large-language-models\/\">Read the paper<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"477\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning.png\" alt=\"GenAI | RAG vs Fine-Tuning: A case study on Agriculture\" class=\"wp-image-1020105\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning.png 847w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning-300x169.png 300w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning-768x433.png 768w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning-655x368.png 655w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning-240x135.png 240w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_RAG-vs-Fine-tuning-640x360.png 640w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"agronomist-exam\">RAG vs Fine-Tuning: A case study on agriculture<\/h4>\n\n\n\n<p>Another challenge in applying LLMs to agriculture is the scarcity of domain-specific data that can enhance the models&#8217; performance and accuracy. To overcome this limitation, Microsoft Research explored two techniques to augment LLMs with additional localized data, focusing on agriculture: fine-tuning and Retrieval-Augmented Generation (RAG). Fine-tuning involves training the LLMs on a subset of data that is relevant to the target domain, while RAG involves retrieving relevant documents from a large corpus and using them as context for the LLMs. The study compares and contrasts these techniques on multiple popular LLMs, including Llama2-13B, GPT-3.5, and GPT-4, and evaluates their performance on various tasks, such as question answering, text summarization, and text generation. The study also discusses the implications of these techniques on the LLMs&#8217; generalization and robustness.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-cta\"><a data-bi-type=\"button\" class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.microsoft.com\/en-us\/research\/publication\/rag-vs-fine-tuning-pipelines-tradeoffs-and-a-case-study-on-agriculture\/\">Read the paper<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"small-language-models-and-edge\">Small Language Models and Edge<\/h3>\n\n\n\n<figure class=\"wp-block-image alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"477\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9.png\" alt=\"GenAI | Small Language Models and Edge\" class=\"wp-image-1020096\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9.png 848w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9-300x169.png 300w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9-768x432.png 768w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9-655x368.png 655w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9-240x135.png 240w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Small-LLMs-edge_16-9-640x360.png 640w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<p>A third challenge in leveraging LLMs for agriculture is the dependency on internet connectivity and cloud computing, which may not be available or reliable in remote or rural areas. To address this challenge, Microsoft Research has been exploring the deployment of LLMs on edge devices, such as smartphones, tablets, or laptops, that can allow for faster processing and response times, as well as the ability to operate in environments with limited or no internet connectivity. One such example is a farmer with no connectivity running LLM on a tractor or sprayer and using it to answer queries based on the manuals instead of flipping through hundreds of pages. This is just an example of the work that Microsoft Research has been doing to enable LLMs on the Edge.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"small-language-models-and-edge\">Multi-modal GenAI<\/h3>\n\n\n\n<figure class=\"wp-block-image alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"478\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Multi-modal-GenAI.png\" alt=\"GenAI | Multi-modal GenAI\" class=\"wp-image-1020102\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Multi-modal-GenAI.png 847w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Multi-modal-GenAI-300x169.png 300w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Multi-modal-GenAI-768x433.png 768w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Multi-modal-GenAI-240x135.png 240w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2024\/03\/GenAI-Ag_Multi-modal-GenAI-640x360.png 640w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>A fourth challenge in applying LLMs to agriculture is the multi-modality of data that can enhance the models&#8217; performance and accuracy which involves the integration of multiple types of data, such as text, images, video, satellite and audio to improve AI models&#8217; understanding and decision-making. This is particularly useful in the agriculture industry, where data can come in various forms, such as weather reports, satellite images of crops, and audio recordings of livestock. By integrating these different types of data, multi-modal LLMs can provide more accurate and comprehensive insights and recommendations for farmers and agronomists. For example, a multi-modal LLM could analyze satellite images of a field to identify areas of drought or pest infestation, and then generate a report with recommendations for irrigation or pesticide application. This is just one example of the potential applications of multi-modal LLMs in agriculture.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Using GenAI in agriculture can help address the specific queries of different personas within the Agri-Food ecosystem, from farmers and policymakers, consumer, retailers to financial service providers and sustainability consultants.<\/p>\n","protected":false},"author":42735,"featured_media":1020099,"template":"","meta":{"msr-url-field":"","msr-podcast-episode":"","msrModifiedDate":"","msrModifiedDateEnabled":false,"ep_exclude_from_search":false,"_classifai_error":"","msr-content-parent":1018536,"msr_hide_image_in_river":0,"footnotes":""},"research-area":[],"msr-locale":[268875],"msr-post-option":[],"class_list":["post-1019391","msr-blog-post","type-msr-blog-post","status-publish","has-post-thumbnail","hentry","msr-locale-en_us"],"msr_assoc_parent":{"id":1018536,"type":"project"},"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post\/1019391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/types\/msr-blog-post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/users\/42735"}],"version-history":[{"count":28,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post\/1019391\/revisions"}],"predecessor-version":[{"id":1020480,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post\/1019391\/revisions\/1020480"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media\/1020099"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media?parent=1019391"}],"wp:term":[{"taxonomy":"msr-research-area","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/research-area?post=1019391"},{"taxonomy":"msr-locale","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-locale?post=1019391"},{"taxonomy":"msr-post-option","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-post-option?post=1019391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}