NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ChatAgri: Exploring potentials of ChatGPT on cross-linguistic agricultural text classification

Biao Zhao, Weiqiang Jin, Javier Del Ser, Guang Yang

TL;DR

The ChatAgri framework demonstrates that large language models (LLMs) like ChatGPT can outperform traditional, labor-intensive AI models in classifying agricultural text across multiple languages—even without any domain-specific training. By using clever prompting and "answer alignment" strategies, the researchers show that GPT-4 can effectively handle the messy, multilingual world of agricultural news and reports with zero-shot accuracy that rivals or beats fine-tuned experts.

What Problem Does This Paper Address?

As "smart agriculture" grows, we are generating a mountain of unstructured text: news about crop pests, disaster reports, and market comments. To make this data useful, we need to classify it (e.g., "Is this tweet about a hurricane or a blizzard?").

Traditionally, this required fine-tuning models like BERT. This approach has three major headaches:

  1. Data Scarcity: Labeling agricultural data requires expensive human experts.
  2. Brittleness: A model trained on English crop reports often fails miserably when moved to French or Chinese.
  3. Deployment Costs: Running and maintaining specialized models for every niche task is resource-heavy.

The authors investigate whether ChatGPT’s "world knowledge" can bypass these bottlenecks entirely.

Methods

The authors introduce ChatAgri, a pipeline designed to turn a conversational AI into a reliable text classifier. The method consists of three main stages:

  1. Prompt Construction: The researchers didn't just ask one way. They tested four strategies:
  2. Manual Prompts: Human-written templates.
  3. ChatGPT-Triggered: Asking ChatGPT to generate its own best classification templates.
  4. Zero-Shot Similarity: Asking the model which of several "pivot" sentences a new text most closely resembles.
  5. Chain-of-Thought (CoT): Forcing the model to provide a step-by-step analysis of keywords before picking a label.
  6. Inference: Using GPT-3.5 and GPT-4 as the reasoning engines.
  7. Answer Alignment: Since ChatGPT is "chatty," it doesn't always return a single word. The authors used a hybrid approach—rule-based matching (via spaCy) and string similarity (Levenshtein distance)—to map natural language responses back to strict category labels.

Datasets

The study evaluated ChatAgri across five diverse datasets covering three languages:

  • Amazon-Food-Comments (English): Sentiment analysis of food reviews.
  • PestObserver-France (French): Classifying plant health bulletins into "Bioagressor," "Disease," or "Others."
  • Natural-Hazards-Twitter (English): Sentiment regarding disaster responses.
  • Natural-Hazards-Type (English): Identifying specific disaster types (Hurricane, Blizzard, etc.).
  • Agri-News-Chinese (Chinese): A newly proposed dataset by the authors containing 60,000 short news clips across seven categories like "Aquatic Fishery" and "Horticulture."

Key Insights and Ideas

  • The "Zero-Shot" Superiority: The most striking "aha" moment is that ChatAgri (with zero training samples) outperformed fine-tuned BERT models by about 3% on French data and 3.7% on Chinese data. This suggests that the "general" knowledge inside LLMs is more robust than the "specific" knowledge of a small, fine-tuned model.
  • Cross-Linguistic Transfer is Real: Traditional models struggle with "minority" language datasets in agriculture. ChatGPT, however, showed almost no performance drop when switching between English, French, and Chinese, making it a "universal" tool for global agricultural monitoring.
  • CoT isn't just for Math: While Chain-of-Thought prompting is famous for solving logic puzzles, this paper shows it significantly boosts classification accuracy in agriculture by forcing the model to identify "semantic keywords" before committing to a category.
  • GPT-4 is the New Ceiling: GPT-4 consistently beat GPT-3.5, particularly in "complex semantic scenarios" where two categories might look very similar on the surface but differ in technical nuance.

Key Results

  • Performance: On the Agri-News-Chinese dataset, ChatAgri achieved 86.3% accuracy, beating fine-tuned BERT (82.6%) and performing comparably to T5-based prompt tuning (85.9%).
  • Few-Shot Dominance: In scenarios with very little data (the "20-shot" or "50-shot" setting), ChatAgri outperformed existing state-of-the-art prompt-tuning methods by a massive 10-15% margin.
  • Reliability: GPT-4 showed a ~3% absolute gain in accuracy over GPT-3.5 on the French PestObserver dataset, proving that larger model scales directly translate to better domain-specific understanding.

Limitations and Future Work

Despite the success, the authors note several hurdles:

  • The "Black Box" Problem: Because ChatGPT is a closed-source model, researchers cannot see why it makes certain decisions, which can be a risk in critical agricultural policy-making.
  • Literal vs. Semantic Matching: The current "Answer Alignment" relies on literal string similarity. The authors suggest that future versions should use a secondary LLM just to verify if the meaning of the response matches the label.
  • Cost and Latency: While they saved on human labeling costs, the API costs and message caps (especially the 25-message limit for GPT-4 at the time of writing) make real-time, high-volume processing a challenge.

The paper concludes that we are entering a "General Purpose AI" era for agriculture, where the need for specialized, hand-labeled datasets is rapidly diminishing.

Summary updated

BibTeX
@article{zhao2023chatagri,
  author = {Biao Zhao and Weiqiang Jin and Javier Del Ser and Guang Yang},
  title = {{ChatAgri: Exploring potentials of ChatGPT on cross-linguistic agricultural text classification}},
  journal = {Neurocomputing},
  year = {2023},
  doi = {10.1016/j.neucom.2023.126708},
}

Loading related content...

Figure