Dairy GPT: Empowering dairy farmers to interact with numerical databases through natural language conversations

Large language models (LLMs), like GPT-4, have revolutionized artificial intelligence by enabling intuitive text and voice interactions, simplifying complex tasks, and democratizing access to AI-driven tools. However, one of their primary limitations lies in their ability to effectively handle interactions with strictly numerical data. This limitation has led to innovative solutions such as Retrieval Augmented Generation (RAG) and Natural Language to SQL (NL2SQL), which enhance their applicability in data-intensive domains. This study investigated the possibility and feasibility of using large language models (LLMs) to allow natural language interactions of dairy farmers with purely numerical databases. To support the proposed study, we constructed a dataset consisting of 25,925 daily milk production records from 85 cows, derived from real data collected at the University of Wisconsin-Madison Agricultural Research Station. Three analyses pipelines were proposed to assess the effectiveness of LLMs handling of numerical databases: Prompt Engineering (zero-shot), Retrieval-Augmented Generation (RAG), and NL2SQL with Decomposition, evaluated using a set of quantitative (5) and qualitative (5) questions. Based on these 10 questions, the NL2SQL with Decomposition achieved 80% accuracy for quantitative questions and the Zero-shot achieved 100% for qualitative questions. These results demonstrate the potential of LLMs to enhance data utilization in dairy farming. Future work will focus on refining the proposed methods and expanding their applicability to other livestock purposes.

Authors

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-06-16
DOI
https://doi.org/10.1016/j.atech.2025.101097
Citations
5
Primary Topic
Data Mining Algorithms and Applications
Type
article
Field-Weighted Citation Impact
16.23
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Dairy GPT: Empowering dairy farmers to interact with numerical databases through natural language conversations

Eduardo Noronha de Andrade Freitas, D. Santana, Víctor E. Cabrera, Gustavo de Assis Costa et al.
5 citations
Smart Agricultural Technology
Data Mining Algorithms and Applications
16.23
article

Dairy GPT: Empowering dairy farmers to interact with numerical databases through natural language conversations

Eduardo Noronha de Andrade Freitas, D. Santana, Víctor E. Cabrera, Gustavo de Assis Costa, Danillo Gontijo
article en
5 citations

Abstract

Large language models (LLMs), like GPT-4, have revolutionized artificial intelligence by enabling intuitive text and voice interactions, simplifying complex tasks, and democratizing access to AI-driven tools. However, one of their primary limitations lies in their ability to effectively handle interactions with strictly numerical data. This limitation has led to innovative solutions such as Retrieval Augmented Generation (RAG) and Natural Language to SQL (NL2SQL), which enhance their applicability in data-intensive domains. This study investigated the possibility and feasibility of using large language models (LLMs) to allow natural language interactions of dairy farmers with purely numerical databases. To support the proposed study, we constructed a dataset consisting of 25,925 daily milk production records from 85 cows, derived from real data collected at the University of Wisconsin-Madison Agricultural Research Station. Three analyses pipelines were proposed to assess the effectiveness of LLMs handling of numerical databases: Prompt Engineering (zero-shot), Retrieval-Augmented Generation (RAG), and NL2SQL with Decomposition, evaluated using a set of quantitative (5) and qualitative (5) questions. Based on these 10 questions, the NL2SQL with Decomposition achieved 80% accuracy for quantitative questions and the Zero-shot achieved 100% for qualitative questions. These results demonstrate the potential of LLMs to enhance data utilization in dairy farming. Future work will focus on refining the proposed methods and expanding their applicability to other livestock purposes.

Smart Agricultural TechnologyVol. 12
University of Wisconsin–Madison (US), Instituto Federal de Goiás (BR), Universidade Federal de Goiás (BR)
Quality Education
Openalex Percentile: Top 1%
Data Mining Algorithms and Applications
16.23
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.