Next Article in Journal
Sub-Canopy Topography Estimation from TanDEM-X DEM by Fusing ALOS-2 PARSAR-2 InSAR Coherence and GEDI Data
Previous Article in Journal
A Critical Review of Nonlinear Damping Identification in Structural Dynamics: Methods, Applications, and Challenges
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Letter

Application of Deep and Machine Learning Using Image Analysis to Detect Fungal Contamination of Rapeseed

by
Krzysztof Przybył
1,
Jolanta Wawrzyniak
1,
Krzysztof Koszela
2,*,
Franciszek Adamski
1 and
Marzena Gawrysiak-Witulska
1
1
Food Sciences and Nutrition, Department of Food Technology of Plant Origin, Poznan University of Life Sciences, Wojska Polskiego 31, 60-624 Poznan, Poland
2
Department of Biosystems Engineering, Poznan University of Life Sciences, Wojska Polskiego 50, 60-625 Poznan, Poland
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(24), 7305; https://doi.org/10.3390/s20247305
Submission received: 4 November 2020 / Revised: 13 December 2020 / Accepted: 16 December 2020 / Published: 19 December 2020
(This article belongs to the Section Intelligent Sensors)

Abstract

:
This paper endeavors to evaluate rapeseed samples obtained in the process of storage experiments with different humidity (12% and 16% seed moisture content) and temperature conditions (25 and 30 °C). The samples were characterized by different levels of contamination with filamentous fungi. In order to acquire graphic data, the analysis of the morphological structure of rapeseeds was carried out with the use of microscopy. The acquired database was prepared in order to build up training, validation, and test sets. The process of generating a neural model was based on Convolutional Neural Networks (CNN), Multi-Layer Perceptron Networks (MLPN), and Radial Basis Function Networks (RBFN). The classifiers that were compared were devised on the basis of the environments Tensorflow (deep learning) and Statistica (machine learning). As a result, it was possible to achieve the lowest classification error of 14% for the test set, 18% classification error for MLPN, and 21% classification error for RBFN, in the process of recognizing mold in rapeseed with the use of CNN.

1. Introduction

Recently global demand for functional food is still growing among producers and consumers. Societies are looking for food, which has a substantial influence on improving their health condition, well-being, and reduces the possible risk of developing diseases. Functional food is fundamentally based on a diversified amount of bioactive compounds, among other things such as fiber, vitamins, and polyphenols, which have an influence on health. Having in mind the customer’s nutritional and dietary awareness and the need to follow a well-balanced diet, endeavors are made to look for products that will support the human organism and protect against health complaints and health condition. Rape, as one the plants belonging to the kind of oleaginous plants, is characterized by a high concentration of bioactive compounds such as tocopherols, phytosterols, beta-carotene, and polyphenol compounds [1,2,3,4]. Research that is currently being done shows that the use of rapeseed varieties that are free from harmful erucic acid allows for the obtaining of oil of better nutritional value [2,5]. It is also worth mentioning that winter rape as a cultivated oleaginous plant, is not only a source of plant oil for food industry and consumption but it is also cultivated all around the world as a raw material for feed, biodiesel [6,7,8,9,10] and biolubricant production [11]. Within the last several dozens of years (1994–2017), rape production has been continually growing and now amounts to 72.24 million tons (FAO 2018), and 17.81 million tons of rape is produced in Europe. According to statistical data from 2018, Poland is one of the ten countries in the world that has an influence on rape production and amounts to 2% of the world’s production (FAO 2018). On account of production scale and nutritional values of rapeseed oil, it also seems justified to place this oil in the food pyramid. Nevertheless, research shows that the quality of rapeseed oil is heavily dependent on the storage method, cultivar selection, and pre-harvest conditions [3]. Improper selection of storage conditions, i.e., incorrect temperature and seed moisture content higher than 7%, which is recommended in long-term storage of rape seeds [12,13,14] can lead to mold fungal growth [15,16,17] among other things, xerophilous kinds [18]. Therefore, it seems justified to search for modern, noninvasive methods that support the evaluation of the quality of the conditions of rape and eliminate contaminations including mold at an early stage of storage.
Currently, one of the most modern techniques of image processing [19,20] and image classification [21,22] in decision-making processes is the use of artificial intelligence methods [23,24]. In recent years, artificial neural networks have become so popular and effective that they started to be used in various problematic areas, among other things, in the optimization of food processes [25]. On account of the complexity of neural network processes supporting, among other things, visualization techniques [26], a proper formulation of decision-making problems is required, hence, it is possible to solve given problems. For the last couple years, Artificial Neural Networks (ANN) have been supported by Convolutional Neural Networks (CNN) [27,28,29]. The difference depends on the interpretation of network of input variables, in this case, images. The traditional technique of learning with ANN takes place by selecting, among other things, adequate parameters (descriptors) indicated in an image with previously carried out processing functions, filtration, edge detection, and texture, and with the use of learning algorithms such as the fastest neighbor method, Kohonen’s method, and the K-average method. Image pixels [30,31] are exclusively responsible for the parameter determining the input variables in CNN and the learning process of those networks requires the processing of more than two hidden layers (the so-called multi-layer learning directly from the input to output layer). In view of the above, in CNN networks it is not required to isolate the given functions from images before the learning process, as it takes place with machine learning [21]. In the literature, it is now observed that CNN networks substantially increase classification effectiveness in comparison with traditional methods of machine learning [32]. In view of the above, the research made a comparison of the effectiveness of detecting rapeseed affected by mold between Multi-Layer Perceptron (MLP), Radial Basis Function (RBF), and CNN networks.
The utilitarian goal of this research was to devise and compare neural models capable of fast and non-invasive identification of filamentous fungi affecting rapeseed stored in different humidity and temperature conditions. The model data constituted images of the morphological structure of rapeseed affected by mold to different degrees, obtained with a microscopic technique.

2. Materials and Methods

2.1. Preparation of Samples

The research material was rapeseed cv. PR46W20 with initial moisture content of 6.15 ± 0.21% harvested at The Experimental Agricultural Facility in Swadzim in 2019, belonging to Poznań University of Life Sciences. In order to obtain samples of rapeseed with different degrees of mold contamination, the selected seeds were subject to storage experiments. Prior to carrying out the experiment, the seeds were brought to the assumed storage conditions, i.e., 12 and 16% seed moisture content on a wet basis (w.b.) and 25 and 30 °C, according to the procedure described by Wawrzyniak et al. (2018) [17]. In order to do this, 4 kg samples of rapeseed were mixed intensively and sprayed with the proper mass of distilled water. The amount of water used to moisturize the seeds was determined on the basis of mass balance. The samples of seeds after moisturizing were put in polyethylene bags and then conditioned for 24 h at a temperature of 5 °C. Next, the moisturized rape seeds were stored in stable humidity and temperature conditions in the environmental chamber described earlier by Wawrzyniak et al. (2013) for the period of 30 days [33]. The constant moisture content in seeds was obtained by maintaining relative air humidity in spaces between seeds at a constant level with the use of saturated salt solutions (KCl, KBr, and BaCl2) present in the hydrogastric devices of the chamber. Relative air humidity balance corresponding to the requested moisture content of the seeds in both temperatures was determined with Halsey’s equation [34]. During storage, the temperature in the seed mass was monitored with thermocouples Cu-Konstantan, and relative humidity in spaces between seeds was monitored with humidity probes with capacitive sensors. Besides, during storage, the moisture content of the seed was monitored with an electronic moisture analyzer (Sartorius MA30, Germany). At the same time, at six-day intervals, samples were taken for further research aimed at the detection of seed contamination with filamentous fungi.

2.2. Image Preparation by Microscope

In order to acquire graphic data, isolated rapeseed with different degrees of filamentous fungi contamination were cut with a microtome. Next, the morphological structure of the isolated seeds was observed with a stereoscopy microscope. During the research, a series of digital images was used for the rapeseed samples. Examples of the trials are presented in Figure 1 and Figure 2. To acquire microscope images, an AxioCam MRc5 camera was used, which is characterized by high effectiveness when working with difficult specimens, among other things, rapeseed (seed size about 1–2 mm). A dynamic range of 1:1300 with 12-bit digitization ensuing loss-free image dynamics for optimal capture of various color intensities. Prior to acquiring image acquisition, calibration of the AxioCam MRc5 was also carried out, which plays a crucial role especially in achieving repetition with images from rapeseed trials. As a result, 520 images were acquired with a resolution of 2572 × 1936, 32-bit color depth, saved in.TIFF format. The research was carried out in The Electron and Confocal Microscopy Laboratory at the Adam Mickiewicz University in Poznań.

2.3. Image Processing by Software

Another stage of the research required the preparation of ANN for the learning process, in this case, samples of rapeseed in the form of numerical data were used. In order to this, the MatLab environment and original software “PID system” were used. The first step required adaptation of the rapeseed sample in such a way to determine its features, i.e., the important standard of a digital image. Figure 3 shows stages of creating a standard from an image in order to isolate only fungi contamination in the rapeseed sample. Using the “PID system” in image processing and analysis in order to create the original image, which was acquired with digital microscopy, a filtration was carried out based on the maximum gradient with a Kirsch mask [35]. The Kirsch compass mask is used to attribute maximum magnitude to the central element with filtration of eight masks rotated to each other at 45 degrees [36]. In another stage, the cutting of the background inside the rapeseed sample was carried out. In order to do this, it was necessary to prepare the original script in MatLab supporting this way of cutting out image fragments. Secondary images were extracted to descriptors of image texture thanks to the use of the original software “PID system” with the module of batch image processing. The “PID system” allows for the extraction of image descriptors and the use of various operations on an image, including segmentation, filtration, and making masks (for example Laws’ masks) [19,37]. It needs to be added that the Gray-Level Co-occurrence Matrices (GLCM) matrix algorithm was used in the research in order to isolate descriptors of secondary images [19,38,39]. The aim was to achieve a better visual effect of substantial details for secondary images that were created. Rapeseed including pathogens, which are graphic objects, are very difficult to visualize because of their tiny size. The application of this technique allowed for fast, non-invasive isolation of details from an image on the basis of pixels with determined values appearing in an image. The “PID system” software together with the MatLab environment allowed for the creation of a learning set (file with cry extension) including 520 learning cases received from secondary images. Each case included 18 selected descriptors of image texture [38].

2.4. The Structure of the Neural Network

Within the scope of the research, networks were prepared on the basis of data characteristics for a given network type: MLP/RBF and CNN. The first method of designing a network was based on preparing a learning set Z1 in order to determine numerical data of texture from a secondary image. The process of acquiring data was carried out by image processing and analysis with the “PID system” and MatLab. As a result of the above procedure, 18 representative features of an image were obtained (variables such as angular second moment, contrast, correlation, sum of square variance, inverse difference moment pairs of pixels, sum of average pairs of pixels, sum of variance, entropy, difference variance, difference entropy, and info. The measure of correlation one and two, cluster prominence, cluster shade, dissimilarity, homogeneity, maximum probability, and inverse difference normalized) on the basis of GLCM matrix for each learning (secondary) [23,38,40,41,42,43]. The second method of designing a network was based on determining descriptors (secondary images) together with information determining fungi contamination of rapeseed, which were used to build up convolutional neural networks as input variables for learning set Z2. In order to improve the effectiveness of recognizing the primary image on the first stage, a rotation and image cutting with Python coding was carried out as well as the modification of images (moving and zooming, each time with random values) from the learning set individually for each sample before each learning session. Thanks to these operations, the model that was trained received slightly different images created from the same primary samples belonging to the learning set, which each learning session. After building learning set Z2, image convolution was used, from which a map of features with determined shape (width, height, and channels) was acquired from the microscopic image (primary image) with selected resolution. Each image pixel was assigned to model value “RGBA”. The structure of the devised CNN network included (Figure 4):
  • Input layer, i.e., 685 × 685 × 4 bitmap, in which 32-bit primary images in RGBA format were included;
  • Convolution layers for each loaded image, 8, 16, 32, or 64 filters were used. The kernel size in the first two convolution layers was 5 × 5, and 3 × 3 in the next two. Parameter “strides” determined the dimension of the convolution step (the distance of the convolution window that is moved) expressed as (width, height) was set as value (2, 2) [44,45];
  • The pooling layer was used to reduce information included in previously acquired images. Operation MaxPooling allowed for the reduction in the resolution of bitmaps (learning case). For each map of features, 2 × 2-pixel areas were singled out. For each region, the maximum pool algorithm was used, i.e., the resultant pixel with the highest value was selected, and other pixels were omitted. Each operation resulted in image reduction in the outermost areas of this map. The “padding” parameter was set as “same”. It means the outermost areas of the matrix field that was processed were added after each MaxPooling operation in order to avoid excess data loss. As a result of this, the data size of the operation was the same as the size of input data. Convolution depth was doubled for each two-fold width and height reduction of the analyzed image. It minimized the problem of fitting networks to training sets via gradual resolution reduction of the processed image during tensor operations. Reduction of resolution on the stage of initial data processing could lead to the loss of some data and would affect the prediction abilities of the created network;
  • A thick (fully connected) layer including 288 neurons with activation function “relu”, and one neuron with activation function “sigmoid”. The function of activating a rectified linear unit, causes it to return the standard activation ReLu with default values within the range: max (y, 0), for which basic maximum equals 0 and value “y” is treated as an input tensor. On the other hand, for low values (<=5) sigmoid returns a value close to zero, for high values (>5) the result of the function is close to one.

3. Results and Discussion

3.1. Results of Machine Learning

ANN simulations were carried out with deep and shallow learning. In the process of generating networks with the method of machine learning, Statistica software was used. As a result, RBF and MLP typologies were tested. It resulted that MLP networks were characterized by higher classification accuracy than RBF networks (Table 1). Among MLP-type networks, the one which received the lowest RMSE rate was selected. Table 1 presents the results of the machine learning process and determined, selected input variables (18 descriptors of image texture). An adequate MLP network was created on the basis of 18 input variables, 13 neurons in the hidden layer, and 2 neurons in the output layer (Figure 5). Effectiveness of an MLP 18:18-13-2:1 network was reached on the level: 0.89, RMSE: 0.17, and MSE: 0.03 on account of the rate of proper classification (accuracy). During the process of machine learning, BP algorithms were used, i.e., the function of learning with the backpropagation algorithm and the function of conjugate gradient CG. In the case of the RBF network, worse classification effectiveness was observed than in MLP and CNN networks. For comparison, the RBF 18:18-15-2:1 network structure was characterized by the same input variables (texture parameters) such as in the case of the MLP 18:18-13-2:1 network, 15 neurons in the hidden layer, 2 neurons in the output layer (Figure 5). RMS error in RBF 18:18-15-2:1 was 0.21 and MSE: 0.04. During the process of learning the RBF network, K-Means (KM), K-Nearest Neighbor (KN), and Pseudoinversion (PI) algorithms were used. The main aim in the process of the learning network was to reach the lowest RMSE error. In analyzing the level of difficulty in quick and effective recognition of pathogen (on account of different stages of its development) in rapeseed, different variants of a selection of input variables, i.e., descriptors of image texture, were taken into consideration. It is worth noticing that the GLCM matrix includes many more Haralick’s descriptors [23,38]. Unfortunately, using all texture discriminants caused the networks to overlearn. It concerned both RBF and MLP typology.

3.2. Results of Deep Learning

Table 1 presents a comparison of network results with deep learning. The process of network simulation was carried out in the Anaconda environment (https://www.anaconda.com/), framework Tensorflow [45] and Keras library supporting image classification [44]. The optimal CNN network, which was characterized by the highest effectiveness in detecting a pathogen in rapeseed consisted of an input layer, three hidden convolution layers, one hidden layer of thickly connected units, and one neuron in the output layer determining a two-state variable informing about the presence or lack of presence of the pathogen (Figure 6). Each learning case determined the bitmap of a primary image, i.e., as it was mentioned in methods, it is a 685 × 685 resolution image with 32-bit color depth acquired with a stereoscope. The four first layers constitute alternant laid hidden layers Conv2D with Max Pooling. After convolution series, the multidimensional tensor variable was reduced to a univariate variable and transferred to another layer of thickly connected neurons [45]. In the last layer, there was only one neuron acting as an adder returning a single value from the range (0, 1). An adaptive algorithm, “Adam”, was used as an optimizer. Function “relu” was used as the activation function in the first layers and in the hidden layers. On account of the coefficient of accurate qualifications (accuracy) it was possible to achieve the effectiveness of a CNN network on the level of: 0.89, the RMS error value was: 0.24, and MSE value was: 0.06.
On the basis of the literature and research experience, it is possible to confirm the effectiveness of pathogen identification on rapeseed with the use of deep learning. Despite the fact that the analyzed trials of rapeseed were affected by fungi to a lesser or greater degree, the application of deep and machine learning allowed for the achievement of satisfying results with a high degree of accuracy. Very good results of the identification of fungi contamination in rapeseed were achieved with machine learning but the MLP network was characterized by a higher testing value (0.90) than in the case of an RBF network whose testing value was (0.85). Finally, the best effects of learning for the learning set on the level of 0.97 was achieved with the simulation of a CNN network. The optimal CNN network was characterized by the lowest testing error. The reason for weaker results with machine learning could be the difficult size (a diameter of about 1–2 mm) and morphological structure of rapeseed. Nevertheless, further research is being done in order to optimize this process. The application of modern techniques, including neural networks, will allow for the optimization of the process of contamination detection, including fungal contamination of rapeseed in the early stage of storage. It is worth pointing out that in the face of shrinking cultivation areas, it seems justified to look for methods facilitating an effective crop of oleaginous plants. In the future, there is an intention to implement such models, for example, in expert systems, which would allow, among other things, a non-invasive massive scale evaluation of the quality condition of rapeseed.

4. Conclusions

On the basis of the research carried out, it was found that classification error of fungi contamination in rapeseed with the use of deep and machine learning for the devised networks fluctuated between 14 and 21% in relation to the testing set.
It was observed that in the case of deep learning with a CNN network, a similar rate of classification accuracy on the level of 0.89 was achieved, as in the case of machine learning with an MLP network. In case of the RBF network, the rate of classification accuracy was 0.85.
It turned out that the topologies of CNN and MLP networks were a more accurate tool for identifying the stage of fungi condition of rapeseed than the typology of RBF network.
It can be observed that the reduction in the number of input variables in the MLP network had an influence on improving the effectiveness of recognizing the quality condition of rapeseed.

Author Contributions

Conceptualization, K.P. and J.W.; methodology, K.P., J.W., M.G.-W. and K.K.; software, F.A. and K.P.; validation, F.A. and K.P.; formal analysis, K.K. and M.G.-W.; investigation, J.W., K.K. and K.P.; resources, K.P.; data curation, K.P.; writing—original draft preparation, K.P.; writing—review and editing, J.W. and K.K.; visualization, K.P. and F.A.; supervision, M.G.-W. and K.K. All authors have read and agreed to the published version of the manuscript.

Funding

The authors are grateful for the financial support provided by the Poznań University of Life Sciences, Poland, within the framework of fund no. 506.752.03.00.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gawrysiak-Witulska, M.; Siger, A.; Nogala-Kalucka, M. Degradation of tocopherols during near-ambient rapeseed drying. J. Food Lipids 2009, 16, 524–539. [Google Scholar] [CrossRef]
  2. Szydłowska-Czerniak, A.; Bartkowiak-Broda, I.; Karlović, I.; Karlovits, G.; Szłyk, E. Antioxidant capacity, total phenolics, glucosinolates and colour parameters of rapeseed cultivars. Food Chem. 2011, 127, 556–563. [Google Scholar] [CrossRef] [PubMed]
  3. Gawrysiak-Witulska, M.; Siger, A.; Rusinek, R. Degradation of tocopherols during rapeseed storage in simulated conditions of industrial silos. Int. Agrophys. 2016, 30, 39–45. [Google Scholar] [CrossRef]
  4. Wawrzyniak, J.; Gawrysiak-Witulska, M.; Rudzińska, M. Dynamics of phytosterol degradation in a bulk of rapeseed stored under different temperature and humidity conditions. J. Stored Prod. Res. 2019, 83, 292–304. [Google Scholar] [CrossRef]
  5. Hofius, D.; Sonnewald, U. Vitamin E biosynthesis: Biochemistry meets cell biology. Trends Plant Sci. 2003, 8, 6–8. [Google Scholar] [PubMed]
  6. Unal, H.; Sincik, M.; Izli, N. Comparison of some engineering properties of rapeseed cultivars. Ind. Crops Prod. 2009, 30, 131–136. [Google Scholar] [CrossRef]
  7. Bajpai, D.; Tyagi, V.K. Biodiesel: Source, Production, Composition, Properties and Its Benefits. J. Oleo Sci. 2006, 55, 487–502. [Google Scholar] [CrossRef] [Green Version]
  8. Kurtulmuş, F.; Ünal, H. Discriminating rapeseed varieties using computer vision and machine learning. Expert Syst. Appl. 2015, 42, 1880–1891. [Google Scholar] [CrossRef]
  9. Encinar, J.M.; Pardal, A.; Sánchez, N.; Nogales, S. Biodiesel by transesterification of rapeseed oil using ultrasound: A kinetic study of base-catalysed reactions. Energies 2018, 11, 229. [Google Scholar]
  10. Santaraite, M.; Sendzikiene, E.; Makareviciene, V.; Kazancev, K. Biodiesel production by lipase-catalyzed in situ transesterification of rapeseed oil containing a high free fatty acid content with ethanol in diesel fuel media. Energies 2020, 13, 2588. [Google Scholar] [CrossRef]
  11. Encinar, J.M.; Nogales-Delgado, S.; Sánchez, N.; González, J.F. Biolubricants from rapeseed and castor oil transesterification by using titanium isopropoxide as a catalyst: Production and characterization. Catalysts 2020, 10, 366. [Google Scholar] [CrossRef] [Green Version]
  12. Gawrysiak-Witulska, M.; Siger, A.; Wawrzyniak, J.; Nogala-Kalucka, M. Changes in Tocochromanol Content in Seeds of Brassica napus L. During Adverse Conditions of Storage. J. Am. Oil Chem. Soc. 2011, 88, 1379–1385. [Google Scholar] [CrossRef]
  13. Kasprzycka, A.; Skiba, K.; Tys, J. Influence of storage conditions on microbial quality of rapeseed cake and middlings. Int. Agrophys. 2010, 24, 261–265. [Google Scholar]
  14. Rusinek, R.; Kobyłka, R. Experimental study and discrete element method modeling of temperature distributions in rapeseed stored in a model bin. J. Stored Prod. Res. 2014, 59, 254–259. [Google Scholar] [CrossRef]
  15. Sankaran, S.; Mishra, A.; Ehsani, R.; Davis, C. A review of advanced techniques for detecting plant diseases. Comput. Electron. Agric. 2010, 72, 1–13. [Google Scholar] [CrossRef]
  16. Zhao, Y.-R.; Yu, K.-Q.; Li, X.; He, Y. Detection of Fungus Infection on Petals of Rapeseed (Brassica napus L.) Using NIR Hyperspectral Imaging. Sci. Rep. 2016, 6, 38878. [Google Scholar]
  17. Wawrzyniak, J.; Gawrysiak-Witulska, M.; Ryniecki, A. Management Control Points Related to the Lag Phase of Fungal Growth in a Stored Rapeseed Ecosystem. J. Am. Oil Chem. Soc. 2018, 95, 1223–1235. [Google Scholar] [CrossRef]
  18. Janda, K.; Markowska-Szczupak, A. Relationships Between Fungal Contamination and Some Physicochemical Properties of Rapeseeds. Ekologia 2015, 34, 65–71. [Google Scholar] [CrossRef] [Green Version]
  19. Przybył, K.; Gawałek, J.; Koszela, K.; Wawrzyniak, J.; Gierz, L. Artificial neural networks and electron microscopy to evaluate the quality of fruit and vegetable spray-dried powders. Case study: Strawberry powder. Comput. Electron. Agric. 2018, 155, 314–323. [Google Scholar]
  20. Koszela, K.; Otrząsek, J.; Zaborowicz, M.; Boniecki, P.; Mueller, W.; Raba, B.; Lewicki, A.; Przybył, K. Quality assessment of microwave-vacuum dried material with the use of computer image analysis and neural model. In Proceedings of the International Society for Optical Engineering, Athens, Greece, 5–6 April 2014. [Google Scholar]
  21. Ma, H.; Liu, Y.; Ren, Y.; Wang, D.; Yu, L.; Yu, J. Improved CNN Classification Method for Groups of Buildings Damaged by Earthquake, Based on High Resolution Remote Sensing Images. Remote Sens. 2020, 12, 260. [Google Scholar] [CrossRef] [Green Version]
  22. Przybył, K.; Duda, A.; Koszela, K.; Stangierski, J.; Polarczyk, M.; Gierz, Ł. Classification of Dried Strawberry by the Analysis of the Acoustic Sound with Artificial Neural Networks. Sensors 2020, 20, 499. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  23. Przybył, K.; Boniecki, P.; Koszela, K.; Gierz, Ł.; Łukomski, M. Computer vision and artificial neural network techniques for classification of damage in potatoes during the storage process. Czech J. Food Sci. 2019, 37, 135–140. [Google Scholar]
  24. Boniecki, P.; Zaborowicz, M.; Pilarska, A.; Piekarska-Boniecka, H. Identification Process of Selected Graphic Features Apple Tree Pests by Neural Models Type MLP, RBF and DNN. Agriculture 2020, 10, 218. [Google Scholar] [CrossRef]
  25. Przybył, K.; Gawałek, J.; Koszela, K. Application of artificial neural network for the quality-based classification of spray-dried rhubarb juice powders. J. Food Sci. Technol. 2020. [Google Scholar] [CrossRef]
  26. Nowakowski, K.; Boniecki, P.; Tomczak, R.J.; Kujawa, S.; Raba, B. Identification of malting barley varieties using computer image analysis and artificial neural networks. In Proceedings of the SPIE—The International Society for Optical Engineering, Kuala Lumpur, Malaysia, 7–8 April 2012. [Google Scholar]
  27. Kujawa, S.; Mazurkiewicz, J.; Mueller, W.; Gierz, Ł.; Przybył, K.; Wojcieszak, D.; Zaborowicz, M.; Koszela, K.; Boniecki, P. Identification of co-substrate composted with sewage sludge using convolutional neural networks. In Proceedings of the Eleventh International Conference on Digital Image Processing, Guangzhou, China, 10–13 May 2019. [Google Scholar]
  28. Bauer, A.; Bostrom, A.G.; Ball, J.; Applegate, C.; Cheng, T.; Laycock, S.; Rojas, S.M.; Kirwan, J.; Zhou, J. Combining computer vision and deep learning to enable ultra-scale aerial phenotyping and precision agriculture: A case study of lettuce production. Hortic. Res. 2019, 6, 70. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  29. Jiang, X.; Wang, Y.; Liu, W.; Li, S.; Liu, J. CapsNet, CNN, FCN: Comparative Performance Evaluation for Image Classification. Int. J. Mach. Learn. Comput. 2019, 9, 840–848. [Google Scholar] [CrossRef]
  30. Das, S. CNN Architectures: LeNet, AlexNet, VGG, GoogLeNet, ResNet and more. Medium 2017. Available online: https://medium.com/analytics-vidhya/cnns-architectures-lenet-alexnet-vgg-googlenet-resnet-and-more-666091488df5 (accessed on 4 September 2020).
  31. Liu, C.; Sun, W.; Chao, W.; Che, W. Convolution neural network for relation extraction. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer: Berlin/Heidelberg, Germany, 2013; Volume 8347, pp. 231–242. ISBN 9783642539169. [Google Scholar]
  32. Shawky, O.A.; Hagag, A.; El-Dahshan, E.-S.A.; Ismail, M.A. Remote sensing image scene classification using CNN-MLP with data augmentation. Optik 2020, 221, 165356. [Google Scholar] [CrossRef]
  33. Wawrzyniak, J.; Ryniecki, A.; Gawrysiak-Witulska, M. Kinetics of mould growth in the stored barley ecosystem contaminated with Aspergillus westerdijkiae, Penicillium viridicatum and Fusarium poae at 23–30 °C. J. Sci. Food Agric. 2013, 93, 895–901. [Google Scholar]
  34. ASABE. ASABE Standards D245.5. In Moisture Relationships of Plant-Based Agricultural Products; American Society of Agricultural Engineers: St. Joseph, MI, USA, 2007; pp. 538–550. [Google Scholar]
  35. Muthukrishnan, R.; Radha, M. Edge Detection Techniques for Image Segmentation. Int. J. Comput. Sci. Inf. Technol. 2011, 3, 259–267. [Google Scholar] [CrossRef]
  36. Chen, Y.; Li, X.; Cheng, Z.; Cheng, Y.; Zhai, X. Multidirectional edge detection based on gradient ghost imaging. Optik 2020, 207, 163768. [Google Scholar] [CrossRef]
  37. Przybył, K.; Ryniecki, A.; Niedbała, G.; Mueller, W.; Boniecki, P.; Zaborowicz, M.; Koszela, K.; Kujawa, S.; Kozłowski, R.J. Software supporting definition and extraction of the quality parameters of potatoes by using image analysis. In Proceedings of the Eighth International Conference on Digital Image Processing, Chengdu, China, 20–22 May 2016. [Google Scholar]
  38. Haralick, R.M.; Shanmugam, K.; Dinstein, I. Textural Features for Image Classification. IEEE Trans. Syst. Man. Cybern. 1973, SMC-3, 610–621. [Google Scholar] [CrossRef] [Green Version]
  39. Clausi, D.A. An analysis of co-occurrence texture statistics as a function of grey level quantization. Can. J. Remote Sens. 2002, 28, 45–62. [Google Scholar]
  40. Unser, M. Sum and Difference Histograms for Texture Classification. IEEE Trans. Pattern Anal. Mach. Intell. 1986, PAMI-8, 118–125. [Google Scholar] [CrossRef]
  41. Soh, L.-K.; Tsatsoulis, C. Texture analysis of SAR sea ice imagery using gray level co-occurrence matrices. IEEE Trans. Geosci. Remote Sens. 1999, 37, 780–795. [Google Scholar] [CrossRef] [Green Version]
  42. Lin, H.; Zhao, J.; Chen, Q.; Cai, J.; Zhou, P. Eggshell crack detection based on acoustic impulse response and supervised pattern recognition. Czech J. Food Sci. 2009, 27, 393–402. [Google Scholar] [CrossRef] [Green Version]
  43. Park, B.; Chen, Y.R. AE—Automation and Emerging Technologies: Co-occurrence Matrix Texture Features of Multi-spectral Images on Poultry Carcasses. J. Agric. Eng. Res. 2001, 78, 127–139. [Google Scholar]
  44. Briggs, F.H.; Bell, J.F.; Kesteven, M.J. Removing Radio Interference from Contaminated Astronomical Spectra Using an Independent Reference Signal and Closure Relations. Astron. J. 2000, 120, 3351–3361. [Google Scholar] [CrossRef] [Green Version]
  45. Nelli, F.; Nelli, F. Deep Learning with TensorFlow. In Python Data Analytics; Apress: Berkley, CA, USA, 2018. [Google Scholar]
Figure 1. Examples of images that present rapeseed trials: (a)—rapeseed free of contamination with initial moisture content of about 6%, (b)—contaminated rape seeds stored in conditions characterized by 12% seed moisture content and at a temperature of 25 °C, (c)—contaminated rapeseed stored in conditions characterized by 12% seed moisture content and at a temperature of 30 °C.
Figure 1. Examples of images that present rapeseed trials: (a)—rapeseed free of contamination with initial moisture content of about 6%, (b)—contaminated rape seeds stored in conditions characterized by 12% seed moisture content and at a temperature of 25 °C, (c)—contaminated rapeseed stored in conditions characterized by 12% seed moisture content and at a temperature of 30 °C.
Sensors 20 07305 g001
Figure 2. Examples of images that represent rapeseed trials: (a)—rapeseed free of contamination with an initial moisture content of about 6%, (b)—contaminated rape seeds stored in conditions characterized by 16% seed moisture content and at a temperature of 25 °C, (c)—contaminated seed stored in conditions characterized by 16% seed moisture content and at a temperature of 30 °C.
Figure 2. Examples of images that represent rapeseed trials: (a)—rapeseed free of contamination with an initial moisture content of about 6%, (b)—contaminated rape seeds stored in conditions characterized by 16% seed moisture content and at a temperature of 25 °C, (c)—contaminated seed stored in conditions characterized by 16% seed moisture content and at a temperature of 30 °C.
Sensors 20 07305 g002
Figure 3. Scheme of secondary image acquisition using image analysis.
Figure 3. Scheme of secondary image acquisition using image analysis.
Sensors 20 07305 g003
Figure 4. Algorithm schema of processing an image in the process of creating neural networks including deep and machine learning. In the case of CNN, the network model responded both to the extraction of features and to classification.
Figure 4. Algorithm schema of processing an image in the process of creating neural networks including deep and machine learning. In the case of CNN, the network model responded both to the extraction of features and to classification.
Sensors 20 07305 g004
Figure 5. Structure of selected MLP neural networks with 18 neurons in the hidden layer (MLPN) and RFB neural networks with 15 neurons in the hidden layer (RBFN).
Figure 5. Structure of selected MLP neural networks with 18 neurons in the hidden layer (MLPN) and RFB neural networks with 15 neurons in the hidden layer (RBFN).
Sensors 20 07305 g005
Figure 6. Structure of adequate Convolutional Neural Networks.
Figure 6. Structure of adequate Convolutional Neural Networks.
Sensors 20 07305 g006
Table 1. Results of network learning.
Table 1. Results of network learning.
Name Learning SetZ1Z1Z2
Model ANNMLPRBFCNN
Training error0.190.220.29
Validation error0.150.190.30
Testing error0.180.210.14
Quality of learning0.880.870.87
Quality of validation0.900.850.84
Quality of testing0.900.850.97
Learning cases520520320
Training algorithmBP50, CG315bKM, KN, PIAdam
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Przybył, K.; Wawrzyniak, J.; Koszela, K.; Adamski, F.; Gawrysiak-Witulska, M. Application of Deep and Machine Learning Using Image Analysis to Detect Fungal Contamination of Rapeseed. Sensors 2020, 20, 7305. https://doi.org/10.3390/s20247305

AMA Style

Przybył K, Wawrzyniak J, Koszela K, Adamski F, Gawrysiak-Witulska M. Application of Deep and Machine Learning Using Image Analysis to Detect Fungal Contamination of Rapeseed. Sensors. 2020; 20(24):7305. https://doi.org/10.3390/s20247305

Chicago/Turabian Style

Przybył, Krzysztof, Jolanta Wawrzyniak, Krzysztof Koszela, Franciszek Adamski, and Marzena Gawrysiak-Witulska. 2020. "Application of Deep and Machine Learning Using Image Analysis to Detect Fungal Contamination of Rapeseed" Sensors 20, no. 24: 7305. https://doi.org/10.3390/s20247305

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop