Robust Tilapia Disease Diagnosis Based on Prompt-Enhanced Segment Anything Model and Neuro-Fuzzy Inference
Yicheng Gao, Guofu FengDiagnosing tilapia diseases in complex aquaculture environments is severely hindered by noisy backgrounds and limited high-quality pathological data. To overcome these bottlenecks, this study presents a two-stage diagnostic framework integrating an enhanced Segment Anything Model (SAM) with an Adaptive Neuro-Fuzzy Inference System (ANFIS). In the first stage, SAM is augmented with a Convolutional Block Attention Module (CBAM) feature adapter and a Region Proposal Network (RPN)-based prompt encoder. This design enables the automated and precise extraction of irregular disease lesions by self-generating spatial prompts, thereby isolating water background noise. In the second stage, clinical color features extracted from the lesion masks are classified using ANFIS. To optimize performance on small-scale datasets, ANFIS parameters are trained via Particle Swarm Optimization (PSO) under a numerically stable One-vs-Rest (OvR) binary cross-entropy loss. Validated on the public dataset “Enhancing Disease Detection in Nile Tilapia”, our method delivers an average segmentation Dice coefficient of 86.2% and a classification accuracy of 93.5%. This hybrid approach demonstrates strong potential as a foundational baseline for the automated monitoring of aquaculture diseases.