Update README.md
Browse files18 unmodified lines1920212218 unmodified lines- precision- recall- lin-concordance-correlation-coefficient---18 unmodified lines19202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617718 unmodified lines- precision- recall- lin-concordance-correlation-coefficient---🍃 Foundation Model–Assisted Coffee Leaf Rust Severity EstimationThis repository accompanies the manuscript:Foundation model–assisted segmentation enables robust field-based severity estimation of coffee leaf rustThis 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.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).🌱 Project OverviewThe methodological workflow consists of:Leaf Detection – YOLOv8 trained using model-assisted annotationsLeaf Extraction – Detection-guided segmentationLesion Segmentation – Comparison of five approaches:ImageJ thresholdingpliman (R package)DeepLabV3+Fine-tuned SAM2 (SAM_CLR)Zero-shot SAM3Severity Estimation – Pixel-based calculation:S (%) = Diseased Area / Leaf Area × 100Agreement Analysis – Lin’s Concordance Correlation Coefficient between predicted and reference severity📊 Dataset SummaryThe full dataset comprises:1,285 field-acquired coffee leaf images606 curated pixel-level rust lesion masks100 independent evaluation masksRoboflow dataset links:CLR_SAM_dataset:https://universe.roboflow.com/clr-zky50/sam_clr/dataset/1DL506:https://universe.roboflow.com/clr-zky50/dl506/dataset/1GoldenStandard:https://universe.roboflow.com/clr-zky50/imgtest-fvn9j/dataset/1📂 Repository Structure📁 01_modelsContains documentation describing the trained models used in this study.⚠️ Due to GitHub file size limitations, model weights are hosted on Hugging Face.Models include:YOLOv8 leaf detectorFine-tuned SAM2 (SAM_CLR)DeepLabV3+Configuration used for zero-shot SAM3 inference📁 02_binary_imagesContains validation binary masks (PNG format) corresponding to segmentation outputs from each evaluated method.These masks were used to compute:Intersection over Union (IoU)Dice coefficientPixel accuracyPrecisionRecallDisease severity (%)Lin’s Concordance Correlation Coefficient (LCCC)Binary mask format:0 → background255 → rust lesionThis folder enables independent verification of segmentation performance and severity calculations.📁 03_analysisContains R scripts used to:Compute severity metricsPerform agreement and concordance analysisGenerate all figures included in the manuscriptMain R dependencies:tidyverseepiRlme4ggplot2This folder reproduces the statistical analysis pipeline described in the paper.🔬 ReproducibilityThis repository provides:Validation segmentation outputsStatistical analysis scriptsModel documentationExternal links to trained weightsTogether, these components allow full reproducibility of segmentation metrics and severity agreement results reported in the manuscript.🤖 Model HostingAll trained model weights are hosted on Hugging Face:👉 https://huggingface.co/MaryPazRB/Paper_CLR_CVThis ensures accessibility without exceeding GitHub file size limitations.📜 LicenseCode: MIT LicenseBinary masks and annotations: CC-BY 4.0For questions or collaboration inquiries, please open an issue or contact the corresponding author.
README.md+156-1