SlideShare a Scribd company logo
MxNetによる
ディープラーニングで
セミの抜け殻を識別する
Kichijouji.pm #12
2017.10.20 @dokechin
MxNetとは
• 畳み込みニューラルネットワーク (CNN) や長短期メモリ
ネットワーク (LSTM) といった最先端の深層学習モデル
をサポートする、効率的かつ柔軟で超高度にスケーラブ
ルな深層学習フレームワークです。
• 命令型言語と記号型言語を混在させることができます。
実際、「MXNet」という名前は混在ネットワークという意
味の「mixed networks」に由来します。(出典:https://
aws.amazon.com/jp/mxnet/)
• Perlで使えるAI::MxNet
MNIST
• 28x28ピクセルのグレースケールの手書きの数字(0-9)
画像とラベルデータのデータセット。
• 訓練データ6万、テストデータ1万が提供されている
やったこと
• MNISTを流用して、セミの抜け殻データでセミの識別を
させる!
素のMNIST
MNISTフォーマットのバイナリ
t10k-images.idx3-ubyte
t10k-labels.idx1-ubyte
train-images.idx3-ubyte
train-labels.idx1-ubyte
IO
Symbol
Module
MxNet
MNIST→PNG
MNISTデータ
http://yann.lecun.com/exdb/mnist/
MNIST形式のバイナリをpngファイルへ分割するツール
https://github.com/myleott/mnist_png
python convert_mnist_to_png.py ./ ./
testing
├── 0
│ ├── 10.png
│ ├── 1001.png
│ ├── 1009.png
│ ├── 101.png
│ ├── 1034.png
│ ├── 1047.png
│ ├── 1061.png
…
└── 9
├── 1000.png
├── 1005.png
├── 1013.png
├── 104.png
├── 1045.png
├── 1048.png
├── 105.png
PNG→RecordIO
• perlスクリプトで一覧(ctlファイル)を作成
10 0 ./testing/0/10.png
1001 0 ./testing/0/1001.png
1009 0 ./testing/0/1009.png
1010 ./testing/0/101.png
1034 0 ./testing/0/1034.png
1047 0 ./testing/0/1047.png
1061 0 ./testing/0/1061.png
1084 0 ./testing/0/1084.png
1094 0 ./testing/0/1094.png
• im2recコマンド(MxNet)
im2rec training.ctl ./ training.rec encoding=.png color=0
RecordIOのMNIST
RecordIOフォーマットの
バイナリ
training.rec
testing.rec
IO
Symbol
Module
MxNet
https://github.com/dokechin/mnist_png
抜け殻データを準備
正答率
• 80%程度
今までとこれから
• 蝉の教師がいないと自分で分類できない
• 蝉の種類によってサンプルが集めにくい
• Githubを用いたオープンデータの集約化&利用はいい
感じかも
ソースなどは
• https://github.com/dokechin/cicada_shell

More Related Content

What's hot

Differentiable neural conputers
Differentiable neural conputersDifferentiable neural conputers
Differentiable neural conputers
naoto moriyama
 
論文紹介 Amortized bayesian meta learning
論文紹介 Amortized bayesian meta learning論文紹介 Amortized bayesian meta learning
論文紹介 Amortized bayesian meta learning
Xiangze
 
第七回統計学勉強会@東大駒場
第七回統計学勉強会@東大駒場第七回統計学勉強会@東大駒場
第七回統計学勉強会@東大駒場Daisuke Yoneoka
 
論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ
論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ
論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ
Hideo Terada
 
[第2版]Python機械学習プログラミング 第13章
[第2版]Python機械学習プログラミング 第13章[第2版]Python機械学習プログラミング 第13章
[第2版]Python機械学習プログラミング 第13章
Haruki Eguchi
 
Learning sparse neural networks through L0 regularization
Learning sparse neural networks through L0 regularizationLearning sparse neural networks through L0 regularization
Learning sparse neural networks through L0 regularization
周平 合田
 
Hybrid computing using a neural network with dynamic
Hybrid computing using a neural network with dynamicHybrid computing using a neural network with dynamic
Hybrid computing using a neural network with dynamic
Ryutaro Yamauchi
 
[DL輪読会] Hybrid computing using a neural network with dynamic external memory
[DL輪読会] Hybrid computing using a neural network with dynamic external memory[DL輪読会] Hybrid computing using a neural network with dynamic external memory
[DL輪読会] Hybrid computing using a neural network with dynamic external memory
Yusuke Iwasawa
 
Thesis introduction audo_signal_processing
Thesis introduction audo_signal_processingThesis introduction audo_signal_processing
Thesis introduction audo_signal_processing
MakotoShirasu
 
深層学習(講談社)のまとめ 第7章
深層学習(講談社)のまとめ 第7章深層学習(講談社)のまとめ 第7章
深層学習(講談社)のまとめ 第7章
okku apot
 
Overcoming Catastrophic Forgetting in Neural Networks読んだ
Overcoming Catastrophic Forgetting in Neural Networks読んだOvercoming Catastrophic Forgetting in Neural Networks読んだ
Overcoming Catastrophic Forgetting in Neural Networks読んだ
Yusuke Uchida
 
[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions
[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions
[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions
Deep Learning JP
 
LAB-ゼミ資料-1-20150413
LAB-ゼミ資料-1-20150413LAB-ゼミ資料-1-20150413
LAB-ゼミ資料-1-20150413
Yuki Ogasawara
 
輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions
輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions
輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions
Kotaro Asami
 
Linuxの基本コマンド
Linuxの基本コマンドLinuxの基本コマンド
Linuxの基本コマンド
晋 小沼
 
Tensorflow
TensorflowTensorflow
Tensorflow
Hakky St
 
物体検出 論文読み
物体検出 論文読み物体検出 論文読み
物体検出 論文読み
JunMatsukuma
 
PyTorch, PixyzによるGenerative Query Networkの実装
PyTorch, PixyzによるGenerative Query Networkの実装PyTorch, PixyzによるGenerative Query Networkの実装
PyTorch, PixyzによるGenerative Query Networkの実装
Shohei Taniguchi
 
「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)
「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)
「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)
Etsuji Nakai
 
機械学習ライブラリ : TensorFlow
機械学習ライブラリ : TensorFlow機械学習ライブラリ : TensorFlow
機械学習ライブラリ : TensorFlow
エンジニア勉強会 エスキュービズム
 

What's hot (20)

Differentiable neural conputers
Differentiable neural conputersDifferentiable neural conputers
Differentiable neural conputers
 
論文紹介 Amortized bayesian meta learning
論文紹介 Amortized bayesian meta learning論文紹介 Amortized bayesian meta learning
論文紹介 Amortized bayesian meta learning
 
第七回統計学勉強会@東大駒場
第七回統計学勉強会@東大駒場第七回統計学勉強会@東大駒場
第七回統計学勉強会@東大駒場
 
論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ
論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ
論文紹介 dhSegment:文書セグメンテーションのための包括的ディープラーニングアプローチ
 
[第2版]Python機械学習プログラミング 第13章
[第2版]Python機械学習プログラミング 第13章[第2版]Python機械学習プログラミング 第13章
[第2版]Python機械学習プログラミング 第13章
 
Learning sparse neural networks through L0 regularization
Learning sparse neural networks through L0 regularizationLearning sparse neural networks through L0 regularization
Learning sparse neural networks through L0 regularization
 
Hybrid computing using a neural network with dynamic
Hybrid computing using a neural network with dynamicHybrid computing using a neural network with dynamic
Hybrid computing using a neural network with dynamic
 
[DL輪読会] Hybrid computing using a neural network with dynamic external memory
[DL輪読会] Hybrid computing using a neural network with dynamic external memory[DL輪読会] Hybrid computing using a neural network with dynamic external memory
[DL輪読会] Hybrid computing using a neural network with dynamic external memory
 
Thesis introduction audo_signal_processing
Thesis introduction audo_signal_processingThesis introduction audo_signal_processing
Thesis introduction audo_signal_processing
 
深層学習(講談社)のまとめ 第7章
深層学習(講談社)のまとめ 第7章深層学習(講談社)のまとめ 第7章
深層学習(講談社)のまとめ 第7章
 
Overcoming Catastrophic Forgetting in Neural Networks読んだ
Overcoming Catastrophic Forgetting in Neural Networks読んだOvercoming Catastrophic Forgetting in Neural Networks読んだ
Overcoming Catastrophic Forgetting in Neural Networks読んだ
 
[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions
[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions
[DL輪読会]Xception: Deep Learning with Depthwise Separable Convolutions
 
LAB-ゼミ資料-1-20150413
LAB-ゼミ資料-1-20150413LAB-ゼミ資料-1-20150413
LAB-ゼミ資料-1-20150413
 
輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions
輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions
輪読資料 Xception: Deep Learning with Depthwise Separable Convolutions
 
Linuxの基本コマンド
Linuxの基本コマンドLinuxの基本コマンド
Linuxの基本コマンド
 
Tensorflow
TensorflowTensorflow
Tensorflow
 
物体検出 論文読み
物体検出 論文読み物体検出 論文読み
物体検出 論文読み
 
PyTorch, PixyzによるGenerative Query Networkの実装
PyTorch, PixyzによるGenerative Query Networkの実装PyTorch, PixyzによるGenerative Query Networkの実装
PyTorch, PixyzによるGenerative Query Networkの実装
 
「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)
「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)
「TensorFlow Tutorialの数学的背景」 クイックツアー(パート1)
 
機械学習ライブラリ : TensorFlow
機械学習ライブラリ : TensorFlow機械学習ライブラリ : TensorFlow
機械学習ライブラリ : TensorFlow
 

Similar to Mxnetによるデープラーニングでセミの抜け殻を識別する

いきなりAi tensor flow gpuによる画像分類と生成
いきなりAi tensor flow gpuによる画像分類と生成いきなりAi tensor flow gpuによる画像分類と生成
いきなりAi tensor flow gpuによる画像分類と生成
Yoshi Sakai
 
Paper: seq2seq 20190320
Paper: seq2seq 20190320Paper: seq2seq 20190320
Paper: seq2seq 20190320
Yusuke Fujimoto
 
'Multilayer Networks' Section3
'Multilayer Networks' Section3'Multilayer Networks' Section3
'Multilayer Networks' Section3
Motoka Fukui
 
ChainerMNが即座に使える環境を提供するXTREME DNA HPC Cloud
ChainerMNが即座に使える環境を提供するXTREME DNA HPC CloudChainerMNが即座に使える環境を提供するXTREME DNA HPC Cloud
ChainerMNが即座に使える環境を提供するXTREME DNA HPC Cloud
Hirono Jumpei
 
WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...
WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...
WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...
Takanori Nakai
 
深層学習フレームワーク Chainer の開発と今後の展開
深層学習フレームワーク Chainer の開発と今後の展開深層学習フレームワーク Chainer の開発と今後の展開
深層学習フレームワーク Chainer の開発と今後の展開
Seiya Tokui
 
CG Image Recognition with Deep Learning
CG Image Recognition with Deep LearningCG Image Recognition with Deep Learning
CG Image Recognition with Deep Learning
Kodai Takao
 

Similar to Mxnetによるデープラーニングでセミの抜け殻を識別する (7)

いきなりAi tensor flow gpuによる画像分類と生成
いきなりAi tensor flow gpuによる画像分類と生成いきなりAi tensor flow gpuによる画像分類と生成
いきなりAi tensor flow gpuによる画像分類と生成
 
Paper: seq2seq 20190320
Paper: seq2seq 20190320Paper: seq2seq 20190320
Paper: seq2seq 20190320
 
'Multilayer Networks' Section3
'Multilayer Networks' Section3'Multilayer Networks' Section3
'Multilayer Networks' Section3
 
ChainerMNが即座に使える環境を提供するXTREME DNA HPC Cloud
ChainerMNが即座に使える環境を提供するXTREME DNA HPC CloudChainerMNが即座に使える環境を提供するXTREME DNA HPC Cloud
ChainerMNが即座に使える環境を提供するXTREME DNA HPC Cloud
 
WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...
WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...
WSDM2018 読み会 Latent cross making use of context in recurrent recommender syst...
 
深層学習フレームワーク Chainer の開発と今後の展開
深層学習フレームワーク Chainer の開発と今後の展開深層学習フレームワーク Chainer の開発と今後の展開
深層学習フレームワーク Chainer の開発と今後の展開
 
CG Image Recognition with Deep Learning
CG Image Recognition with Deep LearningCG Image Recognition with Deep Learning
CG Image Recognition with Deep Learning
 

More from dokechin

ダンドリーキッチン
ダンドリーキッチンダンドリーキッチン
ダンドリーキッチン
dokechin
 
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
dokechin
 
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
dokechin
 
オープンデータを利用したWebアプリ開発
オープンデータを利用したWebアプリ開発オープンデータを利用したWebアプリ開発
オープンデータを利用したWebアプリ開発
dokechin
 
日経平均上下予想Botを作った話
日経平均上下予想Botを作った話日経平均上下予想Botを作った話
日経平均上下予想Botを作った話
dokechin
 
Perlでbdd
PerlでbddPerlでbdd
Perlでbdd
dokechin
 
クラウドストレージを使って音声投稿サイトを作った話
クラウドストレージを使って音声投稿サイトを作った話クラウドストレージを使って音声投稿サイトを作った話
クラウドストレージを使って音声投稿サイトを作った話
dokechin
 
Mojolicous and Bootstrap
Mojolicous and BootstrapMojolicous and Bootstrap
Mojolicous and Bootstrap
dokechin
 
Learn fromalphageeks
Learn fromalphageeksLearn fromalphageeks
Learn fromalphageeks
dokechin
 

More from dokechin (9)

ダンドリーキッチン
ダンドリーキッチンダンドリーキッチン
ダンドリーキッチン
 
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
 
Iot data aggrigation
Iot data aggrigationIot data aggrigation
Iot data aggrigation
 
オープンデータを利用したWebアプリ開発
オープンデータを利用したWebアプリ開発オープンデータを利用したWebアプリ開発
オープンデータを利用したWebアプリ開発
 
日経平均上下予想Botを作った話
日経平均上下予想Botを作った話日経平均上下予想Botを作った話
日経平均上下予想Botを作った話
 
Perlでbdd
PerlでbddPerlでbdd
Perlでbdd
 
クラウドストレージを使って音声投稿サイトを作った話
クラウドストレージを使って音声投稿サイトを作った話クラウドストレージを使って音声投稿サイトを作った話
クラウドストレージを使って音声投稿サイトを作った話
 
Mojolicous and Bootstrap
Mojolicous and BootstrapMojolicous and Bootstrap
Mojolicous and Bootstrap
 
Learn fromalphageeks
Learn fromalphageeksLearn fromalphageeks
Learn fromalphageeks
 

Mxnetによるデープラーニングでセミの抜け殻を識別する