Morphological Database and Quantification of Liberica Coffee Beans Using a Hybrid CNN Model
Dioneces O. Alimoren1, Francis G. Balazon1, Jonnah R. Melo1, Richelle Sulit1 & Melmar Eje2 Show affiliations
- College of Informatics and Computing Sciences, Batangas State University, The National Engineering University Lipa Campus, Lipa City, , Philippines
- College of Agriculture, Batangas State University, The National Engineering University Lobo Campus, Lobo, Batangas, Philippines
Journal of Computer Science, Volume 22, Issue 8, pp. 2519–2527 · doi.org/10.3844/jcssp.2026.2519.2527
Abstract
Traditional evaluation of Liberica coffee (Kapeng Barako) in Batangas is commonly performed through manual visual inspection and sensory judgment, which are slow, subjective, and difficult to reproduce across farms, buyers, and grading personnel. These limitations can lead to inconsistent quality classification, weak traceability, and reduced bargaining power for local producers. This study develops and validates a web-based morphological analysis system for Liberica coffee beans using a hybrid pipeline that combines U-Net convolutional neural network segmentation with deterministic feature extraction. A database of 4,000 high-resolution images collected from farms in Batangas was curated and divided into training, validation, and test subsets using a 70:15:15 ratio. To evaluate generalization, an independent 500-image dataset from previously unseen farms was also used. The model was trained with Dice plus binary cross-entropy loss, Adam optimization, and augmentation strategies designed to simulate field variations. The 96.0% accuracy reported in this study is explicitly defined as feature-level agreement: the percentage of test images in which the primary extracted traits fall within accepted tolerances relative to a manually verified reference. On the internal test set, the proposed method achieved a Dice coefficient of 0.971, intersection-over-union of 0.944, and high agreement for key morphological traits including area (R² = 0.976), eccentricity (R² = 0.972), solidity (R² = 0.973), and centroid coordinates (R² > 0.962). Compared with classical image processing and CNN baselines, the hybrid approach provided a favorable balance of accuracy, interpretability, and deployment speed. The resulting platform provides farmers, cooperatives, and researchers with a practical, low-cost, and reproducible tool for data-driven Liberica coffee quality assessment and morphology database development.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Alimoren, D. O., Balazon, F. G., Melo, J. R., Sulit, R. & Eje, M. (2026). Morphological Database and Quantification of Liberica Coffee Beans Using a Hybrid CNN Model. Journal of Computer Science, 22(8), 2519–2527. https://doi.org/10.3844/jcssp.2026.2519.2527
- Licence
- CC BY 4.0
- Issue
- Volume 22, Issue 8
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
