Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 10 February 2026

Robust Adversarial Attack Detection via Generative Adversarial Network With Residual Multi-Layer Aggregation Based Contrastive Loss Function

Amudha Gopalakrishnan1 & Nalini Joseph1

Journal of Computer Science, Volume 22, Issue 1, pp. 218–228 · doi.org/10.3844/jcssp.2026.218.228

1,742 accesses964 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

Adversarial attacks in medical imaging refer to subtle modifications to images that mislead diagnostic systems, resulting in inaccurate diagnoses and assessments. These attacks exploit vulnerabilities in image processing, leading to misclassification or altered visual features that often go unnoticed. This raises serious concerns about the security and reliability of medical diagnosis, directly impacting clinical decision-making and patient safety. This research proposes a Generative Adversarial Network with Residual Multi-Layer Aggregation-based Contrastive Loss Function (GRMLA-CLF) to effectively identify adversarial attacks using medical images. In the generator, Residual Multi-Layer Aggregation (RMLA) is incorporated to capture fine-grained information and structural patterns of adversarial attacks, improving the model’s adaptability. The Contrastive Loss Function (CLF) enhances adversarial attack detection by increasing the distance between genuine and adversarial samples, ensuring a clear distinction in latent space, and ensuring distinct representation. This enhances model robustness by reducing sensitivity to small perturbations while preserving significant features necessary for accurate decision-making. The proposed GRMLA-CLF achieves high accuracy rates of 99.81, 99.64, and 98.65% on the ISIC2019, Chest X-ray, and APTOS2019 datasets, respectively, outperforming existing methods like Global Attention Noise (GATN).

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Gopalakrishnan, A. & Joseph, N. (2026). Robust Adversarial Attack Detection via Generative Adversarial Network With Residual Multi-Layer Aggregation Based Contrastive Loss Function. Journal of Computer Science, 22(1), 218–228. https://doi.org/10.3844/jcssp.2026.218.228

Licence
CC BY 4.0
Issue
Volume 22, Issue 1
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Robust Adversarial Attack Detection via Generative Adversarial Network With Residual Multi-Layer Aggregation Based Contrastive Loss FunctionJournal of Computer Science · Volume 22, Issue 1 · pp. 218–228 · CC BY 4.0Download