A Transformer-Residual Network-Integrated Deep Learning Model for Digital Pathology-Based Grading and Risk

Hongtao Pan1, Rongrong Zhang2, Shuai Zhou3

  • 1Fourth Department of General Surgery, The Clinical College, Anhui No. 2 Provincial People's Hospital, Anhui Medical University, Hefei, Anhui, China.

Abstract

Insights

A new deep learning model accurately stages liver fibrosis in metabolic dysfunction-associated steatotic liver disease (MASLD) using digital histopathology. This AI tool aids in identifying advanced fibrosis and supports clinical decision-making for better patient outcomes.

Area of Science:

  • Computational pathology
  • Artificial intelligence in medicine
  • Liver disease research

Background:

  • Metabolic dysfunction-associated steatotic liver disease (MASLD) impacts up to 30% of the global population.
  • Current MASLD fibrosis staging relies on subjective histopathology and low-sensitivity imaging.
  • Accurate staging is crucial for predicting progression to cirrhosis and liver cancer.

Purpose of the Study:

  • To develop and validate a deep learning model for MASLD-related fibrosis staging.
  • To identify pathological phenotypes associated with advanced fibrosis using digital histopathology.
  • To provide an interpretable AI tool for pathology-assisted decision-making.

Main Methods:

  • Digitized 467 Masson-stained liver biopsies at 20× resolution.
  • Employed a four-encoder deep learning architecture integrating Transformer and ResNet.
  • Trained the model for fibrosis staging (0-4 Younossi criteria) and analyzed performance using accuracy, confusion matrices, AI scores, and Grad-CAM.

Main Results:

  • Achieved 0.80 training and 0.85 validation accuracy without overfitting.
  • Demonstrated high stage-specific accuracy (0.74-0.95), particularly for bridging fibrosis (stage 3).
  • Grad-CAM heatmaps highlighted fibrotic septa, and AI scores correlated well with ground-truth labels.

Conclusions:

  • The developed model offers automated, interpretable MASLD fibrosis staging from digital histopathology.
  • Provides a quantitative tool for risk stratification based on pathology phenotypes.
  • Further validation with clinical factors and longitudinal outcomes is needed for clinical translation.

Related Concept Videos