Mastering Image Classification: A Journey with Cakes
What happens when your AI fails so badly it decides 'the cake is a lie'? Discover the practical path to mastering image classification.
#1about 4 minutes
The origin of the "Is it Cake?" machine learning project
Inspired by the TV show "Is it Cake?", a personal project was started to build an image classifier using TensorFlow.js.
#2about 3 minutes
Sourcing and preparing the cake and not-cake image data
Data was collected by scraping bakers' websites with Playwright and using the Unsplash API, but this introduced data quality issues like logos and ambiguous images.
#3about 3 minutes
Evaluating the pre-trained MobileNet image classification model
The pre-trained MobileNet model in TensorFlow.js was tested but performed poorly, often misclassifying cakes as candles or bakeries.
#4about 2 minutes
Using the Coco-SSD model for object detection
The Coco-SSD object detection model performed better than MobileNet but still made significant errors, like identifying a cake as a person.
#5about 6 minutes
Building a custom convolutional neural network from scratch
An attempt to build a custom Convolutional Neural Network (CNN) using TensorFlow.js sequential models resulted in failure, with the model classifying every image as "not cake".
#6about 2 minutes
Improving model accuracy with transfer learning
Transfer learning was used by taking the feature extraction layers of MobileNet and adding a custom classification head, which significantly improved the model's performance.
#7about 4 minutes
Playing the "Is it Cake?" game and comparing results
The audience participates in an interactive game to classify images, outperforming the custom models and demonstrating the difficulty of the task.
Related jobs
Jobs that call for the skills explored in this talk.
Dev Digest 217: All About Cookies, Better Agents & How OpenAI Built CodexInside last week’s Dev Digest 217 .
🍪 All you ever wanted to know about cookies
🤖 Why ChatGPT cites one page over another
🛠️ How to build better agents
🌐 Is your site agent ready?
🔐 Get started on GitHub Actions security
🧠 How OpenAI built Codex
🧹 G...
Dev Digest 215: Agent Memory, JS2026, Googlebot Analysis & Canvas❤️HTMLInside last week’s Dev Digest 215 .
🗿 Make AI talk like a caveman
🧠 A guide to context engineering for LLMs
🤖 Simon Willison on agentic engineering
🔐 Axios supply chain attack post mortem
🛡️ Designing AI agents to resist prompt injection
🎨 HTML in c...
Daniel Cranney
Dev Digest 208: 4 Hours Code a Day, WebMCP Insights, PyTorch for BeginnersInside last week’s Dev Digest 208 .
⏳ You can only code 4 hours per day
📡 How your Bluetooth devices snitch on you
🤖 What to learn about AEO and GEO from OpenAI’s GPT-5 tokeniser
📰 AI agent writing hit pieces on software maintainers
🛡️ OpenClaw thre...
From learning to earning
Jobs that call for the skills explored in this talk.