AI and Machine Learning for On-Device Development: A Programmer's Guide

Moroney, Laurence



AI is nothing without somewhere to run it. Now that mobile devices have become the primary computing device for most people, it's essential that mobile developers add AI to their toolbox. This insightful book is your guide to creating models and running them on popular mobile platforms such as iOS and Android.

Laurence Moroney, lead AI advocate at Google, offers an introduction to machine learning techniques and tools, then walks you through writing Android and iOS apps powered by common ML models like computer vision and text recognition, using tools such as ML Kit, TensorFlow Lite, and Core ML. If you're a mobile developer, this book will help you take advantage of the ML revolution today.

  • Explore the options for implementing ML and AI on mobile devices--and when to use each
  • Create ML models for iOS and Android
  • Write ML Kit and TensorFlow Lite apps for iOS and Android and Core ML/Create ML apps for iOS
  • Understand how to choose the best techniques and tools for your use case: on-device inference versus cloud-based inference, high-level APIs versus low-level APIs, and more
  • Learn privacy and ethics best practices for ML on devices


Laurence Moroney leads AI Advocacy at Google. His goal is to educate the world of software developers in how to build AI systems with Machine Learning. He's a frequent contributor to the TensorFlow YouTube channel at, a recognized global keynote speaker and author of more books than he can count, including several best-selling science fiction novels, and a produced screenplay. He's based in Washington state, where he drinks way too much coffee. You can reach him on twitter at @lmoroney, or LinkedIn at