WeAreDevelopers LIVE May 26, 2021

Machine learning in the browser with TensorFlowjs

Håkan Silfvernagel

Want to build privacy-first AI without learning Python? Discover how to train and deploy machine learning models directly in the browser using TensorFlow.js.

Pause
Mute Enter Fullscreen
#1 about 2 min

Overview of machine learning in the browser with TensorFlow

Using machine learning models natively in the browser provides powerful client-side capabilities.

#2 about 3 min

Core concepts and use cases of machine learning

Supervised learning and pattern recognition enable sophisticated predictive and clustering applications.

#3 about 2 min

Fundamentals of tensors and the TensorFlow library

Tensors represent data mathematically while TensorFlow handles the underlying distributed computing operations.

#4 about 5 min

Visualizing source data with the TensorFlow visualization component

Fetching JSON data and rendering scatter plots helps identify correlations before training.

#5 about 4 min

Defining a sequential neural network model architecture

Creating a sequential model with dense layers establishes the architecture to process numerical inputs.

#6 about 4 min

Formatting and normalizing data into tensor structures

Converting JavaScript data shapes into tensors and applying min-max scaling ensures optimal training conditions.

#7 about 4 min

Compiling and training the machine learning model

Selecting an optimizer and defining a loss function prepares the model for multi-epoch training.

#8 about 6 min

Testing model predictions and addressing data non-linearity

Generating new tensors tests predictions while adding hidden layers captures non-linear data relationships.

#9 about 2 min

Converting existing Keras models to TensorFlow format

Command line utilities can translate pre-trained Python machine learning models for browser compatibility.

#10 about 2 min

Advantages of running machine learning directly in the browser

Client-side execution removes server round-trips, enhances data privacy, and accesses raw device sensors.

#11 about 5 min

Building an image classifier with a pre-trained model

Loading a converted MobileNet model enables developers to quickly predict classes for user-uploaded images.

#12 about 2 min

Real-world implementations of browser-based machine learning

Major platforms leverage client-side models for visual debugging, intuitive content moderation, and algorithmic music composition.

#13 about 3 min

Learning resources and community platforms for artificial intelligence

Recommended courses, API documentation, and online study groups help advance foundational machine learning skills.

Matching moments

2:36 min

Implementing and training the prediction model in TensorFlow.js

Eliran Natan · LIVE

2:46 min

The case for native AI in web browsers

Maxim Salnikov Maxim Salnikov · WWC 2025

3:36 min

Exploring machine learning and image classification in JavaScript

Carly Richmond Carly Richmond · WWC 2025

7:51 min

Integrating embedded machine learning models into the Firefox browser

Chris Heilmann +2 · LIVE

2:17 min

Accelerating local machine learning models via WebNN

Christian Liebel Christian Liebel · WWC Europe 2026

2:36 min

Experimenting with JavaScript machine learning for cake detection

Carly Richmnd · Coffee With Developers

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Small LLM in your Browser: Huge Opportunities for Web Applications

Daniel Ostrovsky

UI/UX Architect at Payoneer | AI Architect | Full Cycle Development Expert | Public Speaker | Open Source Contributor |

Daniel Ostrovsky
Open session

World Congress 2026 North America

Trust, But Verify: Continuous GPU Validation at Scale

Kyle Bell

VP of AI @ TensorWave

Kyle Bell
Open session

World Congress 2026 North America

Building Stuff with GenAI - The Open Minded Workshop beyond OpenAI

Andreas Erben

CTO for Applied AI and Metaverse at daenet

Andreas Erben
Open session

World Congress 2026 North America

Building Pragmatic AI: 10 AI Features Your Users Actually Want

Jonathan "J." Tower

.NET Foundation Board | 12x Microsoft MVP | Founder & Consultant

Jonathan "J." Tower
Open session

World Congress 2026 North America

You Can’t Re-Run Sunlight: Designing ML Data Architectures for Physical AI

An Phan

Senior Data Infrastructure Engineer @ Hippo Harvest

An Phan
Open session

World Congress 2026 North America

Fast by Design: A Masterclass in High-Performance Web Engineering

Aaron Grogg

Senior web developer, committed to improving the user experience by improving web performance

Aaron Grogg