SlideShare a Scribd company logo
1 of 44
排泄検知をやってみよう!
~排泄センサと排泄検知アルゴリズム~
株式会社 aba
簡単な自己紹介
2019/1/16 みんなのPython勉強会#41 2
アジェンダ
2019/1/16 みんなのPython勉強会#41 3
• ガスセンサで排泄検知がしたい
- 実験機の紹介
- 実験の様子
• 機械に理解させるには?
- シンプルな方法と機械学習
- 機械学習でのポイント
ガスセンサで排泄検知がしたい
GAS
1023
2019/1/16 みんなのPython勉強会#41 4
製品版の試験機
2019/1/16 みんなのPython勉強会#41 5
開発用の試験機
センサユニット
(ポンプ吸引有)
制御リモコン
(Raspberry Pi 3)
センサユニット
(ポンプ吸引無)
2019/1/16 みんなのPython勉強会#41 6
小型の自作センサユニット
2019/1/16 みんなのPython勉強会#41 7
人形を使った実験の様子
2019/1/16 みんなのPython勉強会#41 8
2019/1/16 みんなのPython勉強会#41 9
疑似尿[NH3(aq)]を用いた実験グラフ
2019/1/16 みんなのPython勉強会#41 10
機械に理解させるには?
2019/1/16 みんなのPython勉強会#41 11
機械は点しかわからない
t k
① ヒト目線 ② 機械目線
2019/1/16 みんなのPython勉強会#41 12
アイデア
① しきい値による判定 ② 機械学習
α
β
Thr.
※ある条件で特定の状態2つに分割可能 ※ 簡単なところだと最小二乗法
・パターン認識
・クラスタリング
・サポートベクタマシン(SVM)
2019/1/16 みんなのPython勉強会#41 13
アイデア①
① しきい値による判定 ② 機械学習
α
β
Thr.
※ある条件で特定の状態2つに分割可能 ※ 簡単なところだと最小二乗法
2019/1/16 みんなのPython勉強会#41 14
アイデア①を試してみた
2019/1/16 みんなのPython勉強会#41 15
結果:うまく行かなかった_:(´ཀ`」∠):_
2019/1/16 みんなのPython勉強会#41 16
実際のセンサデータのグラフ①-1
2019/1/16 みんなのPython勉強会#41 17
実際のセンサデータのグラフ①-2
2019/1/16 みんなのPython勉強会#41 18
アイデア②
① しきい値による判定 ② 機械学習
α
β
t
Thr.
※ある条件で特定の状態2つに分割可能 ※ 簡単なところだと最小二乗法
2019/1/16 みんなのPython勉強会#41 19
アイデア②
① しきい値による判定 ② 機械学習
α
β
t
Thr.
※ある条件で特定の状態2つに分割可能 ※ 簡単なところだと最小二乗法
2019/1/16 みんなのPython勉強会#41 20
機械学習はどうやる?(大まかな流れ)
目的決め
モデル作成
データ収集
データ整理
学習
テストデータでの予測
テストデータ
学習データ
2019/1/16 みんなのPython勉強会#41 21
機械学習のポイント
目的決め
モデル作成
データ収集
データ整理
学習
テストデータでの予測
テストデータ
学習データ
2019/1/16 みんなのPython勉強会#41 22
例)最小二乗法に当てはめてみる
1次の近似曲線を求める
データ集め{(x, y)を採取}
Xを小さい順にする。など
a, bを学習して探索する
テストデータをy=αx+βに代入
似たような値が出てくる?
2019/1/16 みんなのPython勉強会#41 23
目的決め
モデル作成
データ収集
データ整理
学習
テストデータでの予測
モデルをy=ax+bと定義
排泄検知で当てはめてみる
データから排泄の有無を判断
センサ値と排泄記録
種類ごとにラベリング
特徴量を学習して探索する
排泄検知できるか確かめる
2019/1/16 みんなのPython勉強会#41 24
目的決め
モデル作成
データ収集
データ整理
学習
テストデータでの予測
SVM, 特徴量 (パラメータ)
特徴量の抽出(排泄有無の判定条件)
① 立ち上がり幅
② 立ち下がり幅
③ 増加速度
④ 減少速度
⑤ インターバル
2019/1/16 みんなのPython勉強会#41 25
施設でのデータ収集試験
① 試験機を可動させながらおむつ交換を行う
⇒ 一定間隔での確認
⇒ 排泄があった場合は種類を記録
② センサデータと排泄記録を使って学習
⇒ データの整形
2019/1/16 みんなのPython勉強会#41 26
2019/1/16 みんなのPython勉強会#41 27
まとめ
2019/1/16 みんなのPython勉強会#41 28
• ガスセンサで排泄検知がしたい
- 実験機の紹介
- 実験の様子
• 機械に理解させるには?
- シンプルな方法と機械学習
- 機械学習でのポイント
⇒モデルの作成 & データの収集
書籍の紹介www
2019/1/16 みんなのPython勉強会#41 29
一緒に開発しているメンバーが執筆しています。
興味があれば、どうぞ!
1. 現場で使える!PyTorch開発入門 深層学習モデルの作成
とアプリケーションへの実装
2. PyTorchで学ぶニューラルネットワークと深層学習
3. Pythonデータサイエンス -可視化、集計、統計分析、機械学習-
2019/1/16 みんなのPython勉強会#41 30
2019/1/16 みんなのPython勉強会#41 31
2019/1/16 みんなのPython勉強会#41 32
2019/1/16 みんなのPython勉強会#41 33
ありがとうございました。
2019/1/16 みんなのPython勉強会#41 34
採 用
データサイエンティスト募集中
2019/1/16 みんなのPython勉強会#41 35
株式会社abaのHPのお問合せから
コンタクトしてください
実際のセンサデータのグラフ②-1
2019/1/16 みんなのPython勉強会#41 36
実際のセンサデータのグラフ②-2
2019/1/16 みんなのPython勉強会#41 37
実際のセンサデータのグラフ③-1
2019/1/16 みんなのPython勉強会#41 38
実際のセンサデータのグラフ③-2
2019/1/16 みんなのPython勉強会#41 39
Q&A
2019/1/16 みんなのPython勉強会#41 40
1. おならの誤検知とかは無いのでしょうか?
⇒放屁は波形的な特性があることがわかっています。
放屁だと思われる波形は例外処理して検知されないようにしています。
2. 一般家庭でも購入できますか?
⇒まずは施設向けで販売していますが、
一般家庭向けでも販売できるように展開していきたいと思います。
3. 臭いから、どんなことまで認識できるのでしょうか?健康状態や腸内環境とか…
⇒現在、排泄臭気から健康状態(疾病状態など)を判別できないか研究を
行っています。
Q&A
2019/1/16 みんなのPython勉強会#41 41
4. センサーにも個体差があるということを考えると収集するデータには
ノイズが結構乗っているように思うのですが、
それら判定、間引くようなことをしてたりするのでしょうか。
⇒ センサの仕組み上センサの個体差が生まれてしまいます。
完全には除去することは難しいですが、
ハード的にもソフト的にも軽減する対策をとっています。
5. 臭いのセンサーは残り香みたいのに反応しないのですか?
⇒ ニオイの変化量をベースに検知をしていますので、
残り香があってもご検知しないように対策をしています。
Q&A
2019/1/16 みんなのPython勉強会#41 42
6. アノテーションとかはどのようにしたのですか?
⇒ 今回はお見せできませんでしたが、
専用のWebアプリに通知されるようになっています。
7. Pythonは?
⇒ すみません…あまりPythonのお話はできませんでしたね。
データの解析や実験機のソフトウェアなどはPythonを使用しています。
Q&A
2019/1/16 みんなのPython勉強会#41 43
8. boschのセンサーですか?
⇒ フィガロ技研さんのセンサを使用させていただいています。
9. 熱感知とかはダメですか?
⇒ サーモグラフィによるアプローチは試してみたことはありますが、
安価なセンサでは良い結果が出ていません。
しかし、引き続き研究中ではあります。
Q&A
2019/1/16 みんなのPython勉強会#41 44
10. ガスセンサーは部品としておいくらぐらいの値段なのですか?
⇒ 量産過程の全体製造数にもよりますが、
大量生産すればするほど部品の値段も低くなります。
発表の際にお見せした開発用の実験機ですと1つ数千円ほどです。

More Related Content

Featured

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
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

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
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

排泄検知をやってみよう!