Academic Jobs - Home of Higher Ed Logo

Research spotlight: Md Shakil Ahmed

8 min read10 views

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.

the cnn logo is displayed in front of a building
Photo by Pacharamon Dorego on Unsplash

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.

a screen shot of a computer screen showing a number of death records

Photo by James Yarema on Unsplash

The results, and the one that broke

ModelAccuracyROC-AUCWhat happened
EfficientNetB096.37%Best of the tenTop performer; cleaner feature extraction and classification
Xception94.87%98.9233 real images called fake, 49 fakes called real
VGG1680.00%50.00All 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.

a white dice with the word cnn on it

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
Portrait of Jarrod Kanizay
About the author

Jarrod KanizayView author

Academic Jobs In House Author

Visionary leader transforming academic recruitment with 20+ years in higher education.

Discussion

Sort by:

Be the first to comment on this article!

You

You’ll be asked to sign in before your comment is posted.

Browse by Faculty

Browse by Subject

Frequently Asked Questions

🔍What did this study actually find?

The authors combined error level analysis, a forensic technique that exposes inconsistencies in an image's JPEG compression history, with transfer learning models. Their best configuration, EfficientNetB0, reached 96.37% accuracy at telling real photographs from GAN-generated faces. They also released HFD-8000, an 8,000-image labelled face dataset, and showed that a well-known architecture, VGG16, collapsed to random-guess performance on the same task.

🖼️What is error level analysis in plain terms?

Error level analysis, or ELA, re-saves an image at a known JPEG quality and subtracts the result from the original. Because different parts of an edited image have different compression histories, the differences show up unevenly. Analysts describe it as running a UV lamp over a repainted wall: the touched-up patch glows differently from everything around it. In this paper the technique was made adaptive, shifting sensitivity according to the image's compression level.

🤖What is a GAN and why are its images hard to spot?

A generative adversarial network pits two neural networks against each other: a generator that produces images and a discriminator that judges them. Training pushes the generator toward outputs the discriminator cannot reject. The resulting faces contain no edited regions and no splice seams, so traditional forensic checks that look for tampering have little to bite on. The detector has to find the generator's subtle residue instead.

📊How accurate is the best model in the paper?

EfficientNetB0 reached 96.37% accuracy, the strongest result among ten architectures tested. DenseNet121 came second, which the authors attribute to less efficient feature extraction. Xception posted 94.87% accuracy with a reported ROC-AUC of 98.92. Performance ranged widely across the lineup, and the weakest models were not simply slightly worse but functionally unusable.

🗂️What is the HFD-8000 dataset and where can researchers get it?

HFD-8000 is an 8,000-image collection of labelled human faces split into 6,400 training and 1,600 test images, all resized to 224 by 224 pixels and saved as JPEG with binary Real or Fake labels. Real faces came from public Kaggle collections under a CC BY-NC-SA 4.0 licence, while synthetic faces were produced with current GAN models. It is published on Mendeley Data under DOI 10.17632/r88c3hr2x6.1.

⚠️Why did VGG16 label every real face as fake?

VGG16 reported 80% accuracy, which sounds acceptable until you look at the test set: 1,280 of the 1,600 images were fakes. Answering "fake" every time produces exactly 80%. The confusion matrix shows it did that, with zero recall on the real class and an ROC-AUC of 0.50, the score of a coin flip. The authors describe the outcome as severely limiting for practical forgery detection, and it is a reminder that accuracy alone hides broken classifiers on imbalanced data.

🏆Why did EfficientNetB0 win?

The paper credits EfficientNetB0's more efficient feature extraction and classification capabilities. The architecture was designed for high accuracy at a modest computational cost, which suits deployment outside well-funded labs. The authors also report that their preprocessing and model selection reduced computational cost and training time, making the pipeline more feasible for real-world use than heavier alternatives.

🧪What limitations does the study acknowledge?

The paper includes a dedicated limitations section. The design itself makes several constraints visible: one dataset built from a limited family of generators, images downscaled to 224 by 224 pixels and re-encoded as JPEG, and an evaluation split where the test images were also used for validation, leaving no fully untouched holdout. Adversarial conditions and newer diffusion-model generators were not part of the testing.

🎓Who is Md Shakil Ahmed?

He is a lecturer in the Department of Computer Science and Engineering at Bangladesh University of Business and Technology, teaching there since July 2025 after positions at Canadian University of Bangladesh and Daffodil International University. He holds an M.Sc. and B.Sc. in information and communication technology from Jahangirnagar University and works on machine learning, computer vision and privacy-preserving AI for healthcare, including federated semi-supervised learning for Parkinson's disease classification.

🎬Can this method detect deepfake videos?

The study is built around still images, and HFD-8000 contains static face photographs rather than video frames. Nothing in the published results establishes video performance. Extending a still-image pipeline to video would mean handling frame-to-frame consistency and the compression applied by video codecs, which behaves differently from JPEG compression.

📱Does it work on photos shared through social media or messaging apps?

That case was not tested in this paper. Platforms re-compress uploaded images aggressively, which wipes out much of the compression-history signal that error level analysis depends on. Since the training data was uniformly resized and saved as JPEG once, a re-compressed image from a phone is a different problem. Testing against platform-processed images is one of the obvious next steps for anyone building on this work.

📄Where was the paper published and is it open to read?

The study appears in IET Image Processing, volume 20, published in 2026, by Kazi Rifat Ahmed, Md. Suhag Ali, Anichur Rahman, Sazia Sharmin, Md. Shakil Ahmed and colleagues. The full record and article are available through the journal's DOI page.

GAN Forgery Detection: ELA Plus CNN Hits 96.37% #30058