{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,12]],"date-time":"2026-02-12T11:13:53Z","timestamp":1770894833987,"version":"3.50.1"},"reference-count":37,"publisher":"MDPI AG","issue":"16","license":[{"start":{"date-parts":[[2024,8,22]],"date-time":"2024-08-22T00:00:00Z","timestamp":1724284800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["31960497"],"award-info":[{"award-number":["31960497"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["20212BAB204009"],"award-info":[{"award-number":["20212BAB204009"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["20202ACB211002"],"award-info":[{"award-number":["20202ACB211002"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"name":"Jiangxi Provincial Natural Science Foundation of China","award":["31960497"],"award-info":[{"award-number":["31960497"]}]},{"name":"Jiangxi Provincial Natural Science Foundation of China","award":["20212BAB204009"],"award-info":[{"award-number":["20212BAB204009"]}]},{"name":"Jiangxi Provincial Natural Science Foundation of China","award":["20202ACB211002"],"award-info":[{"award-number":["20202ACB211002"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>The success of near-infrared spectroscopy (NIRS) analysis hinges on the precision and robustness of the calibration model. Shallow learning (SL) algorithms like partial least squares discriminant analysis (PLS-DA) often fall short in capturing the interrelationships between adjacent spectral variables, and the analysis results are easily affected by spectral noise, which dramatically limits the breadth and depth of applications of NIRS. Deep learning (DL) methods, with their capacity to discern intricate features from limited samples, have been progressively integrated into NIRS. In this paper, two discriminant analysis problems, including wheat kernels and Yali pears as examples, and several representative calibration models were used to research the robustness and effectiveness of the model. Additionally, this article proposed a near-infrared calibration model, which was based on the Gramian angular difference field method and coordinate attention convolutional neural networks (G-CACNNs). The research results show that, compared with SL, spectral preprocessing has a smaller impact on the analysis accuracy of consensus learning (CL) and DL, and the latter has the highest analysis accuracy in the modeling results using the original spectrum. The accuracy of G-CACNNs in two discrimination tasks was 98.48% and 99.39%. Finally, this research compared the performance of various models under noise to evaluate the robustness and noise resistance of the proposed method.<\/jats:p>","DOI":"10.3390\/s24165438","type":"journal-article","created":{"date-parts":[[2024,8,23]],"date-time":"2024-08-23T12:58:07Z","timestamp":1724417887000},"page":"5438","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["Comparative Analysis of Machine Learning and Deep Learning Algorithms for Assessing Agricultural Product Quality Using NIRS"],"prefix":"10.3390","volume":"24","author":[{"given":"Jiwen","family":"Ren","sequence":"first","affiliation":[{"name":"School of Mechatronics and Vehicle Engineering, East China Jiaotong University, Nanchang 330013, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yuming","family":"Xiong","sequence":"additional","affiliation":[{"name":"School of Mechatronics and Vehicle Engineering, East China Jiaotong University, Nanchang 330013, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Xinyu","family":"Chen","sequence":"additional","affiliation":[{"name":"Optoelectronics Department of Changzhou Institute of Technology, Changzhou 213000, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6126-3726","authenticated-orcid":false,"given":"Yong","family":"Hao","sequence":"additional","affiliation":[{"name":"School of Mechatronics and Vehicle Engineering, East China Jiaotong University, Nanchang 330013, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2024,8,22]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Mishra, P., and Woltering, E. (2023). Semi-supervised robust models for predicting dry matter in mango fruit with near-infrared spectroscopy. Postharvest Biol. Technol., 200.","DOI":"10.1016\/j.postharvbio.2023.112335"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"109761","DOI":"10.1016\/j.lwt.2020.109761","article-title":"Use of an NIR MEMS spectrophotometer and visible\/NIR hyperspectral imaging systems to predict quality parameters of treated ground peppercorns","volume":"131","author":"Esquerre","year":"2020","journal-title":"LWT-Food Sci. Technol."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Chadalavada, K., Anbazhagan, K., Ndour, A., Choudhary, S., Palmer, W., Flynn, J.R., Mallayee, S., Pothu, S., Prasad, K.V.S.V., and Varijakshapanikar, P. (2022). NIR Instruments and Prediction Methods for Rapid Access to Grain Protein Content in Multiple Cereals. Sensors, 22.","DOI":"10.3390\/s22103710"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Cozzolino, D. (2021). The Ability of Near Infrared (NIR) Spectroscopy to Predict Functional Properties in Foods: Challenges and Opportunities. Molecules, 26.","DOI":"10.3390\/molecules26226981"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"e112422","DOI":"10.1590\/fst.112422","article-title":"Determination of colorant type in yellow tofu using Vis-NIR and SW-NIR spectroscopy","volume":"43","author":"Rahmawati","year":"2023","journal-title":"Food Sci. Technol."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"173","DOI":"10.1007\/s12393-020-09210-7","article-title":"An Overview on the Applications of Typical Non-linear Algorithms Coupled With NIR Spectroscopy in Food Analysis","volume":"12","author":"Zareef","year":"2020","journal-title":"Food Eng. Rev."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"434","DOI":"10.1177\/0003702820958081","article-title":"Authentication of Antibiotics Using Portable Near-Infrared Spectroscopy and Multivariate Data Analysis","volume":"75","author":"Assi","year":"2021","journal-title":"Appl. Spectrosc."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Bec, K.B., Grabska, J., and Huck, C.W. (2021). NIR spectroscopy of natural medicines supported by novel instrumentation and methods for data analysis and interpretation. J. Pharm. Biomed. Anal., 193.","DOI":"10.1016\/j.jpba.2020.113686"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Yin, L., Zhou, J., Chen, D., Han, T., Zheng, B., Younis, A., and Shao, Q. (2019). A review of the application of near-infrared spectroscopy to rare traditional Chinese medicine. Spectrochim. Acta Part A-Mol. Biomol. Spectrosc., 221.","DOI":"10.1016\/j.saa.2019.117208"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"8","DOI":"10.1016\/j.aca.2018.04.004","article-title":"Near infrared spectroscopy: A mature analytical technique with new perspectives\u2014A review","volume":"1026","author":"Pasquini","year":"2018","journal-title":"Anal. Chim. Acta"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"169","DOI":"10.1016\/j.aca.2020.11.006","article-title":"A parameter-free framework for calibration enhancement of near-infrared spectroscopy based on correlation constraint","volume":"1142","author":"Zhang","year":"2021","journal-title":"Anal. Chim. Acta"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"e3306","DOI":"10.1002\/cem.3306","article-title":"Preprocessing methods for near-infrared spectrum calibration","volume":"34","author":"Jiao","year":"2020","journal-title":"J. Chemom."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"188","DOI":"10.1016\/j.chemolab.2007.10.001","article-title":"A variable selection method based on uninformative variable elimination for multivariate calibration of near-infrared spectra","volume":"90","author":"Cai","year":"2008","journal-title":"Chemom. Intell. Lab. Syst."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"77","DOI":"10.1016\/j.aca.2009.06.046","article-title":"Key wavelengths screening using competitive adaptive reweighted sampling method for multivariate calibration","volume":"648","author":"Li","year":"2009","journal-title":"Anal. Chim. Acta"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"95771","DOI":"10.1039\/C5RA08455E","article-title":"Iteratively variable subset optimization for multivariate calibration","volume":"5","author":"Wang","year":"2015","journal-title":"RSC Adv."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"102","DOI":"10.1016\/j.trac.2019.01.018","article-title":"An overview of variable selection methods in multivariate analysis of near-infrared spectra","volume":"113","author":"Yun","year":"2019","journal-title":"TrAC Trends Anal. Chem."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"105216","DOI":"10.1016\/j.jfca.2023.105216","article-title":"Combination of near-infrared spectroscopy and key wavelength-based screening algorithm for rapid determination of rice protein content","volume":"118","author":"Shi","year":"2023","journal-title":"J. Food Compos. Anal."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"155","DOI":"10.1080\/10942912.2022.2158866","article-title":"Assessment of integrated freshness index of different varieties of eggs using the visible and near-infrared spectroscopy","volume":"26","author":"Fu","year":"2023","journal-title":"Int. J. Food Prop."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"633","DOI":"10.1007\/s12161-018-01407-1","article-title":"Vis-NIR spectroscopy Combined with Wavelengths Selection by PSO Optimization Algorithm for Simultaneous Determination of Four Quality Parameters and Classification of Soy Sauce","volume":"12","author":"Hu","year":"2019","journal-title":"Food Anal. Methods"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"38","DOI":"10.1016\/j.ab.2018.12.009","article-title":"Random subspace-based ensemble modeling for near-infrared spectral diagnosis of colorectal cancer","volume":"567","author":"Chen","year":"2019","journal-title":"Anal. Biochem."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Zhao, L.M., Liu, S.M., Chen, X.F., Wu, Z.W., Yang, R., Shi, T.T., Zhang, Y.L., Zhou, K.W., and Li, J.G. (2022). Hyperspectral Identification of Ginseng Growth Years and Spectral Importance Analysis Based on Random Forest. Appl. Sci., 12.","DOI":"10.3390\/app12125852"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"328","DOI":"10.21474\/IJAR01\/8331","article-title":"A novel approach to classify and convert 1d signal to 2d grayscale image implementing support vector machine and empirical mode decomposition algorithm","volume":"7","author":"Azad","year":"2019","journal-title":"Int. J. Adv. Res."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"443","DOI":"10.1007\/s11517-019-02075-x","article-title":"Diversity in a signal-to-image transformation approach for EEG-based motor imagery task classification","volume":"58","author":"Yilmaz","year":"2020","journal-title":"Med. Biol. Eng. Comput."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"e386","DOI":"10.7717\/peerj-cs.386","article-title":"From ECG signals to images: A transformation based approach for deep learning","volume":"7","author":"Naz","year":"2021","journal-title":"PeerJ Comput. Sci."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Hao, Y., Zhang, C., Li, X., and Lei, Z. (2022). Establishment of online deep learning model for insect-affected pests in \u201cYali\u201d pears based on visible-near-infrared spectroscopy. Front. Nutr., 9.","DOI":"10.3389\/fnut.2022.1026730"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Pu, H., Yu, J., Sun, D.-W., Wei, Q., and Li, Q. (2023). Distinguishing pericarpium citri reticulatae of different origins using terahertz time-domain spectroscopy combined with convolutional neural networks. Spectrochim. Acta Part A Mol. Biomol. Spectrosc., 299.","DOI":"10.1016\/j.saa.2023.122771"},{"key":"ref_27","unstructured":"Wang, Z., and Oates, T. (2015, January 25\u201331). Imaging Time-Series to Improve Classification and Imputation. Proceedings of the International Joint Conference on Artificial Intelligence, Buenos Aires, Argentina."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"3526","DOI":"10.1039\/C8AN00599K","article-title":"Partial least squares-discriminant analysis (PLS-DA) for classification of high-dimensional (HD) data: A review of contemporary practice strategies and knowledge gaps","volume":"143","author":"Lee","year":"2018","journal-title":"Analyst"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random Forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_30","first-page":"18","article-title":"Classification and Regression by randomForest","volume":"23","author":"Liaw","year":"2002","journal-title":"R News"},{"key":"ref_31","first-page":"739","article-title":"Random forest as a potential multivariate method for near-infrared (NIR) spectroscopic analysis of complex mixture samples: Gasoline and naphtha","volume":"110","author":"Lee","year":"2013","journal-title":"Microchem. J. Devoted Appl. Microtech. All Branches Sci."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"14","DOI":"10.1016\/j.patrec.2018.05.018","article-title":"A review of Convolutional-Neural-Network-based action recognition","volume":"118","author":"Yao","year":"2019","journal-title":"Pattern Recognit. Lett."},{"key":"ref_33","unstructured":"Simonyan, K., and Zisserman, A. (2014). Very Deep Convolutional Networks for Large-Scale Image Recognition. arXiv."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Zhou, L., Zhang, C., Taha, M.F., Wei, X., He, Y., Qiu, Z., and Liu, Y. (2020). Wheat Kernel Variety Identification Based on a Large Near-Infrared Spectral Dataset and a Novel Deep Learning-Based Feature Selection Method. Front. Plant Sci., 11.","DOI":"10.3389\/fpls.2020.575810"},{"key":"ref_35","first-page":"1","article-title":"Spectral diagnostic technology and its application in agricultural product quality testing","volume":"35","author":"Liu","year":"2018","journal-title":"J. East China Jiaotong Univ."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"2045","DOI":"10.1111\/ijfs.14105","article-title":"Geographical origin discrimination of wheat kernel and white flour using near-infrared reflectance spectroscopy fingerprinting coupled with chemometrics","volume":"54","author":"Wadood","year":"2019","journal-title":"Int. J. Food Sci. Technol."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"14","DOI":"10.1016\/j.aca.2010.03.048","article-title":"Variables selection methods in near-infrared spectroscopy","volume":"667","author":"Xiaobo","year":"2010","journal-title":"Anal. Chim. Acta"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/16\/5438\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T15:41:29Z","timestamp":1760110889000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/16\/5438"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,22]]},"references-count":37,"journal-issue":{"issue":"16","published-online":{"date-parts":[[2024,8]]}},"alternative-id":["s24165438"],"URL":"https:\/\/doi.org\/10.3390\/s24165438","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,8,22]]}}}