SAMConvFormer+LLM: Exploring synergistic fusion of Segment Anything Model with joint convolutional transformer and large language model to advance dense agricultural crop analysis

Accurate detection of densely fruited crops is essential for yield estimation, ripeness analysis, and actionable recommendations for optimized crop management using large language models. However, real-world agricultural environments present significant challenges, including varying illumination, diverse fruit sizes, and highly complex backgrounds, making robust detection non-trivial. Existing AI models in agriculture, customized on controlled datasets, struggle to generalize to real-field conditions, limiting their practical applicability. To address this, we introduce a real-field dataset capturing the complexities of a dense crop, which serves as a benchmark to expose model limitations and drive the development of more robust methods. Leveraging this, we proposed a novel detection framework (SAMConvFormer) that synergizes the Segment Anything Model (SAM) with a Joint Convolutional Transformer, combining their unique strengths for robust agricultural crop detection. This integration of SAM further significantly improves boundary delineation, particularly for overlapping clusters, blurring, and irregular fruit structures. In addition, we integrate the proposed SAMConvFormer framework with a Large Language Model to develop a comprehensive pipeline for yield estimation, ripeness analysis, and actionable recommendations for optimized crop management. The proposed model achieves state-of-the-art performance with 79.32% sensitivity, 62.64% IoU, and 77.03% Dice coefficient, representing relative improvements of 31%, 18.79% and 11.56% over the baseline model, highlighting its robustness and precision for the detection of densely fruited crops. To advance this research, we will publicly release the proposed framework and related materials, which offer a solid foundation for future studies. GitHub repository at https://github.com/Owais-CodeHub/SAMConvFormer-LLM . • SAMConvFormer integrates SAM with a Joint Convolutional Transformer. • CNNs and ViTs improve segmentation of small, irregular, and dense crops. • LLM-based support enables yield estimation and ripeness analysis. • Achieves 79.32% sensitivity, 62.64% IoU, and 77.03% Dice, surpassing baselines.

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2025-11-06
DOI
https://doi.org/10.1016/j.compag.2025.111192
Citations
1
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
1.75
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SAMConvFormer+LLM: Exploring synergistic fusion of Segment Anything Model with joint convolutional transformer and large language model to advance dense agricultural crop analysis

Irfan Hussain, Muhammad Owais, Lakmal Seneviratne, Israa Fahmy
1 citations
Computers and Electronics in Agriculture
Smart Agriculture and AI
1.75
article

SAMConvFormer+LLM: Exploring synergistic fusion of Segment Anything Model with joint convolutional transformer and large language model to advance dense agricultural crop analysis

Irfan Hussain, Muhammad Owais, Lakmal Seneviratne, Israa Fahmy
article en
1 citations

Abstract

Accurate detection of densely fruited crops is essential for yield estimation, ripeness analysis, and actionable recommendations for optimized crop management using large language models. However, real-world agricultural environments present significant challenges, including varying illumination, diverse fruit sizes, and highly complex backgrounds, making robust detection non-trivial. Existing AI models in agriculture, customized on controlled datasets, struggle to generalize to real-field conditions, limiting their practical applicability. To address this, we introduce a real-field dataset capturing the complexities of a dense crop, which serves as a benchmark to expose model limitations and drive the development of more robust methods. Leveraging this, we proposed a novel detection framework (SAMConvFormer) that synergizes the Segment Anything Model (SAM) with a Joint Convolutional Transformer, combining their unique strengths for robust agricultural crop detection. This integration of SAM further significantly improves boundary delineation, particularly for overlapping clusters, blurring, and irregular fruit structures. In addition, we integrate the proposed SAMConvFormer framework with a Large Language Model to develop a comprehensive pipeline for yield estimation, ripeness analysis, and actionable recommendations for optimized crop management. The proposed model achieves state-of-the-art performance with 79.32% sensitivity, 62.64% IoU, and 77.03% Dice coefficient, representing relative improvements of 31%, 18.79% and 11.56% over the baseline model, highlighting its robustness and precision for the detection of densely fruited crops. To advance this research, we will publicly release the proposed framework and related materials, which offer a solid foundation for future studies. GitHub repository at https://github.com/Owais-CodeHub/SAMConvFormer-LLM . • SAMConvFormer integrates SAM with a Joint Convolutional Transformer. • CNNs and ViTs improve segmentation of small, irregular, and dense crops. • LLM-based support enables yield estimation and ripeness analysis. • Achieves 79.32% sensitivity, 62.64% IoU, and 77.03% Dice, surpassing baselines.

Computers and Electronics in AgricultureVol. 240
Khalifa University of Science and Technology (AE)
Openalex Percentile: Top 11%
Smart Agriculture and AI
1.75
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.