ebook img

Mobile Artificial Intelligence Projects: Develop seven projects on your smartphone using artificial intelligence and deep learning techniques PDF

303 Pages·2019·19.65 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Mobile Artificial Intelligence Projects: Develop seven projects on your smartphone using artificial intelligence and deep learning techniques

.d e vre se r sth g ir llA .d e tim iL ,g n ih silb u P tkca P .9 1 0 2 © th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. Mobile Artificial Intelligence Projects Develop seven projects on your smartphone using artificial intelligence and deep learning techniques Karthikeyan NG Arun Padmanabhan Matt R. Cole .d e vre se r sth g ir llA .d e tim BIRMINGHAM - MUMBAI iL ,g n ih silb u P tkca P .9 1 0 2 © th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. Mobile Artificial Intelligence Projects Copyright © 2019 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Commissioning Editor: Pravin Dhandre Acquisition Editor: Yogesh Deokar Content Development Editor: Snehal Kolte Technical Editor: Naveen Sharma Copy Editor: Safis Editing Language Support Editors: Hayden Edwards and Storm Mann Project Coordinator: Manthan Patel Proofreader: Safis Editing Indexer: Tejal Daruwale Soni Graphics: Jisha Chirayil Production Coordinator: Shraddha Falebhai First published: March 2019 Production reference: 1300319 Published by Packt Publishing Ltd. Livery Place 35 Livery Street .d Birmingham e vre B3 2PB, UK. se r sth ISBN 978-1-78934-407-3 g ir llA .d www.packtpub.com e tim iL ,g n ih silb u P tkca P .9 1 0 2 © th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. To my wife, Nanthana, for putting up with me during the course of this book. I know it must not have been easy. To my parents, for their constant support. .d e vre se r sth g ir llA .d e tim iL ,g n ih silb u P tkca P .9 1 0 2 © th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. mapt.io Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website. Why subscribe? Spend less time learning and more time coding with practical eBooks and videos from over 4,000 industry professionals Improve your learning with Skill Plans built especially for you Get a free eBook or video every month Mapt is fully searchable Copy and paste, print, and bookmark content Packt.com .de Did you know that Packt offers eBook versions of every book published, with PDF and vrese ePub files available? You can upgrade to the eBook version at www.packt.com and, as a r sth print book customer, you are entitled to a discount on the eBook copy. Get in touch with us g ir llA at [email protected] for more details. .d e tim At www.packt.com, you can also read a collection of free technical articles, sign up for a iL ,gn range of free newsletters, and receive exclusive discounts and offers on Packt books and ih silb eBooks. u P tkca P .9 1 0 2 © th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. Contributors About the authors Karthikeyan NG is the Head of Engineering and Technology at the Indian lifestyle & fashion retail brand. He served as a software engineer at Symantec Corporation and has worked with 2 US-based startups as an early employee and has built various products. He has 9+ years of experience in various scalable products using Web, Mobile, ML, AR, and VR technologies. He is an aspiring entrepreneur and technology evangelist. His interests lie in exploring new technologies and innovative ideas to resolve a problem. He has also bagged prizes from more than 15 hackathons, is a TEDx speaker and a speaker at technology conferences and meetups as well as guest lecturer at a Bengaluru University. When not at work, he is found trekking. I would like to extend my gratitude to Manthan Patel for presenting the idea of the book, and to Snehal Kolte for her tenacity. Thanks to Naveen, the technical editor, and the entire editorial team. I would also like to thank the open source community for making this book possible with the frameworks on both Android and iOS platforms. Arun Padmanabhan is a machine learning consultant with over 8 years of experience building end-to-end machine learning solutions and applications. Presently working with a couple of start-ups in the financial and insurance sectors, he specializes in automating manual workflows using AI and creating machine vision and NLP applications. Previously, he led the data science team of a Singapore-based product start-up in the restaurant domain. Over the years, he has also built standalone and integrated machine learning .de solutions in the manufacturing, shipping, and e-commerce domains. His interests lie in vre se research, development, and applications of AI and deep architectures. r sth g ir llA .d Matt R. Cole is a seasoned developer and author with 30 years' experience in Microsoft e tim Windows, C, C++, C# and .Net. Matt is the owner of Evolved AI Solutions, a premier iL ,g provider of advanced Machine Learning and Bio-AI technologies. Matt is a leading n ihsilb authority on Microservices, and developed the first enterprise grade Microservice uP framework written completely in C# and .Net. Matt also developed the first Bio Artificial tkca Intelligence framework which completely integrates mirror and canonical neurons. He P .9 continues to push the limits of Machine Learning, Biological or Swarm Artificial 1 0 2 © Intelligence, and Genetic computing. th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. About the reviewers Subhash Shah works as head of technology at AIMDek Technologies Pvt. Ltd. He is an experienced solutions architect with over 12 years of experience. He holds a degree in information technology. He is an advocate of open source development and its utilization in solving critical business problems at a reduced cost. His interests include microservices, data analysis, machine learning, AI, and databases. He is an admirer of quality code and test-driven development (TDD). His technical skills include, but are by no means limited to, translating business requirements into scalable architecture, designing sustainable solutions, and project delivery. He is a coauthor of MySQL 8 Administrator's Guide and Hands-On High Performance with Spring 5. Rajib Bhattacharya currently works as a pre-sales consultant with a premier IT solution provider in the Middle East. Rajib has more than 14 years of experience in IT consulting, defining solution architecture, and pre-sales. He is a seasoned architect focusing on analytics, data warehousing, big data, and cognitive computing. He holds multiple patents and is also an author of two books in the field of analytics. He is passionate about helping clients to consolidate their enterprise data, thereby enabling them to make valuable business decisions. Rajib holds a MCA degree from West Bengal University of Technology. He has developed and delivered various training programs on analytics and cognitive computing. Packt is searching for authors like you If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can .d evre make a general application, apply for a specific hot topic that we are recruiting an author ser sth for, or submit your own idea. g ir llA .d e tim iL ,g n ih silb u P tkca P .9 1 0 2 © th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. Table of Contents Preface 1 Chapter 1: Artificial Intelligence Concepts and Fundamentals 6 AI versus machine learning versus deep learning 7 Evolution of AI 8 The mechanics behind ANNs 11 Biological neurons 12 Working of artificial neurons 13 Scenario 1 16 Scenario 2 17 Scenario 3 19 ANNs 21 Activation functions 23 Sigmoid function 25 Tanh function 26 ReLU function 27 Cost functions 29 Mean squared error 29 Cross entropy 30 Gradient descent 31 Backpropagation – a method for neural networks to learn 33 Softmax 34 TensorFlow Playground 37 Summary 41 Further reading 42 Chapter 2: Creating a Real-Estate Price Prediction Mobile App 43 Setting up the artificial intelligence environment 44 Downloading and installing Anaconda 44 .d evre Advantages of Anaconda 45 se Creating an Anaconda environment 46 r sth Installing dependencies 47 g ir llA Building an ANN model for prediction using Keras and TensorFlow 50 .de Serving the model as an API 58 timiL Building a simple API to add two numbers 58 ,gn Building an API to predict the real estate price using the saved model 60 ih silb Creating an Android app to predict house prices 62 u P tkca DCorewantilnoga dai nnge wan Adn indrsotaidll ipnrgo Ajencdt rwoiitdh Sat usidnigole screen 6633 P .91 Designing the layout of the screen 70 0 2 © Adding a functionality to accept input 74 th g iryp o C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. Table of Contents Adding a functionality to consume the RESTful API that serves the model 76 Additional notes 81 Creating an iOS app to predict house prices 81 Downloading and installing Xcode 81 Creating a new iOS project with a single screen 82 Designing the layout of the screen 84 Adding a functionality to accept input 89 Adding a functionality to consume the RESTful API that serves the model 89 Additional notes 90 Summary 90 Chapter 3: Implementing Deep Net Architectures to Recognize Handwritten Digits 91 Building a feedforward neural network to recognize handwritten digits, version one 92 Building a feedforward neural network to recognize handwritten digits, version two 97 Building a deeper neural network 99 Introduction to Computer Vision 101 Machine learning for Computer Vision 102 Conferences help on Computer Vision 102 Summary 103 Further reading 103 Chapter 4: Building a Machine Vision Mobile App to Classify Flower Species 104 CoreML versus TensorFlow Lite 105 CoreML 105 TensorFlow Lite 105 What is MobileNet? 105 Datasets for image classification 106 Creating your own image dataset using Google images 108 Alternate approach of creating custom datasets from videos 115 .d Building your model using TensorFlow 116 e vre Running TensorBoard 124 se r sth Summary 124 g ir llA Chapter 5: Building an ML Model to Predict Car Damage Using .de TensorFlow 125 timiL Transfer learning basics 126 ,gn Approaches to transfer learning 127 ih silb Building the TensorFlow model 128 uP Installing TensorFlow 128 tkca Training the images 129 P .9 Building our own model 130 10 Retraining with our own images 130 2 © th g irypo [ ii ] C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53. Table of Contents Architecture 131 Distortions 133 Hyperparameters 133 Image dataset collection 134 Introduction to Beautiful Soup 134 Examples 139 Dataset preparation 141 Running the training script 150 Setting up a web application 150 Summary 159 Chapter 6: PyTorch Experiments on NLP and RNN 160 PyTorch 160 The features of PyTorch 160 Installing PyTorch 161 PyTorch basics 163 Using variables in PyTorch 165 Plotting values on a graph 167 Building our own model network 170 Linear regression 170 Classification 173 Simple neural networks with torch 178 Saving and reloading data on the network 180 Running with batches 182 Optimization algorithms 183 Recurrent neural networks 187 The MNIST database 187 RNN classification 187 RNN cyclic neural network – regression 191 Natural language processing 196 Affine maps 197 Non-linearities 197 Objective functions 198 Building network components in PyTorch 199 BoW classifier using logistic regression 199 .de Summary 204 vre se Chapter 7: TensorFlow on Mobile with Speech-to-Text with the r sthg WaveNet Model 205 ir llA WaveNet 206 .de Architecture 208 tim iL Network layers in WaveNet 210 ,gn The algorithm's components 211 ih silb Building the model 213 u P tkca DepDeantdaesentcsies 221134 P .9 Preprocessing the dataset 214 1 0 2 © Training the network 215 th g irypo [ iii ] C NG, Karthikeyan, et al. Mobile Artificial Intelligence Projects : Develop Seven Projects on Your Smartphone Using Artificial Intelligence and Deep Learning Techniques, Packt Publishing, Limited, 2019. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/nyulibrary-ebooks/detail.action?docID=5744466. Created from nyulibrary-ebooks on 2022-10-26 11:50:53.

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.