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 00:51]
suganmira
homeautomation2017:group3:start [2017/03/11 01:11] (current)
suganmira
Line 1: Line 1:
-=== Group 3  Cognitive Living ===+====== Group 3 Cognitive Living ======
  
-==== The Group ==== 
- ** //- Carl Kugblenu 
-  - Geraldine Villers 
-  - Madhubala Ganesan 
-  - Syed Asif Iqbal//** 
  
-{{ :homeautomation2017:group3:group3.jpg?nolink&500 |}}+===== The Team ===== 
 + ** //    * Carl Kugblenu 
 +  *         Geraldine Villers 
 +  *         Madhubala Ganesan 
 +  *         Syed Asif Iqbal  //** 
 + 
 +{{:homeautomation2017:group3:group3.jpg?500|}}  {{:homeautomation2017:group3:capture.jpg?550|}}
  
 ===== Motivation ===== ===== Motivation =====
Line 16: Line 17:
   * Social – Comfort & Security; Environmental – CO2 emission; Economic – Cost saving   * Social – Comfort & Security; Environmental – CO2 emission; Economic – Cost saving
  
-===== Goals ===== +===== Goals =====   
-  * A comfortable environment – physiologically ambient environment for living+  * A comfortable environment – physiologically ambient environment for living 
   * Safe and Secure living   * Safe and Secure living
   * Energy aware living & steps towards saving energy   * Energy aware living & steps towards saving energy
   * Cost saving by reducing power consumption   * Cost saving by reducing power consumption
   * A system that can automatically understand user’s needs   * A system that can automatically understand user’s needs
 +{{ :homeautomation2017:group3:goal.png?350 |}}
  
 ===== Our Idea ===== ===== Our Idea =====
-We have implemented a system with DHS HomeManager 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.+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|}}
  
 ===== Components Used ===== ===== Components Used =====
   * DHS HomeManager   * DHS HomeManager
-  * Wireless Door / Window Sensor - optical +  * FHEM 
-  * Wireless switch Actuator 1-channel +  * HomeMatic Wireless Door / Window Sensor - optical 
-  * Wireless Temperatue / Humidity sensor indoor+  * HomeMatic Wireless switch Actuator 1-channel 
 +  * HomeMatic Wireless Temperatue / Humidity sensor indoor
   * AXIS M1113 Network Camera   * AXIS M1113 Network Camera
  
 ===== 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!=====
-{{:homeautomation2017:group3:fhem.jpg?nolink&200|}} {{:homeautomation2017:group3:modesss.jpg?nolink&300|}} + 
-{{:homeautomation2017:group3:cam.png?nolink&300|}}+{{:homeautomation2017:group3:fhem.jpg?nolink&400|}}  {{:homeautomation2017:group3:modesss.jpg?nolink&500|}} 
 + 
 +{{:homeautomation2017:group3:cam.png?nolink&600|}}  
  
 ===== Home automation protocols  ===== ===== Home automation protocols  =====
 **LonWorks** **LonWorks**
  
-//What is LonWorks?// +//__What is LonWorks?__// 
-  {{:homeautomation2017:group3:lonworks1.png?nolink&200|}}+ {{ :homeautomation2017:group3:lon.png?nolink&400 |}} 
  
-//Features of LonWorks//+//__Features of LonWorks__//
   * Efficient delivery of small messages.   * Efficient delivery of small messages.
   * Reliable delivery of messages.    * Reliable delivery of messages. 
Line 55: Line 115:
   * Prevent tampering.    * Prevent tampering. 
  
-//Applications://+//__Applications__//
   * Municipal and highway/tunnel/street lighting.   * Municipal and highway/tunnel/street lighting.
   * Heating and air conditioning systems.   * Heating and air conditioning systems.
Line 62: Line 122:
   * Security systems, fire detection and suppression, and newborn location monitoring and alarming.   * Security systems, fire detection and suppression, and newborn location monitoring and alarming.
   * Smart electricity metering   * Smart electricity metering
 +
 +
  
  
 **DASH7 Alliance Protocol** **DASH7 Alliance Protocol**
  
-//Features//+//__Features__//
   *  Is an open source Wireless Sensor and Actuator Network protocol.   *  Is an open source Wireless Sensor and Actuator Network protocol.
   * Built on top of an asynchronous Wireless Sensor Network Media Access Control.   * Built on top of an asynchronous Wireless Sensor Network Media Access Control.
Line 73: Line 135:
   * This technology consists of a tag and a reader. There are two types of tags, active and passive. Passive tags receive their energy from the   readers, when readers emit electromagnetic radiations to detect the tag.   * This technology consists of a tag and a reader. There are two types of tags, active and passive. Passive tags receive their energy from the   readers, when readers emit electromagnetic radiations to detect the tag.
    
-//BLAST Network Technology// +//__BLAST Network Technology__// 
-{{:homeautomation2017:group3:blast.png?nolink&200 |}}+{{ :homeautomation2017:group3:blast.png?nolink&400 |}}
  
-//Applications// + 
-{{:homeautomation2017:group3:app.png?nolink&200 |}}+//__Applications__// 
 +{{ :homeautomation2017:group3:app.png?nolink&700 |}}
  
  
 ===== Code package & Documentation ===== ===== Code package & Documentation =====
-Code Package : {{ :homeautomation2017:group3:cognitiveliving.rar |}} +  * Poster : {{ :homeautomation2017:group3:cognitive_living.png?nolink&400 |}} 
-Presentation Slides : {{ :homeautomation2017:group3:cognitiveliving.pptx |}} +  * Mode Configuration in FHEM (example) : {{ :homeautomation2017:group3:normalmodeconf.jpg?600 |}} 
-Poster : {{ :homeautomation2017:group3:cognitive_living.png?nolink&300 |}}+  * Code Package : {{ :homeautomation2017:group3:ai-service.zip |}} {{ :homeautomation2017:group3:cognitivelivingweb-frontend.zip |}} 
 +  Presentation Slides : {{ :homeautomation2017:group3:cognitiveliving.pptx |}} 
 +  * Report : {{ :homeautomation2017:group3:cognitive-living_report.pdf |}} 
 +  * Energy Analysis : {{ :homeautomation2017:group3:standby-energy-consumption-stats.xlsx |}}