Artificial Intelligence is advancing rapidly, raising critical concerns about the integrity of digital content, particularly in sensitive domains such as medical imaging. Recent AI techniques, such as Generative Adversarial Networks (GANs) and diffusion models, can generate highly realistic synthetic medical images, posing risks of misdiagnosis, inappropriate treatment, and other adverse outcomes. This paper presents a deep learning-based approach to distinguish between authentic and synthetic images of skin malignancies generated by DCGAN, Wasserstein GAN (WGAN), and Stable Diffusion. A comprehensive dataset was constructed using authentic malignant skin images from an open-source Kaggle repository, alongside artificially generated images. Multiple deep learning models were trained and evaluated, with DenseNet169 achieving the highest performance, reaching 99.67% training accuracy, 97.50% validation accuracy, and 98.50% test accuracy—along with substantial precision, recall, and F1 scores across all classes. These results demonstrate the model’s efficacy in identifying both real and fake medical images. This work contributes to the emerging field of medical image forensics, highlighting its potential integration into clinical and insurance workflows to prevent fraud, strengthen trust, and mitigate risks. Furthermore, it lays the groundwork for future studies involving larger datasets, additional Deepfake generation methods, and real-time clinical applications.
Tariq et al. (Sun,) studied this question.