Importance

Date variety is a key factor in determining the stage at which dates are harvested, unlike most fruits that only depend on the maturity stage of an individual fruit (i.e. ripe or not). For instance, some varieties of dates are harvested in the first maturity stage (Khalal) such as Barhi, whereas other date varieties are usually harvested later in the Rutab or Tamar stages such as Sullaj and Khalas. 

Challenges

Classification of date fruits according to their varieties in an orchard environment is a challenging task due to the low inter-class variation between some date classes and the wide intra-class variation within one class, as shown in the following figure. Some varieties can easily be distinguished based on their visual appearance, whereas it is difficult, for even a specialist, to distinguish some varieties. In addition, there are large differences between date bunches of the same variety, as they vary in terms of maturity level, illumination, bagging state, scale, and angle.

Proposed solution

Deep convolution neural networks CNNs are utilized with transfer learning and fine-tuning on pre-trained models , e.g. VGG-16, ResNet-50, ResNet-100, inception v3. To build a robust machine vision system, we used a rich image dataset of five date types for all maturity stages. The dataset was designed with a large degree of variation that represents the challenges in natural environments and date fruit orchards. 

Example results:

The video shows the results of variety classification of date fruits using Convolutional Neural Networks CNNs with transfer learning based on AlexNet, VGG-16, and ResNet-50 models. 

Accumulated accuracy is used in the video, which calculates the accuracy of all frames from the beginning of the video to the current frame, and hence the final average accuracy is at the end of the video.

Training process of the CNN classification system using transfer learning.

Deep learning architectures of the proposed date fruit classification system based on VGG-16 pre-trained model. 

Referred paper:

H. Altaheri, M. Alsulaiman and G. Muhammad, "Date Fruit Classification for Robotic Harvesting in a Natural Environment Using Deep Learning", in IEEE Access, vol. 7, pp. 117115-117133, 2019. (10.1109/ACCESS.2019.2936536)


Dataset download links: (You have to login with an IEEE Account to download the files. IEEE Account is FREE)

High-resolution images (8079 images, 42 GB).

A preview of the 8079 images. size: 224 X 224. (108 MB). 

The annotation (labeling) files (104 KB) 


Code download link:

https://studentksuedu-my.sharepoint.com/:f:/g/personal/435108376_student_ksu_edu_sa/En8jKZ_wAWFOqyoga-PeQjAB4EDmzyFpQXiMOMAqZdFUMg?e=WFd7hU