Is it (F)ake?! Image Classification with TensorFlow.js
Can JavaScript tell a real object from a hyper-realistic cake? This talk charts the journey from failed models to a successful cake detector using TensorFlow.js.
#1about 3 minutes
Using JavaScript and ML to solve a baking show challenge
The speaker introduces the goal of using machine learning to identify hyper-realistic cakes from the TV show "Is it Cake?".
#2about 2 minutes
Collecting and balancing the cake vs not-cake dataset
Images of cakes and non-cakes are collected using Playwright and the Unsplash API to create a balanced binary classification dataset.
#3about 5 minutes
Evaluating pre-trained models for image classification and object detection
Pre-existing models like MobileNet and Coco-SSD are tested on the dataset, but they produce inaccurate and strange classifications.
#4about 6 minutes
Building a custom convolutional neural network from scratch
A custom convolutional neural network is built using TensorFlow.js sequential models and convolution layers, but it fails to accurately classify images.
#5about 5 minutes
Applying transfer learning to improve model accuracy
Transfer learning is used by combining a pre-trained MobileNet feature vector model with a custom classification head, significantly improving results.
#6about 4 minutes
Playing an interactive game to compare human and model performance
An interactive web game allows the audience to test their cake-spotting skills against the various machine learning models.
#7about 1 minute
Key takeaways and resources for getting started with TensorFlow.js
The talk concludes by summarizing the journey from using pre-existing models to applying transfer learning and provides resources for further learning.
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...
Daniel Cranney, Chris Heilmann
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...