Next Article in Journal
Unsupervised Learning for Product Use Activity Recognition: An Exploratory Study of a “Chatty Device”
Next Article in Special Issue
Assessment of Various Machine Learning Models for Peach Maturity Prediction Using Non-Destructive Sensor Data
Previous Article in Journal
Recent Advances in Generation and Detection of Orbital Angular Momentum Optical Beams—A Review
Previous Article in Special Issue
Prediction of Fruity Aroma Intensity and Defect Presence in Virgin Olive Oil Using an Electronic Nose
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Classification Learning of Latent Bruise Damage to Apples Using Shortwave Infrared Hyperspectral Imaging

by
Jean Frederic Isingizwe Nturambirwe
1,2,
Willem Jacobus Perold
3 and
Umezuruike Linus Opara
2,4,*
1
Eresearch Office, DVC—Research and Innovation, University of the Western Cape, Private Bag X17, Bellville 7535, South Africa
2
SARChI Postharvest Technology Research Laboratory, Faculty of AgrSciences, African Institute for Postharvest Technology, Stellenbosch University, Private Bag X1, Stellenbosch 7602, South Africa
3
Department of Electrical and Electronic Engineering, Stellenbosch University, Private Bag X1, Stellenbosch 7602, South Africa
4
UNESCO International Centre for Biotechnology, Nsukka 410001, Nigeria
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(15), 4990; https://doi.org/10.3390/s21154990
Submission received: 30 May 2021 / Revised: 29 June 2021 / Accepted: 1 July 2021 / Published: 22 July 2021

Abstract

:
Bruise damage is a very commonly occurring defect in apple fruit which facilitates disease occurrence and spread, leads to fruit deterioration and can greatly contribute to postharvest loss. The detection of bruises at their earliest stage of development can be advantageous for screening purposes. An experiment to induce soft bruises in Golden Delicious apples was conducted by applying impact energy at different levels, which allowed to investigate the detectability of bruises at their latent stage. The existence of bruises that were rather invisible to the naked eye and to a digital camera was proven by reconstruction of hyperspectral images of bruised apples, based on effective wavelengths and data dimensionality reduced hyperspectrograms. Machine learning classifiers, namely ensemble subspace discriminant (ESD), k-nearest neighbors (KNN), support vector machine (SVM) and linear discriminant analysis (LDA) were used to build models for detecting bruises at their latent stage, to study the influence of time after bruise occurrence on detection performance and to model quantitative aspects of bruises (severity), spanning from latent to visible bruises. Over all classifiers, detection models had a higher performance than quantitative ones. Given its highest speed in prediction and high classification performance, SVM was rated most recommendable for detection tasks. However, ESD models had the highest classification accuracy in quantitative (>85%) models and were found to be relatively better suited for such a multiple category classification problem than the rest.

1. Introduction

Bruise damage in fruit is very common and known to be one of the most contributing factors to degradation and loss of quality in fruit [1,2]. A wide range of preharvest and postharvest factors contributing to fruit bruising susceptibility and incidence have been reported [3,4,5]; however, bruise damage continues to occur due to inherent susceptibility of produce and inadequate application of control measures. The presence of bruising leads to reduced market acceptability of fresh produce and postharvest loss along horticultural value chain due to downgrading or outright rejection, thereby contributing to wastage and associated negative socio-economic and environmental impacts [6,7]. Extensive research on assessment [4,8,9] and non-destructive detection [10,11] of bruise damage has been conducted over the past few decades generating a certain level of understanding of the phenomenon and how to manage it [4]. Nevertheless, challenges remain, including that of effective and fast detection of such defects at early stages of development. Furthermore, bruised fruit undergo accelerated ripening and senescence, which necessitate the need for further detection and control measures [12].
The term ‘early detection’ of bruise damage in fruit material is related to the assessment carried out at early stages of bruise development. The term carries a sense of controversy in meaning, since the development is benchmarked based on visual assessment of the bruise whereby, in some background colors [1], bruises might not be noticeable and yet, be present, even externally. In many research reports, early bruise detection refers to an assessment conducted soon after (typically within a few hours) bruise induction [13,14].
For example, in a study on detecting ‘early’ bruises using thermal imaging combined with hyperspectral imaging, a cylindrical weight of 0.2 kg was used to induce bruise damage in peaches by dropping it from heights of 200 and 400 mm 1 h before assessing the bruised samples [15,16]. Considering such a drop as nearly free, the energy that was used to bruise the peaches would range from 0.39 to 0.78 J. While investigating the detection of fresh bruises (2 h old) in apples, using short wave infrared hyperspectral imaging, Keresztes et al. (2016) induced bruises by applying an impact energy of 0.41 J [17]. Elmasry et al. (2008) used a 250 g flat steel plate from a 10 cm drop height to induce bruises in McIntosh apples, which is estimated to be approximately 0.25 J [18]. Recently, Li et al. (2018) developed segmentation method to investigate the detection of early (1 h old) bruises induced by applying an impact energy of approximately 0.49 J, based on hyperspectral images. In another study of modelling apple bruise susceptibility under the influence of temperature, radius of curvature and acoustic stiffness, though the focus was not on early bruises, these were established at impact energies as low as 0.048 J and assessed after 48 h [19]. Since the manifestation of bruises depends on the type of fruit (attributes such as firmness, color, etc.), the energy applied to induce the damage and time elapsed thereafter, it would make sense to add to the definition of ‘early bruise’, bruises that have yet to manifest to visual inspection (latent bruises).
In all the above-mentioned cases where the non-destructive detection of early bruises in fruit was investigated, the bruising energy level was greater than 0.2 J and the definition of early bruises practically meant fresh bruises. However, it was found prior to this work, that bruises could be produced in apples, even at energy levels lower than commonly used in research experiments and damage could be embedded at a latent state. In such a case, however, traditional methods of assessing bruise volume and susceptibility, which are mainly based on visual aspects, would be highly challenged and likely unreliable.
On the bright side, there are many instruments that have shown potential for objectively detecting bruises, and near infrared (NIR) based techniques are at the forefront, for they offer more convenience and flexibility, which is desirable for industrial application. NIR based techniques are already commercially available for quality screening of foodstuff. Additionally, developments in spectral data-driven solutions are ongoing, which are likely to help achieve the requirements for effective detection of various latent defects, such as damage and pathological infection, among others [20,21].
The hyperspectral imaging (HSI) technique has been proven as versatile in detecting defects in fruit and plant material in general [22,23,24], for it offers both imaging and spectroscopic capabilities. Particularly, the uses of HSI for early detection of bruise damage has seen progress as per recent reports of application to peaches [14], mango [13] and apple [16,17,25], among others.
Therefore, an HSI system operating in the wavelength range of 900–2500 nm was used in this project with the aim to assess the feasibility of detecting latent bruise damage.
In this work, early detection of bruises in apple fruit was investigated by monitoring fruit samples exposed to impact forces, before and until bruise marks become evident to visual inspection. ‘Golden Delicious’ apples were used since they provide a high visibility of surface injuries and therefore allow for good assessment of bruise manifestation.
The objectives were to determine the state of bruise latency as it relates to impact energy and proven by objective image processing and visualization, to assess the detectability of such latent defects using classification learners of HSI data and evaluate the performance of derived binary and quantitative bruise classification models.
Impact bruise damages to apple were created at energies below the threshold found in the literature resulting in soft damage, undetectable by the naked eye. Visualization of bruises at specific wavelengths highlighted their subdermal existence and machine learning classification models were used to establish the feasibility of bruise segregation from healthy tissue to aid in rapid detection for sorting and grading.

2. Materials and Methods

2.1. Fruit Material and Bruising Experiment

Fruit material was sourced from a local retail market for locally grown fruits. In total, 36 Golden Delicious apples, free from visible defects, were selected from a set of packs and split into two batches for use in calibration (Batch 1) and validation (Batch 2), respectively. Three apples were used per bruising level for each batch, thereby resulting in six bruises per level per batch at a given scanned time during the entire experimental period.
Bruise damages were created on two opposite sides, in a middle area between the pedicel and peduncle on each fruit, by dropping a steel ball (63.79 g) onto the fruit in the equatorial area, after which bruised fruits were stored at room temperature (25 °C, 65% Rh) for nearly an hour prior to image acquisition. The impactor was dropped from different heights ranging from 0.02 to 0.32 m to create levels of bruise severity, L1 to L6, as denoted in Table 1. Assuming the fall was nearly free, impact energies applied on the fruit surface were calculated according to the method in [26] and ranged approximately from 0.013 J to 0.200 J (see Table 1), with respect to drop heights. It should be stressed that the three lowest energy levels used (L1–L3) were lower than the lowest experimental impact energy (0.048 J) previously found in the literature [19], by nearly a quarter. In this manner, boundaries of bruising energy were pushed in order to create latent bruise damage.

2.2. Hyperspectral Imaging System

An HSI unit from the Central Analytical Facility at Stellenbosch University was used for all the image acquisitions. The system is equipped with a line scanning hyperspectral camera (HySpex SWIR-384 from HySpex, Oslo, Norway) operating in the short-wave infrared (SWIR) range, from 930 to 2500 nm, in steps of approximately 5.45 nm, which results in 288 contiguous spectral wavebands in total. A moving sample stage allows for varying sample speed, an illumination unit consisting of two DC regulated light sources capable of delivering up to 150 W each and provide a stable (0.1% regulation, 0.1% noise) light intensity. The light sources are positioned at two opposite sides towards the sample, focusing the illumination to a line overlapping with the camera field of view. The system operation and image acquisition were carried out using ‘Breeze’ software (version 2019.1.0, Umeå, Prediktera, Sweden) installed on a computer running the Windows 10 operating system.

2.3. Image Acquisition

Prior to image acquisition the system was set up as follows. The distance between sample and camera was set to 20.5 cm; the grey standard was fixed at 68 mm from above the moving stage in alignment with the sample surface; the integration time was set to 3000 μs and the saturation of the grey standard set to 50%. The scanned length along the stage was 10 cm with a reference collection time of 60 s. Images of bruised apples were acquired on fruits moving at a speed of 5.47 mm/s using a ‘HySpex SDK’ camera lens with 30 cm focal length and a 95 mm field of view. The image acquisition was performed at 100 frames/s, with 404 frames per image and 384 pixels per line, setting the hypercubes at 404 × 384 × 288 in size. Both bruised sides of the fruit samples were scanned separately and used as individual samples. Additional to image acquisition within the first hour of bruising, images were also taken after 6, 18, 48 and 72 h to record the temporal bruise development in fruits initially bruised at low impact energy, as presented in Table 1 under the “Times scanned” column. Given that the main focus of was to assess the feasibility of detecting latent bruises, at higher impact energies such as L5 and L6, bruises were already severe enough withing a day after impact. Therefore, the latter were only scanned at fewer and earliest inspection times than at lower impact levels.

2.4. Image Analysis

Three dimensional hyperspectral images were imported into Evince software (version 2.7.10, Prediktera, Sweden) for pre-processing and background removal. The background was removed by interactively separating (selecting, excluding and reconstructing) the background pixels from the fruit pixels from a principal component analysis (PCA) based contour plots, applied on hypercubes. Segmented images were exported to a MATLAB (version R2019a, Mathworks, Natick, MA, USA) recognizable format for further processing; converted into MATLAB’s dataset objects (DSO) for subsequent use in unfolding 3D hypercubes into 2D data matrices, a technique of dimensionality reduction without loss of information [27]. The exported images were converted into hyperspectrograms for use in subsequent image reconstruction to visualize bruises at latent stage. Image reconstruction was done based on individual principal components (PC) generated to constitute hyperspectrograms, and using a MATLAB based conversion software tool (HyperspectrogramsGUI) available on request from the authors [28]. The hyperspectrograms method is useful in reducing dimensionality of hyperspectral data, making it easier to handle huge amounts of data, which is typical in hyperspectral imaging [22]. Additional to data visualization using image reconstruction from hyperspectrograms, MATLAB Image Processing Toolbox’s image player, was also used for visualization of wavelength specific images that best highlighted the well contrasted bruises. Furthermore, the regions of interest were extracted manually, which included 186 bruised areas and 287 areas of unbruised tissue. From all regions of interest corresponding average spectra were extracted for use in subsequent classification tasks.

2.5. Bruise Detection

In order to evaluate the implementation of discerning bruises at their latent stage, three aspects were established. First, bruise detection models were evaluated for their performance at predicting latent bruises. Classification models that encompass all used levels of severity were trained and tested on predicting the status of latent bruises. The models detect differences between bruised and sound tissue and are tested on latent bruises to decide whether they are recognized as bruises or not.
A second aspect that was investigated is the effect of temporal evolution of bruises on the detection model’s performance. The detection model, trained on all data, were tested on latent bruises at different scanned times.
Thirdly, a quantitative model that specifically considers bruise severity levels as categories was built in order to establish a framework for the identification of bruises quantitatively. Classification models were built to differentiate between these categories and were tested on samples at latent levels that were previously excluded from training.
Classification models were built using learning algorithms available in the machine learning toolbox of MATLAB software, including decision trees, naïve Bayes, support vector machine, nearest neighbors and linear discriminant analysis and ensemble subspace discriminant algorithms. Only the best performing models were reported, some of which are described in the next section. In Figure 1, a schematic diagram of the analytical workflow that was followed is summarized.

2.6. Description of Classification Learners

The Support Vector Machine (SVM) algorithm for classification aims to maximize an optimal hyperplane as a decision function. The basic SVM deals with two-class situations, whereby the created hyperplane for separating data is defined by a number of margins to the nearest data points, also known as support vectors [29]. SVM has a reputation of high efficiency at avoiding issues of overfitting, which is typical of high-dimensionality data, such as that generated by HSI systems. It is known for excellent performance in classification and prediction [30]. In multiclass situations, some methods of combining multiple two-class SVMs are used. These methods include building all possible combinations of “one against one” two-categories classification problems and using either a voting strategy or an acyclic graph for deciding a sample’s correct class, or building all possible “one versus all the rest” dual-category problems in training and applying a decision function to determine a new sample’s category [31]. In this work SVM models were developed using a quadratic kernel function and a “one versus one” method.
In k-Nearest Neighbor (kNN), classification is performed by computing the Euclidean distance between a sample and each of the other samples in the training set. Once k nearest ones are found, the unknown is classified to the class that has most members among these neighbors [32,33]. A nonlinear classification algorithm, kNN is known to perform reasonably well in multiclass problems [34]. In this work preference was given to the “fine kNN” (FKNN) algorithm, using 1 neighbor and equal Euclidean distance weights.
The LDA method employs the Mahalanobis distance to estimate linear decision boundaries, which are defined in order to maximize the ratio of between-class to within-class dispersion [35], under the assumption that variance-covariance matrices of the classes are equal [36]. LDA is a popular method in chemometrics for its effectiveness of pattern recognition in multivariate data analysis.
Ensemble predictors combine results from many base learners, also referred to as ‘weak learners’, into one of higher performance, using methods such as bagging, subspace, boosting, etc. In Ensemble Subspace Discriminant (ESD), a random selection of features in the subspaces and a majority voting (between the predictors) rule are used to build the ensemble of learners and to adopt the classification result [37]. The ESD-based classification in this work used 30 learners and a 128-subspace dimension.

3. Results

3.1. Spectral Characteristics

A representation of spectral characteristics of bruised and sound apple tissue is presented in Figure 2. Each spectrum is an average of spectra corresponding to pixels within a selected bruised or non-bruised area or region of interest (ROI).
Spectra showed higher levels of absorbance in bruised tissue than that of sound ones, around the peaks at 1130 and 1285 nm for latent bruises that are less than 1 h old. With time, the spectral bands from 952 to 1377 nm and 1550 to 1850 nm showed an increasing gap between spectra of bruised and sound tissues. This increasing gap can be attributed to changes in chemical composition in bruised areas, which are also associated to tissue deterioration subsequent to bruising injury [38]. These wavebands appearing to be related to bruise development are in agreement with the wavelength ranges (1000–1300 nm) reported as appropriate for detecting bruises in ‘Golden Delicious’ apples [39] and they contain the wavelengths (1131.0 nm and 1376.5 nm) previously selected as effective in the detection of bruises to various apple cultivars [40].

3.2. Spatial Characteristics

In order to show that bruises could be detected at their latent stage, a data visualization was carried out by reconstruction of hyperspectral images in a manner that highlights the bruises. Two methods were used for this purpose, namely hyperspectrograms based image reconstruction [27] and using single wavelength images captured using the Image player tool from MATLAB software.
A representation of RGB images (size: 4208 × 2368 pixels) of apples bruised at L1 and L2 after 1 h of bruising were taken by a smartphone camera (model ‘Redmi Note 2′, 13 MP, f/2.2, PDAF), using a MediaTek camera application, in JPG format, is shown in Figure 3. Bruises were practically invisible to the naked eye and indistinguishable from sound tissue as per the RGB images acquired by the digital camera and shown in Figure 3. However, a slight tissue discoloration at the bruised location could be noticed on some, but not all apples at L2, when inspected with high attention from 1 h after impact.
To prove whether latent bruises were successfully encoded in the hyperspectral images, two methods were used for visualization of possible latent defects. First, upon removal of background pixels using PCA, images were exported from Evince software to a MATLAB compatible format of hypercubes and used in the ‘video viewer app’ of MATLAB’s image processing toolbox to select wavelengths that yielded the best contrasted bruises.
Figure 4 and Figure 5 show the visualization of bruises at wavelengths which best highlight latent bruises, for L1 and L2, respectively. Wavebands around 1203, 1340 and 1667 nm provided the most resolved bruises without any need for postprocessing for image enhancements.
It is noticeable from Figure 4 and Figure 5 that the bruises (brighter circular marks in the middle of the fruit images) were more encoded at L2 than at L1, which is to be expected, as the higher the bruising impact, the more distinguishable bruises will be. Even though the bruises at latent states, such as L1 and L2, seem visually insignificant and harmless, they develop and become visibly significant over time, as shown in studies that considered longer periods of time (6 days) than used in this study [41].
Bruises at 1340 nm were relatively the most distinguishable from the rest of the apple surface. Images at 1203 nm had the least contrasted bruises, but still distinguishable by exploration of pixel intensity values. In the study of bruise detection by Kersesztes (2016), in the SWIR range, two spectral regions (water absorption peaks around 1400 and 1700 nm) were selected as most effective wavelength regions in distinguishing bruises from sound tissue of apples [17]. These values overlap with and validate the selected wavebands in the current study.
Secondly, the hypercubes were converted to “Dataset object” (DSO) format and loaded in the hyperspectrogram conversion software [28] to generate the hyperspectrograms based on features generated by applying PCA. To be specific, a hyperspectrogram was created by joining the frequency distributions curves of the scores, Q residual, Hotelling T2 and the loading vectors, in sequence. By limiting the principal components (PCs) to 3, this data dimensionality reduction method reduced each hypercube of dimension H = (404 × 384 × 288) to a one-dimensional signal of size h = (3 × 288) + (404 × 384 × 5), which captures both the spectral and spatial information in the original images. Therefore, the compression ratio of data from a hypercube to the corresponding hyperspectrogram was H/h = 57.5. Image reconstruction was selectively performed based on the constitutive frequency distributions that make up the hyperspectrograms. Images with optimal features of defects were retained, as shown in Figure 6. Bruises at L2 were visibly contrasted from sound tissue in PC2 (right) and PC3 (middle) scores images, whereas on the average image (left) there is no indication of bruised area. The clear visibility of the reconstructed bruises suggests that the hyperspectrograms method, which has previously been used successfully in detecting bruises to apple during their temporal development [41], could also be a fit method to detect latent bruises in apples.
While bruises were not visible to the naked eye, at high impact levels both the Hyperspectral RGB image and the PC based image show highly contrasted bruises (light grey marks) against the surrounding sound apple tissue. In Figure 7, PC images (right) are shown alongside hypercubes average RGB image (left) for severe bruises at L6. The gray scale image was generated using PCA mapping and is based on the fourth principal component (PC4).

3.3. Latent Bruise Detection Models

Classification models were built using various classification learners available in the machine learning toolbox of MATLAB software and exported to MATLAB workspace to be subsequently used in predicting external test data. The training set consisted of all data acquired over five scanned times on all six levels of bruise severity (186 spectra), including sound tissue (287 spectra) extracted from regions of interest (473 observables in total). Half the latent bruise data subset for a severity level that is targeted for prediction (i.e., either L1 or L2) was excluded from training and used as test set for testing models on new unknown data. The global model was trained on all samples available and tested on half the 1 h old samples at L1–L3 combined with the same fraction from healthy samples. In order to avoid model overfitting, 10-fold cross-validation was used in the training step. Classifier’s performance was evaluated with respect to accuracy and area under receiver operating characteristic curve (AUC). The best performing four were retained and reported in Table 2.
The results in Table 2 show that quadratic-kernel support vector machine (Q-SVM) had the best performance in all regards, followed by fine k-Nearest Neighbour (F-KNN) and Linear Discriminant Analysis (LDA). Prediction of the state of bruises in L1 (latent bruises induced at lowest energy level) was relatively lower than that of bruises in L2 (latent bruise induced with second lowest energy). This should be expected, as the higher the severity of the bruise, the easier it is to detect. Overall, latent bruises were predicted with high accuracy, ranging from 89.6% to 100% and a generally perfect value for AUC, which suggests high performance for all classifiers. It was noticed that ensemble classifiers were slowest to train and yielded slightly different results for each run, therefore an average of a model accuracy was calculated over five runs.

3.4. Influence of Temporal Evolution on Detection of Latent Bruises

Fruits with latent bruises were monitored over a period of 3 days of bruise development and during this time, they were scanned at 5 temporal instances (1, 6, 18, 48 and 72 h). To investigate the effect of time after bruise induction on the detection accuracy of latent bruises (L1 and L2), classification models to distinguish bruised from sound tissue were built using various classification learners. For each temporal instance in consideration (Table 3), 50% of the corresponding samples were excluded from training for use later in testing the model, while the remaining 50% was included in training. Training was carried out on all non-excluded L1 and L2 samples scanned from 1 h all the way to 72 h, and model performance was evaluated based on their accuracy, as summarized in Table 3.
Overall, the models yielded high prediction accuracy in both training and testing with an apparent increase in model accuracy on tested samples with increasing age of bruises, for F-KNN and ESD. A slight misclassification was obtained for 1 h old samples. However, all misclassified samples were originally from the non-bruised category (false positives) and thus, all defects were correctly classified, which is the most desirable outcome in practice. With increasing time, the misclassification rate reduced overall, and at 48 h the tested sample accuracy was 100%. However, Q-SVM models were not influenced by the time elapsed whatsoever. The accuracy in training and testing remained the same, regardless of the age of defects, and was highest in training. A comparison of classifiers based on prediction speed (the number of observations processed per second during validation of the model) showed that the Q-SVM classifier was consistently the fastest, whereas ESD was the slowest. Prediction speed values normalized against the highest value from all classifiers are shown in Table 3. The demonstrated superior performance of the SVM makes it recommendable for detection of latent bruises in apples. This comes as no surprise, SVM algorithms have previously been reported to have the highest preference for the analysis of hyperspectral data [31].

3.5. Quantitative Prediction of Latent Bruises

Quantitative (severity) prediction of bruise damage is important because it provides a categorization of fruit with respect to bruise severity, which is an important aspect for the fruits grading task. With such information one would be able to determine the appropriate use of produce; such as packing fruits that are free from defects for the local market, long distance transport or export; mildly bruised fruits for processing and severely bruised fruits for animal feed. An attempt to predict bruises (including latent ones) based on their quantitative aspects was carried out, whereby classification models were built by considering bruise severity (six levels) as the dependent variable (Y) that embodies the quantitative feature. The multiclass calibration models were developed based on a batch of samples representing six levels of bruising assessed at approximately 1, 6, 18, 48, and 72 h after bruise induction.
Class labelling was completed by combining bruising level and time after bruise induction, whereby the notation “Lxyz” stands for bruising level “Lx”, where 1 ≤ x ≤ 6 recorded after “y” or “yz” hours. Training the models was carried out with 10-fold cross validation on all classes and tested at 1, 6 and 18 h separately, on half the samples at low-level classes (L1 to L3), which was excluded from training. As a result, ensemble subspace discriminant (ESD) yielded the best prediction performance overall, followed by linear discriminant analysis (LDA) and lastly, fine k nearest neighbors (F-KNN) (see Table 4), whereas the speed of prediction and training was highest for F-KNN. The latter had the highest misclassification rate with 1 to 6 h old bruises, whereas for bruises at 18 h it achieved a categorization with as high an accuracy as achieved with ESD.
Even though the inclusion of time evolution implies that the differences between the so formulated bruise class levels are subtle, the classifiers achieved high accuracy as indicated in Table 4. In a real application scenario, a few bruise severities such as latent, visible and severe, for example, may be sufficient depending on the goals for grading. Such few categories summarizing a large range of severity levels would preserve the classifier’s performance and ensure successful distinction between classes with high accuracies.
In Figure 8 the confusion matrices of classification models for quantitative aspects of bruises are shown for three classifiers, namely ESD, QSVM, LDA and F-KNN. The true classes are the categories initially assigned to the respective samples, whereas the predicted classes represent the categories that the samples are found to belong to as a result of the classification task. The model development included six levels of bruise severity evolving over time at instances including 1, 18, 48 and 72 h and a 10-fold cross-validation method was used to avoid model overfitting. The highest true positives to total positives ratio (TPR) and lowest false negatives to total positives ratio (FNR) were obtained by the ESD classifier, followed by LDA. True positives are depicted using a green color, while false negatives are marked in red with darker hues corresponding to higher rates. From the confusion matrices, it is noticed that in most cases of misclassification the predicted class was closely similar to the true class, which suggests that in cases where classes were agglomerated into larger groups resulting in fewer categories, the misclassification would also be reduced.

4. Discussion

Successful application of approaches that used spectral average of ROIs were reported in previous studies of bruise detection [1,40]. The models developed in this work are based on spectral data, provided that the bruised region to have already been located on the fruit. This work extended such application particularly to the detection of latent bruises as well as exploiting the possibility of implementing a quantitative prediction model for bruise damage. In an industrial application scenario, it would be convenient to detect bruised regions using methods such as watershed segmentation [14], other thresholding methods [40] or pixel-based bruise segregation [17,42], prior to evaluating the severity of the defects as demonstrated in this work. However, these bruise segregation methods are yet to be tested on latent bruises. It is also worth mentioning that in methods for locating bruised regions that do not take the spectral dimension of hypercubes into account, such a task would be highly challenging, or at least computationally costly, thus a quick determination of optimal wavelengths for visualizing latent bruises, similar to this work, would be very useful. Alternatively, methods of image synthesis [43] can be useful in highlighting faint features such as latent bruises and enhance the efficiency of search algorithms.
The analytical workflow used in this work combined various software applications. However, in real life applications it would be advantageous to work with a single end to end software platform, which would combine search and segregation of regions of interest (e.g., region with defect), extract features (e.g., spectral data) and predict the state and/or severity of the bruises. Such end-to-end solutions are unknown to the authors and likely non-existent currently. Future work should put an effort into developing such solutions. The use of deep learning methods [44] is one such approach that could enable compact workflows for detecting defects on whole images of fruit requiring fewer to no steps of prior selection of ROIs than in this study, and it is intended to explore this in future work. It is important to note that deep learning methods require extensive computational infrastructure and much larger datasets of images than was used in this work.
Results showed that the behavior of classifiers in two-class problems for bruise detection was different to that in multi-class problems for quantitative models. F-KNN was the fastest in quantitative models, whereas SVM was the fastest in detection tasks. Though SVM achieved the best performance in terms of accuracy and prediction speed for detection tasks, it did not perform well for quantitative models. However, it was observed that when the number of response classes (31 groups) was reduced to nearly half (14 groups), the performance of SVM models was improved, which suggests that the lower the number of categories in a classification task, the higher SVM was likely to perform. The results suggest that SVM is recommendable for latent bruise detection tasks while for quantitative models, ESD and LDA would be a better fit to achieve high accuracy. However, a loss in prediction speed was involved.
This lower prediction speed, especially for ESD, is only relative to the other tested algorithms. When translated to applications where such speed is crucial, such as inline sorting, the requirements by the latter can still be met by the algorithms. For example, in a typical fruit sorting system, speeds from 5 samples/s [17] up to 10 samples/s (about 1 to 2 m/s) in commercial sorting lines [45] are used, while in-field defect detection has been proven feasible at a speed of 0.5 m/s [46]. Within such speed requirements one has to account for all the analytical steps of a detection task, such as data (image) acquisition, processing, feature extraction, ROI selection and classification. The speeds reported here (>400 samples/s) are only related to and sufficient for the classification part. The analytical steps prior to classification have been shown to be achievable using some versions of scanning systems and researchers [46,47] have made confident reports about the current technical advancements to help achieve such and more requirements for the agricultural and food industry.
Bruise severity modelling is an important prerequisite for tasks of grading fruit based on level of damage. However, it is not commonly reported on in postharvest research. The modelling approach presented here can be adopted for the detection of various other defects, especially for severity estimation models. Although this work was based on an imaging system, the application of this methodology has extensive relevance to spectroscopic systems as well.
In this work, a single background (bright green) was considered, but future work should expand the training dataset to include other aspects, such as various backgrounds and catching angles for light during scanning. The findings show that latent bruises can be accurately detected using hyperspectral imaging data after quick search and determination of regions of interest (bruised area).
One important aspect of machine learning models that is required for successful application tasks is the ability of the models to generalize. To ensure this is implemented, calibration models were tested on new, unseen samples, initially set aside from the overall dataset; however, there is room for improvement, and it is suggested that future work should consider data augmentation techniques such as in [48,49] to further improve on the generalization ability of the models such as these developed in this study.

5. Conclusions

Bruise damages were established on Golden Delicious apples, which have a bright green epidermis allowing for clear visibility of external defects, such as bruises. The existence of latent bruises on apples was proved by comparing RGB camera images, firstly to images reconstructed based on hyperspectrograms, which are reduced data embedding features from hypercubes, and secondly, to fixed wavelengths images with optimally contrasted latent bruise marks. While RGB images showed no visible bruises, image reconstruction made the bruises evident. Detection of latent bruises was carried out using various machine learning classifiers and resulted in high detection accuracy with quadratic-kernel support vector machine leading in performance and prediction speed. Quantitative aspects of bruises were modelled by considering bruise level of impact and time after bruising as factors contributing to variations in bruise severity. The ensemble subspace discriminant classifier was recommended as best of the tested algorithms for quantitative models, based on its higher rate for correct recognition of new (test) samples. However, higher classification accuracy was associated with bruise detection models, both for global models and latent bruises, than in quantitative classification models. The findings in this work prove that quantitative aspects in bruise detection models are implementable. The work presented here should serve as a benchmark for the industry in implementing a quantitative assessment of bruise damage and latent damage detection. Future work will focus and on improving the model generalization ability by implementing data augmentation methods to new data and on applying cutting edge classification methods such as deep learning algorithms to the current problem, to constitute a more compact pipeline for image processing and classification learning.

Author Contributions

Conceptualization, J.F.I.N. and U.L.O.; methodology, J.F.I.N.; software, J.F.I.N.; formal analysis, J.F.I.N.; investigation, J.F.I.N.; resources, U.L.O.; data curation, J.F.I.N.; writing—original draft preparation, J.F.I.N.; writing—review and editing, W.J.P. and U.L.O.; visualization, J.F.I.N.; supervision, U.L.O.; funding acquisition, W.J.P. and U.L.O. All authors have read and agreed to the published version of the manuscript.

Funding

This work is based on the research supported wholly by the National Research Foundation of South Africa (Grant Number: 64813). The opinions, findings and conclusions or recommendations expressed are those of the author(s) alone, and the NRF accepts no liability whatsoever in this regard.

Data Availability Statement

The data presented in this study are openly available in Kikapu, a Figshare repository at doi:10.25379/uwc.14906691.

Acknowledgments

The authors wish to acknowledge the following for their support: The subcommittee-B of the Research Committee of Stellenbosch University for providing the fellowship to support JFIN; Janine Collings from the Central Analytical Facility at Stellenbosch University for providing guidance with instruments for data acquisition; Alessandro Ulrici and Rosalba Calvini for providing the Hyperspectrogram software package and guidance on how to use it; and Mattia Vaccari for offering constructive review, comments, quality check of the work and support for submission.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Wang, N.; Elmasry, G. CHAPTER 9—Bruise Detection of Apples Using Hyperspectral Imaging. In Hyperspectral Imaging for Food Quality Analysis and Control; Academic Press: Cambridge, MA, USA, 2010; pp. 295–320. [Google Scholar] [CrossRef]
  2. Opara, U.L. Bruise susceptibilities of ‘Gala’ apples as affected by orchard management practices and harvest date. Postharvest Biol. Technol. 2007, 43, 47–54. [Google Scholar] [CrossRef]
  3. Hussein, Z.; Fawole, O.; Opara, U.L. Preharvest factors influencing bruise damage of fresh fruits—A review. Sci. Hortic. 2018, 229, 45–58. [Google Scholar] [CrossRef]
  4. Hussein, Z.; Fawole, O.; Opara, U.L. Harvest and Postharvest Factors Affecting Bruise Damage of Fresh Fruits. Hortic. Plant J. 2020, 6, 1–13. [Google Scholar] [CrossRef]
  5. Hussein, Z.; Fawole, O.A.; Opara, U.L. Investigating bruise susceptibility of pomegranate cultivars during postharvest handling. Afr. J. Rural. Dev. 2017, 2, 33–39. [Google Scholar]
  6. Opara, I.K.; Fawole, O.A.; Opara, U.L. Postharvest Losses of Pomegranate Fruit at the Packhouse and Implications for Sustainability Indicators. Sustainability 2021, 13, 5187. [Google Scholar] [CrossRef]
  7. Opara, I.; Fawole, O.; Kelly, C.; Opara, U. Quantification of On-Farm Pomegranate Fruit Postharvest Losses and Waste, and Implications on Sustainability Indicators: South African Case Study. Sustainability 2021, 13, 5168. [Google Scholar] [CrossRef]
  8. Hussein, Z.; Fawole, O.A.; Opara, U.L. Bruise damage susceptibility of pomegranates (Punica granatum, L.) and impact on fruit physiological response during short term storage. Sci. Hortic. 2019, 246, 664–674. [Google Scholar] [CrossRef]
  9. Hussein, Z.; Fawole, O.A.; Opara, U.L. Determination of physical, biochemical and microstructural changes in impact-bruise damaged pomegranate fruit. J. Food Meas. Charact. 2019, 13, 2177–2189. [Google Scholar] [CrossRef]
  10. Nturambirwe, J.F.I.; Nieuwoudt, H.H.; Perold, W.J.; Opara, U.L. Detecting Bruise Damage and Level of Severity in Apples Using a Contactless NIR Spectrometer. Appl. Eng. Agric. 2020, 36, 257–270. [Google Scholar] [CrossRef]
  11. Li, Z.; Thomas, C. Quantitative evaluation of mechanical damage to fresh fruits. Trends Food Sci. Technol. 2014, 35, 138–150. [Google Scholar] [CrossRef]
  12. Nturambirwe, J.F.I.; Perold, W.J.; Opara, U.L. A Squid-Detected NMR Relaxation Study of Banana Fruit Ripening. Appl. Eng. Agric. 2021, 37, 219–231. [Google Scholar] [CrossRef]
  13. Rivera, N.V.; Gómez-Sanchis, J.; Pérez, J.J.C.; Carrasco, J.J.; Millán-Giraldo, M.; Lorente, D.; Cubero, S.; Blasco, J. Early detection of mechanical damage in mango using NIR hyperspectral images and machine learning. Biosyst. Eng. 2014, 122, 91–98. [Google Scholar] [CrossRef]
  14. Li, J.; Chen, L.; Huang, W. Detection of early bruises on peaches (Amygdalus persica L.) using hyperspectral imaging coupled with improved watershed segmentation algorithm. Postharvest Biol. Technol. 2018, 135, 104–113. [Google Scholar] [CrossRef]
  15. Baranowski, P.; Mazurek, W.; Witkowska-Walczak, B.; Sławiński, C. Detection of early apple bruises using pulsed-phase thermography. Postharvest Biol. Technol. 2009, 53, 91–100. [Google Scholar] [CrossRef]
  16. Baranowski, P.; Mazurek, W.; Pastuszka-Woźniak, J.; Majewska, U. Detection of early bruises in apples using hyperspectral data and thermal imaging. J. Food Eng. 2012, 110, 345–355. [Google Scholar] [CrossRef]
  17. Keresztes, J.C.; Goodarzi, M.; Saeys, W. Real-time pixel based early apple bruise detection using short wave infrared hyperspectral imaging in combination with calibration and glare correction techniques. Food Control 2016, 66, 215–226. [Google Scholar] [CrossRef]
  18. ElMasry, G.; Wang, N.; Vigneault, C.; Qiao, J.; El-Sayed, A. Early detection of apple bruises on different background colors using hyperspectral imaging. LWT 2008, 41, 337–345. [Google Scholar] [CrossRef]
  19. Abedi, G.; Ahmadi, E. Design and evaluation a pendulum device to study postharvest mechanical damage in fruits: Bruise modeling of red delicious apple. Aust. J. Crop Sci. 2013, 7, 962–968. [Google Scholar]
  20. Nturambirwe, J.F.I.; Opara, U.L. Machine learning applications to non-destructive defect detection in horticultural products. Biosyst. Eng. 2020, 189, 60–83. [Google Scholar] [CrossRef]
  21. Saeys, W.; Trong, N.N.D.; Van Beers, R.; Nicolaï, B.M. Multivariate calibration of spectroscopic sensors for postharvest quality evaluation: A review. Postharvest Biol. Technol. 2019, 158, 110981. [Google Scholar] [CrossRef]
  22. Calvini, R.; Foca, G.; Ulrici, A. Data dimensionality reduction and data fusion for fast characterization of green coffee samples using hyperspectral sensors. Anal. Bioanal. Chem. 2016, 408, 7351–7366. [Google Scholar] [CrossRef]
  23. Lee, L.C.; Liong, C.-Y.; Jemain, A.A. A contemporary review on Data Preprocessing (DP) practice strategy in ATR-FTIR spectrum. Chemom. Intell. Lab. Syst. 2017, 163, 64–75. [Google Scholar] [CrossRef]
  24. Sun, Y.; Xiao, H.; Tu, S.; Sun, K.; Pan, L.; Tu, K. Detecting decayed peach using a rotating hyperspectral imaging testbed. LWT 2018, 87, 326–332. [Google Scholar] [CrossRef]
  25. Elmasry, G.; Kamruzzaman, M.; Sun, D.-W.; Allen, P. Principles and Applications of Hyperspectral Imaging in Quality Evaluation of Agro-Food Products: A Review. Crit. Rev. Food Sci. Nutr. 2012, 52, 999–1023. [Google Scholar] [CrossRef]
  26. Nturambirwe, J.F.I.; Perold, W.J.; Opara, U.L. Near infrared spectrometric technique for testing fruit quality: Optimisation of regression models using genetic algorithms. In Proceedings of the Fourth Conference on Sensors MEMS, and Electro-Optic Systems, Skukuza, South Africa, 18–20 September 2016; Volume 10036, p. 100360. [Google Scholar] [CrossRef]
  27. Ferrari, C.; Foca, G.; Ulrici, A. Handling large datasets of hyperspectral images: Reducing data size without loss of useful information. Anal. Chim. Acta 2013, 802, 29–39. [Google Scholar] [CrossRef]
  28. Ferrari, C.; Calvini, R.; Foca, G.; Ulrici, A. Exploration of datasets of hyperspectral images. In Proceedings of the IASIM-14, Roma, Italy, 3–5 December 2014; Volume 1, p. 15. [Google Scholar]
  29. Samanta, B.; Al-Balushi, K.; Al-Araimi, S. Artificial neural networks and support vector machines with genetic algorithm for bearing fault detection. Eng. Appl. Artif. Intell. 2003, 16, 657–665. [Google Scholar] [CrossRef]
  30. Huang, M.-L.; Hung, Y.-H.; Lee, W.M.; Li, R.K.; Jiang, B.-R. SVM-RFE Based Feature Selection and Taguchi Parameters Optimization for Multiclass SVM Classifier. Sci. World J. 2014, 2014, 1–10. [Google Scholar] [CrossRef]
  31. Gewali, U.B.; Monteiro, S.T.; Saber, E. Machine learning based hyperspectral image analysis: A survey. arXiv 2018, arXiv:1802.08701v1. [Google Scholar]
  32. Kuzy, J.; Jiang, Y.; Li, C. Blueberry bruise detection by pulsed thermographic imaging. Postharvest Biol. Technol. 2018, 136, 166–177. [Google Scholar] [CrossRef]
  33. Moscetti, R.; Haff, R.P.; Monarca, D.; Cecchini, M.; Massantini, R. Near-infrared spectroscopy for detection of hailstorm damage on olive fruit. Postharvest Biol. Technol. 2016, 120, 204–212. [Google Scholar] [CrossRef]
  34. Naik, S.; Patel, B. Machine Vision based Fruit Classification and Grading—A Review. Int. J. Comput. Appl. 2017, 170, 22–34. [Google Scholar] [CrossRef]
  35. Brito, A.L.B.; Brito, L.R.; Honorato, F.A.; Pontes, M.J.C.; Pontes, L.F.B.L. Classification of cereal bars using near infrared spectroscopy and linear discriminant analysis. Food Res. Int. 2013, 51, 924–928. [Google Scholar] [CrossRef] [Green Version]
  36. Naik, H.S.; Zhang, J.; Lofquist, A.; Assefa, T.; Sarkar, S.; Ackerman, D.; Singh, A.; Singh, A.K.; Ganapathysubramanian, B. A real-time phenotyping framework using machine learning for plant stress severity rating in soybean. Plant Methods 2017, 13, 23. [Google Scholar] [CrossRef] [Green Version]
  37. Ashour, A.S.; Guo, Y.; Hawas, A.R.; Xu, G. Ensemble of subspace discriminant classifiers for schistosomal liver fibrosis staging in mice microscopic images. Health Inf. Sci. Syst. 2018, 6, 21. [Google Scholar] [CrossRef] [PubMed]
  38. Moretti, C.L.; Baldwin, E.A.; Sargent, S.A.; Huber, D.J. Internal Bruising Alters Aroma Volatile Profiles in Tomato Fruit Tissues. HortScience 2002, 37, 378–382. [Google Scholar] [CrossRef] [Green Version]
  39. Lu, R. Detection of bruises on apples using near-infrared hyperspectral imaging. Trans. Am. Soc. Agric. Eng. 2003, 46, 523. [Google Scholar] [CrossRef]
  40. Siedliska, A.; Baranowski, P.; Mazurek, W. Classification models of bruise and cultivar detection on the basis of hyperspectral imaging data. Comput. Electron. Agric. 2014, 106, 66–74. [Google Scholar] [CrossRef]
  41. Ferrari, C.; Foca, G.; Calvini, R.; Ulrici, A. Fast exploration and classification of large hyperspectral image datasets for early bruise detection on apples. Chemom. Intell. Lab. Syst. 2015, 146, 108–119. [Google Scholar] [CrossRef] [Green Version]
  42. Che, W.; Sun, L.; Zhang, Q.; Tan, W.; Ye, D.; Zhang, D.; Liu, Y. Pixel based bruise region extraction of apple using Vis-NIR hyperspectral imaging. Comput. Electron. Agric. 2018, 146, 12–21. [Google Scholar] [CrossRef]
  43. Ren, Y.; Romano, Y.; Elad, M. Example-Based Image Synthesis via Randomized Patch-Matching. IEEE Trans. Image Process. 2017, 27, 220–235. [Google Scholar] [CrossRef] [Green Version]
  44. Zheng, Q.; Tian, X.; Yang, M.; Wu, Y.; Su, H. PAC-Bayesian framework based drop-path method for 2D discriminative con-volutional network pruning. Multidimens. Syst. Signal. Process. 2020, 31, 793–827. [Google Scholar] [CrossRef]
  45. Magwaza, L.; Opara, U.L.; Terry, L.; Landahl, S.; Cronje, P.J.; Nieuwoudt, H.H.; Hanssens, A.; Saeys, W.; Nicolaï, B.M. Evaluation of Fourier transform-NIR spectroscopy for integrated external and internal quality assessment of Valencia oranges. J. Food Compos. Anal. 2013, 31, 144–154. [Google Scholar] [CrossRef]
  46. Suh, H.K.; Ijsselmuiden, J.; Hofstee, J.W.; Van Henten, E.J. Transfer learning for the classification of sugar beet and volunteer potato under field conditions. Biosyst. Eng. 2018, 174, 50–65. [Google Scholar] [CrossRef]
  47. Donis-González, I.R.; Guyer, D.E.; Pease, A. Postharvest noninvasive classification of tough-fibrous asparagus using computed tomography images. Postharvest Biol. Technol. 2016, 121, 27–35. [Google Scholar] [CrossRef]
  48. Georgouli, K.; Osorio, M.T.; Del Rincon, J.M.; Koidis, A. Data augmentation in food science: Synthesising spectroscopic data of vegetable oils for performance enhancement. J. Chemom. 2018, 32, e3004. [Google Scholar] [CrossRef]
  49. Zeng, S.; Zhang, B.; Gou, J. Learning double weights via data augmentation for robust sparse and collaborative representation-based classification. Multimed. Tools Appl. 2020, 79, 20617–20638. [Google Scholar] [CrossRef]
Figure 1. Graphical diagram for the analytical workflow followed in this study.
Figure 1. Graphical diagram for the analytical workflow followed in this study.
Sensors 21 04990 g001
Figure 2. Temporal variation in spectral profiles of bruised (upper cluster: blue) and sound (lower cluster: green) apple tissue over 3 days. L1; lowest level of bruise severity used.
Figure 2. Temporal variation in spectral profiles of bruised (upper cluster: blue) and sound (lower cluster: green) apple tissue over 3 days. L1; lowest level of bruise severity used.
Sensors 21 04990 g002aSensors 21 04990 g002b
Figure 3. RGB images of bruised ‘Golden Delicious’ apples; bruises are mostly invisible to an eye and digital camera.
Figure 3. RGB images of bruised ‘Golden Delicious’ apples; bruises are mostly invisible to an eye and digital camera.
Sensors 21 04990 g003
Figure 4. Images of apple samples at 1203 nm (left), 1340 nm (middle) and 1667 nm (right) showing bruises at L1.
Figure 4. Images of apple samples at 1203 nm (left), 1340 nm (middle) and 1667 nm (right) showing bruises at L1.
Sensors 21 04990 g004
Figure 5. Images of apple samples at 1203 nm (left), 1340 nm (middle) and 1667 nm (right) showing bruises at L2.
Figure 5. Images of apple samples at 1203 nm (left), 1340 nm (middle) and 1667 nm (right) showing bruises at L2.
Sensors 21 04990 g005
Figure 6. Image reconstruction from hyperspectrograms showing bruises at L2; average image (left), PC3 image (middle) and PC2 image (right).
Figure 6. Image reconstruction from hyperspectrograms showing bruises at L2; average image (left), PC3 image (middle) and PC2 image (right).
Sensors 21 04990 g006
Figure 7. Image reconstruction showing bruises at L6 after 6 h; RGB color (left) and calculated bruises PC4 images (right). Bruises appear as dark grey spots on the RGB images and as light grey marks on the PC4 images.
Figure 7. Image reconstruction showing bruises at L6 after 6 h; RGB color (left) and calculated bruises PC4 images (right). Bruises appear as dark grey spots on the RGB images and as light grey marks on the PC4 images.
Sensors 21 04990 g007
Figure 8. Confusion matrix to showcase classification performance for bruise severity by ESD (top left), QSVM (top right) LDA (bottom left) and FKNN (bottom right).
Figure 8. Confusion matrix to showcase classification performance for bruise severity by ESD (top left), QSVM (top right) LDA (bottom left) and FKNN (bottom right).
Sensors 21 04990 g008
Table 1. Parameters of the bruising experiment.
Table 1. Parameters of the bruising experiment.
Bruising ParametersNumber of Individual BruisesTotal Number of Bruise Samples
Drop Height (m)Bruise Level NotationEnergy of Impact (J)Batch 1Times ScannedBatch 2Times Scanned
0.020L10.013646236
0.040L20.025646236
0.07L30.044646236
0.126L40.079646130
0.219L50.137636124
0.319L60.2636124
TOTAL 186
Table 2. Performance of detection model for latent bruises in ‘Golden Delicious’ apple.
Table 2. Performance of detection model for latent bruises in ‘Golden Delicious’ apple.
Training Accuracy (%)AUCTest Accuracy (%)Prediction Speed (Observations/s)Classification Learner
Detect L1100194.44200Q-SVM
99.10.9989.92200F-KNN
99.4189.92200LDA
99.61100400ESD
Detect L21001.001002700Q-SVM
98.40.9894.41500F-KNN
98.81.001003600LDA
99.61100400ESD
Overall model1001.001001900Q-SVM
98.70.9896.21600F-KNN
99.61.0096.21800LDA
99.61.00100440ESD
Table 3. Temporal influence on detection of latent bruises.
Table 3. Temporal influence on detection of latent bruises.
ModelTraining Accuracy (%)Test Accuracy (%)Prediction Speed (Normalized) *
1 h6 h18 h48 h1 h6 h18 h48 h1 h6 h18 h48 h
LDA98.794.899.495.594.410088.91000.780.5610.50
F-KNN98.798.795.596.188.994.41001000.610.420.520.68
Q-SVM99.499.499.499.41001001001001111
ESD10097.498.798.794.41001001000.160.160.110.16
*: Prediction speed is expressed in “observations/s”, ratios normalized to the highest value per column are shown.
Table 4. Quantitative prediction of latent bruises.
Table 4. Quantitative prediction of latent bruises.
Bruise LevelClassification AccuracyClassifier
TrainingTest
L11–L3169.866.67F-KNN
93.788.89ESD
89.377.78LDA
L16–L3669.544.4F-KNN
92.188.89ESD
90.466.67LDA
L118–L31866.988.89F-KNN
94.477.78ESD
87.677.78LDA
Global L1–L675.848.15F-KNN
98.562.96ESD
97.074.07LDA
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Nturambirwe, J.F.I.; Perold, W.J.; Opara, U.L. Classification Learning of Latent Bruise Damage to Apples Using Shortwave Infrared Hyperspectral Imaging. Sensors 2021, 21, 4990. https://doi.org/10.3390/s21154990

AMA Style

Nturambirwe JFI, Perold WJ, Opara UL. Classification Learning of Latent Bruise Damage to Apples Using Shortwave Infrared Hyperspectral Imaging. Sensors. 2021; 21(15):4990. https://doi.org/10.3390/s21154990

Chicago/Turabian Style

Nturambirwe, Jean Frederic Isingizwe, Willem Jacobus Perold, and Umezuruike Linus Opara. 2021. "Classification Learning of Latent Bruise Damage to Apples Using Shortwave Infrared Hyperspectral Imaging" Sensors 21, no. 15: 4990. https://doi.org/10.3390/s21154990

APA Style

Nturambirwe, J. F. I., Perold, W. J., & Opara, U. L. (2021). Classification Learning of Latent Bruise Damage to Apples Using Shortwave Infrared Hyperspectral Imaging. Sensors, 21(15), 4990. https://doi.org/10.3390/s21154990

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