{"id":246,"date":"2019-03-10T18:54:25","date_gmt":"2019-03-10T09:54:25","guid":{"rendered":"http:\/\/staka.jp\/wordpress\/?p=246"},"modified":"2019-03-10T18:54:25","modified_gmt":"2019-03-10T09:54:25","slug":"%e8%84%b3%e3%81%8b%e3%82%89%e3%81%ae%e7%9f%a5%e8%ad%98%e8%92%b8%e7%95%99%ef%bc%88distilling-the-knowledge-from-a-brain%ef%bc%89-%e6%ba%96%e5%82%99","status":"publish","type":"post","link":"https:\/\/staka.jp\/wordpress\/?p=246","title":{"rendered":"\u8133\u304b\u3089\u306e\u77e5\u8b58\u84b8\u7559\uff08Distilling the Knowledge from a Brain\uff09 &#8211; \u6e96\u5099-"},"content":{"rendered":"<h2>\u77e5\u8b58\u306e\u84b8\u7559\uff08Knowledge Distillation\uff09\u3068\u306f\uff1f<\/h2>\n<p>Deep learning\u306e\u4e16\u754c\u3067\u306f\u77e5\u8b58\u306e\u84b8\u7559\uff08Knowledge Distillation\uff09\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3002\u84b8\u7559\u3068\u3044\u3046\u3068\u975e\u5e38\u306b\u304b\u3063\u3053\u3088\u3044\u97ff\u304d\u306a\u306e\u3060\u304c\u3001\u3084\u3063\u3066\u3044\u308b\u306e\u306f\u300c\u5927\u304d\u306a\u30e2\u30c7\u30eb\u300d\u3092\u7528\u3044\u3066\u300c\u5c0f\u3055\u306a\u30e2\u30c7\u30eb\u300d\u3092\u300c\u52b9\u7387\u7684\u306b\u5b66\u7fd2\u30fb\u69cb\u7bc9\u300d\u3059\u308b\u3053\u3068\u3067\u3042\u308b\u3002<br \/>\n\u30d0\u30e9\u306e\u75c5\u6c17\u8a3a\u65ad\u30e2\u30c7\u30eb\u306f<a href=\"https:\/\/staka.jp\/wordpress\/?p=81\">\u4ee5\u524d\u7d39\u4ecb\u3057\u305f\u3088\u3046\u306b<\/a>\u6b21\u306e\u624b\u9806\u3067\u69cb\u7bc9\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u30c7\u30fc\u30bf\uff08\u5199\u771f\uff09\u3092\u96c6\u3081\u3066\u3001\u30e9\u30d9\u30eb\uff08\u75c5\u6c17\u306e\u6709\u7121\u306a\u3069\uff09\u3092\u4eba\u304c\u8a2d\u5b9a\u3059\u308b\uff08\u30cf\u30f3\u30c9\u30e9\u30d9\u30ea\u30f3\u30b0\uff09\u3002<\/li>\n<li>\u30cf\u30f3\u30c9\u30e9\u30d9\u30ea\u30f3\u30b0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u7528\u3044\u3066\u3001\u6559\u5e2b\u3042\u308a\u5b66\u7fd2\u3092\u5229\u7528\u3057\u3001\u690d\u7269\u306e\u8449\u304c\u75c5\u6c17\u304b\u5426\u304b\u3092\u5224\u5225\u3059\u308b\u591a\u5024\u5206\u985e\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u3067\u69cb\u7bc9\u3057\u305f\u30d0\u30e9\u306e\u75c5\u6c17\u8a3a\u65ad\u30e2\u30c7\u30eb\u306fInception V3\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u304a\u308a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u898f\u6a21\u304c\u5927\u304d\u3044\uff08<a href=\"https:\/\/keras.io\/ja\/applications\/#documentation-for-individual-models\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u898f\u6a21\u306e\u60c5\u5831<\/a>\uff09\u3002\u3059\u306a\u308f\u3061\u3001\u9ad8\u7cbe\u5ea6\u3060\u304c\u4f4e\u901f\u5ea6\u3067\u3042\u308b\u3002\u30d0\u30e9\u306e\u75c5\u6c17\u8a3a\u65ad\u30e2\u30c7\u30eb\u3092\u30b9\u30de\u30db\u306b\u5c55\u958b\u3057\u305f\u3044\u5834\u5408\u3001\u82e5\u5e72\u7cbe\u5ea6\u3092\u843d\u3068\u3057\u3066\u3067\u3082\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u898f\u6a21\u304c\u5c0f\u3055\u304f\u9ad8\u901f\u306a\u30e2\u30c7\u30eb\uff08\u4f8b\u3048\u3070MobileNet\uff09\u3092\u4f7f\u3044\u305f\u304f\u306a\u308b\u3002\u666e\u901a\u306f\u30c7\u30fc\u30bf\u3060\u3051\u518d\u5229\u7528\u3057\u3066\u30e2\u30c7\u30eb\u306f\u5b66\u7fd2\u3057\u306a\u304a\u3059\u3068\u3044\u3046\u30d7\u30ed\u30bb\u30b9\u304c\u5fc5\u8981\u3068\u306a\u308b\u304c\u3001\u84b8\u7559\u3092\u7528\u3044\u308b\u3068\u52b9\u7387\u7684\u306a\u69cb\u7bc9\u304c\u53ef\u80fd\u3068\u306a\u308b\u3002\u3056\u3063\u304f\u308a\u3068\u3057\u305f\u4ed5\u7d44\u307f\u306f\u6b21\u306e\u901a\u308a\u3067\u3042\u308b\u3002<\/p>\n<ol>\n<li>\u75c5\u6c17\u8a3a\u65ad\u30e2\u30c7\u30eb(Inception V3 \/ \u5148\u751f)\u306b\u5b66\u7fd2\u7528\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u3001\u305d\u306e\u753b\u50cf\u306b\u5bfe\u3059\u308b\u300c\u5065\u5eb7\u30fb\u9ed2\u661f\u75c5\u30fb\u3046\u3069\u3093\u7c89\u75c5\u30fb\u305d\u306e\u4ed6\u30ab\u30d3\u7cfb\u306e\u75c5\u6c17\u300d\u306e4\u30ab\u30c6\u30b4\u30ea\u306e\u78ba\u7387\u3092\u5f97\u308b\u3002<\/li>\n<li>\u75c5\u6c17\u8a3a\u65ad\u30e2\u30c7\u30eb(Inception V3 \/ \u5148\u751f)\u304c\u51fa\u3057\u305f4\u30ab\u30c6\u30b4\u30ea\u306e\u78ba\u7387\u60c5\u5831\u3082\u7528\u3044\u3066\u75c5\u6c17\u8a3a\u65ad\u30e2\u30c7\u30eb(MobileNet \/ \u751f\u5f92)\u3092\u5b66\u7fd2\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u666e\u901a\u306f\u5065\u5eb7\u304b\u5426\u304b\u3068\u3044\u30460\/1\u306e\u60c5\u5831\u3067\u5b66\u7fd2\u3059\u308b\u304c\u3001\u9ad8\u7cbe\u5ea6\u30e2\u30c7\u30eb\u304c\u8a3a\u65ad\u3057\u305f\u78ba\u7387\u306b\u3082\u6709\u7528\u306a\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u3044\u3046\u30a2\u30a4\u30c7\u30a2\u3067\u3042\u308b\u3002\u5b9f\u969b\u306b\u84b8\u7559\u306f\u52b9\u679c\u304c\u3042\u308a\u3001\u30e2\u30c7\u30eb\u5727\u7e2e\u3092\u3059\u308b\u5834\u5408\u306b\u3088\u304f\u7528\u3044\u3089\u308c\u3066\u3044\u308b\u3002\u8a73\u7d30\u306f<a href=\"https:\/\/software.intel.com\/en-us\/articles\/knowledge-distillation-with-keras\">Intel\u306e\u8a18\u4e8b<\/a>\u304c\u826f\u304f\u307e\u3068\u307e\u3063\u3066\u3044\u3066\u3001keras\u3092\u7528\u3044\u305f\u5b9f\u88c5\u4f8b\u3082\u8f09\u3063\u3066\u3044\u308b\u3002<\/p>\n<h2>\u8133\u304b\u3089\u306e\u77e5\u8b58\u306e\u84b8\u7559\uff08Distilling the Knowledge from a Brain\uff09<\/h2>\n<p>\u30d0\u30e9\u306e\u75c5\u6c17\u8a3a\u65ad\u30b5\u30a4\u30c8\u3092\u4f5c\u3063\u305f\u3068\u304d\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u306f\u3001\u75c5\u6c17\u304b\u5426\u304b\u306e\u30e9\u30d9\u30ea\u30f3\u30b0\u3067\u3042\u308b\u3002\u4e00\u822c\u7684\u306b\u4eba\u9593\u306b\u3088\u308b\u30e9\u30d9\u30ea\u30f3\u30b0\u306f\u9ad8\u30b3\u30b9\u30c8\u3067\u3042\u308a\u3001\u3057\u304b\u3082\u3001\u9593\u9055\u3044\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3002\u30cf\u30f3\u30c9\u30e9\u30d9\u30ea\u30f3\u30b0\u3092\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u306a\u3089\u308f\u304b\u308b\u3068\u601d\u3046\u304c\u3001\u73fe\u5b9f\u306e\u30c7\u30fc\u30bf\u306b\u306f\u5224\u5b9a\u306b\u56f0\u308b\u753b\u50cf\u3082\u591a\u3044\u3002\u52a0\u3048\u3066\u5224\u5b9a\u57fa\u6e96\u306f\u4eba\u306b\u3088\u3063\u3066\u7570\u306a\u3063\u3066\u3044\u308b\u3002\u540c\u75c7\u72b6\u306e\u753b\u50cf\u306b\u7570\u306a\u308b\u30e9\u30d9\u30eb\u304c\u8cbc\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u306f\u5c11\u306a\u304f\u306a\u3044\u3002<br \/>\n\u30cf\u30f3\u30c9\u30e9\u30d9\u30ea\u30f3\u30b0\u306f\u6559\u5e2b\u3067\u3042\u308b\u4eba\u9593\u304b\u3089\u3001\u751f\u5f92\u3067\u3042\u308bDeep Learning\u306a\u5404\u30e2\u30c7\u30eb\u3078\u306e\u60c5\u5831\u4f1d\u9054\u306b\u4ed6\u306a\u3089\u306a\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u306f\u84b8\u7559\u306e\u4ed5\u7d44\u307f\u3082\u5229\u7528\u3067\u304d\u308b\u306f\u305a\u3067\u3042\u308b\u3002\u4eba\u9593\u304c\u4e0b\u3057\u305f0\/1\u306e\u5224\u65ad\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u305d\u308c\u306b\u4ed8\u968f\u3059\u308b\u5224\u65ad\u78ba\u7387\u306e\u60c5\u5831\u3092\u7528\u3044\u308c\u3070\u9ad8\u901f\u30fb\u9ad8\u7cbe\u5ea6\u306a\u30e2\u30c7\u30eb\u304c\u69cb\u7bc9\u3067\u304d\u308b\u306b\u9055\u3044\u306a\u3044\u3002\u554f\u984c\u306f\u5224\u65ad\u78ba\u7387\u306e\u5206\u5e03\u60c5\u5831\u3092\u3069\u3046\u3084\u3063\u3066\u5f97\u308b\u304b\u3067\u3042\u308b\u304c\u3001\u8fd1\u5e74\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306b\u3088\u3063\u3066\u89e3\u6c7a\u3067\u304d\u308b\u3002\u3059\u306a\u308f\u3061\u8133\u6ce2\u3092\u8a08\u308c\u3070\u826f\u3044[1]\u3002<\/p>\n<h2>\u8133\u6ce2\u306e\u6e2c\u5b9a\u3068\u30e9\u30d9\u30ea\u30f3\u30b0<\/h2>\n<p>\u4eca\u56de\u3001\u8133\u6ce2\u306e\u6e2c\u5b9a\u306fNeuroSky\u306eMindWave Mobile 2\u3067\u884c\u3063\u305f\u3002\u3053\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u7528\u3044\u3066\u30cf\u30f3\u30c9\u30e9\u30d9\u30ea\u30f3\u30b0\u6642\u306e\u8133\u6ce2\u3092\u306f\u304b\u308a\u3001\u305d\u306e\u5024\u3092\u30e9\u30d9\u30eb\u306e\u78ba\u5ea6\u306e\u4e00\u3064\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3002MindWave Mobile2\u306f1.5\u4e07\u5186\u304f\u3089\u3044\u3067\u8cfc\u5165\u3067\u304d\u3001python+thinkgear\u3092\u7528\u3044\u3066\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u304c\u53ef\u80fd\u3067\u3042\u308b\uff08serial\u3067\u306f\u306a\u304fpyserial\u304c\u5fc5\u8981\u306a\u3053\u3068\u306b\u6ce8\u610f\uff09\u3002\u306a\u304a\u3001\u672c\u4ef6\u306fMac\u3067\u5b9f\u65bd\u3057\u305f\u306e\u3067Windows\u3067\u306f\u3084\u308a\u65b9\u304c\u7570\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<br \/>\n\u30e9\u30a4\u30d6\u30e9\u30ea\u306fpip\u304b\u3089\u5c0e\u5165\u3067\u304d\u308b\u3002<\/p>\n<pre><span id=\"pip-command\">pip install thinkgear\npip install pyserial\n<\/span><\/pre>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u5c0e\u5165\u5f8c\u3001python\u3092\u7528\u3044\u3066<\/p>\n<pre>device = '\/dev\/tty.MindWaveMobile-SerialPo'\ntg = ThinkGearProtocol(device)\nfor pkt in tg.get_packets():\n  for d in pkt:\n    if isinstance(d, ThinkGearAttentionData):\n      val = d.value\n      now = datetime.datetime.now()\n      print(\"{},{}\".format(now, val))<\/pre>\n<p>\u3068\u8a00\u3046\u611f\u3058\u3067\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u308b\uff08\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u8133\u6ce2\u3068\u3044\u3046\u3088\u308a\u306f\u96c6\u4e2d\u5ea6\u3092\u3068\u3063\u3066\u3044\u308b\uff09<br \/>\n\u4eca\u56de\u306f\u4e0b\u753b\u50cf\u306e\u3088\u3046\u306a\u30e9\u30d9\u30ea\u30f3\u30b0\u7528\u7c21\u6613WEB\u30a2\u30d7\u30ea\u306b\u8133\u6ce2\u53d6\u5f97\u30ed\u30b8\u30c3\u30af\u3092\u7d44\u307f\u8fbc\u307f\u3001\u30e9\u30d9\u30ea\u30f3\u30b0\u5b9f\u65bd\u6642\u306e\u8133\u6ce2\uff08\u7279\u306b\u96c6\u4e2d\u5ea6\uff09\u3092\u8a08\u6e2c\u30fb\u4fdd\u5b58\u3057\u305f\u3002\u30cf\u30f3\u30c9\u30e9\u30d9\u30ea\u30f3\u30b0\u6642\u306b\u306f0\/1\u306a\u75c5\u6c17\u5224\u5b9a\u3060\u3051\u3067\u306a\u304f\u3001\u305d\u306e\u75c5\u6c17\u306e\u9032\u884c\u5ea6\u3082\u9078\u3079\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u8ff7\u3044\u304c\u751f\u3058\u308b\u3068\u8133\u6ce2\u306b\u73fe\u308c\u308b[2]\u3002\u30e2\u30c7\u30eb\u69cb\u7bc9\u306e\u5b66\u7fd2\u6642\u306b\u8133\u6ce2\u60c5\u5831\u3092\u4f75\u7528\u3059\u308b\u3053\u3068\u3067\u3001Deep Learning\u90e8\u306e\u53ce\u675f\u304c\u65e9\u304f\u306a\u308c\u3070\u3001\u8133\u304b\u3089\u306e\u77e5\u8b58\u84b8\u7559\u304c\u3067\u304d\u305f[3]\u3068\u8a00\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/staka.jp\/wordpress\/wp-content\/uploads\/2019\/03\/labeling_with_brainwave.jpg\" \/><br \/>\n\u5b9f\u9a13\u306e\u7d50\u679c\u306f\u6b21\u30da\u30fc\u30b8\u3067\u5831\u544a\u3002<\/p>\n<h2>\u811a\u6ce8<\/h2>\n<p>[1] \u5225\u306b\u8133\u6ce2\u3067\u3042\u308b\u5fc5\u8981\u306f\u7121\u3044\u3002\u3080\u3057\u308d\u3001\u8133\u6ce2\u306f\u8a08\u6e2c\u304c\u96e3\u3057\u304f\u3001\u3053\u306e\u3088\u3046\u306a\u7528\u9014\u306b\u306f\u9069\u3057\u3066\u3044\u306a\u3044\u3002<br \/>\n[2] \u5b9f\u969b\u306e\u3068\u3053\u308d\u73fe\u308c\u305f\u3068\u8a00\u3048\u3070\u73fe\u308c\u305f\u304c\u672c\u5f53\u306b\u8133\u6ce2\u306a\u306e\u304b\u306f\u304b\u306a\u308a\u7591\u554f\u3067\u3042\u308b\u3002\u524d\u8ff0\u306e\u901a\u308a\u3001\u5fc3\u62cd\u3068\u304b\u8840\u5727\u3068\u304b\u76ee\u7dda\u3068\u304b\u5224\u65ad\u307e\u3067\u306e\u6642\u9593\u3068\u304b\u8133\u6ce2\u3088\u308a\u3082\u6e2c\u308a\u3084\u3059\u304f\u3066\u52b9\u679c\u304c\u3042\u308a\u305d\u3046\u306a\u6307\u6a19\u306f\u591a\u6570\u5b58\u5728\u3059\u308b\u3002<br \/>\n[3] \u672c\u4ef6\u304c\u8a87\u5927\u5e83\u544a\u3067\u3042\u308b\u3053\u3068\u306f\u8a8d\u8b58\u3057\u3066\u3044\u308b\u3002\u304c\u3001Deep Learning\u95a2\u4fc2\u306e\u7814\u7a76\u8ad6\u6587\u304b\u3089\u8457\u3057\u304f\u5916\u308c\u305f\u8a00\u8449\u4f7f\u3044\u306f\u3057\u3066\u3044\u306a\u3044\uff08\u3068\u601d\u3046\uff09\u306e\u3067\u6fc0\u3057\u3044\u7a81\u3063\u8fbc\u307f\u306f\u52d8\u5f01\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u77e5\u8b58\u306e\u84b8\u7559\uff08Knowledge Distillation\uff09\u3068\u306f\uff1f Deep learning\u306e\u4e16\u754c\u3067\u306f\u77e5\u8b58\u306e\u84b8\u7559\uff08Knowledge Distillation\uff09\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3002\u84b8\u7559\u3068\u3044\u3046\u3068\u975e\u5e38\u306b\u304b\u3063\u3053\u3088\u3044\u97ff\u304d\u306a\u306e\u3060\u304c\u3001\u3084 &hellip; <a href=\"https:\/\/staka.jp\/wordpress\/?p=246\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u8133\u304b\u3089\u306e\u77e5\u8b58\u84b8\u7559\uff08Distilling the Knowledge from a Brain\uff09 &#8211; \u6e96\u5099-&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[27,28,29,51,84,85],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-11","tag-deeplearning","tag-distillation","tag-distilling-knowledge","tag-neurosky","tag-84","tag-85"],"_links":{"self":[{"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=246"}],"version-history":[{"count":0,"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/246\/revisions"}],"wp:attachment":[{"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staka.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}