Fruit Quality and Defect Image Classification with Conditional GAN Data Augmentation

Contemporary Artificial Intelligence technologies allow for the employment of Computer Vision to discern good crops from bad, providing a step in the pipeline of selecting healthy fruit from undesirable fruit, such as those which are mouldy or gangrenous. State-of-the-art works in the field report high accuracy results on small datasets (<1000 images), which are not representative of the population regarding real-world usage. The goals of this study are to further enable real-world usage by improving generalisation with data augmentation as well as to reduce overfitting and energy usage through model pruning. In this work, we suggest a machine learning pipeline that combines the ideas of fine-tuning, transfer learning, and generative model-based training data augmentation towards improving fruit quality image classification. A linear network topology search is performed to tune a VGG16 lemon quality classification model using a publicly-available dataset of 2690 images. We find that appending a 4096 neuron fully connected layer to the convolutional layers leads to an image classification accuracy of 83.77%. We then train a Conditional Generative Adversarial Network on the training data for 2000 epochs, and it learns to generate relatively realistic images. Grad-CAM analysis of the model trained on real photographs shows that the synthetic images can exhibit classifiable characteristics such as shape, mould, and gangrene. A higher image classification accuracy of 88.75% is then attained by augmenting the training with synthetic images, arguing that Conditional Generative Adversarial Networks have the ability to produce new data to alleviate issues of data scarcity. Finally, model pruning is performed via polynomial decay, where we find that the Conditional GAN-augmented classification network can retain 81.16% classification accuracy when compressed to 50% of its original size.

[1]  Abhishek Das,et al.  Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization , 2016, 2017 IEEE International Conference on Computer Vision (ICCV).

[2]  Jakub Nalepa,et al.  Data Augmentation for Brain-Tumor Segmentation: A Review , 2019, Front. Comput. Neurosci..

[3]  Daegun Oh,et al.  Generative Adversarial Networks to Augment Micro-Doppler Signatures for the Classification of Human Activity , 2019, IGARSS 2019 - 2019 IEEE International Geoscience and Remote Sensing Symposium.

[4]  J. Ludwig-Müller Guide to Cultivated Plants , 2009, Journal of Plant Growth Regulation.

[5]  Andreas Holzinger,et al.  Augmentor: An Image Augmentation Library for Machine Learning , 2017, J. Open Source Softw..

[6]  Moeness G. Amin,et al.  GAN-based Synthetic Radar Micro-Doppler Augmentations for Improved Human Activity Recognition , 2019, 2019 IEEE Radar Conference (RadarConf).

[7]  Sweta Jain,et al.  Tomato plant disease detection using transfer learning with C-GAN synthetic images , 2021, Comput. Electron. Agric..

[8]  Nour Eldeen M. Khalifa,et al.  A deep transfer learning model with classical data augmentation and CGAN to detect COVID-19 from chest CT radiography digital images , 2020, Neural computing & applications.

[9]  Taghi M. Khoshgoftaar,et al.  A survey on Image Data Augmentation for Deep Learning , 2019, Journal of Big Data.

[10]  Jie Zhang Towards Robust Machine Learning Models for Data Scarcity , 2020 .

[11]  Miguel Macías Macías,et al.  Low-Power and Low-Cost Environmental IoT Electronic Nose Using Initial Action Period Measurements , 2019, Sensors.

[12]  Marco Mora,et al.  A Review of Convolutional Neural Network Applied to Fruit Image Processing , 2020, Applied Sciences.

[13]  Simon Osindero,et al.  Conditional Generative Adversarial Nets , 2014, ArXiv.

[14]  Douglas Chai,et al.  A comprehensive review of fruit and vegetable classification techniques , 2018, Image Vis. Comput..

[15]  J. Brezmes,et al.  Correlation between electronic nose signals and fruit quality indicators on shelf-life measurements with pinklady apples , 2001 .

[16]  S. Minaei,et al.  Maturity detection and volume estimation of apricot using image processing technique , 2019, Scientia Horticulturae.

[17]  George Vogiatzis,et al.  CSC-GAN: Cycle and Semantic Consistency for Dataset Augmentation , 2020, ISVC.

[18]  Anikó Ekárt,et al.  Synthetic Biological Signals Machine-Generated by GPT-2 Improve the Classification of EEG and EMG Through Data Augmentation , 2021, IEEE Robotics and Automation Letters.

[19]  Slamet Riyadi,et al.  Deep learning implementation using convolutional neural network in mangosteen surface defect detection , 2017, 2017 7th IEEE International Conference on Control System, Computing and Engineering (ICCSCE).

[20]  E. Llobet,et al.  Evaluation of an electronic nose to assess fruit ripeness , 2005, IEEE Sensors Journal.

[21]  Bankim Patel,et al.  Machine Vision based Fruit Classification and Grading - A Review , 2017 .

[22]  Ryutaro Tao,et al.  Cultivar discrimination of litchi fruit images using deep learning , 2020 .

[23]  Kang Ryoung Park,et al.  Conditional Generative Adversarial Network- Based Data Augmentation for Enhancement of Iris Recognition Accuracy , 2019, IEEE Access.

[24]  Marcin Woźniak,et al.  Automatic classification of fruit defects based on co-occurrence matrix and neural networks , 2015, 2015 Federated Conference on Computer Science and Information Systems (FedCSIS).

[25]  Aboul Ella Hassanien,et al.  Automatic fruit classification using random forest algorithm , 2014, 2014 14th International Conference on Hybrid Intelligent Systems.

[26]  Hayit Greenspan,et al.  GAN-based Synthetic Medical Image Augmentation for increased CNN Performance in Liver Lesion Classification , 2018, Neurocomputing.

[27]  Mohammad Momeny,et al.  Classification of sour lemons based on apparent defects using stochastic pooling mechanism in deep convolutional neural networks , 2020 .

[28]  Yoshua Bengio,et al.  Generative Adversarial Nets , 2014, NIPS.

[29]  Soumith Chintala,et al.  Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks , 2015, ICLR.

[30]  Ngai-Man Cheung,et al.  On Data Augmentation for GAN Training , 2020, IEEE Transactions on Image Processing.

[31]  Ahmad Jahanbakhshi,et al.  Evaluation of image processing technique and discriminant analysis methods in postharvest processing of carrot fruit , 2020, Food science & nutrition.

[32]  Prabira Kumar Sethy,et al.  Maturity status classification of papaya fruits based on machine learning and transfer learning approach , 2020 .

[33]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[34]  J.B. Chang,et al.  Electronic Noses Sniff Success , 2008, IEEE Spectrum.

[35]  Giancarlo Mauri,et al.  Combining Noise-to-Image and Image-to-Image GANs: Brain MR Image Augmentation for Tumor Detection , 2019, IEEE Access.

[36]  Mu-En Wu,et al.  Deep-learning-based defective bean inspection with GAN-structured automated labeled data augmentation in coffee industry , 2019 .

[37]  Xin He,et al.  On line detection of defective apples using computer vision system combined with deep learning methods , 2020 .

[38]  Andrew Zisserman,et al.  Very Deep Convolutional Networks for Large-Scale Image Recognition , 2014, ICLR.

[39]  Anikó Ekárt,et al.  Overcoming Data Scarcity in Speaker Identification: Dataset Augmentation with Synthetic MFCCs via Character-level RNN , 2020, 2020 IEEE International Conference on Autonomous Robot Systems and Competitions (ICARSC).

[40]  Anand Singh Jalal,et al.  Application of Image Processing in Fruit and Vegetable Analysis: A Review , 2015, J. Intell. Syst..

[41]  Anuja Bhargava,et al.  Fruits and vegetables quality evaluation using computer vision: A review , 2021, J. King Saud Univ. Comput. Inf. Sci..

[42]  Raheel Siddiqi,et al.  Effectiveness of Transfer Learning and Fine Tuning in Automated Fruit Image Classification , 2019, ICDLT.

[43]  Marcellin Atemkeng,et al.  Deep Learning Models Compression for Agricultural Plants , 2020, Applied Sciences.

[44]  Pavlo Molchanov,et al.  Importance Estimation for Neural Network Pruning , 2019, 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[45]  Gourish M. Naik,et al.  Non-invasive hyperspectral imaging approach for fruit quality control application and classification: case study of apple, chikoo, guava fruits , 2015, Journal of Food Science and Technology.

[46]  Mihai Oltean,et al.  Fruit recognition from images using deep learning , 2017, Acta Universitatis Sapientiae, Informatica.

[47]  Atsushi Hashimoto,et al.  Strawberry cultivar identification and quality evaluation on the basis of multiple fruit appearance features , 2015, Comput. Electron. Agric..

[48]  Andrew L. Maas Rectifier Nonlinearities Improve Neural Network Acoustic Models , 2013 .

[49]  E. Martinelli,et al.  The evaluation of quality of post-harvest oranges and apples by means of an electronic nose , 2001 .

[50]  R. Jeraj,et al.  Interpretation and Visualization Techniques for Deep Learning Models in Medical Imaging , 2020, Physics in medicine and biology.

[51]  N A Andriyanov,et al.  The using of data augmentation in machine learning in image processing tasks in the face of data scarcity , 2020 .

[52]  Qian Xiang,et al.  Fruit Image Classification Based on MobileNetV2 with Transfer Learning Technique , 2019, CSAE.

[53]  Yanmin Qian,et al.  Data augmentation using generative adversarial networks for robust speech recognition , 2019, Speech Commun..

[54]  Yunming Ye,et al.  A multi-task learning model with adversarial data augmentation for classification of fine-grained images , 2020, Neurocomputing.

[55]  Esther Luna Colombini,et al.  Parkinson's Disease EMG Data Augmentation and Simulation with DCGANs and Style Transfer , 2020, Sensors.