X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=python_ml%2Fvalidate-detection.py;h=b702721c37e0841041a1927a52e0c537dee8d919;hb=3fd7f009b4c4ece87bb4312cf3784d746258b998;hp=f4a09871cebf8e61549c4b98e150bd31a47c3ba2;hpb=f2adc4163688cb942f207fe6cf91aedc191d07e2;p=pingpong.git diff --git a/python_ml/validate-detection.py b/python_ml/validate-detection.py index f4a0987..b702721 100644 --- a/python_ml/validate-detection.py +++ b/python_ml/validate-detection.py @@ -1,7 +1,8 @@ from datetime import datetime -#path = "/scratch/July-2018/experimental_result/smarthome/" -path = "/scratch/July-2018/experimental_result/standalone/" + +path = "/scratch/July-2018/experimental_result/smarthome/" +#path = "/scratch/July-2018/experimental_result/standalone/" # D-Link plug #device = "dlink-plug/self-test" #fileExperiment = "dlink-plug-nov-7-2018.timestamps" @@ -27,42 +28,88 @@ path = "/scratch/July-2018/experimental_result/standalone/" #device = "dlink-siren/self-test" #fileExperiment = "dlink-siren-nov-9-2018.timestamps" #fileDetection = "phone-side-detection" -device = "dlink-siren/timestamps" -fileExperiment = "dlink-siren-smarthome-nov-10-2018.timestamps" -fileDetection = "dlink-siren-smarthome-nov-10-2018.eth0.phone.detections" +#device = "dlink-siren/timestamps" +#fileExperiment = "dlink-siren-smarthome-nov-10-2018.timestamps" +#fileDetection = "dlink-siren-smarthome-nov-10-2018.eth0.phone.detections" # Kwikset door lock -device = "kwikset-doorlock/self-test" -fileExperiment = "kwikset-doorlock-nov-10-2018.timestamps" -fileDetection = "phone-side-detection" +#device = "kwikset-doorlock/self-test" +#fileExperiment = "kwikset-doorlock-nov-10-2018.timestamps" +#fileDetection = "phone-side-detection" #device = "kwikset-doorlock/timestamps" #fileExperiment = "kwikset-doorlock-smarthome-nov-10-2018.timestamps" #fileDetection = "kwikset-doorlock-smarthome-nov-10-2018.eth0.phone.detections" +# SmartThings plug +#device = "st-plug/self-test" +#fileExperiment = "st-plug-nov-13-2018.timestamps" +#fileDetection = "phone-side-detection" +#device = "st-plug/timestamps" +#fileExperiment = "st-plug-smarthome-nov-13-2018.timestamps" +#fileDetection = "st-plug-smarthome-nov-13-2018.eth0.phone.detections" + # Arlo camera #device = "arlo-camera/self-test" -#fileExperiment = "arlo-camera-aug-10-2018.timestamps" -#fileDetection = "detection-on-training-phone-side" -# Blossom sprinkler -#device = "blossom-sprinkler/self-test" -#fileExperiment = "blossom-sprinkler-aug-13-2018.timestamps" -#fileDetection = "detection-on-training-device-side" -# Nest thermostat +#fileExperiment = "arlo-camera-nov-13-2018.timestamps" +#fileDetection = "phone-side-detection" +#device = "arlo-camera/timestamps" +#fileExperiment = "arlo-camera-smarthome-nov-15-2018.timestamps" +#fileDetection = "arlo-camera-smarthome-nov-15-2018.phone.eth0.detections" +#fileDetection = "arlo-camera-smarthome-nov-15-2018.phone.eth0.detections.range-based.complete" + +# Nest Thermostat #device = "nest-thermostat/self-test" -#fileExperiment = "nest-aug-15-2018.timestamps" -#fileDetection = "detection-on-training-phone-side" +#fileExperiment = "nest-thermostat-nov-15-2018.timestamps" +#fileDetection = "phone-side-detection" +device = "nest-thermostat/timestamps" +fileExperiment = "nest-thermostat-smarthome-nov-16-2018.timestamps" +#fileDetection = "nest-thermostat-smarthome-nov-16-2018.phone.eth0.detections" +fileDetection = "nest-thermostat-smarthome-nov-16-2018.phone.eth0.range-based.detections" + +# TP-Link Bulb +#device = "tplink-bulb/self-test" +#fileExperiment = "tplink-bulb-nov-16-2018.timestamps" +#fileDetection = "phone-side-detection" +#device = "tplink-bulb/timestamps" +#fileExperiment = "tplink-bulb-smarthome-nov-19-2018.timestamps" +#fileDetection = "tplink-bulb-smarthome-nov-19-2018.phone.wlan1.detections" + # Hue bulb #device = "hue-bulb/self-test" #fileExperiment = "hue-bulb-aug-7-2018.timestamps" -#fileDetection = "detection-on-training-phone-side" -# TPLink bulb -#device = "tplink-bulb/self-test" -#fileExperiment = "tplink-bulb-aug-3-2018.timestamps" -#fileDetection = "detection-on-training-phone-side" -# WeMo Insight Plug +#fileDetection = "phone-side-detection" + +# WeMo plug +#device = "wemo-plug/self-test" +#fileExperiment = "wemo-plug-nov-20-2018.timestamps" +#fileDetection = "phone-side-detection" +#device = "wemo-plug/timestamps" +#fileExperiment = "wemo-plug-smarthome-nov-21-2018.timestamps" +#fileDetection = "wemo-plug-smarthome-nov-21-2018.phone.wlan1.detections" + +# WeMo Insight plug #device = "wemo-insight-plug/self-test" -#fileExperiment = "wemo-insight-july-31-2018.timestamps" -#fileDetection = "detection-on-training-device-side" +#fileExperiment = "wemo-insight-plug-nov-21-2018.timestamps" +#fileDetection = "phone-side-detection" +#device = "wemo-insight-plug/timestamps" +#fileExperiment = "wemo-insight-plug-smarthome-nov-22-2018.timestamps" +#fileDetection = "wemo-insight-plug-smarthome-nov-22-2018.phone.wlan1.detections" + +# Blossom sprinkler +#device = "blossom-sprinkler/self-test" +#fileExperiment = "blossom-sprinkler-standalone-jan-9-2019.timestamps" +#fileExperiment = "blossom-sprinkler-standalone-jan-11-2019.timestamps" +#fileExperiment = "blossom-sprinkler-standalone-jan-14-2019.timestamps" +#fileDetection = "phone-side-detection" +#fileDetection = "device-side-detection" +#device = "blossom-sprinkler/timestamps" +#fileExperiment = "blossom-sprinkler-smarthome-jan-10-2019.timestamps" +#fileExperiment = "blossom-sprinkler-smarthome-jan-11-2019.timestamps" +#fileExperiment = "blossom-sprinkler-smarthome-jan-14-2019.timestamps" +#fileDetection = "blossom-sprinkler-smarthome-jan-10-2019.device.wlan1.detections" +#fileDetection = "blossom-sprinkler-smarthome-jan-11-2019.phone.wlan1.detections" +#fileDetection = "blossom-sprinkler-smarthome-jan-14-2019.device.eth0.detections" +#fileDetection = "blossom-sprinkler-smarthome-jan-14-2019.phone.eth0.detections" TIME_WINDOW = 15 # detection/signature window of 15 seconds #NEG_TIME_WINDOW = -15 # detection/signature window of 15 seconds