Personal project · 2026

CNN Architecture Comparison

Three neural networks compared on 120,000 food photos, showing a small model can match a big one at the same accuracy while being six times smaller.

Jupyter Notebook · Python · TensorFlow · Deep Learning

The problem

Bigger models usually win, but they cost more to train and run. I wanted to know how much model you actually need for one specific job, recognising food.

What I built

I trained three architectures on 120,000 food images and compared them. The small one matched the big one at 99.75 percent accuracy while being six times smaller and a third faster to train.

What it does

Model Performance Comparison

ModelTest AccuracyParametersSizeTraining Time
Custom CNN97.97%4.96M56.9 MB14.8h
EfficientNetB099.75%4.07M40.0 MB6.7h
ResNet-5099.76%24.13M211.0 MB10.3h

Dataset Specifications

PropertyValue
Total Images120,842 (deduplicated)
Classes14 (Fruits & Vegetables)
Split (Train/Val/Test)84,582 / 18,119 / 18,141
Resolution224×224 RGB

The full engineering is on GitHub.