At a glance
Error level analysis plus a lightweight CNN spots GAN-generated faces with 96.37% accuracy, and the team behind it has released the 8,000-image dataset it was trained on.
Feed 320 real photographs to a VGG16 network trained to separate camera pictures from AI-generated ones, and it will call every one of them fake. Not most of them. All of them. Its ROC-AUC score came out at 0.50, which is what you get from flipping a coin.
That number sits inside a comparison table in a 2026 paper in IET Image Processing, and it is the most instructive result in the study. The team, led by Kazi Rifat Ahmed and including Md Shakil Ahmed of the Bangladesh University of Business and Technology, built a detector for GAN-generated face images by pairing a long-established forensic preprocessing step with modern transfer learning. Their best configuration reached 96.37% accuracy.
The timing matters because of what a GAN can now do. A generative adversarial network trains two models against each other: one draws an image, one judges whether it looks real, and the drawing model improves until the judge is fooled. Faces were the first target, and they got convincing quickly. Synthetic faces now land in loan applications, insurance claims, dating profiles and court exhibits, and somebody has to check each one.
What error level analysis actually measures
Every JPEG is compressed in small blocks, and the encoder discards detail according to the quality setting chosen when the file was saved. Two years later, that image carries a compression history. Error level analysis, or ELA, exploits it: re-save the image at a known quality, subtract the re-saved copy from the original, and amplify whatever is left. Regions edited after the first save tend to glow brighter or darker than their neighbours, because their compression history no longer matches.
Think of a UV lamp run over a repainted wall. The touched-up patch fluoresces differently from the plaster around it, and colour matching does nothing to hide that.
GAN images break the metaphor. There is no pasted patch, no seam, no mismatched region, because nothing was edited. The entire image came out of a generator in one pass. So the ELA stage stops hunting for a splice and starts looking for the generator's own residue: the upsampling patterns and block artefacts a neural network leaves behind when it assembles a 224-pixel face out of noise.
The methodological contribution here is an adaptive version of the ELA formula, one whose sensitivity shifts with the compression level of the image being tested rather than applying a single fixed setting to everything. The resulting image then goes into a convolutional neural network, a model that learns which visual patterns correlate with forgery instead of being told the rules.
Eight thousand faces, labelled one by one
Detectors are only as good as the data behind them, and GAN-specific face data has been thin on the ground. The team assembled their own: HFD-8000, 8,000 labelled human face images split into 6,400 for training and 1,600 for testing, all resized to 224 by 224 pixels and saved as JPEG, each carrying a binary Real or Fake label.
Real faces were drawn from public Kaggle datasets released under a CC BY-NC-SA 4.0 licence. The synthetic ones were produced with current GAN models. The dataset is public on Mendeley Data under DOI 10.17632/r88c3hr2x6.1, credited to Kazi Rifat Ahmed, Abdul Kadar Muhammad Masum and Md. Zia Uddin; the analysis code is available from the authors on request.
Ten architectures were then trained against it: MobileNetV2, DenseNet121, VGG16, VGG19, Xception, InceptionV3, ResNet-50, EfficientNetB0, a custom CNN and an ensemble that combined several of them.
Photo by James Yarema on Unsplash
The results, and the one that broke
| Model | Accuracy | ROC-AUC | What happened |
|---|---|---|---|
| EfficientNetB0 | 96.37% | Best of the ten | Top performer; cleaner feature extraction and classification |
| Xception | 94.87% | 98.92 | 33 real images called fake, 49 fakes called real |
| VGG16 | 80.00% | 50.00 | All 320 real faces labelled fake; zero recall on the real class |
EfficientNetB0 took first place at 96.37% accuracy, ahead of DenseNet121, which the authors put down to more efficient feature extraction and classification rather than raw depth. Xception's confusion matrix is the useful detail: of 1,600 test images it got 287 real ones and 1,231 fakes right, and the errors ran in both directions.
VGG16 is the cautionary tale. Its 80% accuracy looks respectable until you check the test set composition: 1,280 synthetic faces against 320 real ones. A model that answers "fake" every single time scores exactly 80%. The paper states the failure directly, reporting zero recall for the real class and describing the outcome as severely limiting for practical forgery detection. An earlier study of the same dataset, cited by later work, found ResNet50 gave the best balance of accuracy, training stability and generalization, which is a reminder that rankings shift with training budgets and preprocessing choices.
Where the method could still stumble
Start with the data. HFD-8000 is one dataset, built from one family of generators and a handful of public face collections. The paper devotes a section to its own limitations, and the design makes several of them visible without much digging. Every image is resized to 224 by 224 pixels and re-encoded as JPEG, which discards precisely the high-frequency detail forensic analysts lean on. Whatever survives that pipeline is what the network learns.
Then there is the evaluation setup. The authors used 80% of the images for training and 20% for testing, and they also used the test images for validation to keep an eye on overfitting. That is a reasonable engineering shortcut, but it means no portion of the data stayed untouched until the end. Transfer learning brings a second question: the backbones were pretrained on ImageNet, and nothing in the pipeline separates a genuine GAN fingerprint from a cue specific to this particular collection.
Researchers in digital forensics have complained for years about exactly this gap. Detectors score well on the data they were trained on and worse on everything else, and the field has no standard adversarial benchmark for face forgery. The paper's own related work notes that diffusion models are now competing with GANs as generators. Those were not tested here.
Anyone who has watched a photo travel through WhatsApp or Instagram knows the practical version of the problem. Re-compression scrubs the very artefacts ELA is built to expose, and a detector that has only seen clean, uniformly resized 224-pixel JPEGs has not been shown a re-compressed image from a phone.
Who ends up doing the checking
The obvious customers are the ones already drowning in submitted images: insurers processing damage claims, banks running remote identity checks, landlords screening tenants, small claims courts weighing photo evidence. A claims adjuster looking at a photograph of a wrecked car has no practical way to know whether the car exists.
All of those settings share a constraint that academic benchmarks tend to ignore. The check has to be cheap. The authors claim their preprocessing and model selection cut computational cost and training time, and EfficientNetB0 is a deliberately modest architecture: roughly five million parameters, engineered by Mingxing Tan and Quoc Le to reach high accuracy on a small compute budget. That profile matters if the detector runs on a laptop in a regional office rather than a GPU cluster.
Where the method proves out, the workflow is unglamorous. A file arrives; ELA produces a version of it that exaggerates inconsistencies; the network scores that version. A high score flags the image for human review. The paper does not claim to replace a forensic examiner, and at 96.37% it shouldn't.
Photo by Rubaitul Azad on Unsplash
The co-author behind the work
Md Shakil Ahmed is a lecturer in computer science and engineering at Bangladesh University of Business and Technology, where he has taught since July 2025, after spells at Canadian University of Bangladesh and Daffodil International University. He holds an M.Sc. and a B.Sc. in information and communication technology from the Institute of Information Technology at Jahangirnagar University, and his wider research runs toward privacy-preserving machine learning for healthcare, including federated semi-supervised learning for Parkinson's disease classification, supported by an ICT Division Fellowship and a National Science and Technology Fellowship for the 2025–2026 session.
Image forensics sits closer to where he started. His earlier work includes real-time Bangla Sign Language detection and recognition using YOLOv10, and his university faculty profile lists machine learning, computer vision and image processing as core interests. The GAN forgery paper, published in IET Image Processing volume 20, is available in full through its DOI record.
What the next five years of this fight look like
Two things in this paper will outlast it. The first is HFD-8000, sitting on Mendeley Data with a citable DOI, free for any group that wants to beat 96.37%. Public benchmarks have a way of pulling a field forward faster than any single architecture does.
The second is the adaptive ELA idea, which treats compression as a variable to be measured rather than a fixed setting to be assumed. That is the right instinct for a problem where the images arrive from a hundred different phones and platforms.
The harder question is the one the VGG16 row asks. A detector reporting 80% accuracy while classifying every real face as fake is not a slightly worse detector; it is broken, and it looks fine on a leaderboard. The next generation of forgery research will be judged less on peak accuracy and more on what happens when the test set comes from a generator nobody trained against. Whether the answer is a stronger preprocessor, a broader benchmark, or watermarking baked in at the point of capture, one lesson from this study holds: check what the model gets wrong, not just what it gets right.
- deepfakes
- deep-learning
- computer-vision
- gan-generated-images
- image-forgery-detection

