Skip to content

Weakly Supervised Leaf Disease Segmentation via Reinforcement Learning-Based Prompt Optimization for SAM

Oct 2026 · AgriEngineering
Smart Agriculture and AI

Abstract

Accurate segmentation of leaf lesions is essential for crop disease monitoring and precision agriculture. However, most existing methods rely on pixel-level annotations, which are costly and difficult to obtain in real agricultural scenarios. Weakly supervised approaches alleviate this requirement but often suffer from incomplete lesion localization and background interference. In addition, recent foundation segmentation models demonstrate strong generalization ability, yet their performance heavily depends on prompt quality, which is difficult to design automatically. To address these challenges, this paper proposes a weakly supervised lesion segmentation framework that integrates probabilistic feature disentanglement and reinforcement learning-based prompt optimization. First, a probabilistic class activation mapping (CAM) is introduced to model lesion confidence and guide feature disentanglement, effectively suppressing background noise. Second, a dual-loss constraint is designed to improve pseudo-mask quality by enforcing both region consistency and structural regularity. Finally, a prompt optimization strategy is developed to automatically select informative prompts, enabling a foundation segmentation model to refine lesion boundaries without human interaction. Experimental results on multiple agricultural datasets demonstrate that the proposed method achieves superior performance compared with existing weakly supervised baselines. Specifically, the method achieves an mIoU of 45.6% and Dice score of 57.1% on apple leaf disease datasets. The results indicate that the proposed framework can effectively reduce annotation cost while providing reliable segmentation performance, indicating potential for practical agricultural applications.

View source

Similar papers

#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54
#machine learning Review Open access Jun 2014

Why Early-Stage Software Startups Fail: A Behavioral Framework

This state-of-practice investigation was performed using a literature review followed by a multiple-case study approach and presents how inconsistency between managerial strategies and execution can lead to failure by means of a behavioral framework.

Carmine Giardino, Xiaofeng Wang, P. Abrahamsson · 175 citations · ⚡19
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#machine learning Review Open access May 2016

Key Challenges in Software Startups Across Life Cycle Stages

It is found that what perceived as biggest challenges by software startups do vary across different life cycle stages, even though its significance decreases when the learning focuses of the startups move from problem to solution and their products mature.

Xiaofeng Wang, Henry Edison, Sohaib Shahid Bajwa et al. · 62 citations · ⚡6

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.