SlideShare une entreprise Scribd logo
1  sur  20
パターン認識の資料
はじめに
• パターン認識の流れ
• 代表的な手法
の紹介が主な内容
パターン認識とは
• パターンとは「型」、「類型」
• 認識とは「人間が物事を知るはたらき、およびその内容」
∴パターン認識とは「物事の類型を知るはたらき、およびその内容」
工学的には、与えられた「パターン」を特定(既知)の「カテゴリ」
あるいは「クラ ス」に分類する技術
Arthor Samuel 曰く、機械学習とは 「明示的にプログラミングする
ことなく,コンピュータに学ぶ能力を与えようとする研究分野」
→実際はデータから知識や規則性を計算機に発見させること
→クラス分類、クラスタリング、回帰、などなど
パターン認識の流れ
• 例題:硬貨の分類問題(自動販売機をイメージ)
識別対象 特徴ベクトル
サイズ
重さ
透磁率
穴の有無
識別クラス
10円
50円
100円
500円
識別不能
特徴抽出 識別規則
• 特徴抽出 … 対象を観測し、分類の手がかりとなる特徴量を取り出す
• 特徴ベクトル ... 抽出された特徴量をベクトルの形に表現したもの
• 識別規則 ... 「クラス」に分類するための規則
※識別とは「有限個の既知の要素を持つクラスのどれに分類されるかを,
分類される対象の特徴に基づいて予測・決定する処理」
出力
「10円」
入力
パターン認識の流れ
• 例題:硬貨の分類問題(自動販売機をイメージ)
識別対象
10円玉
50円玉
100円玉
500円玉
特徴ベクトル
サイズ
重さ
透磁率
穴の有無
識別クラス
10円
50円
100円
500円
識別不能
特徴抽出 識別規則
• 特徴抽出 … 対象を観測し、分類の手がかりとなる特徴量を取り出す
• 特徴ベクトル ... 抽出された特徴量をベクトルの形に表現したもの
• 識別規則 ... 「クラス」に分類するための規則
※識別とは「有限個の既知の要素を持つクラスのどれに分類されるかを,
分類される対象の特徴に基づいて予測・決定する処理」
パターン認識の流れ
• 例題:硬貨の分類問題(自動販売機をイメージ)
識別対象
10円玉
50円玉
100円玉
500円玉
識別クラス
10円
50円
100円
500円
識別不能
ディープ
ニューラル
ネット
前処理や特徴抽出も全部ひっくるめて1つのニューラ
ルネットで識別器を作るのが、End-to-End学習などと
呼ばれるもの ||
始端(front-end)と終端(back-end)を繋げる
(一気通貫なんて訳語も)
※じゃあニューラルネットでいいんでは?
→大量の(きれいな)ラベルつきデータがあれば強い(画像、音声、テキストなど)
パターン認識の流れ
• 例題:硬貨の分類問題(自動販売機をイメージ)
識別対象
10円玉
50円玉
100円玉
500円玉
特徴ベクトル
サイズ
重さ
透磁率
穴の有無
識別クラス
10円
50円
100円
500円
識別不能
特徴抽出 識別手法
• 特徴抽出 … 対象を観測し、識別の手がかりとなる特徴量を取り出す
• 特徴ベクトル ... 抽出された特徴量をベクトルの形に表現したもの
• 識別手法 ... 「クラス」に分類するための規則
※厳密には特徴抽出の前に「前処理」が入ったりする
特徴抽出
この設計が性能を左右する(職人芸とも)
• 必要な前処理は何か?
⇒まずは実際の生のデータをプロットして眺めてみたり
• 各応用分野の特徴量を参考に
⇒音声ならケプストラムとか
• その他
• 各種の次元削減手法(例:主成分分析や線形判別分析)
• 対数変換、白色化などなど
パターン認識の流れ
• 例題:硬貨の分類問題(自動販売機をイメージ)
識別対象
10円玉
50円玉
100円玉
500円玉
特徴ベクトル
サイズ
重さ
透磁率
穴の有無
識別クラス
10円
50円
100円
500円
識別不能
特徴抽出 識別手法
• 特徴抽出 … 対象を観測し、識別の手がかりとなる特徴量を取り出す
• 特徴ベクトル ... 抽出された特徴量をベクトルの形に表現したもの
• 識別手法 ... 「クラス」に分類するための規則
代表的な識別手法(1/2)
• 類似度に基づく手法
• 新たに入力されるデータとなんらかの代表的なサンプ
ルとの類似度(距離)を測ることで、類似度の高い代表
サンプルのクラスに分類する手法
• k最近傍識別法やテンプレートマッチングが代表的
クラス1
クラス2
新規データ
距離最短!
代表的な識別手法(1/2)
• 類似度に基づく手法
• 新たに入力されるデータとなんらかの代表的なサンプ
ルとの類似度(距離)を測ることで、類似度の高い代表
サンプルのクラスに分類する手法
• k最近傍識別法やテンプレートマッチングが代表的
クラス1
クラス2
新規データ
距離最短!
代表的な識別手法(1/2)
• 類似度に基づく手法
• 新たに入力されるデータとなんらかの代表的なサンプ
ルとの類似度(距離)を測ることで、類似度の高い代表
サンプルのクラスに分類する手法
• k最近傍識別法やテンプレートマッチングが代表的
クラス1
クラス2
新規データ
k-最近傍法(k=3)
代表的な識別手法(1/2)
• 類似度に基づく手法
• 新たに入力されるデータとなんらかの代表的なサンプ
ルとの類似度(距離)を測ることで、類似度の高い代表
サンプルのクラスに分類する手法
• k最近傍識別法やテンプレートマッチングが代表的
• 確率モデルに基づく手法
• データに含まれる不確実性を確率分布で表現
⇒クラスに関する事後確率が最大となるクラスに分類
• ナイーブベイズ、ガウス混合モデルなどが代表的
事後確率
: 識別対象クラスの集合 :特徴ベクトル
事前確率
代表的な識別手法(2/2)
• 識別関数に基づく手法
• 確率モデルを仮定せず、クラスごとの識別関数を計算
⇒識別関数が最大となるクラスに分類
• 線形識別モデル、サポートベクトルマシン、ニューラル
ネットワークが代表的
代表的な識別手法(2/2)
• 識別関数に基づく手法
• 確率モデルを仮定せず、クラスごとの識別関数を計算
⇒識別関数が最大となるクラスに分類
• 線形識別モデル、サポートベクトルマシン、ニューラル
ネットワークが代表的
• 特徴空間の分割に基づく手法
• 特徴空間を何らかの方法で分割し、それぞれの領域に
クラスを割り当てる手法
• 決定木(各変数に対する質問により特徴空間を区分し
ていく方法)が代表的
• 集団学習に基づく手法
• 上記の複数の分類手法を統合して結果を得る手法
• バギング、ランダムフォレスト、ブースティングが代表的
結局どの識別手法がいいの?
• 最初は簡単な手法から
• 類似度に基づく手法(テンプレートマッチング)
• 線形識別モデル
• ナイーブベイズ
• 上手く行かない場合ば徐々に複雑な手法
• ガウス混合モデル
• サポートベクトルマシン
• 決定木
• 集団学習(ブースティングなど)
• ディープニューラルネット
⇒ 一長一短あるので、色々試してみる
次の次のスライドで参考図を示します
ソフトウェア
• Weka
• 要Java
• GUIインタフェースで使いやすい
• scikit-learn
• 要Python
• プログラミング環境が必要(Pythonのパッケージの1種)
• 書籍、Web上に豊富な参考情報が存在
• Pythonによる機械学習入門 ~SVMからDeep Learningまで~
⇒名古屋大学助教の川西先生によるチュートリアル資料
• scikit-learnを用いた機械学習チュートリアル
…などなど、Slideshareというサイトで「Python 機械学習」で検索しても
参考資料がたくさんヒットする
• Pythonではじめる機械学習(書籍)
⇒scikit-learnのサンプルコードを動かしながら機械学習を勉強可能
scikit-learnのチートシート
出典 http://scikit-learn.org/stable/tutorial/machine_learning_map/
まとめ
• パターン認識の流れを紹介
1. 観測データ(入力)から特徴量を抽出して特徴ベクトルに変換
2. 特徴ベクトルに識別手法を適用して識別結果(出力)を得る
• 代表的な手法を紹介
• 類似度、確率モデル、識別関数、空間分割、集団学習
• 最初は簡単な手法から → 例えば線形分類器
参考書籍
1. 知りたい分かりたい人の 体験する機械学習
→Wekaの使い方、雰囲気を体験できる
2. フリーソフトではじめる機械学習入門
→Wekaを使いながら機械学習も勉強でき、お得
3. フリーソフトでつくる音声認識システム
→機械学習の基礎がわかりやすく説明されている(非Weka)
4. はじめてのパターン認識(通称 はじパタ)
5. わかりやすいパターン認識(通称 わかパタ)

Contenu connexe

En vedette

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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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
 

En vedette (20)

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...
 
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
 

パターン認識の資料