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
|
|
|
|
|
|
|
|
|
| 19 |
- precision
|
| 20 |
- recall
|
| 21 |
- lin-concordance-correlation-coefficient
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
🍃 Foundation Model–Assisted Coffee Leaf Rust Severity Estimation
|
| 25 |
+
|
| 26 |
+
This repository accompanies the manuscript:
|
| 27 |
+
|
| 28 |
+
Foundation model–assisted segmentation enables robust field-based severity estimation of coffee leaf rust
|
| 29 |
+
|
| 30 |
+
This project presents a fully reproducible computer vision pipeline for quantitative estimation of coffee leaf rust (Hemileia vastatrix) severity under heterogeneous field conditions. The framework integrates object detection, lesion segmentation, pixel-based severity quantification, and concordance analysis grounded in phytopathometry principles.
|
| 31 |
+
|
| 32 |
+
The study compares classical image processing, supervised deep learning, and foundation segmentation models for lesion detection, and evaluates agreement with gold-standard pixel-level annotations using Lin’s Concordance Correlation Coefficient (LCCC).
|
| 33 |
+
|
| 34 |
+
🌱 Project Overview
|
| 35 |
+
|
| 36 |
+
The methodological workflow consists of:
|
| 37 |
+
|
| 38 |
+
Leaf Detection – YOLOv8 trained using model-assisted annotations
|
| 39 |
+
|
| 40 |
+
Leaf Extraction – Detection-guided segmentation
|
| 41 |
+
|
| 42 |
+
Lesion Segmentation – Comparison of five approaches:
|
| 43 |
+
|
| 44 |
+
ImageJ thresholding
|
| 45 |
+
|
| 46 |
+
pliman (R package)
|
| 47 |
+
|
| 48 |
+
DeepLabV3+
|
| 49 |
+
|
| 50 |
+
Fine-tuned SAM2 (SAM_CLR)
|
| 51 |
+
|
| 52 |
+
Zero-shot SAM3
|
| 53 |
+
|
| 54 |
+
Severity Estimation – Pixel-based calculation:
|
| 55 |
+
|
| 56 |
+
S (%) = Diseased Area / Leaf Area × 100
|
| 57 |
+
|
| 58 |
+
Agreement Analysis – Lin’s Concordance Correlation Coefficient between predicted and reference severity
|
| 59 |
+
|
| 60 |
+
📊 Dataset Summary
|
| 61 |
+
|
| 62 |
+
The full dataset comprises:
|
| 63 |
+
|
| 64 |
+
1,285 field-acquired coffee leaf images
|
| 65 |
+
|
| 66 |
+
606 curated pixel-level rust lesion masks
|
| 67 |
+
|
| 68 |
+
100 independent evaluation masks
|
| 69 |
+
|
| 70 |
+
Roboflow dataset links:
|
| 71 |
+
|
| 72 |
+
CLR_SAM_dataset:
|
| 73 |
+
https://universe.roboflow.com/clr-zky50/sam_clr/dataset/1
|
| 74 |
+
|
| 75 |
+
DL506:
|
| 76 |
+
https://universe.roboflow.com/clr-zky50/dl506/dataset/1
|
| 77 |
+
|
| 78 |
+
GoldenStandard:
|
| 79 |
+
https://universe.roboflow.com/clr-zky50/imgtest-fvn9j/dataset/1
|
| 80 |
+
|
| 81 |
+
📂 Repository Structure
|
| 82 |
+
📁 01_models
|
| 83 |
+
|
| 84 |
+
Contains documentation describing the trained models used in this study.
|
| 85 |
+
|
| 86 |
+
⚠️ Due to GitHub file size limitations, model weights are hosted on Hugging Face.
|
| 87 |
+
|
| 88 |
+
Models include:
|
| 89 |
+
|
| 90 |
+
YOLOv8 leaf detector
|
| 91 |
+
|
| 92 |
+
Fine-tuned SAM2 (SAM_CLR)
|
| 93 |
+
|
| 94 |
+
DeepLabV3+
|
| 95 |
+
|
| 96 |
+
Configuration used for zero-shot SAM3 inference
|
| 97 |
+
|
| 98 |
+
📁 02_binary_images
|
| 99 |
+
|
| 100 |
+
Contains validation binary masks (PNG format) corresponding to segmentation outputs from each evaluated method.
|
| 101 |
+
|
| 102 |
+
These masks were used to compute:
|
| 103 |
+
|
| 104 |
+
Intersection over Union (IoU)
|
| 105 |
+
|
| 106 |
+
Dice coefficient
|
| 107 |
+
|
| 108 |
+
Pixel accuracy
|
| 109 |
+
|
| 110 |
+
Precision
|
| 111 |
+
|
| 112 |
+
Recall
|
| 113 |
+
|
| 114 |
+
Disease severity (%)
|
| 115 |
+
|
| 116 |
+
Lin’s Concordance Correlation Coefficient (LCCC)
|
| 117 |
+
|
| 118 |
+
Binary mask format:
|
| 119 |
+
|
| 120 |
+
0 → background
|
| 121 |
+
|
| 122 |
+
255 → rust lesion
|
| 123 |
+
|
| 124 |
+
This folder enables independent verification of segmentation performance and severity calculations.
|
| 125 |
+
|
| 126 |
+
📁 03_analysis
|
| 127 |
+
|
| 128 |
+
Contains R scripts used to:
|
| 129 |
+
|
| 130 |
+
Compute severity metrics
|
| 131 |
+
|
| 132 |
+
Perform agreement and concordance analysis
|
| 133 |
+
|
| 134 |
+
Generate all figures included in the manuscript
|
| 135 |
+
|
| 136 |
+
Main R dependencies:
|
| 137 |
+
|
| 138 |
+
tidyverse
|
| 139 |
+
|
| 140 |
+
epiR
|
| 141 |
+
|
| 142 |
+
lme4
|
| 143 |
+
|
| 144 |
+
ggplot2
|
| 145 |
+
|
| 146 |
+
This folder reproduces the statistical analysis pipeline described in the paper.
|
| 147 |
+
|
| 148 |
+
🔬 Reproducibility
|
| 149 |
+
|
| 150 |
+
This repository provides:
|
| 151 |
+
|
| 152 |
+
Validation segmentation outputs
|
| 153 |
+
|
| 154 |
+
Statistical analysis scripts
|
| 155 |
+
|
| 156 |
+
Model documentation
|
| 157 |
+
|
| 158 |
+
External links to trained weights
|
| 159 |
+
|
| 160 |
+
Together, these components allow full reproducibility of segmentation metrics and severity agreement results reported in the manuscript.
|
| 161 |
+
|
| 162 |
+
🤖 Model Hosting
|
| 163 |
+
|
| 164 |
+
All trained model weights are hosted on Hugging Face:
|
| 165 |
+
|
| 166 |
+
👉 https://huggingface.co/MaryPazRB/Paper_CLR_CV
|
| 167 |
+
|
| 168 |
+
This ensures accessibility without exceeding GitHub file size limitations.
|
| 169 |
+
|
| 170 |
+
📜 License
|
| 171 |
+
|
| 172 |
+
Code: MIT License
|
| 173 |
+
|
| 174 |
+
Binary masks and annotations: CC-BY 4.0
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
For questions or collaboration inquiries, please open an issue or contact the corresponding author.
|