Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
The Azure IoT Handbook

You're reading from  The Azure IoT Handbook

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781837633616
Pages 248 pages
Edition 1st Edition
Languages
Author (1):
Dan Clark Dan Clark
Profile icon Dan Clark

Table of Contents (18) Chapters

Preface 1. Part 1: Capturing Data from Remote Devices
2. Chapter 1: An Introduction to the IoT 3. Chapter 2: Exploring the IoT Hub Service 4. Chapter 3: Provisioning Devices with the Device Provisioning Service 5. Chapter 4: Exploring Device Management and Monitoring 6. Chapter 5: Securing IoT Systems 7. Part 2: Processing the Data
8. Chapter 6: Creating Message Routing 9. Chapter 7: Exploring Azure Stream Analytics 10. Chapter 8: Investigating IoT Data with Azure Data Explorer 11. Chapter 9: Exploring IoT Edge Computing 12. Part 3: Processing the Data
13. Chapter 10: Visualizing Streaming Data in Power BI 14. Chapter 11: Integrating Machine Learning 15. Chapter 12: Responding to Device Events 16. Index 17. Other Books You May Enjoy

Integrating Machine Learning

In today’s digital age, the fusion of machine learning (ML) and IoT technologies has paved the way for groundbreaking innovations across various industries. This chapter delves into the fundamental concepts that underpin this powerful combination, offering you a comprehensive understanding of ML.

We will embark on a journey through the realms of data-driven decision-making, exploring how the seamless integration of these technologies can revolutionize the way we approach real-world challenges. With hands-on experience in mind, we’ll also walk through a practical laboratory exercise, where you will have the opportunity to create a predictive maintenance system—an excellent showcase of how the synergy between ML and IoT can transform businesses and drive innovation.

In this chapter, we will cover the following topics:

  • Understanding ML basics
  • What are Azure artificial intelligence (AI) and ML services?
  • Exploring ML...

Understanding ML basics

Although AI and ML are often used interchangeably, there is a distinction. AI refers to the simulation of human intelligence in machines or computer systems. It is a multidisciplinary field of computer science and engineering that aims to create intelligent agents or systems capable of perceiving their environment, reasoning, learning from experience, and making decisions to achieve specific goals.

Key components and concepts of AI include:

  • ML: ML is a subset of AI that focuses on the development of algorithms and models that allow machines to learn from data and make predictions or decisions without being explicitly programmed. It is a fundamental tool in AI research and applications.
  • Neural networks (NNs): NNs are computational models inspired by the human brain’s structure and functioning. Deep learning (DL), a subset of ML, utilizes deep NNs (DNNs) with multiple layers to handle complex tasks such as image and speech recognition.
  • ...

What are Azure AI and ML services?

Azure AI (Cognitive) Services is a suite of cloud-based AI and ML services provided by Microsoft Azure. These services enable developers to integrate AI capabilities into their applications, making them more intelligent and capable of understanding, processing, and responding to human language, images, and other forms of data. Azure Cognitive Services simplifies the integration of AI technologies, allowing developers to focus on building innovative solutions without the need for extensive AI expertise.

Here are some key features and capabilities of Azure AI (Cognitive) Services:

  • Speech services: Azure offers a range of speech-related services, including the following:
    • Speech-to-Text: Convert spoken language into written text for transcription, voice assistants, and more
    • Text-to-Speech: Generate natural-sounding speech from text for applications such as chatbots and voice interfaces
    • Speaker Recognition: Identify and verify individuals based...

Exploring ML on the edge

Moving ML to an edge device has several advantages and use cases, depending on the specific requirements of a project or application. Here are some reasons why you might consider deploying ML to edge devices:

  • Low latency and real-time processing: Edge devices are located close to the data source or the point of action, which reduces the time it takes for data to travel to a centralized server or cloud. This proximity allows for real-time processing, making it suitable for applications where low latency is critical, such as autonomous vehicles, industrial automation, and robotics.
  • Privacy and data security: Edge computing allows sensitive data to be processed locally on the device, rather than sending it to a remote server or cloud. This can enhance privacy and data security by reducing the risk of data breaches during transit and storage. It’s especially important in applications such as healthcare, finance, and surveillance.
  • Bandwidth...

Combining IoT with ML

Combining IoT with ML opens a wide range of innovative use cases across various industries. Here are some common and impactful use cases for IoT and ML integration:

  • Predictive maintenance: Sensors on machinery and equipment collect data on factors such as temperature, vibration, and wear. ML models analyze this data to predict when maintenance is needed, reducing downtime and preventing costly breakdowns.

    Industry: Manufacturing, energy, and transportation

  • Anomaly detection: IoT devices monitor data streams, such as patient vitals, financial transactions, or network traffic. ML algorithms detect anomalies and raise alerts for potential issues or security breaches.

    Industry: Healthcare, finance, and security

  • Smart agriculture: In the domain of agriculture, IoT sensors and cameras in fields gather data on soil conditions, weather, crop health, and animal behavior. ML models provide insights into optimal planting times, irrigation, and pest control...

Lab – creating an anomaly detection system

Azure Stream Analytics (ASA) simplifies the process of creating and training custom ML models by incorporating built-in anomaly detection powered by ML. It offers the convenience of performing anomaly detection through straightforward function calls. Two novel unsupervised ML functions have been introduced by Microsoft to identify two prevalent types of anomalies: transient and enduring. These are common anomalies, so you don’t have to create your own detection algorithm but can use the ones provided by Microsoft.

The AnomalyDetection_SpikeAndDip function is designed to pinpoint transient or short-lived anomalies, such as spikes or dips, leveraging the widely recognized kernel density estimation (KDE) algorithm.

On the other hand, the AnomalyDetection_ChangePoint function is employed to identify persistent or long-lasting anomalies, such as bi-level shifts, gradual increases, and gradual decreases. It relies on the established...

Summary

In this chapter, we embarked on a journey into the realm of data-driven decision-making, showcasing the seamless integration of technologies that can transform real-world challenges. Through hands-on experience, you created an anomaly detection system, highlighting the synergy between ML and IoT for business innovation.

Key topics covered include ML fundamentals, an introduction to Azure Cognitive Services, ML on the edge, common IoT and ML use cases, and a practical lab on building an anomaly detection system. This is one of those chapters that was an introduction to IoT and ML. If this is an area you are interested in, there is a lot more to learn. But hopefully, I have provided you with a good starting point. I do think you will most likely run into use cases where there will be an ML/AI component in an IoT system you develop during your career, and it is good knowledge to have on how to fit them together.

In the next chapter, you will learn how to react to events...

lock icon The rest of the chapter is locked
You have been reading a chapter from
The Azure IoT Handbook
Published in: Dec 2023 Publisher: Packt ISBN-13: 9781837633616
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}