Sabaragamuwa University of Sri Lanka

Machine Learning-based Quality Detection of Cinnamon from Outer Bark Images

Show simple item record

dc.contributor.author Samarajeewa, S.G.M.D
dc.contributor.author Balasooriya, W.B.I.S
dc.contributor.author Rasanjalee, W.G. R
dc.contributor.author Jeewanthi, J.G.A
dc.contributor.author Ravihara, M.P.N.
dc.contributor.author Herath, W.B.P.N.
dc.date.accessioned 2025-12-12T06:50:37Z
dc.date.available 2025-12-12T06:50:37Z
dc.date.issued 2025-02-19
dc.identifier.citation Abstracts of the ComURS2025 Computing Undergraduate Research Symposium 2025, Faculty of Computing, Sabaragamuwa University of Sri Lanka. en_US
dc.identifier.isbn 978-624-5727-57-5
dc.identifier.uri http://repo.lib.sab.ac.lk:8080/xmlui/handle/susl/4945
dc.description.abstract Cinnamon is a vital component of Sri Lanka's agriculture, internationally recognized for its flavor, aroma, and medicinal properties. Despite its significance, traditional cinnamon quality grading relies on manual visual inspections, which are subjective, time-consuming, and inconsistent. Also, misclassification of cinnamon bark’s highest obtainable grade can lead to improper grading decisions and suboptimal processing, reducing its potential value. Previous research has focused primarily on species identification or post-processing quality assessment, leaving a gap in grading cinnamon bark before processing. This study introduces a machine learning model to detect the highest grade obtainable from cinnamon bark, ensuring its optimal utilization. A four-stage deep learning pipeline: Data Collection, Preprocessing, Segmentation, and Classification was developed. A dataset of over 1,500 high-resolution cinnamon bark images, captured in a 4:3 aspect ratio using phone cameras under controlled lighting conditions, was prepared. These images were labeled into four predefined quality classes: Extra Special High Quality, High Quality, Medium Quality, and Low Quality, by industrial experts. Class imbalance was addressed using augmentation techniques, blurriness detection, image resizing, normalization, and CLAHE (Contrast Limited Adaptive Histogram Equalization) to enhance clarity and texture. Segmentation was performed using the U-Net architecture integrated with attention and residual blocks, achieving an IoU (Intersection over Union) of 0.87 and a Dice Coefficient of 0.90, outperforming basic models such as thresholding and edge detection. Classification was carried out using a fine-tuned ResNet101 CNN with transfer learning, achieving an accuracy of 92%, recall of 0.89, and an F1-score of 0.89. The model was integrated into a mobile application, allowing farmers to submit bark images for instant grading. Model’s reliance on controlled lighting and lack of generalization to other types of cinnamon bark, remain as limitations of the study. Nevertheless, this research offers an efficient, scalable solution for cinnamon quality detection, reducing human error, improving grading accuracy, and paving the way for broader AI adoption in the cinnamon industry. en_US
dc.language.iso en en_US
dc.publisher Faculty of Computing, Sabaragamuwa University of Sri Lanka en_US
dc.subject Detection en_US
dc.subject Image Segmentation en_US
dc.subject Deep Learning en_US
dc.subject ResNet101 en_US
dc.subject U-Net en_US
dc.subject CLAHE en_US
dc.title Machine Learning-based Quality Detection of Cinnamon from Outer Bark Images en_US
dc.type Article en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search DSpace


Advanced Search

Browse

My Account