Deep Learning-Enabled Nondestructive Prediction of Moisture Content in Post-Heading Paddy Rice (Oryza sativa L.) Using Near-Infrared Spectroscopy
Abstract
1. Introduction
- Dynamic moisture prediction throughout the growth periodUnlike previous studies that mainly focused on post-harvest grain samples, this study analyzes the NIR spectral characteristics of paddy rice samples collected after heading and proposes an approach to continuously predict the moisture content of rice throughout the growth period from heading to harvest.
- 2.
- Systematic comparison of machine learning and deep learning modelsMoisture prediction models were constructed using conventional machine learning models (PLSR and SVR) as well as deep learning models (DNN and 1D-CNN), and their predictive performances were systematically compared to identify suitable models for NIR-based moisture prediction.
- 3.
- Development of a lightweight deep learning model for practical field applicationsA lightweight deep learning architecture trained using freshly collected paddy rice samples obtained weekly from heading to the optimal maturity stage is proposed, demonstrating the potential for practical non-destructive moisture prediction in real agricultural environments.
2. Materials and Methods
2.1. Materials
2.2. Near-Infrared (NIR) Spectral Measurement
2.2.1. NIR Spectral Measurement System
2.2.2. Acquisition of Near-Infrared Spectral Data
2.3. Moisture Content Analysis Using the Oven-Drying Method
2.4. Spectral Data Preprocessing
2.5. Model Development for Moisture Prediction
2.5.1. Data Processing and Partitioning
2.5.2. Development of Moisture Prediction Models for Post-Heading Paddy Rice
PLSR Model
SVR Model
DNN Model
1D-CNN Model
2.5.3. Performance Evaluation of Paddy Rice Moisture Content Prediction Models
2.5.4. Statistical Analysis
3. Results
3.1. Analysis of Paddy Rice Moisture Content According to Weeks After Heading
3.2. Analysis of NIR Spectral Characteristics of Paddy Rice According to Weeks After Heading
3.3. Results of PLSR Model Development
3.4. Results of SVR Model Development
3.5. Results of DNN Model Development
3.6. Results of 1D-CNN Model Development
3.7. Interpretability of the EfficientNet-Based 1D-CNN Model via SHAP Analysis
3.8. Comparison of Machine Learning and Deep Learning Model Performance
4. Discussion
| Study | Spectroscopic Technique (Wavelength) | Sample Type | Moisture Rangev (% w.b.) | Best Model | Prediction Performance | Application Stage |
|---|---|---|---|---|---|---|
| Lin et al., 2006 [23] | NIR imaging system (870–1014 nm) | milled rice | 9.64–17.27 | ANN | R2 = 0.952 SEP = 0.435 | Post-harvest quality evaluation |
| Heman and Hsieh, 2016 [8] | VNIR spectroscopy (350–1000 nm) | Paddy rice | 11.5–28.7 | PLSR | R2 = 0.920 SEP = 2.510 | Grain moisture measurement |
| Lin et al., 2019 [68] | NIR spectroscopy (950–1650 nm) | Paddy rice | 13–30 | CARS + PLSR | R2 = 0.977 PMSEP = 0.930 | Post-harvest moisture monitoring |
| Makky et al., 2019 [78] | SWIR spectroscopy (1000–2500 nm) | Paddy rice | 10.5–27 | PCA + PLSR | R2 = 0.968 RMSE = 1.290 | Post-harvest moisture detection |
| Yan et al., 2022 [67] | NIR spectroscopy (950–1650 nm) | Paddy rice | 14.2–28 | ELM | R2 = 0.969 RMSE = 0.785 | Harvest-time monitoring |
| Song et al., 2023 [60] | NIR Hyperspectral imaging (900–1700 nm) | Paddy rice | 11.01–17.35 | SPA + PLSR | R2 = 0.965 RMSE = 0.003 | Post-harvest quality monitoring |
| Weng et al., 2023 [24] | NIR spectroscopy (350–2500 nm) | brown rice | Not reported | Spectral transformation + PLSR | R2 = 0.7376 RMSE = 0.314 | Grain quality assessment |
| This study | NIR spectroscopy | Fresh paddy rice | 17.32–40.71 | 1D-CNN | R2 = 0.999 RMSE = 0.001 | Pre-harvest monitoring (heading to optimal harvest) |
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| NIR | Near-infrared |
| 1D-CNNs | One-dimensional convolutional neural networks |
| MC | Moisture content |
| ML | Machine learning |
| SNV | Standard normal variate |
| MSC | Multiplicative scatter correction |
| RBF | Radial Basis Function |
| DL | Deep learning |
| PLSR | Partial least squares regression |
| SVR | Support vector regression |
| ANN | Artificial neural networks |
| DNN | Deep neural networks |
| SNR | Signal-to-noise ratio |
| MLP | Multilayer perceptron |
| ELU | Exponential Linear Unit |
| RMSE | Root Mean Squared Error |
| RMSEC | Root mean square error of calibration |
| RMSEV | Root mean square error of validation |
| RMSEP | Root mean square error of prediction |
Appendix A. Details of Model Architectures and Hyperparameters
Appendix A.1. Machine Learning Hyperparameters
| Model | Parameter | Setting/Value |
|---|---|---|
| PLSR | Algorithm | Kernel PLS |
| Polynomial Order (Savitzky–Golay) | 2 | |
| Max. Latent Variables | 20 | |
| SVR | Kernel Type | Radial Basis Function (RBF) |
| C (Cost) | 1.0 | |
| γ (Gamma) | 1/[number of features] | |
| ε (Epsilon) | 0.1 |
Appendix A.2. Optimized Spectral Preprocessing Parameters
| Model | Derivative Order | Gap Size (nm) | Window Size (Points) | Polynomial Order (n) |
|---|---|---|---|---|
| PLSR | 22.8 | 13 | 2 | |
| 7.6 | 5 | 2 | ||
| SVR | 3.8 | 3 | 2 | |
| 7.6 | 5 | 2 | ||
| DNN | 3.8 | 3 | 2 | |
| 7.6 | 5 | 2 | ||
| 1D-CNN | 22.8 | 13 | 2 | |
| 7.6 | 5 | 2 |
Appendix A.3. Deep Learning Architectures and Layer Configurations
| Palatino Linotype | Layer (Type) | Configuration Details (Kernel, Stride, Channels/Nodes) | Activation | |
|---|---|---|---|---|
| DNN | Input Layer | Number of spectral features (Input) | ELU | |
| Hidden 1–2 | Linear (200), BatchNorm | |||
| Hidden 3 | Linear (100), BatchNorm | |||
| Hidden 4 | Linear (50), BatchNorm | |||
| Hidden 5 | Linear (25), BatchNorm | |||
| Output | Linear (1) | |||
| 1D-CNN | VGG Net Based | Conv Block 1 | Conv1d (16, k3, s1), Conv1d (16, k3, s1), BatchNorm, MaxPool (s2) | ELU |
| Conv Block2 | Conv1d (32, k3, s1), Conv1d (32, k3, s1), BatchNorm, MaxPool (s2) | |||
| Conv Block 3 | Conv1d (64, k3, s1), Conv1d (64, k3, s1), BatchNorm, MaxPool (s2) | |||
| Conv Block 4 | Conv1d (128, k3, s1), Conv1d (128, k3, s1), BatchNorm, MaxPool (s2) | |||
| Conv Block 5 | Conv1d (256, k3, s1), Conv1d (256, k3, s1), BatchNorm, MaxPool (s2) | |||
| Conv Block 6 | Conv1d (512, k3, s1), Conv1d (512, k3, s1), BatchNorm, MaxPool (s2) | |||
| Fully-Conn. | Linear (2048) → 256 → 128 → 64 → 1 | |||
| Efficient Net Based | Stem | Conv1d (32, k3, s1, p1), BatchNorm | SiLU | |
| MBConv Blocks | 7 Stages of MBConv1D (Expansion 1 or 6, SE-ratio 0.25) | |||
| Head | Conv1d (1280, k1), BatchNorm, GlobalAvgPool | |||
| Final FC | Linear (1280) → 128 → 1 | |||
Appendix A.4. Detailed Parameters of the EfficientNet-1D MBConv Blocks
| Stage | Block Type | Expansion Factor | Output Channels | Stride | Kernel Size | SE-Ratio |
|---|---|---|---|---|---|---|
| 1 | MBConv1 | 1 | 16 | 1 | 3 | 0.25 |
| 2 | MBConv2 | 6 | 24 | 2 | 3 | 0.25 |
| 3 | MBConv3 | 6 | 40 | 2 | 3 | 0.25 |
| 4 | MBConv4 | 6 | 80 | 2 | 3 | 0.25 |
| 5 | MBConv5 | 6 | 112 | 1 | 3 | 0.25 |
| 6 | MBConv6 | 6 | 192 | 2 | 3 | 0.25 |
| 7 | MBConv7 | 6 | 320 | 1 | 3 | 0.25 |
Appendix B. Stratified Error Analysis for the 1D-CNN Model
Reliability Assessment of the 1D-CNN Model by Moisture Level
| Model | Range | Level (%) | Sample Size (n) | RMSEP | Bias |
|---|---|---|---|---|---|
| 1D-CNN (EfficientNet) | Low | 20 | 392 | 0.00119 | 0.0007 |
| Medium | 20–25 | 2830 | 0.00118 | 0.0006 | |
| High | 25 | 6000 | 0.00148 | 0.0005 |
References
- Muthayya, S.; Sugimoto, J.D.; Montgomery, S.; Maberly, G.F. An overview of global rice production, supply, trade, and consumption. Ann. N. Y. Acad. Sci. 2014, 1324, 7–14. [Google Scholar] [CrossRef]
- Hashim, N.; Ali, M.M.; Mahadi, M.R.; Abdullah, A.F.; Wayayok, A.; Kassim, M.S.M.; Jamaluddin, A. Smart Farming for Sustainable Rice Production: An Insight into Application, Challenge, and Future Prospect. Rice Sci. 2023, 31, 47–61. [Google Scholar] [CrossRef]
- Siebenmorgen, T.J.; Bautista, R.C.; Counce, P.A. Optimal harvest moisture contents for maximizing milling quality of long- and medium-grain rice cultivars. Appl. Eng. Agric. 2007, 23, 517–527. [Google Scholar] [CrossRef]
- Sarkar, T.K.; Ryu, C.-S.; Kang, J.-G.; Kang, Y.-S.; Jun, S.-R.; Jang, S.-H.; Park, J.-W.; Song, H.-Y. Artificial neural network-based model for predicting moisture content in rice using UAV remote sensing data. Korean J. Remote Sens. 2018, 34, 611–624. [Google Scholar] [CrossRef]
- Islam, M.; Shimizu, N.; Kimura, T. Energy requirement in parboiling and its relationship to some important quality indicators. J. Food Eng. 2004, 63, 433–439. [Google Scholar] [CrossRef]
- Cnossen, A.G.; Siebenmorgen, T.J. The glass transition temperature concept in rice drying and tempering: Effect on milling quality. Trans. ASAE 2000, 43, 1661–1667. [Google Scholar] [CrossRef]
- Lu, R.; Siebenmorgen, T.J.; Dilday, R.H.; Costello, T.A. Modeling long-grain rice milling quality and yield during the harvest season. Trans. ASAE 1992, 35, 1905–1913. [Google Scholar] [CrossRef]
- Heman, A.; Hsieh, C.-L. Measurement of moisture content for rough rice by visible and near-infrared (NIR) spectroscopy. Eng. Agric. Environ. Food 2016, 9, 280–290. [Google Scholar] [CrossRef]
- Liu, J.; Qiu, S.; Wei, Z. Real-time measurement of moisture content of paddy rice based on microstrip microwave sensor assisted by machine learning strategies. Chemosensors 2022, 23, 376. [Google Scholar] [CrossRef]
- Sun, W.; Wan, L.; Che, G.; Xu, P.; Wang, H.; Qu, T. Design and experiment of capacitive rice online moisture detection device. Sensors 2023, 23, 5753. [Google Scholar] [CrossRef]
- Yang, Y.; Cai, H.; Wu, J.; Guo, Z.; Zhou, T.; Zhang, M.; Hou, N.; Huang, W.; Jiang, X.; Yin, J.; et al. Measurement system based on microwave pseudo waveguide and LSTM neural network for moisture content of rice grains. J. Food Process. Eng. 2025, 48, e70188. [Google Scholar] [CrossRef]
- Moran, M.; Inoue, Y.; Barnes, E. Opportunities and limitations for image-based remote sensing in precision crop management. Remote. Sens. Environ. 1997, 61, 319–346. [Google Scholar] [CrossRef]
- Czaja, T.P.; Engelsen, S.B. Why nothing beats NIRS technology: The green analytical choice for the future sustainable food production. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2024, 325, 125028. [Google Scholar] [CrossRef]
- Du, Z.; Tian, W.; Tilley, M.; Wang, D.; Zhang, G.; Li, Y. Quantitative assessment of wheat quality using near-infrared spectroscopy: A comprehensive review. Compr. Rev. Food Sci. Food Saf. 2022, 21, 2956–3009. [Google Scholar] [CrossRef]
- Vincent, B.; Dardenne, P. Application of NIR in Agriculture. In Near-Infrared Spectroscopy: Theory, Spectral Analysis, Instrumentation, and Applications; Springer: Berlin/Heidelberg, Germany, 2020; pp. 331–345. [Google Scholar] [CrossRef]
- Williams, P.; Norris, K. Near-Infrared Technology in the Agricultural and Food Industries; American Association of Cereal Chemists: St. Paul, MN, USA, 2020. [Google Scholar]
- Cheng, T.; Song, R.; Li, D.; Zhou, K.; Zheng, H.; Yao, X.; Tian, Y.; Cao, W.; Zhu, Y. Spectroscopic estimation of biomass in canopy components of paddy rice using dry matter and chlorophyll indices. Remote Sens. 2017, 9, 319. [Google Scholar] [CrossRef]
- Zheng, H.; Cheng, T.; Zhou, M.; Li, D.; Yao, X.; Tian, Y.; Cao, W.; Zhu, Y. Improved estimation of rice aboveground biomass combining textural and spectral analysis of UAV imagery. Precis. Agric. 2019, 20, 611–629. [Google Scholar] [CrossRef]
- He, J.; Zhang, N.; Su, X.; Lu, J.; Yao, X.; Cheng, T.; Zhu, Y.; Cao, W.; Tian, Y. Estimating leaf area index with a new vegetation index considering the influence of rice panicles. Remote Sens. 2019, 11, 1809. [Google Scholar] [CrossRef]
- Prabhakar, M.; Gopinath, K.A.; Ravi Kumar, N.; Thirupathi, M.; Sai Sravan, U.; Srasvan Kumar, G.; Samba Siva, G.; Chandana, P.; Singh, V.K. Mapping leaf area index at various rice growth stages in southern India using airborne hyperspectral remote sensing. Remote Sens. 2024, 16, 954. [Google Scholar] [CrossRef]
- Tan, S.; Pei, J.; Zou, Y.; Fang, H.; Wang, T.; Huang, J. Improving rice yield prediction with multi-modal UAV data: Hyperspectral, thermal, and LiDAR integration. Geo-Spat. Inf. Sci. 2025. [Google Scholar] [CrossRef]
- Zhang, X.; Yang, J.; Lin, T.; Ying, Y. Food and agro-product quality evaluation based on spectroscopy and deep learning: A review. Trends Food Sci. Technol. 2021, 112, 431–441. [Google Scholar] [CrossRef]
- Lin, L.; Lu, F.; Chang, Y. Development of a Near-Infrared Imaging System for Determination of Rice Moisture. Cereal Chem. 2006, 83, 498–504. [Google Scholar] [CrossRef]
- Weng, S.; Tang, L.; Wang, J.; Zhu, R.; Wang, C.; Sha, W.; Zheng, L.; Huang, L.; Liang, D.; Hu, Y.; et al. Detection of amylase activity and moisture content in rice by reflectance spectroscopy combined with spectral data transformation. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2023, 290, 122311. [Google Scholar] [CrossRef]
- Mishra, P.; Passos, D.; Marini, F.; Xu, J.; Amigo, J.M.; Gowen, A.A.; Jansen, J.J.; Biancolillo, A.; Roger, J.M.; Rutledge, D.N.; et al. Deep learning for near-infrared spectral data modelling: Hypes and benefits. TrAC Trends Anal. Chem. 2022, 157, 116804. [Google Scholar] [CrossRef]
- Chen, H.; Chen, A.; Xu, L.; Xie, H.; Qiao, H.; Lin, Q.; Cai, K. A deep learning CNN architecture applied in smart near-infrared analysis of water pollution for agricultural irrigation resources. Agric. Water Manag. 2020, 240, 106303. [Google Scholar] [CrossRef]
- Xiao, Q.; Wu, N.; Tang, W.; Zhang, C.; Feng, L.; Zhou, L.; Shen, J.; Zhang, Z.; Gao, P.; He, Y. Visible and near-infrared spectroscopy and deep learning application for the qualitative and quantitative investigation of nitrogen status in cotton leaves. Front. Plant Sci. 2022, 13, 1080745. [Google Scholar] [CrossRef]
- Bagchi, T.B.; Sharma, S.; Chattopadhyay, K. Development of NIRS models to predict protein and amylose content of brown rice and proximate compositions of rice bran. Food Chem. 2016, 191, 21–27. [Google Scholar] [CrossRef]
- Fazeli Burestan, N.; Afkari Sayyah, A.H.; Taghinezhad, E. Prediction of some quality properties of rice and its flour by near-infrared spectroscopy (NIRS) analysis. Food Sci. Nutr. 2021, 9, 1099–1105. [Google Scholar] [CrossRef]
- Yang, H.-E.; Kim, N.-W.; Lee, H.-G.; Kim, M.-J.; Sang, W.-G.; Yang, C.; Mo, C. Prediction of protein content in paddy rice (Oryza sativa L.) combining near-infrared spectroscopy and deep-learning algorithm. Front. Plant Sci. 2024, 15, 1398762. [Google Scholar] [CrossRef] [PubMed]
- Lee, I.-S.; Ko, D.-Y.; Choi, C.-H. Sindongjin Rice Has Changed the Image of Jeonbuk Rice: A Review. In Proceedings of the Korean Society of Crop Science Conference; The Korean Society of Crop Science: Suwon-si, Republic of Korea, 2023; p. 43. [Google Scholar]
- Kim, H.-G.; Park, S.-Y.; Son, W.-C.; Lee, J.-I. Analysis of management efficiency of Sindongjin rice farms using DEA. J. Korea Acad.-Ind. Coop. Soc. 2020, 21, 61–69. [Google Scholar] [CrossRef]
- JSAM S4102; Standard Method for Determination of Moisture Content of Rough Rice. Japan Society of Agricultural Machinery: Tokyo, Japan, 1984.
- Carneiro, L.d.O.; Coradi, P.C.; Rodrigues, D.M.; Lima, R.E.; Teodoro, L.P.R.; de Moraes, R.S.; Teodoro, P.E.; Nunes, M.T.; Leal, M.M.; Lopes, L.R.; et al. Characterizing and predicting the quality of milled rice grains using machine learning models. Agriengineering 2023, 5, 1196–1215. [Google Scholar] [CrossRef]
- Mevik, B.-H.; Wehrens, R. TheplsPackage: Principal component and partial least squares regression in R. J. Stat. Softw. 2007, 18, 1–23. [Google Scholar] [CrossRef]
- Abdi, H. Partial least square regression (PLS regression). Encycl. Res. Methods Soc. Sci. 2003, 6, 792–795. [Google Scholar]
- Geladi, P.; Kowalski, B.R. Partial least-squares regression: A tutorial. Anal. Chim. Acta 1986, 185, 1–17. [Google Scholar] [CrossRef]
- Smola, A.J.; Schölkopf, B. A tutorial on support vector regression. Stat. Comput. 2004, 14, 199–222. [Google Scholar] [CrossRef]
- Vapnik, V. The Nature of Statistical Learning Theory; Springer Science & Business Media: Berlin/Heidelberg, Germany, 1995. [Google Scholar]
- Basak, D.; Pal, S.; Patranabis, D.C. Support vector regression. Neural Inf. Process.-Lett. Rev. 2007, 11, 203–224. [Google Scholar]
- Liakos, K.G.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine learning in agriculture: A review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
- Acquarelli, J.; van Laarhoven, T.; Gerretzen, J.; Tran, T.N.; Buydens, L.M.; Marchiori, E. Convolutional neural networks for vibrational spectroscopic data analysis. Anal. Chim. Acta 2017, 954, 22–31. [Google Scholar] [CrossRef]
- Kiranyaz, S.; Avci, O.; Abdeljaber, O.; Ince, T.; Gabbouj, M.; Inman, D.J. 1D convolutional neural networks and applications: A survey. Mech. Syst. Signal Process. 2021, 151, 107398. [Google Scholar] [CrossRef]
- Nguyen, T.-H.; Nguyen, T.-N.; Ngo, B.-V. A VGG-19 Model with transfer learning and image segmentation for classification of tomato leaf disease. Agriengineering 2022, 4, 871–887. [Google Scholar] [CrossRef]
- Singh, R.; Rana, R.; Singh, S.K. Performance evaluation of VGG models in detection of wheat rust. Asian J. Comput. Sci. Technol. 2018, 7, 76–81. [Google Scholar] [CrossRef]
- Turaev, S.; Almisreb, A.A.; Saleh, M.A. Application of Transfer Learning for Fruits and Vegetable Quality Assessment. In 2020 14th International Conference on Innovations in Information Technology (IIT); IEEE: Piscataway, NJ, USA, 2020; pp. 7–12. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar] [CrossRef]
- Tan, M.; Le, Q. Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning; PMLR: New York, NY, USA, 2019; pp. 6105–6114. [Google Scholar]
- Friedman, M. The use of ranks to avoid the assumption of normality implicit in the analysis of variance. J. Am. Stat. Assoc. 1937, 32, 675–701. [Google Scholar] [CrossRef]
- Conover, W.J. Practical Nonparametric Statistics; John Wiley & Sons: Hoboken, NJ, USA, 1999. [Google Scholar]
- Jeon, D.H.; Lee, W.W.; Han, S.W.; Cho, Y.C.; Kim, H.D. Study on Quality Improvement of Gyeonggi Rice: Determination of Optimal Harvest Timing by Transplanting Period for High-Quality Rice Production; Research Report; Gyeonggi-do Agricultural Research & Extension Services: Suwon, Republic of Korea, 2005; pp. 71–79. [Google Scholar]
- Rachmawati; Rohaeti, E.; Rafi, M. Combination of near infrared spectroscopy and chemometrics for authentication of taro flour from wheat and sago flour. J. Phys. Conf. Ser. 2017, 835, 012011. [Google Scholar] [CrossRef]
- Guo, W.; Zhao, F.; Dong, J. Nondestructive measurement of soluble solids content of kiwifruits using near-infrared hyperspectral imaging. Food Anal. Methods 2015, 9, 38–47. [Google Scholar] [CrossRef]
- Kamruzzaman, M.; ElMasry, G.; Sun, D.-W.; Allen, P. Application of NIR hyperspectral imaging for discrimination of lamb muscles. J. Food Eng. 2011, 104, 332–340. [Google Scholar] [CrossRef]
- Morón, A.; García, A.; Sawchik, J.; Cozzolino, D. Preliminary study on the use of near-infrared reflectance spectroscopy to assess nitrogen content of undried wheat plants. J. Sci. Food Agric. 2006, 87, 147–152. [Google Scholar] [CrossRef]
- Wold, S.; Sjöström, M.; Eriksson, L. PLS-regression: A basic tool of chemometrics. Chemom. Intell. Lab. Syst. 2001, 58, 109–130. [Google Scholar] [CrossRef]
- Kim, M.-J.; Lee, J.-E.; Back, I.; Lim, K.J.; Mo, C. Estimation of total nitrogen content in topsoil based on machine and deep learning using hyperspectral imaging. Agriculture 2023, 13, 1975. [Google Scholar] [CrossRef]
- Das, B.; Sahoo, R.N.; Pargal, S.; Krishna, G.; Verma, R.; Viswanathan, C.; Sehgal, V.K.; Gupta, V.K. Evaluation of different water absorption bands, indices and multivariate models for water-deficit stress monitoring in rice using visible-near infrared spectroscopy. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2021, 247, 119104. [Google Scholar] [CrossRef] [PubMed]
- Song, Y.; Cao, S.; Chu, X.; Zhou, Y.; Xu, Y.; Sun, T.; Zhou, G.; Liu, X. Non-destructive detection of moisture and fatty acid content in rice using hyperspectral imaging and chemometrics. J. Food Compos. Anal. 2023, 121, 105397. [Google Scholar] [CrossRef]
- Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar] [CrossRef]
- Workman, J., Jr.; Weyer, L. Practical Guide to Interpretive Near-Infrared Spectroscopy; CRC Press: Boca Raton, FL, USA, 2007; Chapter 6.2; pp. 63–65. [Google Scholar] [CrossRef]
- Zeng, S.; Zhang, Z.; Cheng, X.; Cai, X.; Cao, M.; Guo, W. Prediction of soluble solids content using near-infrared spectra and optical properties of intact apple and pulp applying PLSR and CNN. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2023, 304, 123402. [Google Scholar] [CrossRef] [PubMed]
- Ruffin, C.; King, R.L. The analysis of hyperspectral data using savitzky-golay filtering-theoretical basis. In IEEE 1999 International Geoscience and Remote Sensing Symposium. IGARSS’99 (Cat. No. 99CH36293); IEEE: Piscataway, NJ, USA, 1999; pp. 756–758. [Google Scholar] [CrossRef]
- Vestergaard, R.-J.; Vasava, H.B.; Aspinall, D.; Chen, S.; Gillespie, A.; Adamchuk, V.; Biswas, A. Evaluation of optimized preprocessing and modeling algorithms for prediction of soil properties using vis-nir spectroscopy. Sensors 2021, 21, 6745. [Google Scholar] [CrossRef] [PubMed]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE on Compute Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2015; pp. 770–778. [Google Scholar]
- Yan, J.; Tian, H.; Wang, S.; Wang, Z.; Xu, H. Paddy moisture on-line detection based on ensemble preprocessing and modeling for combine harvester. Comput. Electron. Agric. 2022, 198, 107050. [Google Scholar] [CrossRef]
- Lin, L.; He, Y.; Xiao, Z.; Zhao, K.; Dong, T.; Nie, P. Rapid-detection sensor for rice grain moisture based on NIR spectroscopy. Appl. Sci. 2019, 9, 1654. [Google Scholar] [CrossRef]
- Malvandi, A.; Feng, H.; Kamruzzaman, M. Application of NIR spectroscopy and multivariate analysis for Non-destructive evaluation of apple moisture content during ultrasonic drying. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2022, 269, 120733. [Google Scholar] [CrossRef] [PubMed]
- Toscano, G.; Leoni, E.; Gasperini, T.; Picchi, G. Performance of a portable NIR spectrometer for the determination of moisture content of industrial wood chips fuel. Fuel 2022, 320, 123948. [Google Scholar] [CrossRef]
- Xue, H.; Xu, X.; Yang, Y.; Hu, D.; Niu, G. Rapid and Non-Destructive Prediction of Moisture Content in Maize Seeds Using Hyperspectral Imaging. Sensors 2024, 24, 1855. [Google Scholar] [CrossRef]
- Kamilaris, A.; Prenafeta-Boldú, F.X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 2018, 147, 70–90. [Google Scholar] [CrossRef]
- Navarro, E.; Costa, N.; Pereira, A. A systematic review of IoT solutions for smart farming. Sensors 2020, 20, 4231. [Google Scholar] [CrossRef]
- Sishodia, R.P.; Ray, R.L.; Singh, S.K. Applications of remote sensing in precision agriculture: A review. Remote Sens. 2020, 12, 3136. [Google Scholar] [CrossRef]
- Van Klompenburg, T.; Kassahun, A.; Catal, C. Crop yield prediction using machine learning: A systematic literature review. Comput. Electron. Agric. 2020, 177, 105709. [Google Scholar] [CrossRef]
- Benos, L.; Tagarakis, A.C.; Dolias, G.; Berruto, R.; Kateris, D.; Bochtis, D. Machine learning in agriculture: A comprehensive updated review. Sensors 2021, 21, 3758. [Google Scholar] [CrossRef]
- Huang, Z.; Sanaeifar, A.; Tian, Y.; Liu, L.; Zhang, D.; Wang, H.; Ye, D.; Li, X. Improved generalization of spectral models associated with Vis-NIR spectroscopy for determining the moisture content of different tea leaves. J. Food Eng. 2021, 293, 110374. [Google Scholar] [CrossRef]
- Makky, M.; Santosa Putri, R.E.; Nakano, K. Determination of moisture content in rice using non-destructive short-wave near infrared spectroscopy. AIP Conf. Proc. 2019, 2155, 020014. [Google Scholar] [CrossRef]

















| Hyperparameter | Value |
|---|---|
| Learning Rate | 0.001 |
| Batch Size | 32 |
| Number of Epochs | 100 |
| Hidden Layer | 5 |
| Weight Decay | 0.0000001 |
| Loss Function RMSE | (Root Mean Square Error) |
| Optimizer | Adam |
| Hyperparameter | VGG 19 | EfficientNet |
|---|---|---|
| Learning Rate | 0.001 | 0.0005 |
| Batch Size | 32 | 32 |
| Number of Epochs | 100 | 100 |
| Hidden Layer | 15 | 8 |
| Weight Decay | 0.0000001 | 0 |
| Loss Function RMSE | RMSE | RMSE |
| Optimizer | Adam | Adam |
| Weeks After Heading | 5 Weeks | 6 Weeks | 7 Weeks | 8 Weeks | 9 Weeks |
|---|---|---|---|---|---|
| Number of sample | 20 | 20 | 20 | 20 | 20 |
| Average moisture content (%) | 35.25 | 30.33 | 24.70 | 23.68 | 21.19 |
| Minimum moisture content (%) | 30.01 | 26.45 | 23.81 | 23.27 | 20.35 |
| Maximum moisture content (%) | 40.71 | 32.15 | 25.48 | 24.44 | 21.60 |
| Standard deviation | 1.77 | 1.19 | 0.48 | 1.71 | 0.34 |
| Model Type | Preprocessing | Calibration | Validation | Prediction | F* | |||
|---|---|---|---|---|---|---|---|---|
| RMSEC | RMSEV | RMSEP | ||||||
| PLSR | Raw | 0.941 | 0.012 | 0.942 | 0.012 | 0.920 | 0.028 | 7 |
| Mean Normalization | 0.923 | 0.014 | 0.923 | 0.014 | 0.921 | 0.014 | 3 | |
| Range Normalization | 0.923 | 0.014 | 0.922 | 0.014 | 0.911 | 0.112 | 4 | |
| Maximum Normalization | 0.937 | 0.013 | 0.936 | 0.013 | 0.932 | 0.016 | 6 | |
| 1st order D* (gap size = 22.8 nm) | 0.940 | 0.013 | 0.940 | 0.013 | 0.941 | 0.012 | 6 | |
| 2nd order D* (gap size = 7.6 nm) | 0.936 | 0.013 | 0.936 | 0.013 | 0.937 | 0.013 | 5 | |
| MSC | 0.914 | 0.015 | 0.914 | 0.015 | 0.912 | 0.015 | 3 | |
| SNV | 0.927 | 0.014 | 0.927 | 0.014 | 0.926 | 0.014 | 4 | |
| Model Type | Preprocessing | Calibration | Validation | Prediction | Kernel Type | |||
|---|---|---|---|---|---|---|---|---|
| RMSEC | RMSEV | RMSEP | ||||||
| SVR | Raw | 0.930 | 0.014 | 0.929 | 0.014 | 0.928 | 0.014 | RBF* |
| Mean Normalization | 0.945 | 0.012 | 0.944 | 0.012 | 0.938 | 0.013 | RBF | |
| Range Normalization | 0.941 | 0.013 | 0.939 | 0.013 | 0.934 | 0.014 | RBF | |
| Maximum Normalization | 0.932 | 0.014 | 0.931 | 0.013 | 0.929 | 0.014 | RBF | |
| 1st order D* (gap size = 3.8 nm) | 0.976 | 0.008 | 0.974 | 0.008 | 0.978 | 0.008 | RBF | |
| 2nd order D* (gap size = 7.6 nm) | 0.972 | 0.009 | 0.969 | 0.009 | 0.974 | 0.008 | RBF | |
| MSC | 0.955 | 0.011 | 0.954 | 0.011 | 0.940 | 0.013 | RBF | |
| SNV | 0.956 | 0.011 | 0.954 | 0.011 | 0.940 | 0.013 | RBF | |
| Model Type | Preprocessing | Calibration | Validation | Prediction | |||
|---|---|---|---|---|---|---|---|
| RMSEC | RMSEV | RMSEP | |||||
| DNN | Raw | 0.943 | 0.012 | 0.938 | 0.012 | 0.933 | 0.013 |
| Mean Normalization | 0.961 | 0.010 | 0.959 | 0.010 | 0.962 | 0.010 | |
| Range Normalization | 0.959 | 0.010 | 0.970 | 0.009 | 0.968 | 0.009 | |
| Maximum Normalization | 0.939 | 0.012 | 0.931 | 0.013 | 0.913 | 0.015 | |
| 1st order D* (gap size = 3.8 nm) | 0.992 | 0.004 | 0.994 | 0.004 | 0.993 | 0.004 | |
| 2nd order D* (gap size = 7.6 nm) | 0.992 | 0.004 | 0.995 | 0.003 | 0.996 | 0.003 | |
| MSC | 0.977 | 0.008 | 0.983 | 0.006 | 0.980 | 0.007 | |
| SNV | 0.982 | 0.007 | 0.985 | 0.006 | 0.982 | 0.007 | |
| Model Type | Preprocessing | Calibration | Validation | Prediction | ||||
|---|---|---|---|---|---|---|---|---|
| RMSEC | RMSEV | RMSEP | ||||||
| CNN | VGG Net Based | Raw | 0.989 | 0.005 | 0.994 | 0.004 | 0.993 | 0.004 |
| Mean Normalization | 0.988 | 0.005 | 0.995 | 0.004 | 0.994 | 0.004 | ||
| Range Normalization | 0.990 | 0.005 | 0.993 | 0.004 | 0.993 | 0.004 | ||
| Maximum Normalization | 0.989 | 0.005 | 0.993 | 0.004 | 0.990 | 0.005 | ||
| 1st order D* (gap size = 22.8 nm) | 0.990 | 0.005 | 0.994 | 0.004 | 0.994 | 0.004 | ||
| 2nd order D* (gap size = 7.6 nm) | 0.989 | 0.005 | 0.994 | 0.004 | 0.992 | 0.005 | ||
| MSC | 0.990 | 0.005 | 0.994 | 0.004 | 0.991 | 0.005 | ||
| SNV | 0.991 | 0.004 | 0.995 | 0.003 | 0.990 | 0.005 | ||
| Efficient Net Based | Raw | 0.998 | 0.002 | 0.998 | 0.002 | 0.999 | 0.001 | |
| Mean Normalization | 0.998 | 0.002 | 0.998 | 0.002 | 0.998 | 0.002 | ||
| Range Normalization | 0.998 | 0.002 | 0.998 | 0.002 | 0.998 | 0.002 | ||
| Maximum Normalization | 0.998 | 0.001 | 0.999 | 0.001 | 0.998 | 0.001 | ||
| 1st order D* (gap size = 22.8 nm) | 0.999 | 0.002 | 0.999 | 0.001 | 0.999 | 0.001 | ||
| 2nd order D* (gap size = 7.6 nm) | 0.998 | 0.002 | 0.998 | 0.002 | 0.998 | 0.002 | ||
| MSC | 0.998 | 0.002 | 0.999 | 0.002 | 0.999 | 0.001 | ||
| SNV | 0.998 | 0.002 | 0.999 | 0.001 | 0.999 | 0.001 | ||
| Model Type | Optimal Preprocessing | Prediction with Unseen Samples | |
|---|---|---|---|
| RMSEP | |||
| PLSR | 1st order derivative | 0.941 | 0.012 |
| SVR | 1st order derivative | 0.978 | 0.008 |
| DNN | 2nd order derivative | 0.996 | 0.003 |
| VGG Net-based 1D-CNN | 1st order derivative | 0.994 | 0.004 |
| Efficient Net-based 1D-CNN | 1st order derivative | 0.999 | 0.001 |
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. |
© 2026 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.
Share and Cite
Yang, H.-E.; Lee, H.-G.; Lee, J.-E.; Shin, J.-Y.; Sang, W.-G.; Cho, B.-K.; Mo, C. Deep Learning-Enabled Nondestructive Prediction of Moisture Content in Post-Heading Paddy Rice (Oryza sativa L.) Using Near-Infrared Spectroscopy. Agriculture 2026, 16, 679. https://doi.org/10.3390/agriculture16060679
Yang H-E, Lee H-G, Lee J-E, Shin J-Y, Sang W-G, Cho B-K, Mo C. Deep Learning-Enabled Nondestructive Prediction of Moisture Content in Post-Heading Paddy Rice (Oryza sativa L.) Using Near-Infrared Spectroscopy. Agriculture. 2026; 16(6):679. https://doi.org/10.3390/agriculture16060679
Chicago/Turabian StyleYang, Ha-Eun, Hong-Gu Lee, Jeong-Eun Lee, Jeong-Yong Shin, Wan-Gyu Sang, Byoung-Kwan Cho, and Changyeun Mo. 2026. "Deep Learning-Enabled Nondestructive Prediction of Moisture Content in Post-Heading Paddy Rice (Oryza sativa L.) Using Near-Infrared Spectroscopy" Agriculture 16, no. 6: 679. https://doi.org/10.3390/agriculture16060679
APA StyleYang, H.-E., Lee, H.-G., Lee, J.-E., Shin, J.-Y., Sang, W.-G., Cho, B.-K., & Mo, C. (2026). Deep Learning-Enabled Nondestructive Prediction of Moisture Content in Post-Heading Paddy Rice (Oryza sativa L.) Using Near-Infrared Spectroscopy. Agriculture, 16(6), 679. https://doi.org/10.3390/agriculture16060679

