International Journal of Academic Engineering Research (IJAER) ISSN: 2643-9085 Vol. 3 Issue 12, December – 2019, Pages: 35-40 www.ijeais.org/ijaer 35 Deep Learning Classification of Peach Fruits Mohammed I. El-kahlout Department of Information Technology, Faculty of Engineering and Information Technology, Al-Azhar University Gaza, Palestine Abstract: Peach, (Prunus persica), fruit tree of the rose family (Rosaceae), grown throughout the warmer temperate regions of both the Northern and Southern hemispheres. Peaches are widely eaten fresh and are also baked in pies and cobblers; canned peaches are a staple commodity in many regions. Yellow-fleshed varieties are especially rich in vitamin A. Peach trees are relatively short-lived as compared with some other fruit trees. In some regions orchards are replanted after 8 to 10 years, while in others trees may produce satisfactorily for 20 to 25 years or more, depending upon their resistance to diseases, pests, and winter damage. in the body.[1] In this paper, machine learning based approach is presented for identifying type peach with a dataset that contains 2,306 images use 1,212 images for training, 520 images for validation and 574 images for testing. A deep learning technique that extensively applied to image recognition was used. use 70% from image for training and 30% from image for validation. Our trained model achieved an accuracy of 100% on a held-out test set, demonstrating the Keywords: Type Peach, Deep Learning, Classification, Detection. INTRODUCTION Peach is deciduous plant that belongs to the family Rosaceae. This plant is closely related to almonds, cherries and plums. Peach originate from China, but it can be found all around the world today. It has been part of human diet at least couple of thousand years. People cultivate peaches mainly because of their aromatic fruit. Some varieties are cultivated only for decorative purposes. Peach tree usually grows in temperate climate because it requires low temperature during the winter for successful development of flowers. This plant also requires fertilizers rich in nitrogen and constant water supply during the growth. Peaches are often targeted by insects or insect larvae which affect amount and quality of produced fruit.[2] INTERESTING PEACH FACTS : [3]  Size of peach tree depends on the variety. It can reach 13 to 33 feet in height.  Peach develops green, elongated leaves. They are lanceolate in shape and have pinnate veins.  Flowers appear on the tree before leaves. They consist of 5 pink petals. Flowers are located individually or grouped in pairs. They contain both male (stamens) and female (pistil) reproductive organs.  Honeybees are main pollinators of flowers.  Fruit of peach is botanically known as drupe (stone fruit). It consists of white or yellow flesh that is covered with yellowish-red velvety skin. Varieties of peach with white flesh are sweeter compared to the peaches that have yellow flesh.  Seed is large, oval in shape and protected with woody husk. Even though seed can be consumed, large doses are not recommended because it contains hydrocyanic acid which is poisonous.  All varieties of peaches can be divided in two groups: clingstone and freestone peaches. In a clingstone type, flesh is tightly attached to the stone. This type of peach is mainly used for canning. Flesh of freestone types can be easily removed from the stone. This type of peach is mainly sold as fresh fruit.  Nectarine is a type of peach that has smooth skin instead of velvety (which is typical for peaches).  Peach was known as "Persian apple" because ancient Romans believed that peach originates from Persia.  Peaches are rich source of vitamin C, A and E. They also contain high amount of potassium, magnesium, zinc and phosphorus. Peach of an average size contains only 37 calories.  People consume peaches raw or in the form of juices and various desserts.  Peaches are used in the cosmetic industry for the production of various lotions, creams and shampoos. Peaches are also used in the industry of perfumes.  Peach symbolizes immortality and unity in Chinese culture. Brides use flowers of peach to decorate their hairs during wedding ceremony in China.  China is the greatest manufacturer of peaches in the world.  First fruit will appear on the peach tree after 3 years. This plant usually lives around 12 years. International Journal of Academic Engineering Research (IJAER) ISSN: 2643-9085 Vol. 3 Issue 12, December – 2019, Pages: 35-40 www.ijeais.org/ijaer 36 Deep Learning is an Artificial Intelligence (AI) subfield that imitates the works of a human brain in processing data and producing patterns for use in decision making. Deep learning is a subset of machine learning in artificial intelligence that has networks the skills of learning from data that is unlabeled or unstructured. In this work, we show that a Deep Convolutional Neural Network (CNN) does well in classifying peach type. In computer vision, CNNs have been known to be powerful visual models that yield hierarchies of features enabling accurate segmentation. They are also known to perform predictions relatively faster than other algorithms while maintaining competitive performance at the same time [4]. DEEP LEARNING Deep learning (also known as deep structured learning or hierarchical learning) is part of a broader family of machine learning methods based on learning data representations, as opposed to task-specific algorithms. Learning can be supervised, semisupervised or unsupervised [5]-[6]. In deep learning, each level learns to transform its input data into a slightly more abstract and composite representation. In an image recognition application, the raw input may be a matrix of pixels; the first representational layer may abstract the pixels and encode edges; the second layer may compose and encode arrangements of edges; the third layer may encode a nose and eyes; and the fourth layer may recognize that the image contains a face. Importantly, a deep learning process can learn which features to optimally place in which level on its own. (Of course, this does not completely obviate the need for hand-tuning; for example, varying numbers of layers and layer sizes can provide different degrees of abstraction) [5],[7]. CONVOLUTIONAL NEURAL NETWORK In deep learning, a convolutional neural network (CNN, or ConvNet) is a class of deep neural networks, most commonly applied to analyzing visual imagery. CNNs use a variation of multilayer perceptron's designed to require minimal preprocessing. They are also known as shift invariant or space invariant artificial neural networks (SIANN), based on their shared-weights architecture and translation invariance characteristics [8]. TYPES OF MACHINE LEARNING ALGORITHMS There some variations of how to define the types of Machine Learning Algorithms but commonly they can be divided into categories according to their purpose and the main categories are the following [9]: Supervised learning International Journal of Academic Engineering Research (IJAER) ISSN: 2643-9085 Vol. 3 Issue 12, December – 2019, Pages: 35-40 www.ijeais.org/ijaer 37 Supervised learning is a learning model built to make prediction, given an unforeseen input instance. A supervised learning algorithm takes a known set of input dataset and its known responses to the data (output) to learn the regression/classification model. A learning algorithm then trains a model to generate a prediction for the response to new data or the test dataset [10]. Unsupervised Learning Unsupervised learning is the training of an artificial intelligence (AI) algorithm using information that is neither classified nor labeled and allowing the algorithm to act on that information without guidance, An AI system may group unsorted information according to similarities and differences even though there are no categories provided. AI systems capable of unsupervised learning are often associated with generative learning models, although they may also use a retrieval-based approach (which is most often associated with supervised learning). Chatbots, self-driving cars, facial recognition programs, expert systems and robots are among the systems that may use either supervised or unsupervised learning approaches. [11]. STUDY OBJECTIVES 1Demonstrating the feasibility of using deep convolutional neural networks to classify Type of peach. 2Developing a model that can be used by developer to create smartphones application or web site to detect Type of peach. DATASET International Journal of Academic Engineering Research (IJAER) ISSN: 2643-9085 Vol. 3 Issue 12, December – 2019, Pages: 35-40 www.ijeais.org/ijaer 38 The dataset used, provided by Kaggle, contains a set of 8,554 images use 4,488 images for training, 1,928 images for validation and 2,138 images for testing belonging to 13 species from peach. See Fig. 1 for types peach. Figure 1: Dataset Samples The output 3 classes as follow:  class (0): peach Red.  class (1): peach Gold  class (2): peach Flat The images were resized into 150×150 for faster computations but without compromising the quality of the data. METHODOLOGY In this section we describe the proposed solution as selected convolutional network (ConvNet) architecture and discuss associated design choices and implementation aspects. MODEL Our model takes raw images as an input, so we used Convolutional Nural Networks (CNNs) to extract features, in result the model would consist from (features extraction), which was the same for full-color approach and gray-scale approach, it consist of 4 Convolutional layers with Relu activation function, each followed by Max Pooling layer. International Journal of Academic Engineering Research (IJAER) ISSN: 2643-9085 Vol. 3 Issue 12, December – 2019, Pages: 35-40 www.ijeais.org/ijaer 39 SYSTEM EVALUATION We used the original peach dataset and we divided the data into training (70%), validation (30%). The training accuracy was 99.99% and the validation accuracy was 100%. CONCLUSION We proposed a solution to help people determine the type of peach more accurately, 100% accurately for the best model, builds a model using deep learning convolutional neural networks and uses this model to predict the type of (previously unseen) images of peach with a network from 4 layers and a dropout of 0.2 , that takes peach images with 3 different species an input. International Journal of Academic Engineering Research (IJAER) ISSN: 2643-9085 Vol. 3 Issue 12, December – 2019, Pages: 35-40 www.ijeais.org/ijaer 40 References 1. Abu-Naser, S. S. (2012). "Predicting learners performance using artificial neural networks in linear programming intelligent tutoring system." International Journal of Artificial Intelligence & Applications 3(2): 65. 2. Abu-Nasser, B. S. and S. S. Abu Naser (2018). "Rule-Based System for Watermelon Diseases and Treatment." International Journal of Academic Information Systems Research (IJAISR) 2(7): 1-7. 3. Abu-Nasser, B. S. and S. S. Abu-Naser (2018). "Cognitive System for Helping Farmers in Diagnosing Watermelon Diseases." International Journal of Academic Information Systems Research (IJAISR) 2(7): 1-7. 4. Abu-Saqer, M. M. and S. S. Abu-Naser (2019). "Developing an Expert System for Papaya Plant Disease Diagnosis." International Journal of Academic Engineering Research (IJAER) 3(4): 14-21. 5. Afana, M., et al. (2018). "Artificial Neural Network for Forecasting Car Mileage per Gallon in the City." International Journal of Advanced Science and Technology 124: 51-59. 6. Alajrami, E., et al. (2019). "Blood Donation Prediction using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(10): 1-7. 7. Alajrami, E., et al. (2020). "Handwritten Signature Verification using Deep Learning." International Journal of Academic Multidisciplinary Research (IJAMR) 3(12): 39-44. 8. Alajrami, M. A. and S. S. Abu-Naser (2020). "Type of Tomato Classification Using Deep Learning." International Journal of Academic Pedagogical Research (IJAPR) 3(12): 21-25. 9. Al-Daour, A. F., et al. (2020). "Banana Classification Using Deep Learning." International Journal of Academic Information Systems Research (IJAISR) 3(12): 6-11. 10. Alghoul, A., et al. (2018). "Email Classification Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 2(11): 8-14. 11. Alkronz, E. S., et al. (2019). "Prediction of Whether Mushroom is Edible or Poisonous Using Back-propagation Neural Network." International Journal of Academic and Applied Research (IJAAR) 3(2): 1-8. 12. Al-Massri, R., et al. (2018). "Classification Prediction of SBRCTs Cancers Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 2(11): 1-7. 13. Al-Mubayyed, O. M., et al. (2019). "Predicting Overall Car Performance Using Artificial Neural Network." International Journal of Academic and Applied Research (IJAAR) 3(1): 1-5. 14. Alqumboz, M. N. A. and S. S. Abu-Naser (2020). "Avocado Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 30-34. 15. Al-Shawwa, M. and S. S. Abu-Naser (2019). "Predicting Birth Weight Using Artificial Neural Network." International Journal of Academic Health and Medical Research (IJAHMR) 3(1): 9-14. 16. Al-Shawwa, M. and S. S. Abu-Naser (2019). "Predicting Effect of Oxygen Consumption of Thylakoid Membranes (Chloroplasts) from Spinach after Inhibition Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(2): 15-20. 17. Al-Shawwa, M. O. and S. S. Abu-Naser (2020). "Classification of Apple Fruits by Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 1-7. 18. Alshawwa, I. A., et al. (2020). "Analyzing Types of Cherry Using Deep Learning. " International Journal of Academic Engineering Research (IJAER) 4 (1): 1-5. 19. Abu-Saqer, M. M., et al. (2020). "Type of Grapefruit Classification Using Deep Learning. " International Journal of Academic Information Systems Research (IJAISR) 4 (1): 1-5. 20. Al-Shawwa, M., et al. (2018). "Predicting Temperature and Humidity in the Surrounding Environment Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(9): 1-6. 21. AlZamily, J. Y. and S. S. A. Naser (2020). "Lemon Classification Using Deep Learning." International Journal of Academic Pedagogical Research (IJAPR) 3(12): 16-20. 22. Ashqar, B. A. M. and S. S. Abu-Naser (2019). "Identifying Images of Invasive Hydrangea Using Pre-Trained Deep Convolutional Neural Networks." International Journal of Academic Engineering Research (IJAER) 3(3): 28-36. 23. Ashqar, B. A. M. and S. S. Abu-Naser (2019). "Image-Based Tomato Leaves Diseases Detection Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 2(12): 10-16. 24. Ashqar, B. A., et al. (2019). "Plant Seedlings Classification Using Deep Learning." International Journal of Academic Information Systems Research (IJAISR) 3(1): 7-14. 25. Barhoom, A. M., et al. (2019). "Predicting Titanic Survivors using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(9): 8-12. 26. Dalffa, M. A., et al. (2019). "Tic-Tac-Toe Learning Using Artificial Neural Networks." International Journal of Engineering and Information Systems (IJEAIS) 3(2): 9-19. 27. Dheir, I. M., et al. (2020). "Classifying Nuts Types Using Convolutional Neural Network." International Journal of Academic Information Systems Research (IJAISR) 3(12): 12-18. 28. El_Jerjawi, N. S. and S. S. Abu-Naser (2018). "Diabetes Prediction Using Artificial Neural Network." International Journal of Advanced Science and Technology 121: 55-64. 29. El-Kahlout, M. I. and S. S. Abu-Naser (2020). "Peach Type Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 35-40. 30. El-Khatib, M. J., et al. (2019). "Glass Classification Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 3(2): 25-31. 31. El-Mashharawi, H. Q., et al. (2020). "Grape Type Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 41-45. 32. Elsharif, A. A., et al. (2020). "Potato Classification Using Deep Learning." International Journal of Academic Pedagogical Research (IJAPR) 3(12): 1-8. 33. Elzamly, A., et al. (2017). "Predicting Critical Cloud Computing Security Issues using Artificial Neural Network (ANNs) Algorithms in Banking Organizations." International Journal of Information Technology and Electrical Engineering 6(2): 40-45. 34. Heriz, H. H., et al. (2018). "English Alphabet Prediction Using Artificial Neural Networks." International Journal of Academic Pedagogical Research (IJAPR) 2(11): 8-14. 35. Jamala, M. N. and S. S. Abu-Naser (2018). "Predicting MPG for Automobile Using Artificial Neural Network Analysis." International Journal of Academic Information Systems Research (IJAISR) 2(10): 5-21. 36. Kashf, D. W. A., et al. (2018). "Predicting DNA Lung Cancer using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(10): 6-13. 37. Khalil, A. J., et al. (2019). "Energy Efficiency Predicting using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 3(9): 1-8. 38. Marouf, A. and S. S. Abu-Naser (2018). "Predicting Antibiotic Susceptibility Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(10): 1-5. 39. Mettleq, A. S. A., et al. (2020). "Mango Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 22-29. 40. Metwally, N. F., et al. (2018). "Diagnosis of Hepatitis Virus Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(11): 1-7. 41. Musleh, M. M., et al. (2019). "Predicting Liver Patients using Artificial Neural Network." International Journal of Academic Information Systems Research (IJAISR) 3(10): 1-11. 42. Nabahin, A., et al. (2017). "Expert System for Hair Loss Diagnosis and Treatment." International Journal of Engineering and Information Systems (IJEAIS) 1(4): 160-169. 43. Nasser, I. M. and S. S. Abu-Naser (2019). "Artificial Neural Network for Predicting Animals Category." International Journal of Academic and Applied Research (IJAAR) 3(2): 18-24. 44. Nasser, I. M. and S. S. Abu-Naser (2019). "Lung Cancer Detection Using Artificial Neural Network." International Journal of Engineering and Information Systems (IJEAIS) 3(3): 17-23. 45. Nasser, I. M. and S. S. Abu-Naser (2019). "Predicting Books' Overall Rating Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(8): 11-17. 46. Nasser, I. M. and S. S. Abu-Naser (2019). "Predicting Tumor Category Using Artificial Neural Networks." International Journal of Academic Health and Medical Research (IJAHMR) 3(2): 1-7. 47. Nasser, I. M., et al. (2019). "A Proposed Artificial Neural Network for Predicting Movies Rates Category." International Journal of Academic Engineering Research (IJAER) 3(2): 21-25. 48. Nasser, I. M., et al. (2019). "Artificial Neural Network for Diagnose Autism Spectrum Disorder." International Journal of Academic Information Systems Research (IJAISR) 3(2): 27-32. 49. Nasser, I. M., et al. (2019). "Developing Artificial Neural Network for Predicting Mobile Phone Price Range." International Journal of Academic Information Systems Research (IJAISR) 3(2): 1-6. 50. Sadek, R. M., et al. (2019). "Parkinson's Disease Prediction Using Artificial Neural Network." International Journal of Academic Health and Medical Research (IJAHMR) 3(1): 1-8. 51. Salah, M., et al. (2018). "Predicting Medical Expenses Using Artificial Neural Network." International Journal of Engineering and Information Systems (IJEAIS) 2(20): 11-17. 52. Zaqout, I., et al. (2015). "Predicting Student Performance Using Artificial Neural Network: in the Faculty of Engineering and Information Technology." International Journal of Hybrid Information Technology 8(2): 221-228. 53. Abu Naser, S. S. (2018). "TOP 10 NEURAL NETWORK PAPERS: RECOMMENDED READING–ARTIFICIAL INTELLIGENCE RESEARCH." word press 1(1). 54. Almadhoun, H. R. and S. S. Abu Naser (2018). "Banana Knowledge Based System Diagnosis and Treatment." International Journal of Academic Pedagogical Research (IJAPR) 2(7): 1-11. 55. Salman, F. and S. S. Abu-Naser (2019). "Rule based System for Safflower Disease Diagnosis and Treatment." International Journal of Academic Engineering Research (IJAER) 3(8): 1-10. 56. Salman, F. M. and S. S. Abu-Naser (2019). "Expert System for Castor Diseases and Diagnosis." International Journal of Engineering and Information Systems (IJEAIS) 3(3): 1-10. 57. Nassr, M. S. and S. S. Abu Naser (2018). "Knowledge Based System for Diagnosing Pineapple Diseases." International Journal of Academic Pedagogical Research (IJAPR) 2(7): 12-19. 58. Mettleq, A. S. A. and S. S. Abu-Naser (2019). "A Rule Based System for the Diagnosis of Coffee Diseases." International Journal of Academic Information Systems Research (IJAISR) 3(3): 1-8. 59. Musleh, M. M. and S. S. Abu-Naser (2018). "Rule Based System for Diagnosing and Treating Potatoes Problems." International Journal of Academic Engineering Research (IJAER) 2(8): 1-9. 60. Khalil, A. J., et al. (2019). "Apple Trees Knowledge Based System." International Journal of Academic Engineering Research (IJAER) 3(9): 1-7. 61. Elzamly, A., et al. (2015). "Classification of Software Risks with Discriminant Analysis Techniques in Software planning Development Process." International Journal of Advanced Science and Technology 81: 35-48. 62. Elzamly, A., et al. (2015). "Predicting Software Analysis Process Risks Using Linear Stepwise Discriminant Analysis: Statistical Methods." Int. J. Adv. Inf. Sci. Technol 38(38): 108-115. 63. Elqassas, R. and S. S. Abu-Naser (2018). "Expert System for the Diagnosis of Mango Diseases." International Journal of Academic Engineering Research (IJAER) 2(8): 10-18. 64. Elsharif, A. A. and S. S. Abu-Naser (2019). "An Expert System for Diagnosing Sugarcane Diseases." International Journal of Academic Engineering Research (IJAER) 3(3): 19-27. 65. El-Mashharawi, H. Q. and S. S. Abu-Naser (2019). "An Expert System for Sesame Diseases Diagnosis Using CLIPS." International Journal of Academic Engineering Research (IJAER) 3(4): 22-29. 66. Dheir, I. and S. S. Abu-Naser (2019). "Knowledge Based System for Diagnosing Guava Problems." International Journal of Academic Information Systems Research (IJAISR) 3(3): 9-15. 67. El Kahlout, M. I. and S. S. Abu-Naser (2019). "An Expert System for Citrus Diseases Diagnosis." International Journal of Academic Engineering Research (IJAER) 3(4): 1-7. 68. Alshawwa, I. A., et al. (2019). "An Expert System for Coconut Diseases Diagnosis." International Journal of Academic Engineering Research (IJAER) 3(4): 8-13. 69. Al-Shawwa, M. and S. S. Abu-Naser (2019). "Knowledge Based System for Apple Problems Using CLIPS." International Journal of Academic Engineering Research (IJAER) 3(3): 1-11. 70. Ahmed, A., et al. (2019). "Knowledge-Based Systems Survey." International Journal of Academic Engineering Research (IJAER) 3(7): 1-22. 71. Akkila, A. N., et al. (2019). "Survey of Intelligent Tutoring Systems up to the end of 2017." International Journal of Academic Information Systems Research (IJAISR) 3(4): 36-49. 72. Almasri, A., et al. (2019). "Intelligent Tutoring Systems Survey for the Period 2000-2018." International Journal of Academic Engineering Research (IJAER) 3(5): 21-37. 73. Masri, N., et al. (2019). "Survey of Rule-Based Systems." International Journal of Academic Information Systems Research (IJAISR) 3(7): 1-23. 74. Ng, S., et al. (2010). "Ad hoc networks based on rough set distance learning method." Information Technology Journal 10(9): 239-251. 75. Owaied, H. H., et al. (2009). "Using rules to support case-based reasoning for harmonizing melodies." Journal of Applied Sciences 11(14): pp: 31-41. 76. Sulisel, O., et al. (2005). "Growth and Maturity of Intelligent Tutoring Systems." Information Technology Journal 7(7): 9-37. 77. Al-Qumboz, M. N. A. and S. S. Abu-Naser (2019). "Spinach Expert System: Diseases and Symptoms." International Journal of Academic Information Systems Research (IJAISR) 3(3): 16-22. 78. Baker, J., et al. "& Heller, R.(1996)." Information Visualization. Information Technology Journal 7(2). 79. Baker, J., et al. (1996). "Information Visualization." Information Technology Journal 7(2): pp: 403-404. 80. Anderson, J., et al. (2005). "Adaptation of Problem Presentation and Feedback in an Intelligent Mathematics Tutor." Information Technology Journal 5(5): 167-207.