Applied Machine Learning and AI for Engineers

Book description

While many introductory guides to AI are calculus books in disguise, this one mostly eschews the math. Instead, author Jeff Prosise helps engineers and software developers build an intuitive understanding of AI to solve business problems. Need to create a system to detect the sounds of illegal logging in the rainforest, analyze text for sentiment, or predict early failures in rotating machinery? This practical book teaches you the skills necessary to put AI and machine learning to work at your company.

Applied Machine Learning and AI for Engineers provides examples and illustrations from the AI and ML course Prosise teaches at companies and research institutions worldwide. There's no fluff and no scary equations—just a fast start for engineers and software developers, complete with hands-on examples.

This book helps you:

  • Learn what machine learning and deep learning are and what they can accomplish
  • Understand how popular learning algorithms work and when to apply them
  • Build machine learning models in Python with Scikit-Learn, and neural networks with Keras and TensorFlow
  • Train and score regression models and binary and multiclass classification models
  • Build facial recognition models and object detection models
  • Build language models that respond to natural-language queries and translate text to other languages
  • Use Cognitive Services to infuse AI into the apps that you write

Table of contents

  1. Foreword
  2. Preface
    1. Who Should Read This Book
    2. Why I Wrote This Book
    3. Running the Book’s Code Samples
    4. Navigating This Book
    5. Conventions Used in This Book
    6. Using Code Examples
    7. O’Reilly Online Learning
    8. How to Contact Us
    9. Acknowledgments
  3. I. Machine Learning with Scikit-Learn
  4. 1. Machine Learning
    1. What Is Machine Learning?
      1. Machine Learning Versus Artificial Intelligence
      2. Supervised Versus Unsupervised Learning
    2. Unsupervised Learning with k-Means Clustering
      1. Applying k-Means Clustering to Customer Data
      2. Segmenting Customers Using More Than Two Dimensions
    3. Supervised Learning
      1. k-Nearest Neighbors
      2. Using k-Nearest Neighbors to Classify Flowers
    4. Summary
  5. 2. Regression Models
    1. Linear Regression
    2. Decision Trees
    3. Random Forests
    4. Gradient-Boosting Machines
    5. Support Vector Machines
    6. Accuracy Measures for Regression Models
    7. Using Regression to Predict Taxi Fares
    8. Summary
  6. 3. Classification Models
    1. Logistic Regression
    2. Accuracy Measures for Classification Models
    3. Categorical Data
    4. Binary Classification
      1. Classifying Passengers Who Sailed on the Titanic
      2. Detecting Credit Card Fraud
    5. Multiclass Classification
    6. Building a Digit Recognition Model
    7. Summary
  7. 4. Text Classification
    1. Preparing Text for Classification
    2. Sentiment Analysis
    3. Naive Bayes
    4. Spam Filtering
    5. Recommender Systems
      1. Cosine Similarity
      2. Building a Movie Recommendation System
    6. Summary
  8. 5. Support Vector Machines
    1. How Support Vector Machines Work
      1. Kernels
      2. Kernel Tricks
    2. Hyperparameter Tuning
    3. Data Normalization
    4. Pipelining
    5. Using SVMs for Facial Recognition
    6. Summary
  9. 6. Principal Component Analysis
    1. Understanding Principal Component Analysis
    2. Filtering Noise
    3. Anonymizing Data
    4. Visualizing High-Dimensional Data
    5. Anomaly Detection
      1. Using PCA to Detect Credit Card Fraud
      2. Using PCA to Predict Bearing Failure
      3. Multivariate Anomaly Detection
    6. Summary
  10. 7. Operationalizing Machine Learning Models
    1. Consuming a Python Model from a Python Client
    2. Versioning Pickle Files
    3. Consuming a Python Model from a C# Client
    4. Containerizing a Machine Learning Model
    5. Using ONNX to Bridge the Language Gap
    6. Building ML Models in C# with ML.NET
      1. Sentiment Analysis with ML.NET
      2. Saving and Loading ML.NET Models
    7. Adding Machine Learning Capabilities to Excel
    8. Summary
  11. II. Deep Learning with Keras and TensorFlow
  12. 8. Deep Learning
    1. Understanding Neural Networks
    2. Training Neural Networks
    3. Summary
  13. 9. Neural Networks
    1. Building Neural Networks with Keras and TensorFlow
      1. Sizing a Neural Network
      2. Using a Neural Network to Predict Taxi Fares
    2. Binary Classification with Neural Networks
      1. Making Predictions
      2. Training a Neural Network to Detect Credit Card Fraud
    3. Multiclass Classification with Neural Networks
    4. Training a Neural Network to Recognize Faces
    5. Dropout
    6. Saving and Loading Models
    7. Keras Callbacks
    8. Summary
  14. 10. Image Classification with Convolutional Neural Networks
    1. Understanding CNNs
      1. Using Keras and TensorFlow to Build CNNs
      2. Training a CNN to Recognize Arctic Wildlife
    2. Pretrained CNNs
    3. Using ResNet50V2 to Classify Images
    4. Transfer Learning
    5. Using Transfer Learning to Identify Arctic Wildlife
    6. Data Augmentation
      1. Image Augmentation with ImageDataGenerator
      2. Image Augmentation with Augmentation Layers
      3. Applying Image Augmentation to Arctic Wildlife
    7. Global Pooling
    8. Audio Classification with CNNs
    9. Summary
  15. 11. Face Detection and Recognition
    1. Face Detection
      1. Face Detection with Viola-Jones
      2. Using the OpenCV Implementation of Viola-Jones
      3. Face Detection with Convolutional Neural Networks
      4. Extracting Faces from Photos
    2. Facial Recognition
      1. Applying Transfer Learning to Facial Recognition
      2. Boosting Transfer Learning with Task-Specific Weights
      3. ArcFace
    3. Putting It All Together: Detecting and Recognizing Faces in Photos
    4. Handling Unknown Faces: Closed-Set Versus Open-Set Classification
    5. Summary
  16. 12. Object Detection
    1. R-CNNs
    2. Mask R-CNN
    3. YOLO
    4. YOLOv3 and Keras
    5. Custom Object Detection
      1. Training a Custom Object Detection Model with the Custom Vision Service
      2. Using the Exported Model
    6. Summary
  17. 13. Natural Language Processing
    1. Text Preparation
    2. Word Embeddings
    3. Text Classification
      1. Automating Text Vectorization
      2. Using TextVectorization in a Sentiment Analysis Model
      3. Factoring Word Order into Predictions
      4. Recurrent Neural Networks (RNNs)
      5. Using Pretrained Models to Classify Text
    4. Neural Machine Translation
      1. LSTM Encoder-Decoders
      2. Transformer Encoder-Decoders
      3. Building a Transformer-Based NMT Model
      4. Using Pretrained Models to Translate Text
    5. Bidirectional Encoder Representations from Transformers (BERT)
      1. Building a BERT-Based Question Answering System
      2. Fine-Tuning BERT to Perform Sentiment Analysis
    6. Summary
  18. 14. Azure Cognitive Services
    1. Introducing Azure Cognitive Services
      1. Keys and Endpoints
      2. Calling Azure Cognitive Services APIs
      3. Azure Cognitive Services Containers
    2. The Computer Vision Service
    3. The Language Service
    4. The Translator Service
    5. The Speech Service
    6. Putting It All Together: Contoso Travel
    7. Summary
  19. Index
  20. About the Author

Product information

  • Title: Applied Machine Learning and AI for Engineers
  • Author(s): Jeff Prosise
  • Release date: November 2022
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781492098058