Submitted:
26 January 2024
Posted:
29 January 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Samples
2.2. Experimental Equipment
2.3. Data Processing and Modeling Methods
2.3.1. Preprocessing Methods
2.3.2. Successive Projections Algorithms (SPA) Method
- Arbitrarily select a column in the spectral matrix , is the initial wave band , where . The number of variables to be extracted is .
- Before the iteration starts, assign to .
- Denote the set of remaining vector positions as :
- Compute the projections of onto the remaining column vectors separately:
- Take the maximum value of the projection values, denoted as:
- Take the maximum projection value as the initial value for the next iteration, return to step 2, and perform cyclic calculations.
- The combination of all bands obtained by dimensional reduction is denoted as S:
2.3.3. Competitive Adaptive Reweighted Sampling (CARS) Method
- By employing the Monte Carlo sampling method, a fixed number of samples are randomly selected each time from the calibration set for the modeling set, while the remaining samples form the prediction set for building the PLS model. The number of Monte Carlo samples (N) must be predetermined.
- Calculate the absolute value weight of the regression coefficient in the PLS model for each iteration. represents the absolute value of the regression coefficient for the ith variable, and denotes the absolute value weight of the regression coefficient for the th variable.
- Use the exponentially decreasing function (EDF) to remove wavelengths with relatively smaller absolute values of regression coefficients. The proportion of retained wavelength points based on the EDF is calculated during the th MC sampling for building a PLS model.Where , .
- During each sampling, the number of wavelength variables selected for PLS modeling using adaptive weighted sampling (ARS) is , and the RMSECV is calculated.
- After repeating times of sampling, the CARS algorithm yields sets of candidate feature wavelength subsets and their corresponding RMSECV values. The subset of wavelength variables corresponding to the minimum RMSECV value is chosen as the feature wavelengthes.
2.3.4. Uniformative Variable Elimination (UVE) Method
- is a random noise matrix, and construct a new independent variable matrix:
- Establish a PLS regression model for and , and obtain the regression coefficient matrix .
- The average value and standard deviation of the regression vector can be obtained through the regression coefficient matrix . The calculation formula for is as follows:
- The threshold value of standard deviation is . If , then the variable is the preferred eigenvector, and the selected subset is the feature wavelength set extracted by the UVE algorithm.
2.3.5. Model Building and Evaluation
3. Results and Discussion
3.1. Sample Division
3.2. Spectral Curve Analysis
3.3. Spectral Preprocessing
3.4. Feature Wavelength Extraction
3.4.1. Feature Wavelengths Extracted by SPA
3.4.2. Feature Wavelength Extracted by CARS
3.4.2. Feature wavelength extracted by UVE
3.5. Establishment of Regression Model
3.6. Visualization Analysis of Moisture Content in Maize Seeds
4. Discussion
5. Conclusions
- Using seven preprocessing methods to establish a PLSR model for spectral data in the 1100~2498 nm band, it was found that the Normalize method resulted in the highest value, the lowest value, and the best model stability.
- SPA, CARS, and UVE were employed to extract characteristic wavelengths. These methods resulted in the extraction of 17, 24, and 39 wavelengths, respectively, which constitute 7.8%, 11%, and 17.9% of the spectral data, effectively reducing the dimensionality of the spectrum.
- By integrating the feature wavelength extraction method with the modeling approach, we evaluated the efficacy of 12 models. Notably, the Normalize-SPA-PLSR model exhibited notably high and values of 0.9936 and 0.9939, respectively, along with notably low and values of 0.0339 and 0.0377, respectively. This model demonstrated commendable stability and predictive accuracy, allowing for rapid, accurate, and loss-free detection of the moisture content in maize seeds.
- Visualize the 20 hyperspectral images in the prediction set. The color of the visualized images of maize seeds with varying moisture contents varies, and the corresponding color changes are also evident. The moisture content range of the maize seeds can be determined by the color changes in the images.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Zhou, K.C.; He, C.A.; Ji, C.X. Storage techniques and selection methods for maize seeds. Scientific and Technological Innovation 2020, 10, 126–127. [Google Scholar]
- Tenaillon, M.I.; Charcosset, A. A European perspective on maize history. C. R. Biol. 2011, 334, 221–228. [Google Scholar] [CrossRef]
- Niaz, I.; Dawar, S.; Sitara, U. Effect of different moisture and storage temperature on seed borne mycoflora of maize. Pak. J. Bot. 2011, 43, 2639–2643. [Google Scholar]
- Wang, J.S. A study on the technical conditions for storage of maize seeds. Seed 1994, 01, 6–9. [Google Scholar]
- Bashkir, I.; Defraeye, T.; Kudra, T.; Martynenko, A. Electrohydrodynamic drying of Plant-based foods and food model systems. Food Eng. Rev. 2020, 12, 473–497. [Google Scholar] [CrossRef]
- Yang, L.; Lv, Q.; Zhang, H. Experimental study on direct harvesting of corn kernels. Agriculture 2022, 12, 919. [Google Scholar] [CrossRef]
- An, D.; Zhang, L.; Liu, Z.; Liu, J.; Wei, Y. Advances in infrared spectroscopy and hyperspectral imaging combined with artificial intelligence for the detection of cereals quality. Crit. Rev. Food Sci. Nutr. 2022, 20, 1–31. [Google Scholar] [CrossRef]
- Yuan, L.; Yan, P.; Han, W. Detection of anthracnose in tea plants based on hyperspectral imaging. Computers and Electronics in Agriculture 2019, 167, 105039. [Google Scholar] [CrossRef]
- Deng, S.G.; Xu, Y.F.; Li, X.L.; He, Y. Moisture content prediction in tealeaf with near infrared hyperspectral imaging. Computers and Electronics in Agriculture 2015, 118, 38–46. [Google Scholar] [CrossRef]
- Wei, Y.Z.; Wu, F.Y.; Xu, J. Visual detection of the moisture content of tea leaves with hyperspectral imaging technology. Journal of Food Engineering 2019, 248, 89–96. [Google Scholar] [CrossRef]
- Mohammed, K.; Gamal, E.M.; Sun, D.W.; Paul, A. Prediction of some quality attributes of lamb meat using Near-infrared Hyperspectral Imaging and Multivariate Analysis. Analytica Chimica Acta 2011, 714, 57–67. [Google Scholar]
- Wang, Y.L.; Peng, Y.K.; Zhuang, Q.B.; Zhao, X.L. Feasibility analysis of NIR for detecting sweet corn seeds vigor. J. Cereal Sci. 2020, 93, 7. [Google Scholar] [CrossRef]
- Fan, Y.M.; Ma, S.C.; Wu, T.T. Individual wheat kernels vigor assessment based on NIR spectroscopy coupled with machine learning methodologies. T echnol. 2020, 105, 7. [Google Scholar] [CrossRef]
- Wang, S.N.; Tan, Y.; Liu, C.Y.; Song, S.Z.; Li, Z. Classification and identification of soybean varieties by density functional theory combined with Raman spectroscopy. Journal of Sensor Technology and Application 2022, 10, 177–186. [Google Scholar]
- Ma, T.; Tsuchikawa, S.; Inagaki, T. Rapid and non-destructive seed viability prediction using near-infrared hyperspectral imaging coupled with a deep learning approach. Comput. Electron. Agric. 2020, 177, 105683. [Google Scholar] [CrossRef]
- Appeltans, S.; Pieters, J.G.; Mouazen, A.M. Potential of laboratory hyperspectral data for in-field detection of Phytophthora infestans on potato. Precis. Agric. 2021, 23, 876–893. [Google Scholar] [CrossRef]
- Ruett, M.; Junker-Frohn, L.V .; Siegmann, B.; Ellenberger, J.; Jaenicke, H.; Whitney , C.; Luedeling, E.; Tiede-Arlt, P .; Rascher, U. Hyperspectral imaging for high-throughput vitality monitoring in ornamental plant productio. Sci. Hortic. 2022, 291, 110546. [CrossRef]
- Nicola, C.; Martin, B.W.; Stephen, G.; Ian, D.F. Rapid prediction of single green coffee bean moisture and lipid content by hyperspectral imaging. Journal of Food Engineering 2018, 227, 18–29. [Google Scholar]
- Xu, Y.; Zhang, H.; Zhang, C.; Wu, P.; Li, J.; Xia, Y.; Fan, S. Rapid prediction and visualization of moisture content in single cucumber (Cucumis sativus L.) seed using hyperspectral imaging technology. Infrared Physics & Technology 2019, 102, 103034. [CrossRef]
- Jennyfer, J.D.; Jose, D.G.; Kevin, F.Y. Rapid and Non-destructive measurement of moisture content of peanut (Arachis hypogaea L.) kernel using a near-infrared hyperspectral imaging technique. Journal of Food Measurement and Characterization 2021, 15, 3069–3078. [Google Scholar]
- Wakholi, C.; Kandpal, L.M.; Lee, H.; Bae, H.; Park, E.; Kim, M.S.; Mo, C.; Lee, W.H.; Cho, B.K. Rapid assessment of corn seed viability using short wave infrared line-scan hyperspectral imaging and chemometrics. Sens. Actuators B-Chem. 2018, 255, 498–507. [Google Scholar] [CrossRef]
- Zhang, L.; Wang, Y.; Wei, Y.; An, D. Near-infrared hyperspectral imaging technology combined with deep convolutional generative adversarial network to predict oil content of single maize kernel. Food Chem. 2022, 370, 131047. [Google Scholar] [CrossRef]
- Wang, Z.; Fan, S.X.; Wu, J.Z.; Zhang, C.; Xu, F.Y.; Yang, X.H.; Li, J.B. Application of long-wave near infrared hyperspectral imaging for determination of moisture content of single maize seed. Spectrochimica Acta 2021, 254, 19666–119666. [Google Scholar] [CrossRef]
- Baranowski, P.; Mazurek, W.; Pastuszka-Woźniak, J. Supervised Classification of Bruised Apples with Respect to the Time After bBruising on the Basis of Hyperspectral Imaging Data. Postharvest Biol. Technol. 2013, 86, 249–258. [Google Scholar] [CrossRef]
- Menesatti, P.; Zanella, A.; Andrea, S. Supervised Multivariate Analysis of Hyper-spectral NIR Images to Evaluate the Starch Index of Apples. Food and Bioprocess Technology 2009, 2, 308–314. [Google Scholar] [CrossRef]
- Yu, Z.H.; Chen, X.C.; Zhang, J.C.; Su, Q.; Wang, K.; Liu, W.H. Rapid and non-destructive estimation of moisture content in caragana korshinskii pellet feed using hyperspectral imaging. Sensors 2023, 23, 7592. [Google Scholar] [CrossRef]
- Rinnan, S.; Berg, F.; Engelsen, S.B. Review of the most common pre-processing techniques for near-infrared spectra. TrAC Trends Anal. Chem. 2009, 28, 1201–1222. [Google Scholar] [CrossRef]
- Gerretzen, J.; Szymańska, E.; Bart, J.; Davies, A.N.; Manen, H.J.; Heuvel, E.R.; Jansen, J.J.; Buydens, M.C. Boosting model performance and interpretation by entangling preprocessing selection and variable selection. Anal. Chim. Acta 2016, 938, 44–52. [Google Scholar] [CrossRef] [PubMed]
- Araújo, M.C.U.; Saldanha, T.C.B.; Galvão, R.K.H.; Yoneyama, T.; Chame, H. C.; Visani, V. The successive projections algorithm for variable selection in spectroscopic multicomponent analysis. Chemometrics and Intelligent Laboratory Systems 2001, 57, 65–73. [Google Scholar] [CrossRef]
- Kawakami Harrop Galvão, R.; Fernanda Pimentel, M.; Cesar Ugulino Araujo, M.; Yoneyama, T.; Visani, V. Aspects of the successive projections algorithm for variable selection in multivariate calibration applied to plasma emission spectrometry. Analytica Chimica Acta 2001, 443(1), 107–115. [Google Scholar] [CrossRef]
- Malley , D.F.; McClure, C.; Martin, P .D.; Buckley , K.; McCaughey , W.P . Compositional analysis of cattle manure during composting using a field-portable near-infrared spectrometer. Commun. Soil. Sci. Plant Anal. 2005, 36, 455–475. [CrossRef]
- Li, H.; Liang, Y.; Xu, Q.; Cao, D. Key wavelengths screening using competitive adaptive reweighted sampling method for multivariate calibration. Analytica Chimica Acta 2009, 648(1), 77–84. [Google Scholar] [CrossRef]
- Miao, X.; Miao, Y.; Gong, H.; Tao, S.; Chen, Z.; Wang, J.; Chen, Y.; Chen, Y. NIR spectroscopy coupled with chemometric algorithms for the prediction of cadmium content in rice samples. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy 2021, 257, 119700. [Google Scholar] [CrossRef]
- Liu, Y.; Wang, Q.; Shi, X.; Gao, X. Hyperspectral nondestructive detection model of chlorogenic acid content during storage of honeysuckle. Transactions of the Chinese Society of Agricultural Engineering 2019, 35(13), 291–299. [Google Scholar]
- Qin, C.; Shi, G.; Tao, J.; Yu, H.; Jin, Y.; Xiao, D.; Zhang, Z.; Liu, C. An adaptive hierarchical decomposition-based method for multi-step cutterhead torque forecast of shield machine. Mechanical Systems and Signal Processing 2022, 175, 109148. [Google Scholar] [CrossRef]
- Wang, Z.; Li, J.; Zhang, C.; Fan, S. Development of a general prediction model of moisture content in maize seeds based on LW-NIR hyperspectral imaging. Agriculture 2023, 13, 359. [Google Scholar] [CrossRef]
- Chu, X.L.; Chen, P.; Li, J.Y. Progresses and perspectives of near infrared spectroscopy analytical technology. Journal of Instrumental Analysis 2020, 39, 1181–1188. [Google Scholar]
- David, B.; Heiko, D.; Sina, B.; Wolfgang, F.; Peter, I. Determining particle size and moisture content by near-infrared spectroscopy in the granulation of naproxen sodium. J. Pharmaceut. Biomed. 2018, 151, 209–218. [Google Scholar]







| Sample set | Number of samples | Moisture content/% | |||
|---|---|---|---|---|---|
| Maximum value | Minimum value |
Average value |
Standard deviation | ||
| Calibration set | 60 | 11.9930 | 7.3770 | 9.118 | 0.3786 |
| Validation set | 20 | 11.9770 | 7.4300 | 9.2719 | 0.3900 |
| Total sample | 80 | 11.9930 | 7.3770 | 9.2335 | 0.3804 |
| Pretreatment method | Calibration set | Validation set | ||
|---|---|---|---|---|
| No pretreatment | 0.9772 | 0.0571 | 0.9720 | 0.0632 |
| Moving Average | 0.9789 | 0.0553 | 0.9746 | 0.0589 |
| S-G smoothing | 0.9792 | 0.0549 | 0.9732 | 0.0596 |
| Normalize | 0.9890 | 0.0378 | 0.9886 | 0.0410 |
| Baseline | 0.9835 | 0.0485 | 0.9791 | 0.0548 |
| SNV | 0.9842 | 0.0526 | 0.9811 | 0.0497 |
| MSC | 0.9774 | 0.0568 | 0.9723 | 0.0631 |
| Detrending | 0.9883 | 0.0406 | 0.9730 | 0.0624 |
| Model | Bands | Calibration set | Validation set | Prediction set | |||
|---|---|---|---|---|---|---|---|
| PLSR | 218 | 0.9932 | 0.0289 | 0.9882 | 0.0380 | 0.9933 | 0.0357 |
| PCR | 218 | 0.9344 | 0.0890 | 0.9242 | 0.0981 | 0.9152 | 0.1265 |
| SVMR | 218 | 0.9789 | 0.0532 | 0.9468 | 0.0811 | 0.9655 | 0.0739 |
| SPA-PLSR | 17 | 0.9936 | 0.0278 | 0.9883 | 0.0377 | 0.9939 | 0.0339 |
| SPA-PCR | 17 | 0.9711 | 0.0593 | 0.9597 | 0.0712 | 0.9635 | 0.0840 |
| SPA-SVMR | 17 | 0.9766 | 0.0690 | 0.9676 | 0.0923 | 0.9751 | 0.0690 |
| CARS-PLSR | 24 | 0.9881 | 0.0381 | 0.9853 | 0.0426 | 0.9888 | 0.0460 |
| CARS-PCR | 24 | 0.9418 | 0.0841 | 0.9359 | 0.0896 | 0.9319 | 0.1212 |
| CARS-SVMR | 24 | 0.9545 | 0.0953 | 0.9664 | 0.0649 | 0.9478 | 0.1130 |
| UVE-PLSR | 39 | 0.9765 | 0.0534 | 0.9723 | 0.0592 | 0.9684 | 0.0821 |
| UVE-PCR | 39 | 0.9762 | 0.0538 | 0.9731 | 0.0583 | 0.9701 | 0.0804 |
| UVE-SVMR | 39 | 0.9851 | 0.0470 | 0.9598 | 0.0706 | 0.9728 | 0.0615 |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).