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’’
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.
| 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 | ||||
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.
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
