AI-Generated Image Detection Using a Multi-Model Ensemble and Forensic Analysis
Abstract
The rapid growth of generative AI has made it increasingly difficult to tell AI-generated images from real photographs, and a single detection model often fails on images from generators it was not trained on. This paper presents the AI Image Authenticator, a web-based system that combines a six-model neural ensemble with a five-layer forensic suite to decide whether an uploaded image is AI-generated or real. Six pretrained Vision Transformer and Swin Transformer classifiers each output a probability, and a weighted democratic consensus with uncertainty tracking merges them into one verdict. In parallel, five forensic layers—C2PA Content Credentials, EXIF hardware verification, Error Level Analysis, 2D Fast Fourier Transform spectral analysis and sensor noise residual analysis—supply evidence that does not depend on any trained classifier. The system uses React.js on the front end and Flask with Hugging Face Transformers on the back end, and all models run locally on a CPU, so no paid API is needed. For every image it reports a verdict, a confidence score, each model’s vote and five forensic metric cards, so the decision is explainable rather than a single opaque number. Tests on a DALL-E 3 image shared through WhatsApp, a Gemini image carrying C2PA credentials and real smartphone photographs, including WhatsApp-compressed copies, were all classified correctly. The results show that combining diverse classifiers with forensic evidence removes the blind spots of any single detector