Semantic Segmentation for Leaf-Level Severity Grading of Coffee Leaf Rust and American Leaf Spot on Flatbed Scans

Visual severity assessment of coffee leaf rust (Hemileia vastatrix) and American leaf spot (Mycena citricolor) is subjective. We trained DeepLabV3+, UNet++ and SegFormer-B5 per disease to segment lesions on flatbed scans of 684 detached Coffea arabica var. Esperanza L4A5 leaves (one site per disease; semi-automatic detector-plus-SAM 2 rust and hand-corrected leaf-spot masks) and graded severity (G0–G3). Under matched training (three seeds each), UNet++ and SegFormer-B5 were equivalent within post hoc margins in leaf-spot lesion intersection over union (IoU; 0.878 ± 0.004 vs. 0.888 ± 0.001) and mean absolute error; for rust (0.759 ± 0.015 vs. 0.769 ± 0.005), IoU equivalence held only with seeds averaged. DeepLabV3+ was lower. Against five experts, SegFormer-B5 agreed more closely than the average expert for leaf spot (quadratic-weighted kappa 0.88 vs. 0.80; Holm-adjusted p = 0.048 across ten model–panel contrasts) but not for rust. A validation-tuned color threshold, competitive for leaf spot, flagged 12 of 21 healthy leaves as rust (≥0.5%, abaxial face), the networks none; healthy leaves came only from the leaf-spot site. A validation-calibrated probability threshold reduced rust over-estimation relative to the reference (SegFormer-B5 bias +0.99 to +0.12 percentage points). On flatbed scans, a compact matched-trained UNet++ rivals SegFormer-B5; field photographs remain untested.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-16
DOI
https://doi.org/10.20944/preprints202611.1573.v1
Primary Topic
Smart Agriculture and AI
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Semantic Segmentation for Leaf-Level Severity Grading of Coffee Leaf Rust and American Leaf Spot on Flatbed Scans

Victor Hugo Morales Peña, Carly CHERY
Preprints.org
Smart Agriculture and AI
preprint

Semantic Segmentation for Leaf-Level Severity Grading of Coffee Leaf Rust and American Leaf Spot on Flatbed Scans

Victor Hugo Morales Peña, Carly CHERY
preprint en

Abstract

Visual severity assessment of coffee leaf rust (Hemileia vastatrix) and American leaf spot (Mycena citricolor) is subjective. We trained DeepLabV3+, UNet++ and SegFormer-B5 per disease to segment lesions on flatbed scans of 684 detached Coffea arabica var. Esperanza L4A5 leaves (one site per disease; semi-automatic detector-plus-SAM 2 rust and hand-corrected leaf-spot masks) and graded severity (G0–G3). Under matched training (three seeds each), UNet++ and SegFormer-B5 were equivalent within post hoc margins in leaf-spot lesion intersection over union (IoU; 0.878 ± 0.004 vs. 0.888 ± 0.001) and mean absolute error; for rust (0.759 ± 0.015 vs. 0.769 ± 0.005), IoU equivalence held only with seeds averaged. DeepLabV3+ was lower. Against five experts, SegFormer-B5 agreed more closely than the average expert for leaf spot (quadratic-weighted kappa 0.88 vs. 0.80; Holm-adjusted p = 0.048 across ten model–panel contrasts) but not for rust. A validation-tuned color threshold, competitive for leaf spot, flagged 12 of 21 healthy leaves as rust (≥0.5%, abaxial face), the networks none; healthy leaves came only from the leaf-spot site. A validation-calibrated probability threshold reduced rust over-estimation relative to the reference (SegFormer-B5 bias +0.99 to +0.12 percentage points). On flatbed scans, a compact matched-trained UNet++ rivals SegFormer-B5; field photographs remain untested.

Preprints.org
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon