Book Image

Mobile Artificial Intelligence Projects

By : Karthikeyan NG, Arun Padmanabhan, Matt R. Cole
Book Image

Mobile Artificial Intelligence Projects

By: Karthikeyan NG, Arun Padmanabhan, Matt R. Cole

Overview of this book

We’re witnessing a revolution in Artificial Intelligence, thanks to breakthroughs in deep learning. Mobile Artificial Intelligence Projects empowers you to take part in this revolution by applying Artificial Intelligence (AI) techniques to design applications for natural language processing (NLP), robotics, and computer vision. This book teaches you to harness the power of AI in mobile applications along with learning the core functions of NLP, neural networks, deep learning, and mobile vision. It features a range of projects, covering tasks such as real-estate price prediction, recognizing hand-written digits, predicting car damage, and sentiment analysis. You will learn to utilize NLP and machine learning algorithms to make applications more predictive, proactive, and capable of making autonomous decisions with less human input. In the concluding chapters, you will work with popular libraries, such as TensorFlow Lite, CoreML, and PyTorch across Android and iOS platforms. By the end of this book, you will have developed exciting and more intuitive mobile applications that deliver a customized and more personalized experience to users.
Table of Contents (12 chapters)
PyTorch Experiments on NLP and RNN
TensorFlow on Mobile with Speech-to-Text with the WaveNet Model
Implementing GANs to Recognize Handwritten Digits

Building the iOS application

Let's start building the iOS application with the model that was built in the previous step. The model will predict the output according to whether the input text is positive, neutral, or negative in nature.

To build this application, Xcode version 10.1 should be used:

  1. Create a new project with a Single View app, as illustrated in the following screenshot:
  1. Mention the name of our application on the Next screen.
  2. On the next wizard screen, pick an appropriate name for your application.
  3. Fill in the rest of the fields, including Organization Name, as well as Organization Identifier.
  4. We are not going to use core data in this application, so let's skip that option.
  5. Let's start by creating a new app in Xcode. The following screenshot demonstrates how to create a new project in Xcode:
  1. Next, create a storyboard, as shown in the following...