Back to search

Graduate Studies

Towards Developing a Foundation Model for Agricultural Vision

Abstract

dc:description.abstract

The rapid advancements in artificial intelligence and computer vision have enabled the development of powerful models for natural image understanding. However, adapting these advances to domain-specific tasks in agriculture—characterized by limited annotated data, high visual complexity, and domain shift—remains an open challenge. This thesis aims to address this gap by developing two foundation-model-inspired frameworks tailored for precision agriculture: WheatSAM and Agri-FM+. WheatSAM presents an adaptation of the Segment Anything Model (SAM) for instance-level wheat head segmentation. It introduces a two-stage segmentation framework combining automated prompt generation via object detection with a novel error-aware bounding box perturbation strategy to enhance SAM’s robustness to noisy prompts. WheatSAM exhibits consistent improvements over baseline SAM models (ViT-B/L/H) and traditional segmentation pipelines, achieving high segmentation fidelity in complex field conditions. Complementing this, Agri-FM+ is a self-supervised foundation model pretrained on a curated dataset of 147,000 close-range agricultural images using contrastive learning and continual adaptation from ImageNet. Designed to learn generalizable visual representations for crop phenotyping, Agri-FM+ demonstrates superior performance across eight downstream agricultural tasks, including object detection, semantic segmentation, and instance segmentation. Notably, it outperforms both ImageNet-supervised and from-scratch-trained baselines, particularly under limited supervision, highlighting the value of domain-adapted pretraining. Together, these contributions bridge recent advances in foundation models with the specific demands of agricultural vision, offering scalable, reusable, and label-efficient solutions for real-world phenotyping applications. This thesis establishes a new paradigm for domain-specialized foundation models in agriculture, laying the groundwork for future research in multimodal, federated, and open-world agricultural AI systems.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MSc)
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher.institution
Graduate Studies
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Nahian, Md Jaber Al
Advisors dc:contributor.advisor
  • Maleki, Farhad
  • McQuillan, Ian
Committee members dc:contributor.committeemember
  • Maleki, Farhad
  • McQuillan, Ian
  • Zhao, Richard
  • Bisheban, Mahdis

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
Nahian, M. J. A. (2025). Towards developing a foundation model for agricultural vision (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.

Chain of custody

source
Harvested from
University of Calgary
Base URL
ucalgary.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Nahian, Md Jaber Al. Towards Developing a Foundation Model for Agricultural Vision. Graduate Studies, 2025. https://hdl.handle.net/1880/122847