--- license: mit task_categories: - object-detection - image-segmentation - feature-extraction - zero-shot-classification tags: - agriculture - coffee - food-quality - commodity-grading pretty_name: Pre-Roast Arabica Coffee Bean Grading Dataset size_categories: - 1K **Note:** The high precision on Grade D (Defective) is particularly valuable, as it demonstrates the model's reliability in identifying and sorting out low-quality beans, which is a primary goal of automated grading systems. --- ## How to Use ### Load JSON Annotation Example ```python import json import glob # Example for Grade A files = glob.glob("CGA/CGA_json/*.json") with open(files[0], "r") as f: ann = json.load(f) print(ann["shapes"][0]["points"]) # Polygon coordinates print(ann["shapes"][0]["label"]) # Grade label ```` ## Value of the Dataset * First publicly available polygon-annotated dataset of pre-roast coffee beans. * Enables end-to-end automated grading using segmentation + classification. * Facilitates fair pricing and quality transparency in the coffee supply chain. * Robust for deployment in low-cost rural environments using consumer smartphones. ## Contributors | Name | ORCID | Role | |---|---|---| | Samruddh K | 0009-0008-3588-9272 | Research, Dataset Preparation & Documentation | | Abhay Varun S | 0009-0003-1299-724X | Research, Dataset Collection & Annotation | | Bopanna K N | 0009-0008-0432-3196 | Annotation Support & Verification | | H A Dheemanth Gowda | 0009-0001-1891-632X | Annotation Support & Verification | ## Citation If you use this dataset, please cite: @dataset{pre_roast_coffee_grading_2025, title = {A Image Dataset of Pre-Roast Arabica Coffee Beans with Polygon Annotations for Automated Grading}, author = {Samruddh K and Bopanna K N and H A Dheemanth Gowda and Abhay Varun S}, year = {2025}, publisher = {Hugging Face Datasets}, license = {MIT}, url = {https://huggingface.co/datasets/SamruddhK/coffee-bean-grading-dataset} } ## Contact For questions, collaborations, or research use: - Dataset Maintainer: **Samruddh K & Abhay Varun S** - Hugging Face: https://huggingface.co/SamruddhK - GitHub Samruddh K: https://github.com/SAMRUDDH15 - GitHub Abhay Varun S: https://github.com/abhay-error * **Email:** [samruddh.k52@gmail.com & Abhayvarun618@gmail.com]