Görüntü işleme teknikleri kullanılarak bazı meyvelerin sınıflandırılması


Tezin Türü: Yüksek Lisans

Tezin Yürütüldüğü Kurum: Ankara Üniversitesi, Fen Bilimleri Enstitüsü, Türkiye

Tezin Onay Tarihi: 2020

Tezin Dili: Türkçe

Öğrenci: DİLARA GERDAN

Danışman: MUSTAFA VATANDAŞ

Özet:

Bu tez çalışmasında, meyvelerin boyut ve renk özelliklerine göre sınıflandırılması amacıyla bir görüntü işleme algoritması sınıflandırma düzeni geliştirilmiştir. Bu amaçla meyve çeşidi olarak, Starkrimson Delicious ve Golden Delicious elma çeşitleri, Washington Navel ve Valencia Midknight portakal çeşitleri ile Ekmek ve Eşme ayva çeşitlerinden 50'şer örnek seçilerek toplam 300 meyve denemeye alınmıştır. Kumpas ve spektrofotometre ile okunan boyut ve renk değerleri, geliştirilen görüntü işleme algoritmasına girilerek meyveleri doğru sınıflama başarısı belirlenmiştir. Görüntü işleme algoritmasının sınıflandırma ünitesi entegrasyonuyla, meyveleri boyutlarına göre sınıflandırma başarısı Starkrimson Delicious çeşidinde % 88, Golden Delicious elma çeşidinde % 100, Washington Navel çeşidinde % 96, Valencia Midknight çeşidinde % 82 bulunmuştur. Ayva sınıflandırma işleminde, TS 1817' de sınıflandırmanın ağırlıklara göre yapıldığı göz önüne alınarak her bir ayva hassas terazide tartılmış, boyutlar ile ağırlık arasındaki ilişkiler ortaya konulmuştur. Sınıflandırma işlemi, her iki çeşit için en küçük ve en büyük çap değerlerinin belirlenip, algoritmaya kumpasla okunan çap ölçülerinin alt ve üst limit değerleri girilerek yapılmıştır. Bu yöntemle, Ekmek ayva çeşidinde % 95, Eşme ayva çeşidinde ise sınıflama başarısı % 86 bulunmuştur. Her bir renk kanalı için, spektrofotometreden alınan alt ve üst limit değerleri algoritmaya girildiğinde elma çeşitlerinin birbirleri arasında renk bakımından sınıflara ayrılmasında başarı elma çeşitleri içinde % 100 bulunmuştur. Diğer taraftan görüntü işleme algoritmasıyla meyvelerde okunan boyut ve renk değerleri, veri madenciliğinde kullanılan tahminleyici teknikler kullanılarak değerlendirilmiştir. Bu amaçla, K En Yakın Komşuluk (KNN), Karar Ağacı (DT), Naive Bayes sınıflandırma ve Çok Katmanlı Algılayıcı Sinir Ağı (MLP) algoritmalarından yararlanılmıştır. Algoritmalar 10-kez çapraz doğrulama yöntemi ile çalıştırılmıştır. Ayrıca üst öğrenme algoritmalarından Rastgele Orman (RO) yöntemi seçilmiştir. Yapay sınıflandırıcıların eğitilerek denenmesinde ise boyut ve renk ölçümlerinin doğru meyve sınıfını tahminleme başarısı, KNN için % 93,6, DT için % 90,3, Naive Bayes % 88,3, MLP % 92,6 ve RO için % 94,3 bulunmuştur. In this thesis, an image processing algorithm and classification unit were developed to classify the fruits according to their size and color characteristics. For this purpose, a total of 300 fruits (50 fruit samples from each of the Starkrimson Delicious and Golden Delicious apple varieties, Washington Navel and Valencia Midknight orange varieties, Ekmek and Eşme quince varieties) were used in the experiments. The size and color values measured with a caliper and a spectrophotometer were entered in the developed image processing algorithm to determine the success rates of classifying the fruits. The integration of image processing algorithm with the classification unit classified 88% of the Starkrimson Delicious variety, 100% of the Golden Delicious apple variety, 96% of the Washington Navel variety, and 82% of the Valencia Midknight variety successfully. In the quince classification process, taking into consideration that the classification was made according to the weights in TS 1817 standard, each quince was weighed on a precision scale and the relationship between dimension and weight was determined. The smallest and largest diameters for both quince varieties were determined, then the highest and lowest diameters of each fruit were entered in the algorithm for classification. The success rates of classification with this method were found to be 95% for Ekmek and 86% for Eşme quince varieties, respectively. For each color channel, when the upper and lower limit values from the spectrophotometer were entered in the algorithm, the classification success was found to be 100% for the apple varieties. On the other hand, the size and color values of fruits with image processing algorithm were also evaluated by using estimation techniques in data mining. For this purpose, K Nearest Neighbor (KNN), Decision Tree (DT), Naive Bayes classification and Multi-Layer Perceptron Neural Network (MLP) algorithms were used. The algorithms were run using 10-fold cross-validation method. In addition, Random Forest (RO) method was chosen from the meta learning algorithms. The successes of predicting the correct fruit class and color measurements in training and testing of artificial classifiers were 93.6% for KNN, 90.3% for DT, 88.3% for Naive Bayes, 92.6% for MLP and 94.3% for RO, respectively.