EBN-ShapeSeg: Segmentation and Shape Analysis for Explaining Edible Bird’s Nest Grading
The edible bird’s nest (EBN) is a high-value bio-commodity whose commercial grading relies substantially on visual assessment of nest appearance and morphology. Although deep-learning classifiers can achieve high accuracy, their black-box nature limits insight into the morphology underlying confusion between adjacent grades. This study introduces EBN-ShapeSeg, an interpretable segmentation and shape-analysis framework designed to isolate geometric morphology from image-level visual artifacts through leakage-controlled binary segmentation and invariant shape-moment characterization. The dataset comprised 1,441 JPEG images representing eight commercial EBN grades, independently assigned by an EBN expert. Of these, 320 images (40 per grade) were manually segmented for model development and evaluation, with the remaining 1,121 images retaining their expert-assigned grades but without reference segmentation masks, reserved for inference-only downstream shape characterization using model-predicted masks. Across five architectures and three random seeds, U-Net++ with a ResNet-34 backbone achieved the best validation performance (Dice 0.9918) and a one-time primary test Dice of 0.9835. A post-hoc audit identified one invalid reference mask; excluding it in a transparently labeled sensitivity analysis, without reopening the immutable primary test set, resulted in a Dice coefficient of 0.9938. Predicted and ground-truth geometries showed very high agreement, with the second Hu moment achieving a correlation of 0.9986. In the inference-only reserve cohort, the second Hu moment distinguished the Cup and Triangle shape families with a large standardized difference (|d| = 1.0507). These results identify geometric shape as a quantifiable factor associated with grading variance and highlight nest-level grouping and stringent annotation auditing as essential standards for interpretable agricultural computer vision.
Authors
- Pensiri Akkajit (ORCID: https://orcid.org/0000-0002-0196-8975)
- Arsanchai Sukkuea (ORCID: https://orcid.org/0000-0003-0370-7389)
- Tharika Puntlert (ORCID: https://orcid.org/0009-0003-6202-7057)
Institutions
- Prince of Songkla University (TH)
- Suranaree University of Technology (TH)
- Walailak University (TH)
Publication Details
- Journal
- Journal of Agriculture and Food Research
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1016/j.jafr.2026.103483
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00