Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Advanced AI for Liver Cancer Detection: Vision Transformers, XAI and Contrastive Learning

Author 1: B C Anil Author 2: Jayasimha S R Author 3: Samitha Khaiyum Author 4: T L Divya Author 5: Rakshitha Kiran P Author 6: Vishal C
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 7 · Published 2025

DOI: https://doi.org/10.14569/IJACSA.2025.0160716

Abstract

Liver cancer detection has always stood as a significant challenge in medical diagnostics, largely due to the complexity of interpreting imaging data and the critical need for accurate yet explainable results. This study explored how recent advances in artificial intelligence, specifically Vision Transformers (ViTs), Contrastive Learning, and Explainable AI (XAI), can be combined to address this challenge more effectively. Unlike conventional models, Vision Transformers are particularly good at capturing intricate patterns in medical images, which makes them well-suited for tasks like cancer classification. To improve the model's ability to generalize across different imaging conditions incorporated contrastive learning techniques, essentially teaching the system to recognize subtle distinctions between similar and dissimilar image features. This approach significantly sharpened its performance. Recognizing the importance of transparency in medical AI also integrated explainable AI tools into the model. This helped generate visual and textual cues that explain the system’s predictions, which is crucial for gaining the trust of clinicians who rely on these tools in high-stakes environments. The model was trained on a comprehensive dataset of liver cancer images, including both CT scans and MRIs, sourced from a well-established medical repository. The results were promising: the system reached a classification accuracy of 92 per cent, outperforming standard convolutional neural networks (CNNs) by 8 per cent. Most notably, it showed strong performance in identifying early-stage liver cancer, with 90 per cent sensitivity and 94 per cent specificity, suggesting that it may hold real potential for clinical application.

Keywords

How to Cite this Article

Anil, B. C., R, J. S., Khaiyum, S., Divya, T. L., P, R. K., & C, V. (2025). Advanced AI for Liver Cancer Detection: Vision Transformers, XAI and Contrastive Learning. International Journal of Advanced Computer Science and Applications, 16(7). https://doi.org/10.14569/IJACSA.2025.0160716

Anil, B C, et al.. "Advanced AI for Liver Cancer Detection: Vision Transformers, XAI and Contrastive Learning." International Journal of Advanced Computer Science and Applications, vol. 16, no. 7, 2025, https://doi.org/10.14569/IJACSA.2025.0160716.

@article{Anil2025,
  title     = {Advanced AI for Liver Cancer Detection: Vision Transformers, XAI and Contrastive Learning},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {7},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {B C Anil and Jayasimha S R and Samitha Khaiyum and T L Divya and Rakshitha Kiran P and Vishal C},
  doi       = {10.14569/IJACSA.2025.0160716},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160716}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.