meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
homeautomation2017:group3:start [2017/03/03 02:32]
suganmira
homeautomation2017:group3:start [2017/03/11 01:11] (current)
suganmira
Line 26: Line 26:
  
 ===== Our Idea ===== ===== Our Idea =====
-We have implemented a system with DHS HomeManager, FHEM and HomeMatic devices which can provide comfort, security and save energy in a household. We have three operating modes namely : Normal Mode, Shield Mode and Child Mode. Normal Mode is when people are living in the house, so the focus of this mode is comfort. Shield Mode is when no one is at home, so we focus on energy saving & security. Child mode is where a child is left at home alone. So the focus here is comfort, safety & security of the child. We control the AirConditioner / Heating system based on room temperature and humidity values. With the help of Axis M115 camera we show the camera feed to the user at all times. We also detect motion in specific areas of the frame and alert the user in case of abnormal activities in front of the door or if there is an attempt to tamper the camera by email. The system alerts the user if doors and windows are open in Shield & Child mode for safety & security. In addition, the system should be able to predict and adapt itself based on user's behaviour. This proposal is not implemented by has been defined as depicted below.+We have implemented a system with DHS HomeManager, FHEM and HomeMatic devices which can provide comfort, security and save energy in a household. We have three operating modes namely : Normal Mode, Shield Mode and Child Mode. Normal Mode is when people are living in the house, so the focus of this mode is comfort. Shield Mode is when no one is at home, so we focus on energy saving & security. Child mode is where a child is left at home alone. So the focus here is comfort, safety & security of the child. We control the AirConditioner / Heating system based on room temperature and humidity values. With the help of Axis M115 camera we show the camera feed to the user at all times. We also detect motion in specific areas of the frame and alert the user in case of abnormal activities in front of the door or if there is an attempt to tamper the camera by email. The system alerts the user if doors and windows are open in Shield & Child mode for safety & security. In addition, the system should be able to predict and adapt itself based on user's behaviour. 
  
 {{:homeautomation2017:group3:ui.png?500 |}}{{:homeautomation2017:group3:ai.png?350|}} {{:homeautomation2017:group3:ui.png?500 |}}{{:homeautomation2017:group3:ai.png?350|}}
Line 40: Line 40:
 ===== System Architecture===== ===== System Architecture=====
  {{ :homeautomation2017:group3:arch.png?nolink&500 |}}  {{ :homeautomation2017:group3:arch.png?nolink&500 |}}
 +
 +===== Cognitive Prediction (Code Snippet) =====
 +This is the Predition service code sample to train the neural network model with collected home data
 +<code>
 +var brain = require('brain');
 +var fs = require('fs');
 +
 +// Training data for temperature, humidity and switch response
 +var training_data = JSON.parse(fs.readFileSync('training.json', 'utf8'));
 +var net = new brain.NeuralNetwork();
 +
 +// Training the neural network
 +net.train(training_data);
 +
 +// Predict a switch response based on a temperature and humidity input
 +var output = net.run([0.22, 0.11]);     // 0.00112''
 +</code>
 +
 +===== FHEM Definitions (Code Snippet) =====
 +Normal Mode
 +<code>
 +define NormalMode notify DoorWindowSensor {
 +   if (($EVENT eq "closed") && (ReadingsVal("TempHumiditySensor","temperature","") >= 25.0)) {
 +        fhem "set Switch on"
 +        } 
 +   else {
 +       fhem "set Switch off"
 +        }
 +  }
 +</code>
 +
 +Shield Mode
 +<code>
 +define ShieldMode notify MotionSensor {
 +    if (($EVENT eq "motion")) {
 +        fhem "set Switch off"
 +        }
 +  }
 +</code>
 +
 +Child Mode
 +<code>
 +define ChildMode notify DoorWindowSensor {
 +     if (($EVENT eq "open")) {
 +         fhem "set Switch on"
 +         }
 +     else {
 +         fhem "set Switch off"
 +         }
 +  }
 +</code>
 +
  
 ===== It Works!===== ===== It Works!=====
Line 94: Line 146:
   * Poster : {{ :homeautomation2017:group3:cognitive_living.png?nolink&400 |}}   * Poster : {{ :homeautomation2017:group3:cognitive_living.png?nolink&400 |}}
   * Mode Configuration in FHEM (example) : {{ :homeautomation2017:group3:normalmodeconf.jpg?600 |}}   * Mode Configuration in FHEM (example) : {{ :homeautomation2017:group3:normalmodeconf.jpg?600 |}}
-  * Code Package : {{ :homeautomation2017:group3:cognitiveliving.rar |}}+  * Code Package : {{ :homeautomation2017:group3:ai-service.zip |}} {{ :homeautomation2017:group3:cognitivelivingweb-frontend.zip |}}
   * Presentation Slides : {{ :homeautomation2017:group3:cognitiveliving.pptx |}}   * Presentation Slides : {{ :homeautomation2017:group3:cognitiveliving.pptx |}}
 +  * Report : {{ :homeautomation2017:group3:cognitive-living_report.pdf |}}
   * Energy Analysis : {{ :homeautomation2017:group3:standby-energy-consumption-stats.xlsx |}}   * Energy Analysis : {{ :homeautomation2017:group3:standby-energy-consumption-stats.xlsx |}}