نوع مقاله : مقاله پژوهشی
نویسندگان
1 دانش آموخته کارشناسی ارشد مهندسی مکانیک ماشین های کشاورزی، دانشگاه شهید چمران اهواز، اهواز، ایران
2 استادیار گروه مهندسی بیوسیستم، دانشگاه شهید چمران اهواز، اهواز، ایران
3 استادیار گروه مهندسی برق، دانشگاه شهید چمران اهواز، اهواز، ایران
چکیده
خرما، یکی از محصولات باغی واستراتژیک در منطقه و ایران است. متاسفانه درآمد حاصل از صادرات این محصول پرارزش، نسبت به حجم صادرات بالای آن مطلوب نیست، بخشی از این امر به کیفیت پایین آمادهسازی و بستهبندی محصول مربوط میشود. به نظر میرسد استفاده از فناوریهای نوین، مانند بینایی ماشین و پردازش تصویر، میتواند روند درجهبندی و جداسازی خرما را بهبود بخشد. در این پژوهش درجهبندی میوه خرمای رقم زاهدی، در سه مرحله تفکیک شده، شامل جداسازی کیفی خرما (کاملا رسیده، نیم رس و نارس)، درجهبندی بر اساس شکل و اندازه و جداسازی خرمای سالم از چروکیده انجام شده است. پس از تهیه تصویر میوهها، 11 ویژگی مورفولوژیکی، 9 ویژگی رنگی و 6 ویژگی بافتی به کمک روشهای پردازش تصویر استخراج شدند. بهترین ویژگیها برای تفکیک پذیری بهتر به کمک روش آنالیز تشخیص گامبهگام تعیین شدهاند. برای طبقهبندی نهایی از دو روش یادگیری ماشین، یعنی روش آماری آنالیز تشخیص و روش شبکه عصبی چند لایه پرسپترون استفاده شد. در نهایت، 6 ویژگی رنگی، 3 ویژگی اندازه و شکل و 3 ویژگی بافتی، بهعنوان بهترین ویژگیها در درجهبندی انتخاب شدهاند. دقت نهایی درجهبندی توسط روش آماری و شبکه عصبی به ترتیب 7/92 % و 90/93 % بهدست آمد. با توجه به دقت بالای هر دو روش، میتوان نتیجه گرفت که استفاده از روش پردازش تصویر در درجهبندی و جداسازی خرما با استفاده از ویژگیهای ظاهری موفقیتآمیز است.
کلیدواژهها
موضوعات
عنوان مقاله [English]
Grading zahedi dates based on external features using image processing and machine learning methods
نویسندگان [English]
- Mohammad Rasool Afifi 1
- Yaghoob Mansoori 2
- hassan zaki dizaji 2
- Gholamreza Akbarizadeh 3
1 MSC graduate, Department of Biosystems Engineering, Faculty of Agriculture, Shahid Chamran University of Ahvaz, Ahvaz, Iran
2 Department of Biosystems Engineering, Faculty of Agriculture, Shahid Chamran University of Ahvaz, Ahvaz, Iran
3 Department of Electrical Engineering, Faculty of Engineering, Shahid Chamran University of Ahvaz, Ahvaz, Iran
چکیده [English]
Introduction Date fruit is a strategic horticultural product in the Middle East that plays an important role as an economic product to develop exports. Iran is the second world producer that contains 14% production of date fruit in the world and has a high potential in order to ideally exploit this valuable product. Condidering the low price of Iran's exported dates due to poor preparation and packaging process it is necessary to use new technologies for classification and grading of them. The application of machine vision in agriculture has increased considerably in recent years.There are many fields in which computer vision is involved in order to develop precision agriculture. Machine vision systems by elimination of manual inspection in the field of postharvest technologies improve accurate and uniform quality control of agricultural products. In most of these applications, the method of image analysis for product categories, with the determination of some external features such as color, size, shape, and surface texture has been used (Blasco et al., 2012). Alohali used RGB images taken from Date fruits and defined a set of qualitative external features of dates and categorized them into three categories in terms of quality. One of the characteristics of the soft tissue was detected using color intensity distribution. The final precision of carefully designed system using a propagation neural network was 80% (Alohali, 2011). The size is a particular aspect of external appearance of fruits and vegetables; the price of agricultural products is usually related with their size; therefore, grading of fruits and vegetables into different size groups of size is always necessary in the postharvest handling and processing stages (Zhang et al., 2014). Texture is the other significant sensory quality attribute that has been frequently used in the external quality inspecting and grading systems for the agricultural product quality evaluation. Texture is closely related to some internal quality of fruits and vegetables, such as maturity and sugar content. Therefore, texture is one of the widely used indicators the consumer uses for quality assessment of fruits and vegetables. Texture analysis can also play an important role in defect recognition and segmentation in grading systems due to its powerful discriminating ability (Lee et al. 2008).
Materials and Methods The current study examined image processing technology for grading Zahedi cultivar dates in Khuzestan province. Each date fruit was placed under the camera and imaged. At the same time, the samples were classified by an experienced grader. Imaging was conducted in a lighting box to avoid the effects of ambient light. Capturing images was done by a digital camera using CCD sensor. External features of dates such as color, size, shape and surface texture were extracted by image processing methods using MATLAB software (Version R2013a, The Mathworks Inc., Natick, MA, USA). Eleven size and shape features, nine color features, and six external texture features were extracted. The features which led to better separablity for classification were selected using stepwise discriminant analysis (SDA). Selecting the best features is effective to increase accuracy and speed of the algorithm. Two methods of learning machine were used for final classification: discriminant analysis that is a statistical technique and neural networks (ANN). Discriminant analysis method and Neural networks were implemented in SPSS 22.0 and neurosolution 7.0 software respectively.
Results and Discussion The best channel to separate dates from background was identified by comparison of the histogram of 9 channels from RGB, HSI and Lab color spaces. The histogram graph, which has more breakdown in the range of intensities, is more suitable to apply thresholding operation because it has a good contrast with the background. Channel B from RGB color space was chosen to segment dates from background. Channel of B has a better contrast between the color channels and also its corresponding histogram intensity values led to the best separability. Five features of size and shape, three features of color and three features of external texture were selected by SDA method to reduce dimension of features space. Degrees marked from 1 to 3 for qualitative grading and sorting by size define levels of quality and determine size from big to small dates respectively. According to table 4, accuracy of classifications for grading, sorting by size and inspection of wrinkled date fruits from healthy ones were 93.6%, 94.4% and 90% respectively. Classifications by MLP neural networks were done. The most important factor for evaluation of neural networks is Correct classification rate (CCR%). The results based on CCR from Confusion matrix is reported in table 5. Accuracy of classifications for grading, sorting by size and inspection of wrinkled date fruits from healthy ones using ANN were 95.7%, 92.3% and 93.8% respectively.
Conclusion Final accuracy of classification using discriminant analysis and neural network was achieved 92.7% and 93.9% respectively. Results show relative superiority of neural networks over statistical methods due to its accuracy. According to high accuracy of classification using learning machine methods, it can be concluded that using image processing algorithm was successful in extracting external features for sorting and grading of dates.
کلیدواژهها [English]
- Image Processing
- Dates
- Discriminant Analysis
- External Features
- Neural Networks
- Al-Janobi, A. A. 2010. A prototype mechatronic system for inspection of date fruits. Unpublished report. Department of Agricultural Engineering King Saud University, Saudi Arabia. From http://collages. Ksu. edu. sa/papers/papers/003% 20Mvip% 20cd. pdf. accessed on March, 2, 2013.
- Al-Ohali, Y. 2011. Computer vision based date fruit grading system: Design and implementation. Journal of King Saud University-Computer and Information Sciences, 23(1), 29-36.
- Alrajeh K.M., Alzohairy, T.A.A. 2012. Date Fruits Classification using MLP and RBF Neural Networks. International Journal of Computer Applications, 41(10),36-41.
- Blasco, J., Aleixos, N., Cubero, S., Lorente, D., and Sun, W. 2012. Fruit, vegetable and nut quality evaluation and control using computer vision. In Sun, D. W. (Ed). Computer Vision Technology in the Food and Beverage Industries (pp. 379-399). Cambridge CB22 3HJ, United Kingdom: Woodhead Publishing.
- Chen, X., Xun, Y., Li, W., and Zhang, J. 2010. Combining discriminant analysis and neural networks for corn variety identification. Computers and Electronics in Agriculture, 71, 48-53.
- Cubero, S., Aleixos, N., Moltó, E., Gómez-Sanchis, J., and Blasco, J. 2011. Advances in machine vision applications for automatic inspection and quality evaluation of fruits and vegetables. Food and Bioprocess Technology, 4(4), 487-504.
- Du, C. J., and Sun, D.W. 2006. Learning techniques used in computer vision for food quality evaluation: a review. Journal of Food Engineering, 72(1), 39-55.
- ElMasry, G., Cubero, S., Moltó E., and Blasco, J. 2012. In-line sorting of irregular potatoes by using automated computer-based machine vision system. Journal of Food Engineering, 112(1),60-68.
- Gonzalez, R. C., Woods, R.E., and Eddins, S.L. 2004. Digital image processing using MATLAB. India: Pearson Education.
- Lee, D. J., Schoenberger, R., Archibald, J., and McCollum, S. 2008. Development of a machine vision system for automatic date grading using digital reflective near-infrared imaging. Journal of Food Engineering, 86(3), 388-398.
- Manickavasagan, A., Al-Mezeini, N.K., and Al-Shekaili, H.N. 2014. RGB color imaging technique for grading of dates. Scientia Horticulturae, 175, 87-94.
- Mollazade, K., M. Omid and A. Arefi. 2012. Comparing data mining classifiers for grading raisins based on visual features. Computers and Electronics in Agriculture, 84, 124-131.
- Muhammad, G. 2015. Date fruits classification using texture descriptors and shape-size features. Engineering Applications of Artificial Intelligence, 37:361–367.
- Pourdarbani, R., Ghassemzadeh, H.R., Seyedarabi, H., Nahandi, F.Z., and Vahed, M.M. 2015. Study on an automatic sorting system for Date fruits. Journal of the Saudi Society of Agricultural Sciences, 14(1): 83-90.
- Shajari, S. and Salah, A. 1396. Dates Export. 1st Ed. Agriculture Education Publisher. 12p. (In Persian).
- Solomon, C., and Breckon, T. 2011. Fundamentals of Digital Image Processing: A practical approach with examples in Matlab (First ed.) John Wiley and Sons, Oxford, United Kindom, 344.
- Zarechahooki,M.A. 2013. Analysis of the data in the study of natural resources with SPSS. (Second ed) .Tehran: Jahad Academic Publications.
- Zhang, B., Huang, W., Li, J., Zhao, C., Fan, S., Wu, J., and Liu, C. 2014. Principles, developments and applications of computer vision for external quality inspection of fruits and vegetables: A review. Food Research International, 62, 326-343.