Classification of Ultrasound Images Using ResNet-50 with a Convolutional Block Attention Module (CBAM)

Keywords: Liver fibrosis, Ultrasound, ResNet-50, CBAM

Abstract

Liver fibrosis staging is a crucial component in the clinical management of chronic liver disease because it directly affects prognosis, therapeutic decision-making, and long-term patient monitoring. Ultrasound imaging is widely used as a noninvasive diagnostic modality due to its safety, low cost, and broad accessibility. Nevertheless, ultrasound-based fibrosis assessment remains challenging because liver parenchymal echotexture often exhibits low contrast, speckle noise, and subtle inter-stage variations, particularly among adjacent METAVIR stages. These characteristics frequently limit the effectiveness of conventional convolutional neural networks, which tend to emphasize dominant global patterns while suppressing weak but clinically meaningful texture cues. This study presents a task-oriented integration of a Convolutional Block Attention Module into a ResNet-50 backbone to enhance feature discrimination for five-stage liver fibrosis classification using heterogeneous B-mode ultrasound images. Rather than introducing a new attention mechanism, the contribution lies in the systematic insertion of CBAM after residual outputs across multiple network stages, enabling repeated channel and spatial recalibration from low-level texture descriptors to higher-level semantic representations. To further improve robustness and reduce prediction variance, a stratified 5-fold training strategy is combined with logit-level ensemble inference, where logits from independently trained fold models are averaged prior to Softmax normalization. Experiments were conducted on a publicly available dataset comprising 6,323 ultrasound images acquired from two tertiary hospitals using multiple ultrasound systems, with fibrosis stages labeled from F0 to F4 according to histopathology-based METAVIR scoring. The proposed framework achieves a test accuracy of 98.34%and consistently high precision, recall, and F1 scores across all fibrosis stages, with the most pronounced improvement observed for intermediate stages. Statistical analysis based on paired fold-wise comparisons confirms that the performance gain over the baseline ResNet 50 model is statistically significant. These results demonstrate that combining lightweight attention-based feature refinement with logit ensemble inference effectively addresses the inherent challenges of ultrasound-based liver fibrosis staging and provides a reliable noninvasive decision support framework with strong potential for clinical application and future multicenter validation.

Downloads

Download data is not yet available.

References

S. K. Asrani, H. Devarbhavi, J. Eaton, and P. S. Kamath, “Burden of liver diseases in the world Introduction and global burden.” [Online]. Available: http://www.ncdrisc.org/index.html

J. Li, Q. Wang, W. Ni, C. Liu, Z. Li, and X. Qi, “Global health burden of cirrhosis and other chronic liver diseases (CLDs) due to non-alcoholic fatty liver disease (NAFLD): A systematic analysis for the global burden of disease study 2019,” Glob Transit, vol. 5, pp. 160–169, Jan. 2023, doi: 10.1016/j.glt.2023.09.002.

V. Hernandez-Gea and S. L. Friedman, “Pathogenesis of liver fibrosis,” Annual Review of Pathology: Mechanisms of Disease, vol. 6, pp. 425–456, Feb. 2011, doi: 10.1146/annurev-pathol-011110-130246.

M. Parola and M. Pinzani, “Invited review liver fibrosis in NAFLD/NASH: From pathophysiology towards diagnostic and therapeutic strategies,” Feb. 01, 2024, Elsevier Ltd. doi: 10.1016/j.mam.2023.101231.

G. Ferraioli and R. G. Barr, “Ultrasound evaluation of chronic liver disease,” Mar. 01, 2025, Springer. doi: 10.1007/s00261-024-04568-2.

G. Ferraioli et al., “WFUMB Guideline/Guidance on Liver Multiparametric Ultrasound: Part 1. Update to 2018 Guidelines on Liver Ultrasound Elastography,” Aug. 01, 2024, Elsevier Inc. doi: 10.1016/j.ultrasmedbio.2024.03.013.

R. Loomba and L. A. Adams, “Advances in non-invasive assessment of hepatic fibrosis,” Jul. 01, 2020, BMJ Publishing Group. doi: 10.1136/gutjnl-2018-317593.

L. Castera, M. Friedrich-Rust, and R. Loomba, “Noninvasive Assessment of Liver Disease in Patients With Nonalcoholic Fatty Liver Disease,” Apr. 01, 2019, W.B. Saunders. doi: 10.1053/j.gastro.2018.12.036.

C. Sang et al., “Diagnosis of Fibrosis Using Blood Markers and Logistic Regression in Southeast Asian Patients With Non-alcoholic Fatty Liver Disease,” Front Med (Lausanne), vol. 8, Feb. 2021, doi: 10.3389/fmed.2021.637652.

M. J. Brol, U. Drebber, J. A. Luetkens, M. Odenthal, and J. Trebicka, “‘The pathogenesis of hepatic fibrosis: basic facts and clinical challenges’—assessment of liver fibrosis: a narrative review,” Dig Med Res, vol. 5, pp. 24–24, Jun. 2022, doi: 10.21037/dmr-22-9.

A. Berzigotti et al., “EASL Clinical Practice Guidelines on non-invasive tests for evaluation of liver disease severity and prognosis – 2021 update,” J Hepatol, vol. 75, no. 3, pp. 659–689, Sep. 2021, doi: 10.1016/j.jhep.2021.05.025.

S. A. Hicks et al., “On evaluation metrics for medical applications of artificial intelligence,” Sci Rep, vol. 12, no. 1, Dec. 2022, doi: 10.1038/s41598-022-09954-8.

N. Leigh and C. W. Hammill, “Liver ultrasound: Normal anatomy and pathologic findings,” Surg Open Sci, vol. 19, pp. 178–198, Jun. 2024, doi: 10.1016/j.sopen.2024.05.002.

H. Shokoohi, D. Chu, and N. Al Jalbout, “Ultrasound Physics,” Nov. 01, 2024, W.B. Saunders. doi: 10.1016/j.emc.2024.05.002.

N. Kutaiba, W. Chung, M. Goodwin, A. Testro, G. Egan, and R. Lim, “The impact of hepatic and splenic volumetric assessment in imaging for chronic liver disease: a narrative review,” Dec. 01, 2024, Springer Science and Business Media Deutschland GmbH. doi: 10.1186/s13244-024-01727-3.

T. Duan, H. Y. Jiang, B. Song, and W. W. Ling, “Noninvasive imaging of hepatic dysfunction: A state-of-the-art review,” Apr. 28, 2022, Baishideng Publishing Group Inc. doi: 10.3748/wjg.v28.i16.1625.

H. C. Park et al., “Automated classification of liver fibrosis stages using ultrasound imaging,” BMC Med Imaging, vol. 24, no. 1, Dec. 2024, doi: 10.1186/s12880-024-01209-4.

N. S. Punn, B. Patel, and I. Banerjee, “Liver fibrosis classification from ultrasound using machine learning: a systematic literature review,” Jan. 01, 2024, Springer. doi: 10.1007/s00261-023-04081-y.

S. Hirata, A. Isshiki, D. I. Tai, P. H. Tsui, K. Yoshida, and T. Yamaguchi, “Convolutional neural network classification of ultrasound images by liver fibrosis stages based on echo-envelope statistics,” Front Phys, vol. 11, 2023, doi: 10.3389/fphy.2023.1164622.

A. S. Lundervold and A. Lundervold, “An overview of deep learning in medical imaging focusing on MRI,” Dec. 2018, doi: 10.1016/j.zemedi.2018.11.002.

R. Santos, J. Pedrosa, A. M. Mendonça, and A. Campilho, “Grad-CAM: The impact of large receptive fields and other caveats,” Computer Vision and Image Understanding, vol. 258, Jul. 2025, doi: 10.1016/j.cviu.2025.104383.

S. M. Anwar, M. Majid, A. Qayyum, M. Awais, M. Alnowami, and M. K. Khan, “Medical Image Analysis using Convolutional Neural Networks: A Review,” Nov. 01, 2018, Springer New York LLC. doi: 10.1007/s10916-018-1088-1.

H. Ai, Y. Huang, D. I. Tai, P. H. Tsui, and Z. Zhou, “Ultrasonic Assessment of Liver Fibrosis Using One-Dimensional Convolutional Neural Networks Based on Frequency Spectra of Radiofrequency Signals with Deep Learning Segmentation of Liver Regions in B-Mode Images: A Feasibility Study,” Sensors, vol. 24, no. 17, Sep. 2024, doi: 10.3390/s24175513.

Y. Joo, H. C. Park, O. J. Lee, C. Yoon, M. H. Choi, and C. Choi, “Classification of Liver Fibrosis From Heterogeneous Ultrasound Image,” IEEE Access, vol. 11, pp. 9920–9930, 2023, doi: 10.1109/ACCESS.2023.3240216.

S. Woo, J. Park, J.-Y. Lee, and I. S. Kweon, “CBAM: Convolutional Block Attention Module,” Jul. 2018, [Online]. Available: http://arxiv.org/abs/1807.06521

X. Dong, Q. Tan, S. Xu, J. Zhang, and M. Zhou, “Ultrasound image-based contrastive fusion non-invasive liver fibrosis staging algorithm,” Abdominal Radiology, Dec. 2025, doi: 10.1007/s00261-025-04991-z.

P. Gupta et al., “Advanced liver fibrosis detection using a two-stage deep learning approach on standard T2-weighted MRI,” Abdominal Radiology, 2025, doi: 10.1007/s00261-025-05160-y.

H. Zhao et al., “Diagnostic performance of EfficientNetV2-S method for staging liver fibrosis based on multiparametric MRI,” Heliyon, vol. 10, no. 15, Aug. 2024, doi: 10.1016/j.heliyon.2024.e35115.

H. C. Park et al., “Automated classification of liver fibrosis stages using ultrasound imaging,” BMC Med Imaging, vol. 24, no. 1, Dec. 2024, doi: 10.1186/s12880-024-01209-4.

K. Yang, F. Chen, A. Tian, L. Deng, and X. Mao, “A Novel Deep Learning Framework for Liver Fibrosis Staging and Etiology Diagnosis Using Integrated Liver–Spleen Elastography,” Diagnostics, vol. 15, no. 23, p. 2986, Nov. 2025, doi: 10.3390/diagnostics15232986.

Z. Niu, G. Zhong, and H. Yu, “A review on the attention mechanism of deep learning,” Neurocomputing, vol. 452, pp. 48–62, Sep. 2021, doi: 10.1016/j.neucom.2021.03.091.

W. Islam, M. Jones, R. Faiz, N. Sadeghipour, Y. Qiu, and B. Zheng, “Improving Performance of Breast Lesion Classification Using a ResNet50 Model Optimized with a Novel Attention Mechanism,” Tomography, vol. 8, no. 5, pp. 2411–2425, Oct. 2022, doi: 10.3390/tomography8050200.

S. Potharaju, S. N. Tambe, S. K. Tadepalli, S. Salvadi, T. C. Manjunath, and A. Srilakshmi, “Optimizing Waste Management with Squeeze-and-Excitation and Convolutional Block Attention Integration in ResNet-Based Deep Learning Frameworks,” Journal of Artificial Intelligence and Technology, vol. 5, pp. 211–220, Jun. 2025, doi: 10.37965/jait.2025.0709.

A. Danyo, A. Dontoh, and A. Aboah, “An Improved ResNet50 Model for Predicting Pavement Condition Index (PCI) Directly from Pavement Images,” Apr. 2025, [Online]. Available: http://arxiv.org/abs/2504.18490

A. Al-Kababji, F. Bensaali, S. P. Dakua, and Y. Himeur, “Automated liver tissues delineation techniques: A systematic survey on machine learning current trends and future orientations,” Jul. 2022, [Online]. Available: http://arxiv.org/abs/2103.06384

X. Zhao, L. Wang, Y. Zhang, X. Han, M. Deveci, and M. Parmar, “A review of convolutional neural networks in computer vision,” Artif Intell Rev, vol. 57, no. 4, Apr. 2024, doi: 10.1007/s10462-024-10721-6.

Q. Wang, Y. Ma, K. Zhao, and Y. Tian, “A Comprehensive Survey of Loss Functions in Machine Learning,” Annals of Data Science, vol. 9, no. 2, pp. 187–212, Apr. 2022, doi: 10.1007/s40745-020-00253-5.

Z. Chen, H. Zhu, Y. Liu, and X. Gao, “MSCA-UNet: multi-scale channel attention-based UNet for segmentation of medical ultrasound images,” Cluster Comput, vol. 27, no. 5, pp. 6787–6804, Aug. 2024, doi: 10.1007/s10586-024-04292-y.

I. D. Mienye, T. G. Swart, G. Obaido, M. Jordan, and P. Ilono, “Deep Convolutional Neural Networks in Medical Image Analysis: A Review,” Mar. 01, 2025, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/info16030195.

Y. Zhang et al., “Deep-Learning Model of ResNet Combined with CBAM for Malignant–Benign Pulmonary Nodules Classification on Computed Tomography Images,” Medicina (Lithuania), vol. 59, no. 6, Jun. 2023, doi: 10.3390/medicina59061088.

Y. Ye et al., “Image segmentation using improved U-Net model and convolutional block attention module based on cardiac magnetic resonance imaging,” J Radiat Res Appl Sci, vol. 17, no. 1, p. 100816, Mar. 2024, doi: 10.1016/j.jrras.2023.100816.

S. R. Dubey, S. K. Singh, and B. B. Chaudhuri, “Activation functions in deep learning: A comprehensive survey and benchmark,” Sep. 07, 2022, Elsevier B.V. doi: 10.1016/j.neucom.2022.06.111.

Published
2026-01-17
How to Cite
[1]
B. T. Z. Afif, W. Wiharto, and U. Salamah, “Classification of Ultrasound Images Using ResNet-50 with a Convolutional Block Attention Module (CBAM)”, j.electron.electromedical.eng.med.inform, vol. 8, no. 1, pp. 284-303, Jan. 2026.
Section
Medical Engineering