Different Apple Varieties Classification Using kNN and MLP Algorithms

Kadir Sabancı


In this study, three different apple varieties grown in Karaman province are classified using kNN and MLP algorithms. 90 apples in total, 30 Golden Delicious, 30 Granny Smith and 30 Starking Delicious have been used in the study. DFK 23U445 USB 3.0 (with Fujinon C Mount Lens) industrial camera has been used to capture apple images. 4 size properties (diameter, area, perimeter and fullness) and 3 color properties (red, green, blue) have been decided using image processing techniques through analyzing each apple image.  A data set which contains 7 physical features for each apple has been obtained. Classification success rates and error rates have been decided changing the neuron numbers in the hidden layers in the classification using MLP model and in different neighbor values in the classification made using kNN algorithm. It is seen that the classification using MLP model is much higher. While the success rate of classification made according to apple type is 98.8889%.


Image processing;Apple classification;kNN;MLP

Full Text:

Submitted: 2018-12-21 10:41:46
Published: 2016-12-26 00:00:00
Search for citations in Google Scholar
Related articles: Google Scholar


He, Y., Li, X., Shao, Y., (2007). Fast Discrimination of Apple Varieties Using Vis/NIR Spectroscopy, Vol. 10(1). Pages. 9-18.

Ronald, M., Evans, M., (2016). Classification of Selected Apple Fruit Varieties Using Naive Bayes, Indian Journal of Computer Science and Engineering (IJCSE), Vol. 7(1) Pages. 13-19.

Wu, X., Wu, B., Yang, N., (2016). Classification of Apple Varieties Using Near Infrared Reflectance Spectroscopy and Fuzzy Discriminant C-Means Clustering Model, Journal of Food Process Engineering, doi: 10.1111/jfpe.12355.

Shahin, M.A., Tollner, E.W., McClendon, R.W., Arabnia, H.R., (2013). Apple Classification Based on Surface Bruises Using Image Processing and Neural Networks, Transactions of the ASAE, Vol. 45(5). Pages. 1619–1627.

Witten I.H., Frank E., Hall M.A., (2011). Data mining: practical machine learning tools and techniques. Elsevier, London.

Patterson, D., Liu, F., Turner, D., Concepcion, A., Lynch, R., (2008). Performance Comparison of the Data Reduction System. Proceedings of the SPIE Symposium on Defense and Security, Mart, Orlando, FL, pp. 27-34.

Hall, M., Frank, E., Holmes, G., Pfahringer, B., Reutemann, P. & Witten, I. H., (2009). The WEKA Data Mining Software: An Update, SIGKDD Explorations, Vol. 11(1). Pages. 10-18.

Wang, J., Neskovic, P., & Cooper, L. N., (2007). Improving nearest neighbour rule with a simple adaptive distance measure, Pattern Recognition Letters, Vol. 28(2). Pages. 207-213.

Zhou, Y., Li, Y. & Xia, S., (2009). An improved KNN text classification algorithm based on clustering, Journal of computers, Vol. 4(3). Pages. 230-237.

Abstract views:


Copyright (c) 2018 International Journal of Intelligent Systems and Applications in Engineering

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
© Prof.Dr. Ismail SARITAS 2013-2019     -    Address: Selcuk University, Faculty of Technology 42031 Selcuklu, Konya/TURKEY.