Task-driven and interpretable hyperspectral band selection via deep sequential modeling: A case study on apple bruise detection

IF 6.3 1区 农林科学 Q1 FOOD SCIENCE & TECHNOLOGY
Shiwei Chen , Chaoxian Liu , Shan Zeng , Chengyu Zhang , Weiqiang Yang , Wei Tao , Zhiguang Yang
{"title":"Task-driven and interpretable hyperspectral band selection via deep sequential modeling: A case study on apple bruise detection","authors":"Shiwei Chen ,&nbsp;Chaoxian Liu ,&nbsp;Shan Zeng ,&nbsp;Chengyu Zhang ,&nbsp;Weiqiang Yang ,&nbsp;Wei Tao ,&nbsp;Zhiguang Yang","doi":"10.1016/j.foodcont.2025.111740","DOIUrl":null,"url":null,"abstract":"<div><div>Hyperspectral imaging (HSI) has emerged as a powerful non-destructive sensing technology for detailed quality assessment of agricultural and food products. However, the high dimensionality, redundancy, and nonlinear inter-band dependencies inherent in HSI data present major challenges for model efficiency, robustness, and interpretability. Traditional band selection methods often rely on linear assumptions, neglect inter-band dependencies, fail to model hierarchical spectral features, and lack task-specific adaptability, thereby limiting their practical utility. To overcome these limitations, this study proposes a dual-phase spectral sequence modeling framework, inspired by natural language processing, where hyperspectral bands are treated as a wavelength-ordered sequence. The first phase employs Long Short-Term Memory (LSTM) networks to extract local spectral dynamics by explicitly modeling short-range band-to-band interactions. The second phase leverages Transformer-based self-attention mechanisms to globally optimize band selection by capturing long-range spectral dependencies and assigning task-adaptive weights. This hierarchical design bridges local physical coherence and global contextual relevance, while an attention-guided sparsity constraint enhances interpretability. Taking early-stage apple bruise detection as a representative application, the proposed method achieves state-of-the-art performance, with a precision of 98.43 %, recall of 98.29 %, and F1-score of 0.98, using a compact set of physically meaningful bands. These bands correspond to absorption features associated with moisture variation and cellular damage. The results demonstrate that LSTM's local sequential modeling and Transformer's global dependency discovery are mutually necessary. This work advances HSI-based quality inspection by unifying structural priors, task-driven learning, and interpretable band selection for real-world deployment.</div></div>","PeriodicalId":319,"journal":{"name":"Food Control","volume":"181 ","pages":"Article 111740"},"PeriodicalIF":6.3000,"publicationDate":"2025-09-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Control","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0956713525006097","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Hyperspectral imaging (HSI) has emerged as a powerful non-destructive sensing technology for detailed quality assessment of agricultural and food products. However, the high dimensionality, redundancy, and nonlinear inter-band dependencies inherent in HSI data present major challenges for model efficiency, robustness, and interpretability. Traditional band selection methods often rely on linear assumptions, neglect inter-band dependencies, fail to model hierarchical spectral features, and lack task-specific adaptability, thereby limiting their practical utility. To overcome these limitations, this study proposes a dual-phase spectral sequence modeling framework, inspired by natural language processing, where hyperspectral bands are treated as a wavelength-ordered sequence. The first phase employs Long Short-Term Memory (LSTM) networks to extract local spectral dynamics by explicitly modeling short-range band-to-band interactions. The second phase leverages Transformer-based self-attention mechanisms to globally optimize band selection by capturing long-range spectral dependencies and assigning task-adaptive weights. This hierarchical design bridges local physical coherence and global contextual relevance, while an attention-guided sparsity constraint enhances interpretability. Taking early-stage apple bruise detection as a representative application, the proposed method achieves state-of-the-art performance, with a precision of 98.43 %, recall of 98.29 %, and F1-score of 0.98, using a compact set of physically meaningful bands. These bands correspond to absorption features associated with moisture variation and cellular damage. The results demonstrate that LSTM's local sequential modeling and Transformer's global dependency discovery are mutually necessary. This work advances HSI-based quality inspection by unifying structural priors, task-driven learning, and interpretable band selection for real-world deployment.
基于深度序列建模的任务驱动和可解释的高光谱波段选择:苹果瘀伤检测的案例研究
高光谱成像(HSI)已成为一种强大的无损传感技术,用于农业和食品产品的详细质量评估。然而,恒指数据固有的高维性、冗余性和非线性带间依赖性对模型效率、鲁棒性和可解释性提出了重大挑战。传统的波段选择方法往往依赖于线性假设,忽略了波段间的依赖关系,无法对分层光谱特征进行建模,并且缺乏针对特定任务的适应性,从而限制了它们的实际应用。为了克服这些限制,本研究提出了一种受自然语言处理启发的双相光谱序列建模框架,其中高光谱波段被视为波长有序序列。第一阶段采用长短期记忆(LSTM)网络,通过明确建模短距离波段间相互作用来提取局部频谱动态。第二阶段利用基于transformer的自关注机制,通过捕获远程频谱依赖性和分配任务自适应权重来全局优化频带选择。这种分层设计连接了局部物理一致性和全局上下文相关性,而注意力引导的稀疏性约束增强了可解释性。以早期苹果瘀伤检测为代表应用,该方法使用一组紧凑的物理意义条带,精度为98.43%,召回率为98.29%,f1分数为0.98,达到了最先进的性能。这些波段对应于与水分变化和细胞损伤相关的吸收特征。结果表明,LSTM的局部顺序建模和Transformer的全局依赖发现是相互必要的。这项工作通过统一结构先验、任务驱动学习和现实世界部署的可解释频带选择,推进了基于hsi的质量检查。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Food Control
Food Control 工程技术-食品科技
CiteScore
12.20
自引率
6.70%
发文量
758
审稿时长
33 days
期刊介绍: Food Control is an international journal that provides essential information for those involved in food safety and process control. Food Control covers the below areas that relate to food process control or to food safety of human foods: • Microbial food safety and antimicrobial systems • Mycotoxins • Hazard analysis, HACCP and food safety objectives • Risk assessment, including microbial and chemical hazards • Quality assurance • Good manufacturing practices • Food process systems design and control • Food Packaging technology and materials in contact with foods • Rapid methods of analysis and detection, including sensor technology • Codes of practice, legislation and international harmonization • Consumer issues • Education, training and research needs. The scope of Food Control is comprehensive and includes original research papers, authoritative reviews, short communications, comment articles that report on new developments in food control, and position papers.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信