Open Access iconOpen Access

ARTICLE

WaSA-Net: Wavelet-Guided Tokenization and Dynamic Sparse Attention for Histopathology Image Classification

Muhammad Zaheer Sajid1, Muhammad Fareed Hamid2, Nauman Ali Khan2,3,*, Imran Qureshi4

1 Department of Electrical and Computer Engineering, George Mason University, Fairfax, VA, USA
2 Department of Computer Software Engineering, National University of Sciences and Technology, Islamabad, Pakistan
3 Department of Smart Computing and Cyber Resilience, DSCCR, Sunway University, Kuala Lumpur, Malaysia
4 College of Computer and Information Sciences, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh, Saudi Arabia

* Corresponding Authors: Nauman Ali Khan. Email: email, email

Computer Modeling in Engineering & Sciences 2026, 148(1), 44 https://doi.org/10.32604/cmes.2026.084724

Abstract

Digital pathology is rapidly transforming histopathological diagnosis, yet many existing deep learning models treat all spatial regions uniformly and do not exploit the multi-frequency structure of tissue, which limits both diagnostic accuracy and computational efficiency. This paper proposes WaSA-Net, an end-to-end architecture that integrates three complementary modules for histopathological image analysis. First, the Wavelet-Guided Tokenization (WGT) module decomposes input images into frequency-aware representations using learnable wavelet-like filters, so that both global tissue structures and fine-grained cellular patterns are exposed to attention from the first layer. Second, the Dynamic Sparse Attention with Pathology Priors (DSA-PP) module adaptively selects diagnostically informative tokens through a lightweight gating mechanism and incorporates learnable pathology prior tokens that embed domain-specific inductive biases, reducing attention complexity while preserving critical contextual information. Third, the Cross-Frequency Feature Pyramid Fusion (CFFPF) module performs bidirectional cross-attention across frequency bands and applies adaptive per-sample frequency weighting to identify the most discriminative frequency components for each tissue type. The proposed architecture is evaluated on three widely used histopathology benchmarks: PatchCamelyon for metastasis detection, PathMNIST for multi-class colorectal tissue classification, and BreakHis for breast cancer diagnosis. WaSA-Net achieves strong performance with only 4.8M parameters, reaching 95.91% accuracy (AUC 0.9981) on PathMNIST, 93.47% accuracy (AUC 0.9812) on PatchCamelyon, and 96.72% accuracy (AUC 0.9923) on BreakHis. Despite its compact design, WaSA-Net matches or surpasses larger models while requiring no external pre-training data. These results indicate that frequency-aware representations and dynamic sparse attention can improve both efficiency and diagnostic performance in digital pathology.

Keywords

Digital pathology; wavelet transform; sparse attention; frequency-guided tokenization; telepathology; computational pathology; deep learning

Cite This Article

APA Style
Sajid, M.Z., Hamid, M.F., Khan, N.A., Qureshi, I. (2026). WaSA-Net: Wavelet-Guided Tokenization and Dynamic Sparse Attention for Histopathology Image Classification. Computer Modeling in Engineering & Sciences, 148(1), 44. https://doi.org/10.32604/cmes.2026.084724
Vancouver Style
Sajid MZ, Hamid MF, Khan NA, Qureshi I. WaSA-Net: Wavelet-Guided Tokenization and Dynamic Sparse Attention for Histopathology Image Classification. Comput Model Eng Sci. 2026;148(1):44. https://doi.org/10.32604/cmes.2026.084724
IEEE Style
M. Z. Sajid, M. F. Hamid, N. A. Khan, and I. Qureshi, “WaSA-Net: Wavelet-Guided Tokenization and Dynamic Sparse Attention for Histopathology Image Classification,” Comput. Model. Eng. Sci., vol. 148, no. 1, pp. 44, 2026. https://doi.org/10.32604/cmes.2026.084724



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 0

    View

  • 0

    Download

  • 0

    Like

Share Link