SlideShare a Scribd company logo
1 of 39
Download to read offline
ウェアラブル端末のセンサ値から
動きをリアルタイムに識別する
ABC2016Spring Student WiP発表資料
東海大学 理学部(進学予定)
日本Androidの会 学生部 
古川 新   
コントローラとしてのウェアラブル端末
表1 主要なコンシューマ機周辺端末の内蔵センサ
※ 各メーカの公式情報を独自にリストアップしたものです。
※ 純正品の情報です。非純正品はこの通りでない可能性があります。
端末名 センサ(公式情報引用)
PS4専用 ワイヤレスコントローラー(DUALSHOCK®4) 6軸検出システム(3軸ジャイロ、3軸加速度)
PS3専用 ワイヤレスコントローラ(DUALSHOCK®3) 6軸検出システム搭載
Wii リモコンプラス モーションセンサー:傾きや動きの変化を検出(3軸)
Wii U GamePad 加速度センサー、ジャイロセンサー、地磁気センサーの利用によるモー
ションコントロール
PlayStation®Vita(PCH-2000シリーズ) 6 軸検出システム(3 軸ジャイロ・3 軸加速度)、3 軸電 コンパス機能
表2 主要なウェアラブル端末の内蔵センサ
端末名 センサー(公式情報引用)
Apple Watch(各エディション共通) 心拍センサー、加速度センサー、ジャイロスコープ
環境光センサー
moto 360 Accelerometer, Ambient Light Sensor, Gyroscope, Vibration/Haptics engine
LG G Watch Urbane 9軸センサー(ジャイロ/加速度/コンパス)気圧センサー、心拍センサー
WSD-F 圧力(気圧/高度)センサー、加速度センサー、 ジャイロセンサー、 方位(磁気)セン
サー
SmartWatch3 加速度センサー、ジャイロセンサー、磁気センサー、GPS、光センサー
ASUS ZenWatch 2 6-Axis (A+G) with Sensor-hub
※ 各メーカの公式情報を独自にリストアップしたものです。
正拳突きx5 チョップx4
リアルタイム識別の注意
つまり…
① ② ③
つまり…
① ② ③
遅い
その瞬間の特徴を識別する
?センサ値
x
動作
y
?
センサ値
x
動作(OHV)
y
int[3]
[ a, b, c ]
double[6]
[ ax, ay, az, gx, gy, gz ]
a : 正拳突きとチョップ以外
b : 正拳突き
c : チョップ
センサ値
x
動作(OHV)
y
int[3]
[ a, b, c ]
double[6]
[ ax, ay, az, gx, gy, gz ]
a : 正拳突きとチョップ以外
b : 正拳突き
c : チョップ
h = φ( X * W + b )
h = φ( X * W + b )
Neuron
Activator
ニューラルネットワーク
考案したニューラルネットワーク
x
na
nb
nc
y
6 3
h
softmax
W
6x3
b
3
簡単なので
手動学習してみた
正拳突き
約80%
チョップ
約100%
constexpr std::array< double, 6 > weight_ = { 1, 80, -40, -20, 1, 50 };
constexpr double bias_ = -1000;
constexpr std::array< double, 6 > weight_ = { 80, -30, 55, 0.1, 60, 30 };
constexpr double bias_ = -1400;
hb
の重みとバイアス
hc
の重みとバイアス
手動学習 コード抜粋(C++)
TensorFlow
※正拳突き→10
 チョップ→20
 としてプロットしています
考案したディープニューラルネットワーク(3層)
x h1
h2
h3
y
6 6x24 24x96 96x3 3
LRelu LRelu Softmax
つよさを実感するためグラフにしてみた
W1 = tf.Variable(tf.truncated_normal([6, 24], stddev=0.1), name="weight1")
b1 = tf.Variable(tf.constant(0.1, shape=[24]), name="bias1")
h1 = leaky_relu(tf.matmul(x, W1) + b1)
​
W2 = tf.Variable(tf.truncated_normal([24, 96], stddev=0.1), name="weight2")
b2 = tf.Variable(tf.constant(0.1, shape=[96]), name="bias2")
h2 = leaky_relu(tf.matmul(h1, W2) + b2)
​
W3 = tf.Variable(tf.truncated_normal([96, 3], stddev=0.1), name="weight3")
b3 = tf.Variable(tf.constant(0.1, shape=[3]), name="bias3")
u = tf.nn.softmax(tf.matmul(h2, W3) + b3)
cross_entropy = -tf.reduce_sum(y * tf.log(u))
train_step = tf.train.GradientDescentOptimizer(0.01).minimize(loss)
r = npr.randint(len(ix))
feed = {x: ix[r].reshape((1,6)), y: iy[r].reshape((1,3))}
sess.run(train, feed_dict=feed)
Deep Learning コード抜粋(python)
Deep Lerning 自己テスト結果
学習回数 実施回数 平均正答率
1000 10 92.0513%
10000 10 96.1538%
1000000 10 96.8947%
WiP
● 現在の単純なネットワークで分類クラスを増やしてどの程度まで精度を保てるのか
○ 今回の発表には間に合わず
○ 教師データの調達・ラベル付けが非常にしんどい (時間がかかる…)
○ 割と露骨な限界があると予測しているため精度を上げる案も同時に考えている
● 学習データを増やしネットワークを育てる
○ 明らかにデータが少ないが、教師データの作成に時間が (ry
● 情報量を増やす
○ 他のセンサの値
○ 加速度から得られる特徴情報(エッジやコーナなど)を意図的に与えてみる
● 時系列データを学習(および予測)できるネットワークの形成
○ 加速度などのセンサデータは時系列データ
○ 人間の動作は時系列データに可変長のパターンとして出現する
○ NN、DNNなどのFFNN(Feed forward neural network)は可変長データを解析しづらい
○ 故に今回は、データのもつ時系列の因果関係は無視しその「瞬間」を固定長データとして扱った
■ 何かしらの方法で時系列学習を行えれば精度の向上が見込める
精度の調査と向上
Recurrent Neural Network(再帰型ニューラルネット)
1. 内部状態を持たせる方法(オートマトン)
a. 時間方向のグラフを持ち重みとバイアスを共有する
i. 同一データでも入力順によって反応が変わる
ii. BPTT(Back propagation through time)
1. 誤差を時系列と逆方向にも 伝搬する
iii. RTRL (Real Time Recurrent Learning)
1. 誤差を時系列方向にも伝搬する(オンライン処理向き)
iv. 重みの伝搬やノイズ、記憶の取捨選択など、問題が山積み
b. ElmanN(中間層→中間層の結合を持つ )、LSTM(Long short-term memory)など
Recurrent Neural Network(再帰型ニューラルネット)
2. LSM(Liquid state machine)
a. データ入力と重み計算を分離する方法
b. 相互接続した中間層に時系列データを適用し、その後教師データに線形回帰する
3. 時間軸を持たせてFFNNに流し込んでしまう方法
a. TDNN(Time delay neural network)
i. 時間軸を持たせる場合、長さの違いやずれを吸収する仕組みが必要
ii. ディレイを中間層でスケールすることで差異を吸収する
参考文献
TensorFlow 公式サイト
https://www.tensorflow.org/
Neural Network + Tensorflow 入門講座 / 丸山不二夫 先生
http://www.slideshare.net/maruyama097/neural-network-tensorflow
Recurrent Neural Networks / 得居 誠也 氏
http://www.slideshare.net/beam2d/pfi-seminar-20141030rnn
リカレントニューラルネットワークの概要と動作原理 / 竹田 卓也 氏
http://wbawakate.jp/wp-content/uploads/2015/03/RNN%E3%83%95%E3%82%9A%E3%83%AC%E3%82%BB%
E3%82%99%E3%83%B3.pdf

More Related Content

Recently uploaded

Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Danieldanielhu54
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略Ryo Sasaki
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムsugiuralab
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 

Recently uploaded (10)

Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

ウェアラブル端末のセンサ値から動きをリアルタイムに識別する(Wi p)