tj bot 0317實作坊 組裝篇

29
1天教你快速打造出IBM人工智慧機器人! IBM資深台灣雲端架構師 吳志忠([email protected]) IBM 入門級 Watson 機器人 TJBot 工作坊

Upload: -tommy-wu

Post on 06-Apr-2017

64 views

Category:

Education


10 download

TRANSCRIPT

Page 1: Tj bot 0317實作坊 組裝篇

1天教你快速打造出IBM人工智慧機器人! IBM資深台灣雲端架構師 – 吳志忠([email protected])

IBM 入門級 Watson 機器人 – TJBot 工作坊

Page 2: Tj bot 0317實作坊 組裝篇

09:30 ~ 10:30 TJBot/IBM Bluemix 介紹 10:30 ~ 12:00 TJBot 外型組裝 12:00 ~ 13:30 Lunch 13:30 ~ 14:30 讓 TJBot說話 14:30 ~ 15:30 讓TJBot 揮個手吧 15:30 ~ 15:45 Break 15:45 ~ 16:30 聲控TJBot LED 16:30 ~ 17:00 TJBot 延伸應用

課程大綱

Page 3: Tj bot 0317實作坊 組裝篇

Open Source Watson Maker Kits: 輕鬆入門 Watson的世界, 打造屬於自己的認知機器人

外型: 3D列印或雷射切割設計圖

硬體: 樹莓派(Raspberry Pi)、相機(選用)、喇叭、 麥克風、LED燈, 馬達等

最強大腦 Watson: 開發配方"Recipe", 快速賦與互動功能

激勵開發者貢獻, 發揮想像實現人機互動無限可能

Hi, my name is

TJBot!

一起動手吧 !

開發者套件包請洽:

http://www.cavedu.com/

Page 4: Tj bot 0317實作坊 組裝篇

TJBot的由來

• Tjbot (TJ came from “Thomas J. Watson, Jr. ”) 是 IBM Research 所 release 的開發者套件, 可以Github或Instructable 下載外型設計圖用紙板雷射切割或3D列印製作外型, 內裝硬體包含樹莓派(Raspberry Pi)、相機(選用)、喇吧、麥克風、LED燈, 馬達,連結IBM Watson人工智慧服務後具有大腦,會聽會說會動能理解,讓開發者們可以樂在動手, 輕鬆進入IBM Watson的世界。

發明人 : Maryam Ashoori PhD

Maryam Ashoori is a Cognitive Objects Technical Lead at

the IBM Cognitive Environments Lab. She is the creator

of TJBot and known as the 'Cool things' Czar!

Page 5: Tj bot 0317實作坊 組裝篇

TJBot 配方 IBM同時釋出開發配方"Recipe", 開發者們可以快速賦與TJBot 互動功能:

• Tjwave: Fun controller recipe for TJBot's servo arm [instructions] [github]

• Tjdashboard: Web interface to visualize underlying processes on TJBot. [github]

• Tjvision: Get your TJBot to recognize images using the Watson Visual Recognition API. [github]

• SwiftyTJ that enables TJBot’s LED to be controlled from a Swift program [github]

• Build a TJBot that cares [instructions] [github]

• Project Intu, not a recipe but a middleware that can be installed on TJBot and be used to architect more complex interactions for your robot [developercloud] [github]

目前桌上的TJbot可以對話的內容包括:

1. 您好2. 自我介紹3. 你叫甚麼名字4. 揮揮手5. 跳舞

IBM期望透過這個Open Source Project鼓勵更多的開發者一起打造, 貢獻AI/Cognitive的創新應用.

Page 6: Tj bot 0317實作坊 組裝篇

讓我們先談談IBM的雲平台

Bluemix

Page 7: Tj bot 0317實作坊 組裝篇

BlueMix 雲端服務解決方案

IBM雲端平台-Bluemix,主要都是面對Business, 與各領域相關的PaaS雲端服務

Web及 應用程式

整合服務

大數據

物聯網

安全

DevOps

資料管理

電子商務

社交行銷 Watson

資料分析

行動化

© 2014 IBM Corporation

Page 8: Tj bot 0317實作坊 組裝篇

組裝篇 參考來源 :

[TJBOT紙板機器人] 第一次製作機器人就上手-組裝篇

Build TJBot Out of Cardboard

Page 9: Tj bot 0317實作坊 組裝篇

組裝重點 手會弄的髒髒的:因為是雷切紙板,紙板的邊緣會有燒焦的痕跡,組裝時

不可避免的會弄到手。

注意折紙的方向,紙板折錯方向是會斷掉的:雷切出來的折線,

不適合反覆彎折,會 斷 掉!請先確定方向再折。若不幸真的斷了,不須覺得世界末日,拿膠帶來黏就好。

妥善運用直尺:金屬製15公分直尺會是你組裝的好幫手,除了可以幫你順利的折出完美的轉角,在榫接時也很好用。

不要硬拔:在取下零件時,請用美工刀將連接處劃開。

Page 10: Tj bot 0317實作坊 組裝篇
Page 11: Tj bot 0317實作坊 組裝篇
Page 12: Tj bot 0317實作坊 組裝篇

樹莓派 接 線 圖

馬達:

Red (+5v, Pin

2)

Brown (Ground,

Pin 14)

Yellow (Data in,

Pin 26, GPIO7 )

Led

Red (3.3v,

Pin 1)

Black

(Data, Pin

12,GPIO18

)

Page 13: Tj bot 0317實作坊 組裝篇

將已製作好的image 燒錄到SD卡

• Windows Mac : http://blog.cavedu.com/%E7%89%A9%E8

%81%AF%E7%B6%B2/raspberrypi-

%E5%96%AE%E6%9D%BF%E9%9B%B

B%E8%85%A6/raspberry-pi-

%E6%95%99%E5%AD%B8-

%E7%87%92%E9%8C%84sd%E5%8D%

A1for-mac-os-x/

sudo dd if=~/Desktop/2014-12-24-wheezy-raspbian.img

of=/dev/rdisk1 bs=2m

Page 14: Tj bot 0317實作坊 組裝篇

TJBot Software on Github

Page 15: Tj bot 0317實作坊 組裝篇

SSH連線至RPi 暫時透過Wifi AP遠端登入

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

network={

ssid=“cirlab“ //你自已的ssid

psk=“123456789“ //你自已的password

proto=RSN

key_mgmt=WPA-PSK

pairwise=CCMP

group=CCMP

auth_alg=OPEN

}

Page 16: Tj bot 0317實作坊 組裝篇

雲端服務篇

語音轉文字 IOT裝置

IOT認證取得

Page 17: Tj bot 0317實作坊 組裝篇

設定所需的帳號資訊(參考前頁)

Page 18: Tj bot 0317實作坊 組裝篇

測試TJBot ! cd ~/tjwave

sudo node waveGoogle.js

Page 19: Tj bot 0317實作坊 組裝篇

認知運算物聯網智慧型機器人

系統架構

小腦

大腦

Conversation 語音轉文字

TJBot於雲端與物聯網示意架構圖

TJBot

樹莓派 Windows

IBM Bluemix

Google TTS

Page 20: Tj bot 0317實作坊 組裝篇

物聯網應用於聊天機器人管控

Page 21: Tj bot 0317實作坊 組裝篇

• Bluemix Node-RED 視覺化設計兼顧了彈性與便利性

• Bluemix 物聯網服務適時的扮演了人工智慧與硬體溝通的橋樑

• 每一條神經的來源點,可以從Bluemix 提供的服務、Open Source 以及自行開發的神經元件

Node-RED 為主要聊天機器人大腦開發服務

http://nodered.org

http://flows.nodered.org

Page 22: Tj bot 0317實作坊 組裝篇

建立大腦(Node-Red)應用程式

Page 23: Tj bot 0317實作坊 組裝篇

Bluemix Node Red 服務-腦神經 Scratch Tool

Buy Stock

擷取欄位

存入資料庫

除錯顯示

判定條件

距離 > 10

距離 < 10

發送警示

Buy Stock

即時訊息串流

語音通知

Page 24: Tj bot 0317實作坊 組裝篇

讓我們先談談交談服務的核心

Watson Conversation

Page 25: Tj bot 0317實作坊 組裝篇

• Enables customers to

self-serve on their terms

• Delivers information and

services with a consistent,

on-brand and engaging

experience

• Reduces costs through

deflection of calls to

Contact Centers

Description Benefits • Enables Developers

with Business users to

create natural, human-

like conversational

experiences across all

channels (e.g. mobile,

messaging, robots,

etc.)

• Combines Intents,

Entities and Dialog into

a seamless experience

IBM Watson Conversation Service

Page 26: Tj bot 0317實作坊 組裝篇

Intent 無法登入

Entities 線上帳務系統

Emotional Tone 生氣

Context Bill Smith, 47,VIP客戶

Device 手機

“ 我覺得非常沮喪, 因為我一直無法登入你們的線上帳務系統”

Extract Key

Information From a Question

Page 27: Tj bot 0317實作坊 組裝篇

我要如何重設我的密碼?

我的信用卡掉了.

最近的便利商店在哪?

我需要支付這筆款項.

我可以刷卡嗎?

Take Action:

Responses Come in Different Forms

Question Answer

回覆客戶標準的SOP流程

由客服人員接手

呼叫外部應用程式,如地圖等

自動彈跳app付款視窗

呼叫外部API取得檢核資訊

Dialog

Deflect

Map

App Nav.

Info. Retrieval

Page 28: Tj bot 0317實作坊 組裝篇

快速上手的使用界面-對話工作區

•意圖 •物件 •對話 •訓練

Page 29: Tj bot 0317實作坊 組裝篇

你的專屬 TJBot 應用是??

請發揮你的創意!