Next Article in Journal
Effects of Sodic Water Irrigation and Neutralizing Amendments on Physiological, Biochemical, and Nutritional Quality Traits of Fodder Sorghum
Next Article in Special Issue
Assessing Within-Field Variation in Alfalfa Leaf Area Index Using UAV Visible Vegetation Indices
Previous Article in Journal
Influence of Nano-Chitosan Loaded with Potassium on Potassium Fractionation in Sandy Soil and Strawberry Productivity and Quality
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Destructive Method for Estimating Seed Weights from Intact Peanut Pods Using Soft X-ray Imaging

1
Institute of Facility Agriculture of Guangdong Academy of Agricultural Sciences, Guangzhou 510640, China
2
Department of Biosystems and Agricultural Engineering, Oklahoma State University, Stillwater, OK 75078, USA
3
College of Information Technology, Jilin Agricultural University, Changchun 130118, China
4
U.S. Department of Agriculture-Agricultural Research Service, Peanut and Small Grains Research Unit, Stillwater, OK 74075, USA
*
Author to whom correspondence should be addressed.
Agronomy 2023, 13(4), 1127; https://doi.org/10.3390/agronomy13041127
Submission received: 10 March 2023 / Revised: 13 April 2023 / Accepted: 13 April 2023 / Published: 15 April 2023
(This article belongs to the Special Issue Imaging Technology for Detecting Crops and Agricultural Products-II)

Abstract

:
In the U.S., peanut farmers receive premium prices for crops with high seed grades. One component of seed grade is the proportion of seed weight to that of pod hulls and other matter. Seed weight and size are also important traits for food processors. Current methods for evaluating peanut seed grade require the opening of the pod and are time-consuming and labor-intensive. In this study, a non-destructive and efficient method to determine peanut seed weights was investigated. X-ray images of a total of 513 peanut pods from three commercial cultivars, each representing three market types, were taken using a soft X-ray imaging system. The region of interest of each image, the seeds, was extracted two ways, manually and with a differential evolution segmentation algorithm. The comprehensive attenuation index (CAI) value was calculated from the segmented regions of interest. Lastly, linear regression models were established between peanut seed weights and the CAI. The results demonstrated that the X-ray imaging technology, coupled with the differential evolution segmentation algorithm, may be used to estimate seed weights efficiently from intact peanut pods.

1. Introduction

Peanut (Arachis hypogaea L.), an affordable and nutritionally dense source of protein, fatty acids, and carbohydrates [1], is widely grown in tropical and subtropical regions around the world [2,3]. In 2022, approximately 50 million metric tons were harvested worldwide, with China being the largest producer, with 37% of the world’s total production [4].
In the U.S., official grading procedures are used to determine prices to peanut growers for their harvested, unshelled crops or “farmers stock peanuts” [5,6]. A critical component determining the value of farmers’ stock peanuts is the percentage of total sound mature kernels (TSMK), i.e., undamaged kernels of a specific minimum size from a sample including pod hulls, foreign material, and small and damaged kernel [5,6]. To determine the TSMK for runner, Spanish, and Virginia peanut market types, 500 g pod samples must be sorted by size using pre-sizing machines before being machine shelled. After shelling, the seeds are then sorted by size using mechanical shakers and visually inspected for damage. Throughout the process, each category (TSMK, hulls, damaged kernels, etc.) is manually weighed [5,6]. The official process for grading and inspection is time-consuming and labor-intensive, and some service costs are passed on to growers.
Several efforts have been made to make the peanut grading process more efficient. Dowell [7,8] designed an automated system by interfacing a digital balance and a digital moisture meter for cleaning, shelling, and sizing seeds and pods, and data collection, but the system was not adopted by the industry. Few changes have been made to the official grading standards since its establishment in the 1960s [9]. Based on the observations that pod density is positively correlated with pod maturity and larger seeds [10], Butts and colleagues investigated the ability of using bulk pod density to predict grade factors [9]. They found that TSMK increased as pod bulk density increased; however, the association was not close enough to be useful for seed grading purposes [9]. Another non-destructive method—digital image analysis—was used to indirectly estimate pod volume associated with pod density and seed percentage by weight. Wu and colleagues (2015) found that pod volume was negatively correlated between pod density (r = −0.59) and percent seed (r = −0.34) [11].
Soft X-ray imaging is another non-destructive technique that has the potential to estimate seed weights from intact pods. X-ray images record levels of X-ray attenuation caused by chemical composition, density, and thickness [12] and, thus, can be used to analyze the internal structure of samples. Soft X-rays are electromagnetic waves with a wavelength range of 0.1–10 nm. Because they have low photon energies (about 0.1–5 keV) relative to hard X-rays (about 5–100 keV with a wavelength range of 0.01–0.1 nm), soft X-rays are considered to be safer to operate. At present, soft X-ray imaging technique has been widely used for detecting residual bones in meat such as chicken, pork and fish during processing link by in-line scanning X-ray images of samples in agricultural domain. Soft X-ray imaging has been recommended by the International Seed Testing Association (ISTA) for determining seed quality [13,14,15]. Furthermore, the attenuation caused by biological tissue such as crop seeds for X-ray radiation is commonly lower than other industrial materials. Hence, soft X-rays are more suitable for obtaining well-contrasted X-ray images than hard X-rays for biological tissue analysis. Previous research has reported innovative results by applying a soft X-ray imaging system for seed quality detection. For example, soybean seeds with physical and insect damage were detected with soft X-ray imaging [16]. Using extracted histogram and textural features from X-ray images and quadratic discriminant analysis, Chelladurai et al. [17] identified hollow spaces excavated by weevils and weevil pupae with high accuracy (≥89%). But eggs and pupae were more difficult to detect due to the detection limits of the system. Soft X-ray imaging technique was also effective on estimating pecan nutmeat weight, and the method resulted in an error of less than 10% compared with the reference method [18]. Recently, artificial intelligence tools and information fusion methods were also reported in analyzing X-ray images for seed quality detection. By analyzing the merger data from FT-NIR spectroscopy and X-ray images of small forage grass seeds, Medeiros et al. [19] could predict seed germination with a high accuracy of 90% by using machine learning methods. Nadimi et al. [20] achieved automated detection of mechanical damage in flaxseeds by utilizing an X-ray imaging technique with machine and deep learning tools, and the classification accuracy was as high as 91.0%. Hong et al. [21] could obtain a high accuracy of 92.51% by establishing an ensemble-based information fusion model from hyperspectral and X-ray image data for predicting the viability of pepper seeds. A more advanced (and costly) application of X-ray technology, X-ray micro-computed tomography (X-ray μCT), can be used to generate three-dimensional images. Guelpa and colleagues [22] used X-ray μCT on maize seeds to determine the volume and density of maize seed for assessing milling quality.
To date, few works have been reported on applying X-ray technologies to evaluate peanut seed quality. Sorenson et al. [23] explored X-ray imaging as an alternative to the commonly-used hull scrape method [24] for assessing peanut maturity. They found that the seed area and density features of dried peanut pods were highly correlated with some stages of maturity [23]. Recently, Domhoefer et al. [25] also focused on investigating the possibilities of estimating peanut seed weight by using the X-ray technique. They obtained good models while applying the convolutional neural network (CNN) model on analyzing X-ray images, and high determination coefficients of 0.94 for kernel weight were obtained by the CNN method in the testing steps, respectively. This study attempted to deduce the computationally relationship between the gray level value of X-ray image and peanut seed weight, and then to investigate the method of using X-ray imaging techniques to estimate peanut seed weights from intact peanut pods. This was achieved through four specific tasks: (1) establish an X-ray imaging system to collect X-ray images of the peanut pods; (2) develop image processing and segmenting algorithms to extract the peanut seed area in X-ray image as the region of interest (ROI); (3) deduce the mathematical formula between the grey value of pixels of ROI and the peanut seed weight; and (4) conduct tests to validate the developed algorithm and method.

2. Materials and Methods

2.1. Peanut Samples

A total of 513 pods from three commercial peanut cultivars (Florida Fancy, Plant Variety Patent (PVP) 200800231; Wynne, PVP 201500288; OLé [26]) were used for the experiment. Florida Fancy and Wynne are Virginia market-type peanuts with large pods, and OLé is a Spanish market-type peanut with small pods. Peanut pods without external damage were randomly selected.

2.2. Soft X-ray Imaging System

Figure 1 shows a schematic diagram of the soft X-ray imaging system used for this study. The soft X-ray imaging system used in this study was similar to that used by Kotwaliwale et al. [18], upgrading an X-ray camera with a larger imaging unit. It consisted of an X-ray tube (XTFTM-5011, Oxford Instruments, X-ray Technologies, Inc., Scotts Valley, CA, USA), a solid-state digital X-ray camera (Shad-o-BoxTM 2048, Rad-icon, Imaging, Corp., Santa Clara, CA, USA), a digital frame grabber (Imagenation® PXD 1000, Imagenation Corp., Minneapolis, MN, USA), a data acquisition and control card (Omega® DAQ 801 OM, Omega Engineering, Inc., Norwalk, CT, USA), and a personal computer with ShadoCam software Version 3.0.2 (Rad-icon Imaging, Corp., Santa Clara, CA, USA).
The X-ray tube operated at a voltage range from 0 to 50 kVp with a maximum current of 1 mA, which has a lower peak voltage but higher maximum current than those parameters in other X-ray imaging systems [25]. Increasing the acceleration peak voltage and/or current might be a feasible way to shorten the integration time for capturing the X-ray images. The energy of X-ray beams generated by these peak voltage and current ranges is suitable for agricultural products [27]. The voltage and current of the X-ray tube in this study could be adjusted in 5 kVp and 0.1 mA increments, respectively. Inside the X-ray tube, the X-ray beam was generated at the tungsten anode and passed through a beryllium window with a thickness of 127 μ m . The X-ray tube emitted a cone-shaped beam with an angle of 25 degrees at a mounting height of 18.0 cm above the X-ray camera.
The X-ray camera contained a 49.2 mm × 98.6 mm area image sensor, which had a 1024 pixels × 2048 pixels photodiode array with 48 μ m pixel spacing. With a Gd2O2S scintillator screen in contact with the photodiode array, the incident X-ray photons were converted to visible light signals. The analog signals in each pixel were then digitized to binary codes and processed by the frame grabber, which was installed in a desktop computer with an Intel i5-8250U CPU and a 16 GB RAM, running Microsoft Windows 10 Pro. X-ray images of peanut samples were captured and saved as gray-level images.

2.3. Imaging Peanut Pods

During every image acquisition, radiograph images of two peanut pods were taken by placing the pods on the imaging window of the X-ray camera. Since the mass attenuation coefficients vary with the material of the samples and the energy of the X-ray light source, two assumptions were made [22]. First, this study assumed that the mass attenuation coefficients of peanut seeds in a single cultivar as well as in three cultivars were uniform. Second, the emitted energy of the X-ray light remained the same during an imaging acquisition when the X-ray tube was set at the same peak voltage (Vp) and current. During the X-ray image acquisition, the X-ray source was configured at 20 kVp voltage, 0.6 mA current, and 2 s integration time, which were optimized in pre-experiment according to the method of literature [18].

2.4. Manual Segmentation and Comprehensive Attenuation Index

All X-ray images were preprocessed with noise filtering, cropping, and compression conversion. Due to some defective pixels inside the X-ray camera detector, a median filter with a window size of 5 × 5 pixels was first applied to remove image noise. It was also found that pixels near the border of all collected X-ray images were either inactive or responded erratically. Therefore, each X-ray image of single pods was manually cropped to 1000 × 512 pixels.
Figure 2 shows the segmentation and calculation processes for a peanut X-ray image. Each image was segmented manually with selected intensity thresholds to obtain the shell and seed regions. For example, in Figure 2a, it was observed that attenuation levels were different when an X-ray beam passed through peanut shells (brighter) and seeds (darker). The X-ray beam was attenuated more when passing through the seed (darker region) than the shell (brighter region). By using the selected thresholds, the region of seed was extracted as the region of interest (ROI) in Figure 2c.
Calculating the total amount of attenuation within an ROI was essential to establishing a weight calculation model. Linear attenuation and mass attenuation coefficients were used to calculate attenuation in monochromatic radiation, and both were specific to the targeted object and the energy level of the X-ray beam [28]. The mathematic formula used to describe the attenuation is shown in Equation (1) [28]:
N = N 0 · e μ x
where N is the number of transmitted photons, N 0 is the number of incident photons, e was the base of the natural logarithm, μ is the linear attenuation coefficient (m−1), and x is the thickness of a target object (m). The mass attenuation coefficient is often used in diagnostic radiology and is defined as the ratio of the linear attenuation coefficient and matter density [28]:
γ = μ ρ
where γ is the mass attenuation coefficient (m2/kg), ρ is the physical density of sample matter (kg/m3). Generally, the weight of a sample could be calculated as follows:
m = ρ · v
where m is the weight of the seed (kg), v is the volume of the sample (m3).
Within an ROI, the volume of each pixel intensity can be calculated by the product of a cross-section area of the pixel and the intensity at the pixel. Then, the total mass of seeds is the summed mass of all the pixels in the ROI (Equation (4)):
m = ρ · s · x i j
where s is the cross-section physical area of each pixel in m2; x i j represents the thickness at pixel ( i , j ) ( m ) , equivalent to the thickness of the seed in the pixel ( i , j ) (Figure 2d). While the variations of total attenuation in the ROI mainly are due to the different seed weights, the weight of seeds in ROI can be described by combining Equations (1), (2), and (4), as follows:
m = s γ · R O I ln N 0 N
where N is the gray value of a pixel in the ROI, which is the intensity of an X-ray beam detected after traversing seed matter, and N 0 is the gray value of the same pixel that the intensity of an X-ray beam measured without any samples. Based on the two assumptions made for this study, s γ in Equation (5) is treated as a constant. The comprehensive attenuation index (CAI) is calculated by Equation (6):
CAI = R O I ln N 0 N
where CAI is proposed in this study to sum up the X-ray attenuation caused by the peanut seeds in a pod. In this way, the CAI value can be calculated for each peanut to determine the degree of attenuation from an original X-ray image, and the slope coefficients, which include the information of the mass attenuation coefficient, can be fitted from the calibration set, since the linear relationship between the sample weight and CAI value is derived theoretically. Hence, linear regression models can be feasibly calibrated to transform the exponential attenuation information in X-ray images of peanut pods into the total amount of mass of peanut seeds.

2.5. Differential Evolution Segmentation Algorithm

Manual image segmentation is very time-consuming; thus, it needs to be automated [29]. The differential evolution (DE) algorithm has been widely used for numerical optimization problems because of its simplicity, robustness, and good convergence properties [30]. The Tsallis entropy function is commonly used for image thresholding [31]. In this study, the DE algorithm coupled with the Tsallis entropy function were applied to optimize the threshold determination to automatically obtain the ROI in a peanut seed image.
As shown in Figure 2a, the background, pod shell, and peanut seed are displayed as light, intermediate, and dark areas, respectively. The background area was the lightest because no attenuation occurred when the detector was directly exposed to the X-ray source. By contrast, the X-ray beam that passed through the peanut seed area was attenuated the most, showing a darker area in the image. The Tsallis entropy function was used to evaluate the segmentation results of dark, intermediate, and bright regions. The Tsallis entropy, E T s a l l i s , was calculated by Equation (7):
E T s a l l i s = ( i = 0 α p i i = 0 α p i · ln p i i = 0 α p i + i = α β p i i = α β p i · ln p i i = α β p i + i = β 255 p i i = β 255 p i · ln p i i = β 255 p i ) , 0 < α < β < 255
where α was the threshold for segmenting dark area from images, β was the threshold for segmenting light area from images, and p i was the ratio of all pixels with a value of i to the total pixels of an image. The target thresholds α and β were optimized between the minimal pixel value of zero and the maximal pixel value of 255 in an 8-bit grayscale X-ray image. A higher entropy value indicated that pixels of peanut seed, pod shell, and background were accurately assigned to light, intermediate, and dark, respectively.
The DE algorithm was a population-based optimization technique for globally optimizing multi-modal functions, which was widely used for its simplicity, robustness, and good convergence properties [32]. In this study, the DE algorithm was used to optimize the thresholds α and β by maximizing the designed metric E T s a l l i s . In the DE algorithm, the thresholds α and β were updated according to Equation (8) in each iteration:
α = α 0 + α optimal 2 , β = β 0 + β optimal 2
where α was the updated value of α 0 , β was the updated value of β 0 , and α optimal and β optimal were the optimal thresholds resulting from the optimal entropy in the previous iteration. To avoid local optimizations, the worst 25% of individuals were randomly regenerated in each iteration. During the initialization process, 100 individuals of the population and 50 iterations in total were set to ensure individual diversity and algorithm convergence. After all the iterations were completed, the thresholds resulting in the optimal entropy values were applied for segmentation.

2.6. Test of Significance

Equation (5) assumed that there was a strict linear relationship between the seed mass and the CAI value. Hence, the t-test and the F-test were applied to test the statistical significance of correlation coefficients by using experimental sample data, and an alpha level of 0.01 was selected to determine the significance of the statistic index. From another perspective, it was treated as a method to examine the correctness of the derived Equation (5).

2.7. Data Sets and Model Evaluation

Linear regression models were developed to predict peanut seed weights using the CAI calculated from the X-ray images. The performance of the developed models was evaluated using the determination coefficient ( R 2 ) and the root mean square error (RMSE) for the calibration and the validation sets, respectively (Equations (9) and (10)):
R 2 = 1 i = 1 n y i y i ^ 2 i = 1 n y i y ¯ 2
where y i ^ is the weight of i t h sample calculated from model (g), y i is the measured weight of i t h sample (g), y is the average weight of the samples in the calibration set (g), and n is the total number of the samples in the calibration set.
RMSEC ( RMSEP ) = i = 1 n y i ^ y i 2 n
where RMSEC is the root mean square error of the calibration set (g), and RMSEP is the root mean square error of predicting the validation set (g).

3. Results

3.1. Statistical Distribution of Seed Weights

Peanut pods within each cultivar were divided into a calibration set and a validation set, and the seed weights in the calibration set and validation set from each cultivar are summarized in Table 1. Boxplot diagrams were also drawn, as shown in Figure 3, to depict the distribution and range of seed weight in three cultivars.
The distributions of seed weight of the three cultivars were different in their range of variability. The peanut pod of the Wynne cultivar was characterized by its large size, the seed weights of selected samples ranged from 0.20 g to 3.76 g/pod, with a mean of 1.90 g/pod in the calibration set. On the other hand, the peanut pod size of the OLé cultivar was much smaller, with a mean of 0.96 g/pod, ranging from 0.54 g to 1.4 g/pod in the calibration set. The peanut pod of Florida Fancy was the medium size of the three cultivars, with a range of 0.05~2.68 g/pod and a mean of 1.54 g/pod in the calibration set.

3.2. Correlations between CAI Values and Seed Weights

CAIs were calculated based on manual segmented ROI and DE segmented ROI, respectively. The correlation coefficients (r) between CAIs and peanut seed weights are presented in Table 2. The results showed that the linear correlation relationships were significant at a level of 0.01 for all experimental data sets. All correlation coefficients were greater than 0.92, showing a strong positive linear correlation relationship between the CAI values and seed weights. Hence, linear regression models could be performed in further processes.

3.3. Regression Models for Estimating Peanut Seed Weights

The linear regression models between CAI values and seed weights, established after passing the t-statistic tests, and the parameters of the models are shown in Table 3. All the models performed high R2 values and low RMSEC and RMSEP values, which passed the significance test of the F-statistic at a 99.9% confidence level. All R2 values were greater than 0.85, which showed the linear relationship between the CAI values and the seed weights. The linear regression model with the manual segmentation method of the Wynne cultivar performed the best with an R2 of 0.9672. The RESEP values from models of three cultivars ranged from 0.0756 g to 0.1463 g, in an equivalent range of 0.0617~0.1518 g among all RMSEC values. Meanwhile, it was observed that the models with the DE segmentation method performed as similarly well as those models with the manual segmentation method. In other words, the DE optimized thresholding method developed in this study could obtain as precise target ROIs as the manual segmentation method did. The combined models were calibrated by merging samples in three calibration sets from all cultivars. The R2 values were 0.9652 and 0.9547 for combined models with manual and DE segmentation methods, respectively.
Figure 4 shows the prediction details for the calibration and validation sets in models with the DE segmentation method. The model for the Wynne cultivar performed the best, with an R2 of 0.9514. The model for the OLé cultivar achieved a lower R2 of 0.8775 than the other two cultivars. While merging the samples of three calibration sets from all cultivars into a larger calibration set, the combined model was slightly better than other models calibrated within samples of a single cultivar. The combined model with the DE segmentation method resulted in a higher R2 value of 0.9547 and an RMSEP value of 0.1206 g, achieving an acceptable deviation level for practical applications.

4. Discussion

In this study, the soft X-ray imaging method was demonstrated to address the problem of estimating the seed weight of unshelled peanut pods. Three cultivars of peanut characterized in different pod sizes, namely Florida Fancy, OLé, and Wynne, were selected to represent peanut samples in a wide variety of pod sizes. At the same time, the differential evolution (DE) segmentation algorithm was designed as an ROI segmentation method to accommodate the changes in pod size. The results showed that the X-ray imaging method had significant potential advantages in measuring peanuts' seed weight without peeling the shell. This would contribute to the realization of automatic operation for peanut quality grading.
Based on the data in Table 2, the high correlation coefficients showed that there was a strong linear relationship of the proposed CAI indicator and peanut seed weight. By converting the exponential absorption information into a linear indicator, it provided a pathway to transform a two-dimensional (2D) pixel into a three-dimensional (3D) voxel for virtual volume computations, as previous studies reported [15,33]. It would also be more intuitive to show the calculation process and acquire the actual weight of peanut seeds.
According to the data in Table 3, the linear regression relationship was proved by the experimental data set at a 99.9% confidence level. The ROIs were extracted by a manual method, and DE method, the R2 value of the model for the Wynne cultivar was the highest, while that of the model for the OLé cultivar was the lowest. This could be due to the differences in the size of the seeds and the number of samples included in the models. OLé had a smaller sample size and seed weight than the other two cultivars, and the physical size of seeds and pods of the Wynne cultivar were the largest among the three cultivars. This indicated that the relative error of the model for measuring large-size peanut samples would be reduced. On the other hand, the models with DE automatic segmentation method performed as well as those models with manual segmentation method in each cultivar. The gaps between DE models and manual models might mainly result from the fact that the DE optimized thresholding method only considered the gray value of pixels, while the manual segmentation considered the morphological features visually of peanut pods and seeds beside the pixel values. Hence, the manual segmentation method could provide a more precise ROI for calculating the CAI value. However, the models based on the DE segmentation algorithm had advantages in the potential for automation.
The combined models were established to investigate the feasibility of developing a common model for estimating peanut samples of different cultivars. Subsequently, the combined model with the DE method obtained a slightly higher R2 value of 0.9547 than other models with the DE method upon single cultivars, since a larger sample size resulted in a better fitting of the model coefficients. Meanwhile, it appeared that the seeds of the three cultivars had approximately the same mass attenuation characteristic. Hence, it could conservatively come to a conclusion that it could be feasible to establish a comprehensive method for estimating seed weights for different cultivated peanut genotypes in future applications.
While discussing the applications of the X-ray imaging technique, it has been usually compared with the X-ray computed tomography (CT) imaging technique [22,34,35]. Notoriously, the X-ray CT technique has been widely used for medical and non-medical applications since it has a higher resolution in 3D visualization analysis. However, the X-ray CT technique was still costly and time-consuming, and was not suitable for high-throughput batch detection of industry uses. On the contrary, the advantages of X-ray imaging were low cost, high speed, and the ability to handle a batch of samples at high throughput. In this study, it set an exposure time of 2 s to capture an X-ray image and an average 2 s to calculate the seed weight with a common desktop computer; this process can be shortened by increasing the peak voltage and/or current amplitude as well as improve the computing power. Domhoefer et al. [25] only spent 0.3 s on capturing an X-ray image of a peanut pod and also reported the time for prediction of features were approximately 1 s by the X-ray image transformation method and 6 s by convolutional neural network method with additional GPU hardware. Developing pipeline-type detection equipment and integrating the established model into the control system would become an effective way to realize high-throughput detection for the peanut industry by using an X-ray imaging technique. Meanwhile, further concerns regarding the potential issues that might arise should be addressed while implementing the X-ray imaging technique in the agricultural field. Firstly, the possible radiation hazard to the human body must be first considered because agricultural products are the main source of energy for human beings. The higher energy of X-ray beam would pose a higher radiation risk to living animals and plants, as well as humans who adopt these food as a source of energy. Therefore, it is necessary to verify that using X-ray radiation would not substantially alter the gene character of samples before applying the technique to a large scale. Secondly, the difference in attenuation properties between the target part and the background part in samples should be significant because the similarity in the attenuation properties would result in poor image contrast and pose a challenge in image segmentation. Thirdly, according to the service life of the X-ray imaging system, routine maintenance is required to ensure the accuracy and reliability of the detection results.
Based on the above concerns, more meaningful research could be carried out in future research. First of all, the effects on agricultural products such as crop seeds caused by X-ray beams with different radiation energies deserve to be studied. Furthermore, it is necessary to develop more robust and intelligent image analysis algorithms in the future, which could address more complex detection problems. Finally, it is also of great significance to study innovative technologies for producing X-ray light source generators and camera detectors in X-ray imaging systems, since improving the stability of the light source, as well as the sensitivity of the sensor, and reducing the energy consumption of the system are important factors to promote the popularization of X-ray imaging technique for industrial applications. Overall, there are still many factors to be taken into account while developing an automated commercial system using a portable X-ray technique, including real-time consumption, high throughput batch processing capability, and economic costs.

5. Conclusions

This study successfully demonstrated a non-destructive method to estimate the peanut seed weight of intact peanut pods by using soft X-ray imaging and an automatic threshold segmentation algorithm. It is feasible to non-destructively measure the peanut seed weights by calculating the gray value of pixels on an X-ray image of unshelled pods. The differential evolution (DE) algorithm, designed to obtain the region of peanut seeds within the X-ray image, could automatically extract the target ROI as precisely as manually. The comprehensive attenuation index (CAI) value was calculated from the segmented ROIs. The high correlation coefficients of CAI values and actual seed weights showed a strong positive linear correlation relationship between these two variables. Furthermore, the high determination coefficients in experimental results verified that linear regression models could be used for predicting peanut seed weights with an unknown independent sample set. Overall, it demonstrated that the X-ray imaging technology, coupled with the differential evolution segmentation algorithm, can be used to estimate seed weights from intact peanut pods non-destructively and efficiently. More work is needed to fine-tune the developed models and invent equipment with additional experimental studies, promoting this technology to produce huge economic benefits in the peanut value chain.

Author Contributions

Conceptualization and methodology, N.W., R.S.B., G.Q., and Y.L.; data collection and analysis, Y.L. and G.Q.; original draft preparation, G.Q.; review and editing, N.W., R.S.B., and P.R.W.; project administration, N.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the USDA-NIFA Hatch Projects: OKL03169 and OKL03178 and also supported by the Natural Science Foundation of Guangdong Province (2022A1515010391); the Innovation Fund of Guangdong Academy of Agricultural Sciences (No. 202104); the National Natural Science Foundation of China (No. 42001256); and the Youth Training Program of Guangdong Academy of Agricultural Sciences (No. R2020QD-061).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Davis, J.P.; Dean, L.L. Peanut Composition, Flavor and Nutrition. In Peanuts: Genetics, Processing, and Utilization; Stalker, H.T., Wilson, R.F., Eds.; AOCS Press, Elsevier: London, UK, 2016; pp. 289–345. [Google Scholar]
  2. Hammons, R.O.; Herman, D.; Stalker, H.T. Origin and Early History of the Peanut. In Peanuts: Genetics, Processing, and Utilization; Stalker, H.T., Wilson, R.F., Eds.; AOCS Press, Elsevier: London, UK, 2016; pp. 1–26. [Google Scholar]
  3. Fletcher, S.M.; Shi, Z. An Overview of World Peanut Markets. In Peanuts: Genetics, Processing, and Utilization; Stalker, H.T., Wilson, R.F., Eds.; AOCS Press, Elsevier: London, UK, 2016; pp. 267–287. [Google Scholar]
  4. Foreign Agricultural Service, USDA. Peanut 2022 World Production. Available online: https://ipad.fas.usda.gov/cropexplorer/cropview/commodityView.aspx?cropid=2221000 (accessed on 17 February 2023).
  5. Davidson, J.I.; Whitaker, T.B.; Dickens, J.W. Grading, cleaning, storage, shelling and marketing of peanuts in the United States. In Peanut Science and Technology; Pattee, H.E., Young, C.T., Eds.; American Peanut Research and Education Society Inc.: Yoakum, TX, USA, 1982; pp. 571–623. [Google Scholar]
  6. USDA-AMS. Farmers’ Stock Peanut Inspection Instructions; USDA-AMS: Washington, DC, USA, 2019.
  7. Dowell, F.E. Design, Testing, and Implementation of a Data Automation System for the Peanut Quality Inspection Process. Peanut Sci. 1995, 22, 94–101. [Google Scholar] [CrossRef]
  8. Dowell, F.E. An Automated Cleaning, Pod Sizing, Shelling, and Kernel Sizing System for Grading Farmers Stock Peanuts. Peanut Sci. 1996, 23, 46–54. [Google Scholar] [CrossRef]
  9. Butts, C.L.; Kandala, C.; Sorensen, R.B.; Lamb, M.C. In-shell Bulk Density as an Estimator of Farmers Stock Grade Factors. Peanut Sci. 2007, 34, 135–141. [Google Scholar] [CrossRef]
  10. Rucker, K.S.; Kvien, C.K.; Calhoun, K.; Henning, R.J.; Holbrook, C.C. Sorting Peanuts by Pod Density to Improve Quality and Kernel Maturity Distribution and to Reduce Aflatoxin. Peanut Sci. 1994, 21, 147–152. [Google Scholar] [CrossRef]
  11. Wu, C.; Gill, R.; Chu, Y.; Holbrook, C.C.; Ozias-Akins, P. Fine Phenotyping of Pod and Seed Traits in Arachis Germplasm Accessions Using Digital Image Analysis. Peanut Sci. 2015, 42, 65–73. [Google Scholar] [CrossRef]
  12. Melo, R.D.A.; Forti, V.A.; Cicero, S.M.; Novembre, A.D.; Melo, P.C.T. Use of X-ray to evaluate damage caused by weevils in cowpea seeds. Hortic. Bras. 2010, 28, 472–476. [Google Scholar] [CrossRef]
  13. ISTA. International Rules for Seed Testing; The International Seed Testing Association: Zurich, Switzerland, 2019. [Google Scholar]
  14. Mathanker, S.K.; Weckler, P.R.; Bowser, T.J. X-ray Applications in Food and Agriculture: A Review. Trans. ASABE 2013, 56, 1227–1239. [Google Scholar]
  15. Arkhipov, M.V.; Priyatkin, N.S.; Gusakova, L.P.; Potrakhov, N.N.; Gryaznov, A.Y.; Bessonov, V.B.; Obodovskii, A.V.; Staroverov, N.E. X-ray Computer Methods for Studying the Structural Integrity of Seeds and Their Importance in Modern Seed Science. Tech. Phys. 2019, 64, 582–592. [Google Scholar] [CrossRef]
  16. Pinto, T.L.F.; Cicero, S.M.; Franca-Neto, J.B.; Forti, V.A. An assessment of mechanical and stink bug damage in soybean seed using X-ray analysis test. Seed Sci. Technol. 2009, 37, 110–120. [Google Scholar] [CrossRef]
  17. Chelladurai, V.; Karuppiah, K.; Jayas, D.S.; Fields, P.G.; White, N.D.G. Detection of Callosobruchus maculatus (F.) infestation in soybean using soft X-ray and NIR hyperspectral imaging techniques. J. Stored Prod. Res. 2014, 57, 43–48. [Google Scholar] [CrossRef]
  18. Kotwaliwale, N.; Weckler, P.R.; Brusewitz, G.H.; Kranzler, G.A.; Maness, N.O. Non-destructive quality determination of pecans using soft X-rays. Postharvest Biol. Technol. 2007, 45, 372–380. [Google Scholar] [CrossRef]
  19. Medeiros, A.D.D.; Silva, L.J.D.; Ribeiro, J.P.O.; Ferreira, K.C.; Rosas, J.T.F.; Santos, A.A.; Silva, C.B.D. Machine Learning for Seed Quality Classification: An Advanced Approach Using Merger Data from FT-NIR Spectroscopy and X-ray Imaging. Sensors 2020, 20, 4319. [Google Scholar] [CrossRef]
  20. Nadimi, M.; Divyanth, L.G.; Paliwal, J. Automated Detection of Mechanical Damage in Flaxseeds Using Radiographic Im-aging and Machine Learning. Food Bioprocess Tech. 2023, 16, 526–536. [Google Scholar] [CrossRef]
  21. Hong, S.; Park, S.; Lee, A.; Kim, S.; Kim, E.; Lee, C.; Kim, G. Nondestructive prediction of pepper seed viability using single and fusion information of hyperspectral and X-ray images. Sens. Actuators A Phys. 2023, 350, 114151. [Google Scholar] [CrossRef]
  22. Guelpa, A.; du Plessis, A.; Manley, M. A high-throughput X-ray micro-computed tomography (μCT) approach for measuring single kernel maize (Zea mays L.) volumes and densities. J. Cereal Sci. 2016, 69, 321–328. [Google Scholar] [CrossRef]
  23. Sorensen, R.B.; Butts, C.L.; Lamb, M.C. X-ray Technology to Determine Peanut Maturity. Peanut Sci. 2020, 47, 38–45. [Google Scholar] [CrossRef]
  24. Williams, E.J.; Drexler, J.S. A non-destructive method for determining peanut pod maturity. Peanut Sci. 1981, 8, 134–141. [Google Scholar] [CrossRef]
  25. Domhoefer, M.; Chakraborty, D.; Hufnagel, E.; Claussen, J.; Worlein, N.; Voorhaar, M.; Anbazhagan, K.; Choudhary, S.; Pasupuleti, J.; Baddam, R.; et al. X-ray driven peanut trait estimation: Computer vision aided agri-system transformation. Plant Methods 2022, 18, 76. [Google Scholar] [CrossRef]
  26. Chamberlin, K.D.; Bennett, R.S.; Damicone, J.P.; Godsey, C.B.; Melouk, H.A.; Keim, K. Registration of ‘OLé’ Peanut. J. Plant Regist. 2015, 9, 154. [Google Scholar] [CrossRef]
  27. Kotwaliwale, N.; Singh, K.; Kalne, A.; Jha, S.N.; Seth, N.; Kar, A. X-ray imaging methods for internal quality evaluation of agricultural produce. J. Food Sci. Technol. 2014, 51, 1–15. [Google Scholar] [CrossRef]
  28. Curry, T.S.; Dowdey, J.E.; Murry, R.C. Christensen’s Physics of Diagnostic Radiology, 4th ed.; Lea and Febiger: Philadelphia, PA, USA, 1990. [Google Scholar]
  29. Stolojescu-crisan, C.; Holban, S. A Comparison of X-ray Image Segmentation Techniques. Adv. Electr. Comput. Eng. 2013, 13, 85–92. [Google Scholar] [CrossRef]
  30. Liu, B.; Wang, L.; Jin, Y.; Huang, D.; Tang, F. Control and Synchronization of Chaotic Systems by Differential Evolution Algorithm. Chaos Solitons Fractals 2007, 34, 412–419. [Google Scholar] [CrossRef]
  31. Portes De Albuquerque, M.; Esquef, I.A.; Gesualdi Mello, A.R.; Portes De Albuquerque, M. Image thresholding using Tsallis entropy. Pattern Recognit. Lett. 2004, 25, 1059–1065. [Google Scholar] [CrossRef]
  32. Cuevas, E.; Zaldivar, D.; Pérez-Cisneros, M. A novel multi-threshold segmentation approach based on differential evolution optimization. Expert Syst. Appl. 2010, 37, 5265–5271. [Google Scholar] [CrossRef]
  33. Schmidt, J.; Claussen, J.; Worlein, N.; Eggert, A.; Fleury, D.; Garnett, T.; Gerth, S. Drought and heat stress tolerance screening in wheat using computed tomography. Plant Methods 2020, 16, 15. [Google Scholar] [CrossRef]
  34. Zhou, H.; Riche, A.B.; Hawkesford, M.J.; Whalley, W.R.; Atkinson, B.S.; Sturrock, C.J.; Mooney, S.J. Determination of wheat spike and spikelet architecture and grain traits using X-ray Computed Tomography imaging. Plant Methods 2021, 17, 26. [Google Scholar] [CrossRef]
  35. Du, Z.; Hu, Y.; Ali, B.N.; Mahmood, A. X-ray computed tomography for quality inspection of agricultural products: A review. Food Sci. Nutr. 2019, 7, 3146–3160. [Google Scholar] [CrossRef]
Figure 1. The schematic diagram of the soft X-ray imaging system.
Figure 1. The schematic diagram of the soft X-ray imaging system.
Agronomy 13 01127 g001
Figure 2. The segmentation and calculation process for a peanut X-ray image: (a) a raw X-ray image of a peanut pod. (b) Identification of the shell region in green and the seed region in purple. (c) Extracted seed region and marked as ROI. (d) Virtual volume at each pixel of ROI according to comprehensive attenuation index (CAI) value.
Figure 2. The segmentation and calculation process for a peanut X-ray image: (a) a raw X-ray image of a peanut pod. (b) Identification of the shell region in green and the seed region in purple. (c) Extracted seed region and marked as ROI. (d) Virtual volume at each pixel of ROI according to comprehensive attenuation index (CAI) value.
Agronomy 13 01127 g002
Figure 3. Boxplot diagrams of the distribution range of seed weight of cultivars Florida Fancy, OLé, and Wynne.
Figure 3. Boxplot diagrams of the distribution range of seed weight of cultivars Florida Fancy, OLé, and Wynne.
Agronomy 13 01127 g003
Figure 4. The prediction results of the models based on the DE segmentation algorithms for the calibration sets and the validation sets: (a) Florida Fancy; (b) OLé; (c) Wynne; (d) combined sample with all three cultivars.
Figure 4. The prediction results of the models based on the DE segmentation algorithms for the calibration sets and the validation sets: (a) Florida Fancy; (b) OLé; (c) Wynne; (d) combined sample with all three cultivars.
Agronomy 13 01127 g004
Table 1. Number of pods and seed weights for the cultivars used in model calibration and verification.
Table 1. Number of pods and seed weights for the cultivars used in model calibration and verification.
Calibration SetValidation Set
CultivarNo. PodsRange of Seed Weight (g/pod)1 SD
(g)
Mean (g)No. PodsRange of Seed Weight (g)1 SD
(g)
Mean (g)
Florida Fancy1660.05~2.680.421.54830.21~2.430.401.52
OLé760.54~1.400.190.96380.62~1.360.200.98
Wynne1000.20~3.760.691.90500.32~3.070.612.04
Notes: 1 SD: standard deviation.
Table 2. Correlation coefficients between CAI values and peanut seed weights.
Table 2. Correlation coefficients between CAI values and peanut seed weights.
CultivarThresholding MethodsNo. Pods Sampledrt-Statistic
( t n 2 )
p-Value
Florida Fancy1 Manual2490.971764.7078<0.001
2 DE2490.962655.8754<0.001
OLé1 Manual1140.937728.5606<0.001
2 DE1140.925325.8168<0.001
Wynne1 Manual1500.982263.6823<0.001
2 DE1500.974252.5599<0.001
Note: 1 manual: manual segmentation, 2 DE: differential evolution segmentation.
Table 3. The results of seed weight estimation models for the three peanut cultivars.
Table 3. The results of seed weight estimation models for the three peanut cultivars.
CultivarThreshold Method1 Cal. SetModel CoefficientsRMSEC
(g)
R24 Val. SetRMSEP
(g)
2 a3 b
Florida Fancy5 Manual1668.8338 × 10−6−0.00460.09960.9440830.0927
6 DE1668.6514 × 10−60.03190.11320.9276830.1084
OLé5 Manual768.5294 × 10−60.07390.06170.8932380.0756
6 DE768.2347 × 10−60.11020.06610.8776380.0845
Wynne5 Manual1008.6849 × 10−6−0.07450.12470.9672500.1248
6 DE1008.3274 × 10−6−0.00580.15180.9514500.1463
7 Combined5 Manual3428.2836 × 10−60.07140.10930.96521710.1063
6 DE3428.0539 × 10−60.11120.12460.95471710.1207
Notes: 1 Cal. Set: number of peanut pods in the calibration set; 2  a : slope coefficient of the linear regression model; 3  b : intercept coefficient of the linear regression model; 4 Val. Set: number of peanut pods in the validation set; 5 manual: manual segmentation, 6 DE: differential evolution segmentation. 7 Combined: samples with a combination of the three varieties.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Qiu, G.; Liu, Y.; Wang, N.; Bennett, R.S.; Weckler, P.R. Non-Destructive Method for Estimating Seed Weights from Intact Peanut Pods Using Soft X-ray Imaging. Agronomy 2023, 13, 1127. https://doi.org/10.3390/agronomy13041127

AMA Style

Qiu G, Liu Y, Wang N, Bennett RS, Weckler PR. Non-Destructive Method for Estimating Seed Weights from Intact Peanut Pods Using Soft X-ray Imaging. Agronomy. 2023; 13(4):1127. https://doi.org/10.3390/agronomy13041127

Chicago/Turabian Style

Qiu, Guangjun, Yuanyuan Liu, Ning Wang, Rebecca S. Bennett, and Paul R. Weckler. 2023. "Non-Destructive Method for Estimating Seed Weights from Intact Peanut Pods Using Soft X-ray Imaging" Agronomy 13, no. 4: 1127. https://doi.org/10.3390/agronomy13041127

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