{"title":"Sparse Coding Inspired LSTM and Self-Attention Integration for Medical Image Segmentation","authors":"Zexuan Ji;Shunlong Ye;Xiao Ma","doi":"10.1109/TIP.2024.3482189","DOIUrl":null,"url":null,"abstract":"Accurate and automatic segmentation of medical images plays an essential role in clinical diagnosis and analysis. It has been established that integrating contextual relationships substantially enhances the representational ability of neural networks. Conventionally, Long Short-Term Memory (LSTM) and Self-Attention (SA) mechanisms have been recognized for their proficiency in capturing global dependencies within data. However, these mechanisms have typically been viewed as distinct modules without a direct linkage. This paper presents the integration of LSTM design with SA sparse coding as a key innovation. It uses linear combinations of LSTM states for SA’s query, key, and value (QKV) matrices to leverage LSTM’s capability for state compression and historical data retention. This approach aims to rectify the shortcomings of conventional sparse coding methods that overlook temporal information, thereby enhancing SA’s ability to do sparse coding and capture global dependencies. Building upon this premise, we introduce two innovative modules that weave the SA matrix into the LSTM state design in distinct manners, enabling LSTM to more adeptly model global dependencies and meld seamlessly with SA without accruing extra computational demands. Both modules are separately embedded into the U-shaped convolutional neural network architecture for handling both 2D and 3D medical images. Experimental evaluations on downstream medical image segmentation tasks reveal that our proposed modules not only excel on four extensively utilized datasets across various baselines but also enhance prediction accuracy, even on baselines that have already incorporated contextual modules. Code is available at \n<uri>https://github.com/yeshunlong/SALSTM</uri>\n.","PeriodicalId":94032,"journal":{"name":"IEEE transactions on image processing : a publication of the IEEE Signal Processing Society","volume":"33 ","pages":"6098-6113"},"PeriodicalIF":0.0000,"publicationDate":"2024-10-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE transactions on image processing : a publication of the IEEE Signal Processing Society","FirstCategoryId":"1085","ListUrlMain":"https://ieeexplore.ieee.org/document/10729728/","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Accurate and automatic segmentation of medical images plays an essential role in clinical diagnosis and analysis. It has been established that integrating contextual relationships substantially enhances the representational ability of neural networks. Conventionally, Long Short-Term Memory (LSTM) and Self-Attention (SA) mechanisms have been recognized for their proficiency in capturing global dependencies within data. However, these mechanisms have typically been viewed as distinct modules without a direct linkage. This paper presents the integration of LSTM design with SA sparse coding as a key innovation. It uses linear combinations of LSTM states for SA’s query, key, and value (QKV) matrices to leverage LSTM’s capability for state compression and historical data retention. This approach aims to rectify the shortcomings of conventional sparse coding methods that overlook temporal information, thereby enhancing SA’s ability to do sparse coding and capture global dependencies. Building upon this premise, we introduce two innovative modules that weave the SA matrix into the LSTM state design in distinct manners, enabling LSTM to more adeptly model global dependencies and meld seamlessly with SA without accruing extra computational demands. Both modules are separately embedded into the U-shaped convolutional neural network architecture for handling both 2D and 3D medical images. Experimental evaluations on downstream medical image segmentation tasks reveal that our proposed modules not only excel on four extensively utilized datasets across various baselines but also enhance prediction accuracy, even on baselines that have already incorporated contextual modules. Code is available at
https://github.com/yeshunlong/SALSTM
.
准确、自动地分割医学图像在临床诊断和分析中发挥着至关重要的作用。已经证实,整合上下文关系可大大增强神经网络的表征能力。传统上,长短时记忆(LSTM)和自我注意(SA)机制因其捕捉数据内全局依赖关系的能力而得到认可。然而,这些机制通常被视为不同的模块,没有直接联系。本文将 LSTM 设计与 SA 稀疏编码相结合,作为一项重要创新。它将 LSTM 状态的线性组合用于 SA 的查询、键和值(QKV)矩阵,以充分利用 LSTM 的状态压缩和历史数据保留能力。这种方法旨在纠正传统稀疏编码方法忽略时间信息的缺点,从而增强 SA 的稀疏编码和捕捉全局依赖性的能力。在这一前提下,我们引入了两个创新模块,它们以不同的方式将 SA 矩阵编织到 LSTM 状态设计中,使 LSTM 能够更巧妙地模拟全局依赖关系,并与 SA 无缝结合,而不会产生额外的计算需求。这两个模块分别嵌入到 U 型卷积神经网络架构中,用于处理二维和三维医学图像。对下游医学图像分割任务的实验评估表明,我们提出的模块不仅在四种广泛使用的数据集上表现出色,而且还提高了预测准确性,即使在已经包含上下文模块的基线上也是如此。代码见 https://github.com/yeshunlong/SALSTM。