–Custom CNN · Test acc.
–MobileNetV2 · Test acc.
–Absolute gain (Δ)
–McNemar p-value

The same frozen train/val/test split, the same augmentation pipeline and the same evaluation code (eval_utils.py) drive both models, so the comparison is like-for-like. Byte-identical images were de-duplicated before splitting to remove leakage.

Head-to-head metrics

Training curves

Custom CNN

MobileNetV2 (transfer)

Per-class F1 score

Confusion matrices (test set)

Custom CNN

MobileNetV2

Is the difference real?

Dataset overview

How it was built

  1. 00_dataset_setup — scan data/raw, drop byte-identical duplicates, stratified 70/15/15 split (seed 42).
  2. 01_custom_cnn — from-scratch CNN, Adam, augmentation, early stopping.
  3. 02_transfer_learning — MobileNetV2, Rescaling(2.0, offset=-1.0) to [-1,1], frozen base then fine-tune.
  4. 03_comparison — shared eval_utils artifacts, comparison table, McNemar test.