----------------------------------------------------------------------
丂丂丂丂Interface2018擭6寧崋
丂丂丂丂摿暿婇夋丂僂僃傾儔僽儖偺偨傔偺慻傒崬傒AI惗懱寁應偺尋媶
丂丂丂丂僟僂儞儘乕僪丒僨乕僞
丂丂丂丂IF1806T2
丂丂丂丂Interface曇廤晹
丂丂丂丂CQ弌斉(姅)
丂丂丂丂岞奐丗2018擭04寧25擔
----------------------------------------------------------------------

====================================
僟僂儞儘乕僪丒僒乕價僗偛棙梡幰奺埵
====================================
丂枅搙丆彫帍偛垽撉傪帓傝丆惤偵偁傝偑偲偆偛偞偄傑偡丏
丂偙偺偨傃偼僟僂儞儘乕僪丒僒乕價僗傪偛棙梡偄偨偩偒丆惤偵偁傝偑偲偆偛偞偄傑偡丏
丂昅幰偺偛岤堄偵傛傝丆杮婰帠偺娭楢僨乕僞傪偙偺傾乕僇僀僽偵廂榐偟傑偟偨丏

================
奣梫
================
丂偙偺傾乕僇僀僽偵偼丆昞戣偺婰帠偺拞偱嶌惉偟偨僾儘僌儔儉丒僼傽僀儖傗僨乕僞丒僼傽僀儖偑廂榐偝傟偰偄傑偡丏
丂徻偟偔偼奩摉婰帠傪嶲徠偟偰偔偩偝偄丏
丂傾乕僇僀僽偼丆ZIP宍幃偵傛偭偰埑弅偝傟偰偄傑偡丏

================
摦嶌妋擣
================
丂僾儘僌儔儉偼昅幰偺尦偱摦嶌傪妋擣嵪傒偱偡丏巊梡曽朄偼杮僪僉儏儊儞僩偺屻敿偵婰嵹偑偁傝傑偡丏

=================
傾乕僇僀僽偺撪梕
=================
亸
劌劅Python 乧 慻崬恖岺抦擻 傾儖僑儕僘儉妛廗丆専徹梡 Python/Keras僾儘僌儔儉
劆  劆
劆  劌劅anomaly_detection 乧 怱揹恾堎忢専弌梡僼僅儖僟乮戞俀復乯
劆  劆  劆
劆  劆  劌anomaly_detection_ecg.py 乧 怱揹恾堎忢専弌 儌僨儖惗惉丆妛廗丆昡壙僾儘僌儔儉
劆  劆  劆
劆  劆  劌read_weights.py 乧 廳傒僨乕僞傪撉傒崬傒numpy.array偺儕僗僩傪曉偡僾儘僌儔儉
劆  劆  劆
劆  劆  劌generate_code_ecg.py 乧 廳傒丆僥僗僩僨乕僞偺儅僀僐儞梡C僐乕僪傪惗惉偡傞僾儘僌儔儉
劆  劆  劆
劆  劆  劌load_data_ecg.py 乧 MIT-BIH 偺僒僀僩偐傜怱揹恾僨乕僞傪儘乕僪偡傞僾儘僌儔儉乮嶲峫乯
劆  劆  劆
劆  劆  劌predict_ecg.py 乧 怱揹恾堎忢専弌偺専徹梡僾儘僌儔儉乮嶲峫乯
劆  劆  劆
劆  劆  劌model_weight_ecg.h5 乧 婰帠偱巊梡偟偨廳傒僨乕僞乮hdf5僼僅乕儅僢僩乯
劆  劆  劆
劆  劆  劌model_weight_ecg.pkl 乧 婰帠偱巊梡偟偨廳傒僨乕僞乮pickle僼僅乕儅僢僩乯
劆  劆  劆
劆  劆  劋劅ecg_data 乧 怱揹恾僨乕僞
劆  劆      劌wave_data_234_148000_152000.csv 乧 怱揹恾孭楙僨乕僞
劆  劆      劌wave_data_234_148000_152000.pkl 乧 怱揹恾孭楙僨乕僞
劆  劆      劌wave_data_234_152000_156000.csv 乧 怱揹恾僥僗僩僨乕僞
劆  劆      劌wave_data_234_152000_156000.pkl 乧 怱揹恾僥僗僩僨乕僞
劆  劆      劌wave_data_234_152000_156000_half_norm.csv 乧 怱揹恾僥僗僩僨乕僞乮180sps丆惓婯壔乯
劆  劆      劋wave_data_234_152000_156000_half_norm_Q14.csv 乧 怱揹恾僥僗僩僨乕僞乮180sos丆惓婯壔丆惍悢宆乯
劆  劆
劆  劋劅classification_activity 乧 摦嶌暘椶梡僼僅儖僟乮戞俁復乯
劆      劆
劆      劌classification_act.py 乧 摦嶌暘椶 儌僨儖惗惉丆妛廗丆昡壙僾儘僌儔儉
劆      劆
劆      劌read_weights.py 乧 廳傒僨乕僞傪撉傒崬傒numpy.array偺儕僗僩傪曉偡僾儘僌儔儉
劆      劆
劆      劌load_data_act.py 乧 UCI 偺僒僀僩偐傜僙儞僒僨乕僞傪儘乕僪偡傞僾儘僌儔儉
劆      劆
劆      劌generate_code_act.py 乧 摦嶌僨乕僞偺儅僀僐儞梡C僐乕僪傪惗惉偡傞僾儘僌儔儉
劆      劆
劆      劌predict_act.py 乧 摦嶌暘椶偺専徹梡僾儘僌儔儉乮嶲峫乯
劆      劆
劆      劌model_weight_lstm.h5 乧 婰帠偱巊梡偟偨廳傒僨乕僞乮hdf5僼僅乕儅僢僩乯
劆      劆
劆      劌model_weight_lstm.pkl 乧 婰帠偱巊梡偟偨廳傒僨乕僞乮pickle僼僅乕儅僢僩乯
劆      劆
劆      劋classification_act_gru.py 乧 摦嶌暘椶 儌僨儖惗惉丆妛廗丆昡壙僾儘僌儔儉乮GRU斉乯
劆
劆
劌劅PSoC 乧 慻崬恖岺抦擻 傾儖僑儕僘儉昡壙梡 PSoC儅僀僐儞僾儘僌儔儉
劆  劆
劆  劋劅AI_trial 乧 儚乕僋僗儁乕僗僼僅儖僟
劆      劆
劆      劌AI_trial.cywrk 乧 儚乕僋僗儁乕僗僼傽僀儖
劆      劆
劆      劌劅NeuralNetEval.cydsn 乧 怱揹恾堎忢専弌昡壙梡僾儘僕僃僋僩乮戞俀復乯
劆      劆  劆
劆      劆  劌ecg_data.h 乧 怱揹恾僥僗僩僨乕僞
劆      劆  劆
劆      劆  劌main.c 乧 儊僀儞僾儘僌儔儉
劆      劆  劆
劆      劆  劌main.h 乧 儊僀儞僿僢僟乕僼傽僀儖
劆      劆  劆
劆      劆  劌NeuralNetEval.cydwr 乧 僨僓僀儞儚僀僪儕僜乕僗僼傽僀儖
劆      劆  劆
劆      劆  劌NeuralNetEval.cyprj 乧 僾儘僕僃僋僩僼傽僀儖
劆      劆  劆
劆      劆  劌NeuralNetEval.rpt 乧 價儖僪儗億乕僩僼傽僀儖
劆      劆  劆
劆      劆  劌nn_weights.h 乧 僆乕僩僄儞僐乕僟偺廳傒丆僶僀傾僗僨乕僞
劆      劆  劆
劆      劆  劌劅TopDesign 乧 PSoC僐儞億乕僱儞僩偺夞楬恾僼僅儖僟
劆      劆  劆  劆
劆      劆  劆  劋TopDesign.cysch 乧 夞楬恾僼傽僀儖
劆      劆  劆
劆      劆  劌劅CortexM3 乧 僶僀僫儕僀儊乕僕偑奿擺偝傟偨僼僅儖僟
劆      劆  劆  劋 乧棯
劆      劆  劆
劆      劆  劋劅Generated_Source 乧 帺摦惗惉僼傽僀儖偑奿擺偝傟偨僼僅儖僟
劆      劆      劋 乧棯
劆      劆
劆      劋劅LstmEval.cydsn 乧 摦嶌暘椶昡壙梡僾儘僕僃僋僩乮戞俁復乯
劆          劆
劆          劌adl_data.h 乧 ADL乮Activity of daily living丗擔忢惗妶摦嶌乯僥僗僩僨乕僞
劆          劆
劆          劌LstmEval.cydwr 乧 僨僓僀儞儚僀僪儕僜乕僗僼傽僀儖
劆          劆
劆          劌LstmEval.cyprj 乧 僾儘僕僃僋僩僼傽僀儖
劆          劆
劆          劌LstmEval.rpt 乧 價儖僪儗億乕僩僼傽僀儖
劆          劆
劆          劌lstm_weights.h 乧 LSTM偺廳傒丆僶僀傾僗僨乕僞
劆          劆
劆          劌main.c 乧 儊僀儞僾儘僌儔儉
劆          劆
劆          劌main.h 乧 儊僀儞僿僢僟乕僼傽僀儖
劆          劆
劆          劌劅TopDesign 乧 PSoC僐儞億乕僱儞僩偺夞楬恾僼僅儖僟
劆          劆  劆
劆          劆  劋TopDesign.cysch 乧 夞楬恾僼傽僀儖
劆          劆
劆          劌劅CortexM3 乧 僶僀僫儕僀儊乕僕偑奿擺偝傟偨僼僅儖僟
劆          劆  劋 乧棯
劆          劆
劆          劋劅Generated_Source 乧 帺摦惗惉僼傽僀儖偑奿擺偝傟偨僼僅儖僟
劆              劋 乧棯
劆
劋劅readme.txt 乧 杮僪僉儏儊儞僩

=================
摦嶌妋擣庤弴
=================
侾丏PC忋偱偺怱揹恾堎忢専抦
丂丂丒load_data_ecg.py		僨乕僞傪僟僂儞儘乕僪偡傞乮徣棯壜乯
丂丂丒anomaly_detection_ecg.py	妛廗丆専弌寢壥傪昞帵偡傞
丂丂丒generate_code_ecg.py	C僾儘僌儔儉梡偺僐乕僪傪弌椡偡傞
丂丂丒predict_ecg.py		Keras傪巊傢偢偵梊應張棟傪峴偭偨寢壥傪弌椡偡傞

俀丏PC忋偱偺LSTM傪巊梡偟偨摦嶌暘椶
丂丂丒load_data_act.py		僨乕僞傪僟僂儞儘乕僪偡傞
丂丂丒classification_act.py	妛廗丆暘椶寢壥傪昞帵偡傞
丂丂丒generate_code_act.py	C僾儘僌儔儉梡偺僐乕僪傪弌椡偡傞
丂丂丒predict_act.py		Keras傪巊傢偢偵梊應張棟傪峴偭偨寢壥傪弌椡偡傞

俁丏PC忋偱偺GRU傪巊梡偟偨摦嶌暘椶
丂丂丒load_data_act.py		僨乕僞傪僟僂儞儘乕僪偡傞
丂丂丒classification_act_gru.py	妛廗丆暘椶寢壥傪昞帵偡傞

係丏儅僀僐儞忋偱偺怱揹恾堎忢専抦偺摦揑僔儈儏儗乕僔儑儞
丂丂丒僼僅儖僟
丂丂丂丂\PSoC\AI_trial\NeuralNetEval.cydsn\CortexM3\ARM_GCC_541\Release
丂丂丂丂偵偁傞
丂丂丂丂NeuralNetEval.hex
丂丂丂丂傪丆PSoC僾儘僌儔儅摍偱 CY8CKIT-059 PSoC 5LP Prototyping Kit 偵彂偒崬傓
丂丂丒弌椡摦嶌
丂丂丂丒USB僔儕傾儖傛傝僗僐傾抣偑弌椡偝傟傞偺傪妋擣乮TeraTerm摍偱妋擣乯
丂丂丂丒P0[0]抂巕傪僆僔儘僗僐乕僾偵愙懕偟丆惓偺僷儖僗暆傛傝梊應張棟帪娫傪妋擣
丂丂丂丒P0[1]抂巕傪僆僔儘僗僐乕僾偵愙懕偟丆惓偺僷儖僗暆傛傝妱傝崬傒帪娫傪妋擣
丂丂丂丒P0[4]抂巕偵僆僔儘僗僐乕僾傪愙懕偟丆僗僐傾抣偺傾僫儘僌攇宍傪妋擣

俆丏儅僀僐儞忋偱偺LSTM傪巊梡偟偨摦嶌暘椶偺摦揑僔儈儏儗乕僔儑儞
丂丂丒僼僅儖僟
丂丂丂丂\PSoC\AI_trial\LstmEval.cydsn\CortexM3\ARM_GCC_541\Release
丂丂丂丂偵偁傞
丂丂丂丂LstmEval.hex
丂丂丂丂傪丆PSoC僾儘僌儔儅摍偱 CY8CKIT-059 PSoC 5LP Prototyping Kit 偵彂偒崬傓
丂丂丒弌椡摦嶌
丂丂丂丒USB僔儕傾儖傛傝暘椶寢壥偑弌椡偝傟傞偺傪妋擣乮TeraTerm摍偱妋擣乯
丂丂丂丒P0[0]抂巕傪僆僔儘僗僐乕僾偵愙懕偟丆惓偺僷儖僗暆傛傝梊應張棟帪娫傪妋擣
丂丂丂丒P0[1]抂巕傪僆僔儘僗僐乕僾偵愙懕偟丆惓偺僷儖僗暆傛傝妱傝崬傒帪娫傪妋擣

======================
僩儔僽儖僔儏乕僥傿儞僌
======================

丒僄儔乕乭ModuleNotFoundError: No module named 'pandas.core.indexes'乭偑昞帵偝傟傞
丂仺丂pandas偺僶乕僕儑儞偑屆偔pickle僼僅乕儅僢僩偑懳墳偟偰偄側偄壜擻惈偑偁傝傑偡丏
丂丂丂壓婰僐儅儞僪偵偰丆0.20.3偵傾僢僾僌儗乕僪偟偰偔偩偝偄丏
丂丂丂conda upgrade pandas

丒儅僀僐儞偺摦嶌偑抶偄
丂仺丂Debug價儖僪偱偼抶偔側傝傑偡丏Release價儖僪偺僶僀僫儕傪巊梡偟偰偔偩偝偄丏

======================
摦嶌妋擣帪偺奐敪娐嫬
======================

丒PC1
  丒OS:  Ubuntu 16.04 LTS
  丒CPU: Core i5-7500 3.40GHz
  丒GPU: GeForce GTX 1050
  丒RAM: 8GB
丒Anaconda  Custom (64-bit)
丒Python  3.6.3
丒Keras  2.1.5
丒tensorflow-gpu  1.3.0
丒CUDA  8.0.61
丒cuDNN  6.0.21

丒PC2
  丒OS:  Windows 10 Pro 1703(15063.850)
  丒CPU: Core i5-6200U 2.30GHz
  丒RAM: 8GB
丒Anaconda  4.3.1 (64-bit)
丒Python  3.6.0
丒Keras  2.1.5
丒tensorflow  1.7.0
丒PSoC Creator  4.2 (4.2.0.641)

=================
奐敪娐嫬偺擖庤愭
=================

丒Anaconda
丂https://www.continuum.io/downloads

丒PSoC Creator
丂http://japan.cypress.com/products/psoc-creator-integrated-design-environment-ide

===========================
幚峴偵昁梫側懠偺儔僀僽儔儕
===========================

丒TensorFlow
丂丂- 僀儞僗僩乕儖庤弴
丂丂丂僞乕儈僫儖傑偨偼僐儅儞僪僾儘儞僾僩偵偰壓婰傪擖椡
丂丂丂CPU斉:
丂丂丂丂pip install tensorflow
丂丂丂GPU斉:
丂丂丂丂pip install tensorflow-gpu

丒Keras
丂丂- 僀儞僗僩乕儖庤弴
丂丂丂僞乕儈僫儖傑偨偼僐儅儞僪僾儘儞僾僩偵偰壓婰傪擖椡
丂丂丂丂pip install keras

丒graphviz
丂丂- 僀儞僗僩乕儖庤弴
丂丂丂Linux:
丂丂丂丂僞乕儈僫儖偵偰壓婰傪擖椡
丂丂丂丂丂sudo yum -y install graphviz
丂丂丂Windows:
丂丂丂丂https://graphviz.gitlab.io/_pages/Download/Download_windows.html
丂丂丂丂傛傝
丂丂丂丂丂graphviz-2.38.msi
丂丂丂丂傪僟僂儞儘乕僪偟偰幚峴
	昁梫偵墳偠偰壓婰偺僷僗傪丆僔僗僥儉娐嫬曄悢乽Path乿偵捛壛
	丂C:\Program Files (x86)\Graphviz2.38\bin
丒pydot
丂丂- 僀儞僗僩乕儖庤弴
丂丂丂僞乕儈僫儖傑偨偼僐儅儞僪僾儘儞僾僩偵偰壓婰傪擖椡
丂丂丂丂pip install pydot graphviz

丒wfdb
丂丂- 僀儞僗僩乕儖庤弴
丂丂丂僞乕儈僫儖傑偨偼僐儅儞僪僾儘儞僾僩偵偰壓婰傪擖椡
丂丂丂丂pip install wfdb

丒h5py
丂丂- 僀儞僗僩乕儖庤弴
丂丂丂僞乕儈僫儖傑偨偼僐儅儞僪僾儘儞僾僩偵偰壓婰傪擖椡
丂丂丂丂conda install h5py

===========
挊嶌尃
===========
丂廂榐偟偨僾儘僌儔儉丆僨乕僞偍傛傃僪僉儏儊儞僩側偳偺挊嶌尃偼丆奺挊嶌尃幰乮偡側傢偪昅幰乯偵偁傝傑偡丏
丂Copyright (C) 2018 Tetsuro Tatsuoka

============
柶愑
============
(1)僾儘僌儔儉傗僨乕僞偺巊梡偵傛傝丆巊梡幰偵懝幐偑惗偠偨偲偟偰傕丆挊嶌尃幰偲俠俻弌斉(姅)偼丆偦偺愑擟傪晧偄傑偣傫丏

(2)僾儘僌儔儉傗僨乕僞偵僶僌傗寚娮偑偁偭偨偲偟偰傕丆挊嶌尃幰偲俠俻弌斉(姅)偼丆廋惓傗夵椙偺媊柋傪晧偄傑偣傫丏

--------------------------- 埲忋 ---------------------------------
