Keywords

1 Introduction

As a cornerstone of global nutrition, cereal grains and oilseeds play a pivotal role in dietary sustenance. However, the journey of these crops, from field to consumer, is fraught with mechanical challenges. In particular, operations like harvesting, transportation, and storage have been recognized as key stages where these grains face potential damage [1]. This damage not only reduces the aesthetic appeal of the grain but also impinges upon its nutritional quality, viability, and overall market value.

Conventional methods to assess these damages have traditionally centred on visual examinations. While seemingly straightforward, such methods are inherently flawed. They are subjective, labor-intensive, and perhaps most critically, restricted in scope – capturing only the external damages while turning a blind eye to the nuanced, internal damages that could have long-term implications on the grain's shelf life, susceptibility to pests, and nutritional quality.

In an age where technology and agriculture are becoming inextricably linked, clinging to outdated methods feels like a squandered opportunity. Consequently, many researchers are delving into innovative tools and mathematical models to forecast the susceptibility of seeds to mechanical damage under varying moisture contents and impact energies [2,3,4,5,6,7,8,9,10,11,12,13]. Among the emerging techniques, optical methodologies, especially imaging and spectroscopy, have garnered significant attention, marking a paradigm shift in the research landscape [14, 15]. Riding this wave of innovation, our research pivots its focus on the comparative strengths and nuances of 2D X-ray imaging and hyperspectral imaging (HSI) in gauging seed damage, spotlighting flaxseeds for their global economic and nutritional footprint. Through this endeavor, we envision a confluence of state-of-the-art technology and agronomic expertise to craft a comprehensive, efficient, and robust system, capable of mapping both the seen and unseen damages in seeds, ensuring no facet of damage goes undetected.

2 Methods

Flaxseed samples were sourced from Arborg, Manitoba, Canada, and conditioned to moisture contents (MCs) of 6, 8, and 11.5% on a wet basis as described in detail elsewhere [16]. The seeds were then subjected to varying mechanical forces, using a drop weight impactor, at three distinct energy levels of 2, 4, and 6 mJ [17, 18]. These energy intensities were selected from preliminary tests to induce low, medium, and high levels of kernel damage to the flaxseed. In addition to the impacted samples, a set of control samples for each moisture content was incorporated, which were unexposed to any mechanical impact. The comprehensive experiment encompassed a total of 3600 seeds, spanning over 100 seeds for each of the 4 impact energies, three moisture contents, and with each combination replicated three times.

To ascertain the internal damages incurred by the seeds, a 2D X-ray imaging system (Model: MX-20, Faxitron Bioptics, LLC, Tucson, AZ) was utilized to render an internal view of the seeds. Furthermore, to garner hyperspectral imaging (HSI) data ranging from 400–1000 nm, a visible-near-infrared (Vis-NIR) HSI system from SPECIM Spectral Imaging Ltd., Oulu, Finland, was employed.

The X-ray data procured underwent rigorous analysis using the Matlab software suite (Mathworks Inc., Waltham, MA). Gray-level percentile scores provided an initial assessment [17], which was supplemented by the efficientNet-B0 model, a variant of convolutional neural network (CNN) [18]. Lastly, to classify seeds as sound or damaged based on the HSI data, a partial least squares discriminant analysis (PLS-DA) was carried out.

3 Results and Discussions

Figure 1 shows the digital image of flaxseeds with 8% MC under different impact stresses. It is apparent that inducing impact stress increases mechanical damage to seeds. Similar patterns were observed for other combinations of moisture contents and impact stress, as detailed in our earlier publications [17, 18]. The 2D X-ray images (Fig. 2) offer a more nuanced perspective, particularly highlighting the internal seed damages that are not always externally visible. In our preceding studies, we delved into the analysis of these 2D X-ray images. Leveraging gray-level percentile scores and the Support vector machine (SVM) classifier, flaxseeds were categorized into two primary groups: nil/low and medium/high damage with a classification accuracy of 87% [17]. Amplifying this process with convolutional neural networks (CNN) and transfer learning methodologies, particularly the EfficientNet-B0 model, catapulted the classification accuracy to a commendable 95% [18]. The confusion matrix of a test set (30% of the entire data), delineating the classification of seeds using CNN into the aforementioned groups, is outlined in Table 1.

Fig. 1.
figure 1

Visuals of flaxseed with 8% moisture content, captured using a digital camera (model S20, Samsung Corp., Seoul, Korea) post-exposure to varied impact stresses: a) 0 mJ, b) 2 mJ, c) 4 mJ, d) 6 mJ.

Fig. 2.
figure 2figure 2

2D X-ray images of flaxseeds with 8% moisture content, subjected to a series of impact energies: a) none (0 mJ); b) low (2 mJ); c) medium (4 mJ); d) high (6 mJ) (unpublished images from the following studies [17, 18]).

Table 1. Classification outcomes using ANN classifiers [adapted from [18]]

Despite the undeniable prowess of X-ray systems in revealing detailed internal damages, their practical application in large-scale seed assessments is not without challenges. The first major obstacle is their constrained throughput performance; the time and resources required to scan extensive seed batches can be substantial. Secondly, the use of X-ray systems invariably introduces concerns regarding safety, especially in settings where continuous or prolonged use is necessitated. These inherent limitations of X-ray technology prompted us to seek out alternatives that could maintain a high level of accuracy while addressing these challenges.

In our quest for a suitable substitute, we turned our attention to the Vis-NIR HSI technique. This technology, renowned for its non-destructive and rapid analytical capabilities, emerged as a promising candidate. Our initial forays into Vis-NIR HSI involved processing the gathered data through mean centering, which aims to eliminate systematic biases. To further refine our data interpretation, PLS-DA model was tailored for supervised classification. Encouragingly, this approach yielded a classification accuracy of 89% under 5-fold cross-validation, positioning it competitively with the results achieved through X-ray systems.

While these preliminary findings showcase the potential of Vis-NIR HSI as a robust alternative to traditional X-ray imaging, they represent just the tip of the iceberg. The vast and intricate realm of possibilities proffered by Vis-NIR HSI beckons for more rigorous and comprehensive explorations to genuinely leverage its expansive capabilities in seed damage evaluations.

One should note that a challenge in implementing both the 2D X-ray and HSI systems lies in the complexity of analyzing large HSI datasets and the need for automating X-ray analysis for diverse seeds. While HSI systems typically come with a higher price tag compared to traditional spectroscopy systems, identifying key wavelengths can significantly minimize computational demands. This paves the way for multi-spectral systems, which are more cost-effective than full-fledged hyperspectral setups, streamlining analysis and reducing costs. As for X-ray imaging, automation would not only expedite the evaluation but also enhance its accuracy by mitigating human error and subjectivity. Exploring these areas further can potentially redefine seed evaluation, making it both more precise and economically viable.

In forthcoming research, we intend to delve into a meticulous analysis, prioritize wavelength selection, and undertake principle component analysis to further refine our approach and insights.

4 Conclusion

Overall, this study highlights the untapped potential of optical techniques in evaluating mechanical damage to seeds. The results suggest that implementing machine learning tools with optical techniques such as 2D X-ray imaging and HSI can provide a rapid and reliable alternative to the subjective and time-consuming visual inspection method. The outcomes of this research can contribute to developing new technologies for detecting and/or preventing damage, resulting in increased crop yields and reduced economic losses for stakeholders. However, to validate these findings, further testing should be performed on a wider range of crops.