SlideShare a Scribd company logo
1 of 15
確率ロボティクス輪読会
3. ガウシアンフィルタ
慶應義塾大学ロボット技術研究会 @ishtarmk2
流れ(1章~4章)
↓
確率論に基づいてベイズフィルタなるものを作るといいよ(2章)
↓
どうやって作るのよさ
ガウス分布使って有限の変数で連続量を表現しよう
(ガウシアンフィルタ、3章)
サンプル大量にバラまいて動きを見よう
(ノンパラメトリックフィルタ、4章)
カルマンフィルタ
• Gauss分布で信念を表現し、媒介変数として平均及び共分散を
用いる
• 前提条件(満たされてれば信念がGauss分布となる)
• 状態遷移確率及び計測確率は線形Gauss型モデル
• 初期信念がGauss分布
線形ガウス型モデル
例えば状態遷移確率の場合に成立するのは
𝑥 𝑡 = 𝐴 𝑡 𝑥 𝑡−1 + 𝐵𝑡 𝑢 𝑡 + 𝜖 𝑡
即ち線形モデル+Gauss雑音(Gauss分布に従う雑音)
平均:𝐴 𝑡 𝑥 𝑡−1 + 𝐵𝑡 𝑢 𝑡 分散:𝑅𝑡(𝜖 𝑡の分散)
平均と分散が定義できるので𝑝(𝑥 𝑡|𝑥 𝑡−1, 𝑢 𝑡)がGauss分布になる
計測確率の場合zt = 𝐶𝑡 𝑥 𝑡 + 𝛿𝑡となり同様に𝑝(𝑧𝑡|𝑥𝑡)がGauss分布に
カルマンフィルタのアルゴリズム
1. Algorithm Kalman_filter( mt-1, St-1, ut, zt):
2. Prediction:
3.
4.
5. Correction:
6.
7.
8.
9. Return mt, St
ttttt uBA  1mm
t
T
tttt RAA SS 1
1
)( 
SS t
T
ttt
T
ttt QCCCK
)( tttttt CzK mmm 
tttt CKI SS )(
ベイズフィルタの式に線形ガウス型モデ
ルぶち込めば出てくる
ベイズフィルタの式に(ry
カルマンゲイン、次ページ
カルマンゲイン
𝐾𝑡 = Σ 𝑡 𝐶𝑡
𝑇
𝑄𝑡
−1
• 信念の共分散Kt, 計測確率の平均𝐶𝑡及び共分散𝑄𝑡の積
• 要はどれくらい計測を信念に反映させるか
• と言うとユーザーサイドで適当に決めていいかのように聞こえ
るが計測確率分布からスッとと決まるやつ
カルマンフィルタの線形化
• 実際の状態遷移モデル及び計測モデルが線形であることは少ない
• 例えばモータの応答が非線形だったり
• 非線形だとこんな感じにモデリングされる
状態遷移確率: 𝑥 𝑡 = 𝑔 𝑢 𝑡, 𝑥 𝑡−1 + 𝜖 𝑡
計測確率:𝑧𝑡 = ℎ 𝑥 𝑡 + 𝛿𝑡
• しかし非線形だと扱いがめんどい→線形近似
• Taylor展開による近似→拡張カルマンフィルタ(EKF)
• アンセンテッド変換による近似→アンセンテッドカルマンフィルタ(UKF)
拡張カルマンフィルタ(EKF)
Taylor展開
𝑓 𝑥 =
0
𝑛
1
𝑛!
𝑓 𝑛 𝑎 𝑥 − 𝑎 𝑛 ≅ 𝑓 𝑎 + 𝑓′ 𝑎 𝑥 − 𝑎
非線形関数を線形近似(Taylor展開を1次で切る)
𝑔 𝑢 𝑡, 𝑥 𝑡−1 = 𝑔 𝑢 𝑡, 𝜇 𝑡−1 + 𝑔′(𝑢 𝑡, 𝜇 𝑡−1 )(𝑥 𝑡−1 − 𝜇 𝑡−1)
ℎ 𝑥 𝑡 = ℎ 𝜇 𝑡 + ℎ′(𝜇 𝑡)(𝑥𝑡 − 𝜇 𝑡)
0次 𝐺𝑡(ヤコビ行列)
1次
𝐻𝑡
EKFアルゴリズム
1. Extended_Kalman_filter( mt-1, St-1, ut, zt):
2. Prediction:
3.
4.
5. Correction:
6.
7.
8.
9. Return mt, St
),( 1 ttt ug mm
t
T
tttt RGG SS 1
1
)( 
SS t
T
ttt
T
ttt QHHHK
))(( ttttt hzK mmm 
tttt HKI SS )(
1
1),(





t
tt
t
x
ug
G
m
t
t
t
x
h
H



)(m
ttttt uBA  1mm
t
T
tttt RAA SS 1
1
)( 
SS t
T
ttt
T
ttt QCCCK
)( tttttt CzK mmm 
tttt CKI SS )(
それっぽくKFから置換されている
ことを認識してほしい
ぶっちゃけると
• ガウシアンフィルタ使う場合だいたいEKF
(ex)日産の自動運転車研究、hector_slam(ROSのSLAMパッケージ)
• 利点:計算が早い
• 計算量オーダー:𝑂 𝑘2.4 + 𝑛2
• 欠点:ユニモーダルである
• 2つ山作って近似したいけどユニモーダルだからできないよねという話→
• 対策:ガウス分布の和を信念とする(複数仮説カルマンフィルタ)
アンセンテッドカルマンフィルタ(UKF)
• Taylor展開より推定が正確になる線形近似手法
• モーメントマッチング
• アンセンテッド変換←こいつを使おう
• シグマ点の導入
• 分布の中心と中心に対称な各軸上の点2つ(次元毎、距離は人間が選ぶ)
• つまり1+2n(nは次元)個選ばれる
• シグマ点をgやhで変換したものに重み付けして足し合わせる
• ぶっちゃけ使わない可能性が高いので式は各自追って(ごめん)
EKFvsUKF
• 計算が速いのはEKF(ただし定数倍なのでオーダーは一緒)
• 正確性はUKFの方が上(ただし分布の形状次第)
• UKFの場合微分が不要なので計算機によっては利点になる
情報フィルタ(IF)
• カルマンフィルタでは平均と分散でガウス分布を表現した
• 情報フィルタでは情報行列と情報ベクトルで表現する
• 情報行列Ω:共分散行列Σの逆行列(Σ−1)
• 情報ベクトル𝜉 = Σ−1 𝜇
• ガウス分布をシンプルに表現できてエレガント(らしい)
𝑝 𝑥 = 𝜂exp{−
1
2
𝑥 𝑇Ω𝑥 − 𝑥 𝑇 𝜉}
• カルマンフィルタと同様信念は線形ガウス型モデル
• 状態遷移及び計測更新毎にΩ, 𝜉, Ω, 𝜉を更新していく
• カルマンフィルタと数学的に双対
KFvsIF
• 書こうとしたところで先週の@syuntoku14の内容と被ってるこ
とに気づいた、
https://www.slideshare.net/keio_rogiken/lets-nonparametric
これよんで
reference
• http://www.probabilistic-robotics.org/
• https://www.slideshare.net/ryuichiueda/13-57036730
解散終了終了終了

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
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)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
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...
 

確率ロボティクス輪読会 3章