SlideShare a Scribd company logo
1 of 29
Pairsの投稿監視シス
テム
ハッシュタグ #eureka_meetup
自己紹介:James (エウレカ)
• イギリスのケンブリッジ大学
でコンピューターサイエンス
を専攻
• 鳥取県で中学校で教えながら
日本語を勉強
• 2015年から東京でエンジ
ニアとして働いています
• 得意:Scala開発、アーキテ
クチャ、CS理論
Pairsとは
プロフィール
サンプル会話
発表コンテンツ
• テキスト監視
• Pairsでユーザーが入力するテキスト(メッセー
ジ、紹介文、つぶやきなど)を自動に監視
• 画像監視
• Pairsでユーザーがアップロードする画像(だい
たいプロフィール画像)を自動に監視
テキスト監視要件
• 目標:業者ユーザー、ストーカー、他のサービスの
招待を自動に見つける
• ルールのフィルターを使って、NGメッセージの
35%ぐらいキャッチする
• メールのスパムフィルターは普通に99.5%以上
• 95%以上、全てのテキスト種類で使えるフィルター
作りたい
フィルター仕様
Text
Bad Words Bayesian Bad Regexes
Result
Bayesianフィルター
• P(S|W): 言葉Wがあれば、メッセージSがスパムの率
• P(W|S): 言葉Wがスパムメッセージに出る率
• P(W|H): 言葉Wがハムメッセージに出る率
Bayesianフィルター(例)
• 「アリクイはありを食べる」
• 「あり」は6スパムメッセージ、4ハム
メッセージに出る
• 「食べる」は2スパムメッセージ、8ハ
ムメッセージ
• 「アリクイ」は初めてみた
(0.6 * 0.2) / (0.6 * 0.2 + 0.4 * 0.8) = 0.273
スパム確率:27.3%
結果
• 20万メッセージで学習させてみた。その結果、、、
• 〜80%ヒット率
• 三日間調整して、色々いじってみた。その結果、、、
• 〜81%ヒット率
• たらなかった
なぜ80%だけ?
• メッセージは普通にメールより短い
• 件名がない
• 日本語をトークンにするのは難しい問題
• Pairsは細かいルールがある
パラメーター調整
• 文字数
• 英語文字数
• 名指数
• 形容指数
• 動詞数
• 組織数
• 名前数
• フッルネームが入っているかどうか
• セックスに関係ある言葉数
• 学校に関係ある言葉数
• 怪しい言葉数(Facebook, LINEとか)
• Line IDにみえるのが入っているかどうか
• メールアドレスが入っているかどうか
• URLが入っているかどうか
• 数字数
• シンボル数
• 副詞数
• 助詞数
• ワイトスペース数
• 生数
• 苗字数
• 挨拶数
• 場所数
• 誘っている言葉数
• 恋愛に関係ある言葉数
• フレンドリーじゃない言葉数
• トークン
• テキスト
結果
• ヒット率は96%になりました
画像監視
• 目標:ユーザーのプロフィール画像を自動に監視
• 暴力や裸など
• 半分以上は友達も写ってる写真
顔認識の背景
• SNS、ゲーム、セキュリティ、写真整理
• 写真ならいろんな方法 例えばEigenfaces (1987)
• 「平均の顔」と比べてどれぐらい違う?
• Viola-Jones (2001): 初めてのリアルタイムアルゴリ
ズム
Viola-Jones顔認識
• 顔の明るい・暗いところを見る
• Haar Featuresを見て、顔かど
うか決める
• フィーチャーはどれぐらい大事
か、学習で決める
Viola-Jones顔認識
• 白いところ - 黒いところ > K
• Kは学習で決める(普通に
AdaBoost)
• 偽陰性率が低いので「顔がない
ところ」を削減しながら進む
OpenCVひどいね
OpenCV: Goのラッパー
綺麗だね
OpenCV: 顔認識の実装
Viola-Jonesの問題点:顔の一部が表示されない写真
Viola-Jonesの問題点:編集された写真
Viola-Jonesの問題点:質の悪い写真
Google Vision API
多分ディープラーニングの何か
GoでGoogle Vision APIを使
う
Google Visionの問題点
• 有料(1000/$1.50)
• 遅い(1−2秒かかる)
• 100%ではない
結論
• カメラを見てて、質度が高い写真ならViola-Jonesが
いい
• 写真がよくない、あるいはミス許せないアプリなら
Google Vision
• 他のディープラーニングソルーションも試した方が
いい (Microsoft、Amazon)
Thank you!

More Related Content

Recently uploaded

Recently uploaded (10)

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 

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)

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

エウレカの投稿監視システム