Skip to content

Hack4Dev/apple_classification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

Apple Classification

Description

Welcome to the project on apple classification, where you will classify between bruised on sound apples! From the tutorials you will learn the following:

  • Tutorial 1 - Data cleaning & visualization
  • Tutorial 2 - Baseline Calculation
  • Tutorial 3 - Feature Engineering and Selection
  • Tutorial 4 - Machine learning classification.

Data

Infrared spectra data for three apple cultivars, namely ’Golden Delicious’ (GD) (yellowish green), ’Granny Smith’ (GS) (green) and ’Royal Gala’ (RG) (predominantly red), were acquired in two installments (in two consecutive months) from two different local retail shops from Stellenbosch, Western Cape, South Africa, in 2019.

From the three apple cultivars, two main sample categories were created, namely bruised (B) and non-bruised (S) fruit. From the B category, three subcategories were created by representing the different levels of bruise severity, thus contributing to more variability in the data set.

Hackathon Task

From the proposed pipeline, investigate new ways to classify between bruised and sound apples using machine learning.

Prerequisites

All the libraries/dependencies necessary to run the tutorials are listed in the requirements.txt file.

Installation

All the required libraries can be installed using pip and the requirements.txt file in the repo:

> pip install -r requirements.txt

Would you like to clone this repository? Feel free!

> git clone https://github.com/Hack4Dev/apple_classification.git

Then make sure you have the right Python libraries for the tutorials.

New to Github?

The easiest way to get all of the lecture and tutorial material is to clone this repository. To do this you need git installed on your laptop. If you're working on Linux you can install git using apt-get (you might need to use sudo):

apt install git

You can then clone the repository by typing:

git clone https://github.com/Hack4Dev/apple_classification.git

To update your clone if changes are made, use:

cd apple_classification/
git pull

Original research work:

Nturambirwe, J.F.I.; Hussein, E.A.; Vaccari, M.; Thron, C.; Perold, W.J.; Opara, U.L. Feature Reduction for the Classification of Bruise Damage to Apple Fruit Using a Contactless FT-NIR Spectroscopy with Machine Learning. Foods 2023, 12, 210. https://doi.org/10.3390/foods12010210

About

An apple binary classification problem

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Python 0.1%