Linxin Zhang, Haihang Wang, Lexiao Cai, Chuze Yu, Tong Sun
{"title":"Rapid and nondestructive detection of hollow defects in pecan nuts based on near-infrared spectroscopy and voting method","authors":"Linxin Zhang, Haihang Wang, Lexiao Cai, Chuze Yu, Tong Sun","doi":"10.1016/j.jfca.2025.107381","DOIUrl":null,"url":null,"abstract":"<div><div>During growth, pecan nuts may develop internal \"hollow\" defects, affecting quality. In this study, near-infrared spectroscopy technology was utilized to conduct rapid and nondestructive detection of hollow defects in pecan nuts. Six preprocessing methods, eight classification models, and two characteristic wavelength selection methods were used. Three voting methods, namely hard voting, soft voting, and weighted soft voting, were employed to further enhanced the ability to identify hollow defects in pecan nuts. The results indicate that normal pecan nuts exhibit higher absorbance than hollow ones, facilitating differentiation. The hollow pecan nut dataset achieves superior model performance after standard normal variate (SNV) preprocessing combined with competitive adaptive reweighted sampling (CARS) variable selection. Voting methods significantly improve defect identification, with soft voting outperforming hard voting and weighted soft voting yielding the best results. Among the voting methods, the weighted soft voting combination of logistic regression (LR), random forest (RF), adaptive boosting (ADB), and linear discriminant analysis (LDA) achieves the best results, the accuracy in cross-validation is 86.44 %, and the accuracy, specificity, and sensitivity in testing set are 87.11 %, 97.56 %, and 69.01 %, respectively. The detection method in this study can provide technical support for pecan nut quality assurance.</div></div>","PeriodicalId":15867,"journal":{"name":"Journal of Food Composition and Analysis","volume":"141 ","pages":"Article 107381"},"PeriodicalIF":4.0000,"publicationDate":"2025-02-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Composition and Analysis","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0889157525001954","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"CHEMISTRY, APPLIED","Score":null,"Total":0}
引用次数: 0
Abstract
During growth, pecan nuts may develop internal "hollow" defects, affecting quality. In this study, near-infrared spectroscopy technology was utilized to conduct rapid and nondestructive detection of hollow defects in pecan nuts. Six preprocessing methods, eight classification models, and two characteristic wavelength selection methods were used. Three voting methods, namely hard voting, soft voting, and weighted soft voting, were employed to further enhanced the ability to identify hollow defects in pecan nuts. The results indicate that normal pecan nuts exhibit higher absorbance than hollow ones, facilitating differentiation. The hollow pecan nut dataset achieves superior model performance after standard normal variate (SNV) preprocessing combined with competitive adaptive reweighted sampling (CARS) variable selection. Voting methods significantly improve defect identification, with soft voting outperforming hard voting and weighted soft voting yielding the best results. Among the voting methods, the weighted soft voting combination of logistic regression (LR), random forest (RF), adaptive boosting (ADB), and linear discriminant analysis (LDA) achieves the best results, the accuracy in cross-validation is 86.44 %, and the accuracy, specificity, and sensitivity in testing set are 87.11 %, 97.56 %, and 69.01 %, respectively. The detection method in this study can provide technical support for pecan nut quality assurance.
期刊介绍:
The Journal of Food Composition and Analysis publishes manuscripts on scientific aspects of data on the chemical composition of human foods, with particular emphasis on actual data on composition of foods; analytical methods; studies on the manipulation, storage, distribution and use of food composition data; and studies on the statistics, use and distribution of such data and data systems. The Journal''s basis is nutrient composition, with increasing emphasis on bioactive non-nutrient and anti-nutrient components. Papers must provide sufficient description of the food samples, analytical methods, quality control procedures and statistical treatments of the data to permit the end users of the food composition data to evaluate the appropriateness of such data in their projects.
The Journal does not publish papers on: microbiological compounds; sensory quality; aromatics/volatiles in food and wine; essential oils; organoleptic characteristics of food; physical properties; or clinical papers and pharmacology-related papers.