Image Classifier CNN: Automating Digital Forensics with Deep Learning

Machine LearningNov 2025By Tinotenda Linton

Deep learning system for detecting image-manipulation artifacts in forensics — Custom CNN, InceptionV3, and MobileNetV2 compared, best at 94.7% accuracy.

PythonTensorFlowKerasConvolutional Neural NetworksForensicsVercel

Digital image manipulation is easy to commit and hard to prove. This project trains convolutional neural networks to detect the artifacts manipulation leaves behind, for use in digital forensics workflows.

Model comparison, not a single model

Three architectures were trained and benchmarked on the same forensic image dataset:

  • Custom CNN — designed for the artifact-detection task
  • InceptionV3 — transfer learning from ImageNet weights
  • MobileNetV2 — the lightweight candidate for constrained deployment

The best configuration reaches 94.7% classification accuracy on the forensic task. Trained model artifacts (.h5) for all three architectures are committed alongside the research proposal that framed the problem.

From notebook to endpoint

The project doesn't stop at the notebook: a Vercel-hosted API (api/ + vercel.json) exposes the trained model for inference, so the classifier can be called from other tooling rather than living only in a research directory.

Stack: Python 3.10, TensorFlow 2.15, Keras, scikit-learn.


Why compare three architectures

Betting on a single network is how a research result stays a research result. Training Custom CNN, InceptionV3, and MobileNetV2 on the same forensic image dataset answers the deployability question: which architecture earns its complexity, and which one fits a constrained deployment. The lightweight MobileNetV2 candidate exists precisely because forensics tooling doesn't always run next to a GPU.

Reproducibility as a deliverable

A forensics result you can't re-run is a claim, not a finding. The repository commits the trained weights (.h5) for all three architectures, the dataset references, the training pipeline, and the research proposal that framed the problem — so the 94.7% figure can be checked, not just cited.

Serving the model

The classifier doesn't live in a notebook. A Vercel-hosted API (api/ + vercel.json) exposes the trained model for inference, so forensic tooling can call it over HTTP from wherever it runs.