Hands-On Artificial Intelligence for IoT
eBook - ePub

Hands-On Artificial Intelligence for IoT

Expert machine learning and deep learning techniques for developing smarter IoT systems

  1. 390 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Hands-On Artificial Intelligence for IoT

Expert machine learning and deep learning techniques for developing smarter IoT systems

About this book

Build smarter systems by combining artificial intelligence and the Internet of Things—two of the most talked about topics today

Key Features

  • Leverage the power of Python libraries such as TensorFlow and Keras to work with real-time IoT data
  • Process IoT data and predict outcomes in real time to build smart IoT models
  • Cover practical case studies on industrial IoT, smart cities, and home automation

Book Description

There are many applications that use data science and analytics to gain insights from terabytes of data. These apps, however, do not address the challenge of continually discovering patterns for IoT data. In Hands-On Artificial Intelligence for IoT, we cover various aspects of artificial intelligence (AI) and its implementation to make your IoT solutions smarter.

This book starts by covering the process of gathering and preprocessing IoT data gathered from distributed sources. You will learn different AI techniques such as machine learning, deep learning, reinforcement learning, and natural language processing to build smart IoT systems. You will also leverage the power of AI to handle real-time data coming from wearable devices. As you progress through the book, techniques for building models that work with different kinds of data generated and consumed by IoT devices such as time series, images, and audio will be covered. Useful case studies on four major application areas of IoT solutions are a key focal point of this book. In the concluding chapters, you will leverage the power of widely used Python libraries, TensorFlow and Keras, to build different kinds of smart AI models.

By the end of this book, you will be able to build smart AI-powered IoT apps with confidence.

What you will learn

  • Apply different AI techniques including machine learning and deep learning using TensorFlow and Keras
  • Access and process data from various distributed sources
  • Perform supervised and unsupervised machine learning for IoT data
  • Implement distributed processing of IoT data over Apache Spark using the MLLib and H2O.ai platforms
  • Forecast time-series data using deep learning methods
  • Implementing AI from case studies in Personal IoT, Industrial IoT, and Smart Cities
  • Gain unique insights from data obtained from wearable devices and smart devices

Who this book is for

If you are a data science professional or a machine learning developer looking to build smart systems for IoT, Hands-On Artificial Intelligence for IoT is for you. If you want to learn how popular artificial intelligence (AI) techniques can be used in the Internet of Things domain, this book will also be of benefit. A basic understanding of machine learning concepts will be required to get the best out of this book.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Hands-On Artificial Intelligence for IoT by Amita Kapoor in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over one million books available in our catalogue for you to explore.

Genetic Algorithms for IoT

In the previous chapter, we looked at different deep learning-based algorithms; these algorithms have shown their success in the fields of recognition, detection, reconstruction, and even in the generation of vision, speech, and text data. While, at present, deep learning (DL) is on top in terms of both application and employability, it has close competition with evolutionary algorithms. The algorithms are inspired by the natural process of evolution, the world's best optimizers. Yes, even we are the result of years of genetic evolution. In this chapter, you will be introduced to the fascinating world of evolutionary algorithms and learn about a specific type of evolutionary algorithm, genetic algorithms, in more detail. In this chapter, you will learn about the following:
  • What is optimization
  • Different methods to solve an optimization problem
  • Understand the intuition behind genetic algorithms
  • The advantages of genetic algorithms
  • Understand and implement the processes of cross-over, mutation, and fitness function selection
  • Use a genetic algorithm to find a lost password
  • Various uses of genetic algorithms in optimizing your models
  • The Distributed Evolutionary Algorithms in the Python genetic algorithm library

Optimization

Optimization is not a new word; we have used it earlier with respect to both machine learning and DL algorithms, where we used the TensorFlow auto differentiator to find the optimum model weights and biases using a form of gradient descent algorithm. In this section, we will learn a little more about optimization, optimization problems, and different techniques used to perform optimization.
In its most basic terms, optimization is the process of making something better. The idea is to find the best solution, and obviously when we talk about the best solution, it means there exists more than one solution. In optimization, we try to adjust our variable parameters/processes/inputs so that we can find the minimum or maximum output. Normally, the variables constitute the inputs, we have a function called an objective function, loss function, or fitness function, and as output we expect the cost/loss or fitness. The cost or loss should be minimized, and if we define fitness, then it should be maximized. Here, we vary the inputs (variables) to achieve a desired (optimized) output.
I hope you can appreciate that calling it loss/cost or fitness is just a matter of choice, the function which calculates the cost and needs to be minimized, if we just add a negative sign to it then we expect the modified function to be maximized. As an example, minimizing 2 - x2 over the interval -2 < x< 2 is the same as maximizing x2 - 2 over the same interval.
Our daily lives are full of many such optimization tasks. What will be the best route to take to the office? Which project should I do first? Preparing for an interview what topics to read such that your success rate in the interview is maximized. The following diagram shows the basic relationship between Input Variables, the Function to be optimized, and the Output/Cost:
Relationship between input, the function to be optimized, and t...

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. Dedication
  4. About Packt
  5. Contributors
  6. Preface
  7. Principles and Foundations of IoT and AI
  8. Data Access and Distributed Processing for IoT
  9. Machine Learning for IoT
  10. Deep Learning for IoT
  11. Genetic Algorithms for IoT
  12. Reinforcement Learning for IoT
  13. Generative Models for IoT
  14. Distributed AI for IoT
  15. Personal and Home IoT
  16. AI for the Industrial IoT
  17. AI for Smart Cities IoT
  18. Combining It All Together
  19. Other Books You May Enjoy