SlideShare une entreprise Scribd logo
1  sur  26
Wi-Fiのassociation logを用いた
人流解析にMongoDB使ってみた
システム開発者
福崎 昭伸(Fukuzaki Akinobu)
Centimani株式会社CEO、NII(国立情報学研究所)特任研究員。
大学での専門は協調工学を踏まえた遠隔教育技術。米国スタンフォード大学との共同研
究でProject Based Learningを遠隔で実施する研究を行う。理化学研究所では、ゲノムプロ
ジェクトなどでの実験系の研究者を支援する情報処理システムの開発を行う。その後起業。
主な実績
・都立科学技術大学大学院(現首都大学東京)において、遠隔教育システムの研究。
米Stanford大学との共同研究で、PBLと遠隔教育の実施
・理化学研究所において、高度好熱菌のゲノム、ストラクチュローム解析プロジェクトに
おける実験データ収集・分析システム開発
・Think&Win(自社)において、機械産業技術財団常設技術展のテクニカルディレク
ション、NTT西日本「ひかりグリッド」サービスシステム構築・運用支援
・NTTグループにおいて、インフラ設計、調達調整、構築指揮、運用体制構築ののち、
各種ミドルの調達・構築や運用環境整備
・Centimani(自社)において、社内フルスタックエンジニア研修システムの開発・構築・
運用、オンライン研修システム開発、機械学習フレームワーク用プラットフォーム開発
・eZ Systemsにおいて、CTOとして日本市場の開拓とパートナー企業グループの組織
all rights reserved by Centimani co. 2
mongoDBのおかげで研究が捗った!
3all rights reserved by Centimani co.
2016/07 知り合いの教授から打診
2016/08 研究所入所
csv 6,416,951行 1.1GB
mongoでゴニョゴニョ
2016/09末ごろ TTPPのアイディアに至る
2016/12ごろ 翌3月のプレスリリース決定
2016/03/14 プレスリリース
群流センサデータの
活用例
インバウンド観光客の動きを可視化
<研究所での研究内容>
4
*人流は個人のトラッキ
ングをイメージしてしま
うため、人の群れの流れ
=群流とした
概要
• インバウンド観光客がどのように動いているかを可視化するシステムを開発
• プライバシー保護のため一定の条件を満たした統計化情報を可視化する仕組み
を持つ
• 流れに注目することで、ある場所を訪れた観光客がその後どこを訪れたかなど
複雑な条件で絞り込みを行うことを特徴とする
• 人気のスポットの発見など観光開発・災害対策などへの応用が期待される
• 主要なソフトウェアはオープンソースソフトウェアとして公開予定
• NII(国立情報学研究所)において2016年度に開発
• http://www.nii.ac.jp/news/release/2017/0314.html
• 国立研究開発法人 情報通信研究機構(NICT)の委託研究「ソーシャル・ビッグ
データ利活用・基盤技術の研究開発について」の採択課題「ソーシャル・ビッ
グデータ駆動の観光・防災政策決定支援基盤の研究開発」 として支援を受けて
実施
5
インバウンド観光客の動きを可視化するシステム
を開発
6
事前に登録・データ利用の同意を得たインバウンド観光客(235人)を対象に
東京マラソンが開催された当日の群流を可視化(10サンプル以上の条件のみ)
スタート地点のあった新宿エリア、ゴール地点付近の丸の内・銀座エリアに集中
インバウンド観光客の動きを可視化するシステム
を開発
7
その群流が夜になると新宿歌舞伎町や上野、池袋などへ移動していることが判明
プライバシー保護
8
地点1から地点2へ日中に移動したサンプル
→ 12サンプル抽出
移動元、移動先、移動開始時刻、移動終了時刻など、群流抽出の条件を設定し、それぞ
れの値で抽出されるサンプルの数が10以上のもののみ表示することで、個人特定を防ぐ
地点3から地点4へ夕刻に移動したサンプル
→ 5サンプル抽出
地点1から地点2へ移動した群流=約10サンプル
地点1
地点2
条件を満たさないため表示せず
群流の条件絞り込み
9
TrackID、場所from-to、時間from-to
例:観光シーズンの日曜日 例:お昼ごろ
例:A地点にいた、AからBへ移動した、Cの範囲にいた
例:16サンプルいた!
例:この人達はこのあと何処に寄ったか?
場所、時間の組み合わせ条件と、TrackIDに基づく紐付けで群流を検索することが可能
需要の発見
10
群流を詳細に見ることで、人気のスポットの発見などで観光開発をしたり、災害対策と
して人々の居場所や流れを把握することで、救助を必要としている場所や誘導が必要な
ポイントを絞り込むことに役立つ。
システムの概要
11all rights reserved by Centimani co.
対象となるデータ
Research Institute of Social Data Innovation 12
対象の場所をセンシングし、対象のIDとセンシングされた場所と時刻が記録されるもの
Track collection
Research Institute of Social Data Innovation 13
TrackID
個体識別子
TimeWindow
日時、時間枠の識別子
Place
場所、場所の識別子
Value
その他の付属情報
センシングされた事象を保存。ただし、検索しやすいようにTimeWindowやPlaceにはセン
ス値だけでなく、必要な階級値や識別子も付与する。
TrackID、TimeWindow、Place以外の要素はValueとする。
このエントリーをTTPと呼ぶ。Track collectionにTTPを保存する。
TTPP collection
Research Institute of Social Data Innovation 14
TTPを前後関係で並べてfrom、toとしてPairにしたものをTTPPとする。
以下のようなルールで生成する。
・TTPをTrackIDごとに集める
・時刻でソートする
・隣あっているものをつないでTTPPエントリーとする
・同じ場所のものが続く場合は前の吸収させる
このように作成したTTPPをTTPP collectionに保存する。
逐次処理のシステム構成例
Research Institute of Social Data Innovation 15
TrackID
個体識別子
TimeWindow
日時
Place
場所の識別子
Value
その他の付属情報
Place
場所の識別子
evidence TTP
TTP
TTPP
メタ情報保管DB TrackID毎のTTPバッファー
Track collection TTPP collection
集計処理のシステム構成例
TTP、TTPP集計Platform 16
TTPP collection
集計結果
集計条件
集計結果の可視化
応用例、商材紹介
17all rights reserved by Centimani co.
応用例
18all rights reserved by Centimani co.
群流解析は以下のような応用が考えられます
国策
・地域DMOなどの観光・地域産業の振興
・災害対策、被災者把握や物資需要の可視化
・イベントによる混雑、緊急時の誘導・警備計画
地域
・訪問者数向上政策(イベントや優遇策)の効果測定
民間
・消費者の流れの把握(どういった施設、店舗に寄ったか)
・地域間の消費者の流れの把握(何処から来た人が何処へ行くか)
商店街などへの訪問者移動の交通量調査
19all rights reserved by Centimani co.
全国で展開しているWiFiサービスの接続記録情報から集計情報を抽出処理することで、
近隣のエリアから目的地である商店街へやって来た人々の数を調査する事が可能。ただ
し、情報は都道府県、市町村、郵便番号区の場所で時刻は1時間単位。(グローバルセン
サープラン利用)
隣町1
ターミナル街
隣町2
商店街
商店街などへの訪問者移動の交通量調査
20all rights reserved by Centimani co.
JRの駅方面 私鉄の駅方面
大型商業施設方面
商店街などで主要な場所にWifiセンサーを設置して収集解析することで、どこから来てど
こへ行った人が商店街のどの場所にどのくらい滞在したかなどが計測できる。いわゆる
機械でできる交通量調査で、どちらから来たかなどの追加情報を含めた集計データが即
日得られる。イベントなどの効果測定などにも利用可能。(独自センサープラン利用)
群流解析商品: インバウンド観光客宿泊特性分析
21
都道府県毎に前日、当日、翌日に何処にいたかをグラフ化することで、ある県に観光す
る前後の宿泊は何処かといった分析や、連泊するかなどが月・国籍毎に分析可能。
(近日サービス開始予定)
MongoDBでの実装
概要
• MongoDBに格納
• シミュレーションデータを生成
• 実例(githubで公開されています!!)
23
MongoDBにデータを格納
24all rights reserved by Centimani co.
TrackID
個体識別子
TimeWindow
日時
Place
場所の識別子
Value
その他の付属情報
Place
場所の識別子
evidence TTP
TTP
TTPP
メタ情報保管DB TrackID毎のTTPバッファー
Track collection TTPP collection
実験で用いたデータはWi-Fiサービス事業者からTrackId、TimeWindow、Placeの情報に国籍
や性別、年代が付加されたCSVファイルを受け取り加工(Pythonスクリプト)して、
MongoDBに格納した。
MongoDB
シミュレーションデータを生成
25all rights reserved by Centimani co.
TrackID
個体識別子
TimeWindow
日時
Place
場所の識別子
Place
場所の識別子
evidence TTP
TTP
TTPP
marker collection TrackID毎のTTPバッファー
track_demo collection ttpp_demo collection
デモンストレーション用にモデルデータを生成し、そこからシミュレータースクリプト
によってデモデータを生成、markerに入っている場所情報で情報を付加し、track_demoに
TTPを、ttpp_demoにTTPPを格納。
ttpp_demo_model collection
実例
26all rights reserved by Centimani co.
MongoDBにシミュレーションデータを挿入し、TTPやTTPPクエリを実際に試すためのマテ
リアル集をgithubで公開しています。是非お試し下さい。
https://github.com/ak2i/mongodb_TTPP
上記のデモを試すためにはMongoDBをお手元の環境にインストールしておく必要があり
ます。詳しくは以下のサイトをご覧下さい。
https://www.mongodb.com
マテリアル集に関しての問い合わせは上記githubのページでフィードバックをいただけれ
ばと思います。またTTPPそのものに関しては福崎の個人メアドへお問い合わせください。
(コンサル業務や講演、演習のご依頼もこちらへ!)
akki@centimani.biz

Contenu connexe

En vedette

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 ChatGPTExpeed Software
 
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
 

En vedette (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...
 

Mongodb20170912