Skip to content

Saudi Coffee Beans Classification (Type and roasting) based on squeeze vision transformer

License

Notifications You must be signed in to change notification settings

ShuaaS/Saudi-Coffee-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Picture1 QU Ed

Saudi-Coffee-Classification

Saudi Coffee Beans Classification (Type and roasting) based on squeeze vision transformer.

This repository contains the dataset alongside the codes written and implemented for the paper:

“Classification of Saudi Coffee Types and Roasting Levels Using Squeeze Vision Transformer, Haifa F. Alhasson and Shuaa S. Alharbi 2024’’

Dataset Distribution

We formed the data collected into three datasets based on the purpose needed to be classified as follows:

1- Saudi Coffee Types Dataset (SCTD): This dataset's primary goal is to differentiate between several Saudi coffee genotypes, which are related to Arabic coffee genotypes and differ in size and morphology. Five classes of Saudi coffee genotype beans (Harari, Khawlani, Nabari, Laqamti, and Wild (Briah)) are included in this dataset. In order to assess and manage the quality of the traded coffee beans, this dataset may be used to categorize beans according to variations in the shape characteristics of the genotypes of the beans.

2- Saudi Coffee Roasting Dataset (SCRD): This dataset's primary goal is to differentiate between various roast levels of Saudi coffee using samples taken from the country's coffee market. As we discover, there are three primary roasting levels in addition to the bean's raw form. The color of the beans makes them distinctive. Four classes of Saudi coffee genotype beans (Raw, Degree 1, Degree 2, and Degree 3) are included in this dataset.

3- Saudi Coffee Types and Roasting Dataset (SCTRD): Two classes from the two intercross datasets were joined in this dataset to create 20 classes.

An example of several types and roastings of Saudi coffee images:

Screen Shot 2024-06-21 at 4 11 17 PM

This Table provides information on the quantity of photos in each category:

Type of Coffee Raw Degree 1 Degree 2 Degree 3 Total Num of Images
Harari 621 600 546 762 2529
Bariah 810 678 810 604 2902
Khowlani 408 702 588 648 2346
Legamti 522 438 491 564 2015
Nabari 556 660 696 606 2518
Total images in all categories 12310

Download dataset:

Original (without crop) click here: https://drive.google.com/file/d/1Bo3DzVeFUaYzjUBHM-6IA4u8TeaKDa3H/view?usp=sharing

SCTD click here: https://drive.google.com/file/d/1I29CIBTl77BNZqeNEMskxuLDoaJSFpne/view?usp=sharing

SCRD click here: https://drive.google.com/file/d/1HTyk-zRavcISvZVQLGhAWlOTDarKKGKT/view?usp=drive_link

SCTRD click here: https://drive.google.com/file/d/1SFbBcjtcuqgHbQjeL2O_ULXbChz7LwXc/view?usp=drive_link


This research was funded by the “Saudi coffee grants” program offered by the Saudi Ministry of Culture. All opinions expressed herein belong to the researchers and do not necessarily reflect those of the Ministry of Culture.

If you find this code useful in your research and development, please reference this repository and the paper.

Reference:

Alhasson, Haifa F., and Shuaa S. Alharbi. "Classification of Saudi Coffee beans using a mobile application leveraging squeeze vision transformer technology." Neural Computing and Applications (2025): 1-21.

This research was conducted collaboratively by two authors, representing the Department of Information Technology, College of Computer, Qassim University, and the Ministry of Culture.

This repositoty is under a GNU General Public License v2.0 (see included "LICENSE" file). For any inquiry, please contact us via email: saudi.coffee.project@gmail.com

About

Saudi Coffee Beans Classification (Type and roasting) based on squeeze vision transformer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published