Research Article

Lung X-ray image segmentation algorithm based on Multihead Self-Attention Mechanism (MSAG) optimizing Unet networks

Haotian Chen*
Southwest University of Science and Technology

* Corresponding author: [email protected]

Abstract

In this paper, the Multihead Self-Attention Mechanism (MSAG) is used to optimize the Unet network for accurate segmentation of lung X-ray images. By introducing the MSAG module, the ability of the Unet network to capture global and local correlations is enhanced, which effectively improves the accuracy of the segmentation results. The introduction of the multi-head self-attention mechanism enables the network to have more powerful modelling and generalization capabilities, and can process various types of lung X-ray images stably and efficiently. The dataset is divided into training, validation and test sets according to the ratio of 4:3:3. The loss gradually converges during the training process, and the model gradually learns the data features and patterns, and the gap between them and the real labels is gradually reduced. The performance on the validation set is good and no over-fitting occurs, demonstrating the ability to generalize on unseen data. The evaluation metrics on the test set show an IoU of 0.85, a Dice of 0.92, and an Accuracy of 0.88, proving that the model can accurately extract lung features for segmentation. This study has achieved satisfactory results in the field of medical images by optimizing the network structure and introducing new techniques, which are of positive significance for improving the accuracy and efficiency of lung X-ray image segmentation.

Keywords: Multihead Self-Attention Mechanism; Unet Networks; IoU; Image Segmentation
Published: July 16, 2024
DOI: 10.54254/2755-2721/67/20240673
Volume: ACE Vol.67
pp. 160-166
Download PDF

References

  1. Minki K and Lee B D. “Automatic lung segmentation on chest X-rays using self-attention deep neural network.” Sensors 21.2 (2021): 369.
  2. Arvind S., et al. “Improvised light weight deep CNN based U-Net for the semantic segmentation of lungs from chest X-rays.” Results in Engineering 17 (2023): 100929.
  3. Candemir, Sema, and Sameer Antani. “A review on lung boundary detection in chest X-rays.” International journal of computer assisted radiology and surgery 14 (2019): 563-576.
  4. Selvan, Raghavendra, et al. “Lung segmentation from chest X-rays using variational data imputation.” arxiv preprint arxiv:2005.10052 (2020).
  5. Rashid, Rabia, Muhammad Usman Akram, and Taimur Hassan. “Fully convolutional neural network for lungs segmentation from chest X-rays.” Image Analysis and Recognition: 15th International Conference, ICIAR 2018, Póvoa de Varzim, Portugal, June 27–29, 2018, Proceedings 15. Springer International Publishing, 2018.
  6. Tang, You-Bao, et al. “Xlsor: A robust and accurate lung segmentor on chest x-rays using criss-cross attention and customized radiorealistic abnormalities generation.” International Conference on Medical Imaging with Deep Learning. PMLR, 2019.
  7. Wang, Hongyu, et al. “A multi-objective segmentation method for chest X-rays based on collaborative learning from multiple partially annotated datasets.” Information Fusion 102 (2024): 102016.
  8. Santosh, K. C., et al. “Edge map analysis in chest X-rays for automatic pulmonary abnormality screening.” International journal of computer assisted radiology and surgery 11 (2016): 1637-1646.
  9. Ye, Run Zhou, et al. “Automatic ARDS surveillance with chest X-ray recognition using convolutional neural networks.” Journal of Critical Care 82 (2024): 154794.
  10. Goshima, Futa, et al. “Deep learning-based algorithm to segment pediatric and adult lungs from dynamic chest radiography images using virtual patient datasets.” Medical Imaging 2024: Physics of Medical Imaging. Vol. 12925. SPIE, 2024.
  11. Samip G and Subedi S. “Estimating Lung Volume Capacity from X-ray Images Using Deep Learning.” Quantum Beam Science 8.2 (2024): 11.
  12. Killeen, Benjamin D., et al. “FluoroSAM: A Language-aligned Foundation Model for X-ray Image Segmentation.” arxiv preprint arxiv:2403.08059 (2024).