Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging...

33
Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging Technologies in the Classroom Debasis Bhattacharya, JD, DBA University of Hawaii Maui College debasisb@ wawaii.edu http://maui.hawaii.edu/cybersecurity Rajiv Malkan Lone Star College, TX July 25, 2019

Transcript of Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging...

Page 1: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging Technologies in the Classroom

Debasis Bhattacharya, JD, DBAUniversity of Hawaii Maui College

[email protected]://maui.hawaii.edu/cybersecurity

Rajiv MalkanLone Star College, TX

July 25, 2019

Page 2: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Agenda● What is AI, Machine Learning and Deep Learning?● Embedded AI Devices – NVIDIA JETSON, NANO and AMZN Deep Lens● Teaching AI and Cybersecurity Across Disciplines● Case Studies from UH – AI Drone, Sentiment Analysis and Medical Imaging● Case Studies from Lone Star College, TX● Q&A, Discussion

2

Page 3: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Source: Edureka3

Page 5: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

5

Page 6: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Source: ACM - Computers in Entertainment - Association for Computing Machinery 6

Page 7: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Convolutional Neural Network - ConvNet

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/7

Page 8: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Channels - Color images have 3 channels - RGB. Each Pixel Value ranges from 0 to 255

Image - Matrix of Pixels

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/

Grayscale Image -One channel, values 0 (white) to 255 (black)

8

Page 9: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Convolution - Extract Features

3x3 Filter, or Kernel or Feature Detector

Input Image, 5x5Move 3x3 Filter over 5x5 Input Image, one pixel at a time (STRIDE) and compute matrix multiplication. Convolved Feature or Feature Map

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/ 9

Page 10: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Different values of the Filter or Kernel will create different Feature Maps from the Input Image

Examples of Features -Edges, Blurs, Sharpen

Parameters Depth - # of Filters Stride - movement across imageZero-Padding - apply filter to edges

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/ 10

Page 11: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Fully Connected Layer (FCNs)

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/

Rectified and Pooled Feature Maps are connected together into on FCNTraining Data Set is used to Classify Image SoftMax Activation Function used to create vector of values between 0 and 1

11

Page 12: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Forward Propagation

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/ 12

Page 13: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Backward Propagation Calculate Gradient of errorUse Gradient Descent to update filter weightsReduce Output Error or Training LossEpoch = Forward + Backward PropagationHyperparameter = Learning RateValidation Data -> Forward Propagation OnlyMinimize Training Loss & Validation LossControl Overfitting using DropoutsAllow for Generalization of New Test Data

Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-convnets/ 13

Page 16: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

16

Page 17: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

17

Page 18: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

18

Page 19: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

19

Page 20: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

20

Page 21: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

21

Page 22: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Deep Learning ToolsCNN Architectures

● LeNet● AlexNet● ZF Net● GoogLeNet● ResNets

Frameworks

● TensorFlow● Caffe● MS CNTK● PyTorch/Torch● MXNet● Chainer● Keras● Theano● Deeplearning4j● PaddlePaddle● MATLAB

● cuDNN● DIGITS● DetectNet● TensorRT● RAPIDS● JETSON 22

Page 23: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Teaching AI and Cybersecurity Across Disciplines● Electronics● Healthcare● Hospitality and Tourism● Business, Finance, Accounting● Criminal Justice● Computer Science● Mathematics ● Etc.

● How do you teach the essence of AI across the disciplines?

23

Page 24: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Case Study: Sentiment Analysis in Hospitality/Tourism

● Sentiment Analysis may be performed as an application of Machine Learning (ML) to large bodies of text, such as those found in large consumer review datasets, in order to determine sentiment (positive, negative, sarcastic, etc.) and gain feedback.

● The use of Machine Learning techniques in this endeavor allows for much larger quantities of data to be processed than would be practical for human evaluators working directly with the data.

● With recent advances in Machine Learning in the form of new and powerful frameworks, it is relatively simple to set up a machine to perform analysis on text in a way previously confined to the domain of commonsense, human interpretation of opinions, feelings, etc.

● Sample Code - https://github.com/UHMC/nifty-sentiment-analysis 24

Page 25: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Case Study: Neural Network for Medical Image Processing● Medical imaging is becoming an increasingly popular application of Machine

Learning. Medical practitioners can use software to obtain diagnosis or second opinions on X-Ray images, lowering the chances of a missed threat.

● In this assignment, students will be able to set up a model to train using the Deep Learning Tool Kit and Tensorflow.

● Applicable for Students in various disciplines – CompSci, Healthcare etc.● Source Code - https://github.com/UHMC/nifty-medical-imaging

25

Page 26: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

http://www.lonestar.edu/land-survey-aas.htm

Best Practices from Lone Star College, TX

26

Page 27: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

27

Page 28: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

28

Page 29: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

29

Page 30: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

30

Page 31: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

31

Page 32: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

32

Page 33: Embedded AI in Smart Robots, Drones, IoT: Teaching Emerging ...maui.hawaii.edu/cybersecurity/wp-content/uploads/sites/13/2019/07/... · What is AI, Machine Learning and Deep Learning?

Questions? CommentsDebasis Bhattacharya, JD, DBA

University of Hawaii Maui [email protected]

http://maui.hawaii.edu/cybersecurityRajiv Malkan

Lone Star College, TXJuly 25, 2019

33