Håkan Silfvernagel
Machine learning in the browser with TensorFlowjs
#1about 3 minutes
Understanding the fundamentals of machine learning
Machine learning is defined as pattern recognition in historical data, with supervised learning being a common approach for tasks like prediction and clustering.
#2about 2 minutes
Exploring the TensorFlow library and tensor data structures
TensorFlow is an open-source library that uses tensors, which are multi-dimensional arrays like scalars, vectors, or matrices, to perform computations.
#3about 5 minutes
Loading and visualizing car data with TensorFlow.js
A JSON dataset of car information is loaded and visualized as a scatter plot to identify the negative correlation between horsepower and miles per gallon.
#4about 10 minutes
Building and training a simple sequential model
A sequential model is defined, compiled with an optimizer and loss function, and then trained on normalized and shuffled car data to predict MPG.
#5about 6 minutes
Improving model predictions with additional layers
The initial linear model is improved by adding more dense layers to the neural network, which better captures the non-linear relationship in the data.
#6about 1 minute
Converting and using pre-trained Keras models
Existing models, such as a Keras H5 file, can be converted into the TensorFlow.js layers format using the command-line converter for use in the browser.
#7about 2 minutes
The benefits of running machine learning in the browser
Running machine learning on the client-side eliminates server roundtrips, enhances data privacy, and provides easy access to device sensors like cameras and microphones.
#8about 4 minutes
Building an image classifier with a pre-trained model
A web application is built to classify images by loading a pre-trained MobileNet model that has been converted for TensorFlow.js.
#9about 1 minute
Real-world applications of TensorFlow.js in production
Companies like Uber, Airbnb, and Google's Magenta project use TensorFlow.js for visual debugging, client-side document detection, and music composition.
#10about 2 minutes
Conclusion and further learning resources
Additional resources for learning more about TensorFlow include official documentation, Coursera courses, and the AI 42 online school.
Related jobs
Jobs that call for the skills explored in this talk.
Picnic Technologies B.V.
Amsterdam, Netherlands
Intermediate
Senior
Python
Structured Query Language (SQL)
+1
WALTER GROUP
Wiener Neudorf, Austria
Intermediate
Senior
Python
Data Vizualization
+1
Matching moments
02:20 MIN
The evolving role of the machine learning engineer
AI in the Open and in Browsers - Tarek Ziadé
04:28 MIN
Building an open source community around AI models
AI in the Open and in Browsers - Tarek Ziadé
06:44 MIN
Using Chrome's built-in AI for on-device features
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
08:40 MIN
Integrating AI into Firefox while respecting user privacy
AI in the Open and in Browsers - Tarek Ziadé
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:07 MIN
Final advice for developers adapting to AI
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
03:16 MIN
The importance of client-side encryption for AI features
AI in the Open and in Browsers - Tarek Ziadé
Featured Partners
Related Videos
Build UIs that learn - Discover the powerful combination of UI and AI
Eliran Natan
From ML to LLM: On-device AI in the Browser
Nico Martin
Mastering Image Classification: A Journey with Cakes
Carly Richmonds
What do language models really learn
Tanmay Bakshi
Overview of Machine Learning in Python
Adrian Schmitt
Machine Learning for Software Developers (and Knitters)
Kris Howard
Getting Started with Machine Learning
Alexandra Waldherr
How Machine Learning is turning the Automotive Industry upside down
Jan Zawadzki
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


Harnham
Manchester, United Kingdom
Remote
£100-200K
Python
PyTorch
TensorFlow
+2

Jordan Martorell S.L.
Municipality of Madrid, Spain
Remote
Azure
Scrum
DevOps
Python
+6


US Tech Solutions
Cambridge, United Kingdom
£112-116K
Intermediate
Linux
Python
PyTorch
TensorFlow
+3


TechByte Talent Ltd
Birmingham, United Kingdom
Remote
£80K
Python
Docker
PyTorch
+3

KickstartAI
The Hague, Netherlands
€5K
Intermediate
Azure
Python
Docker
PyTorch
+4
