====== Group 3 : Cognitive Living ====== ===== The Team ===== ** // * Carl Kugblenu * Geraldine Villers * Madhubala Ganesan * Syed Asif Iqbal //** {{:homeautomation2017:group3:group3.jpg?500|}} {{:homeautomation2017:group3:capture.jpg?550|}} ===== Motivation ===== * Increased use of Electronic devices for the household * Existing Home Automation systems are designed for specific purposes – comfort / security / cost saving * Need for an integrated system which serves all these purposes * Users’ needs change from time to time. So there is a need for self adapting system * Social – Comfort & Security; Environmental – CO2 emission; Economic – Cost saving ===== Goals ===== * A comfortable environment – physiologically ambient environment for living * Safe and Secure living * Energy aware living & steps towards saving energy * Cost saving by reducing power consumption * A system that can automatically understand user’s needs {{ :homeautomation2017:group3:goal.png?350 |}} ===== 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. {{:homeautomation2017:group3:ui.png?500 |}}{{:homeautomation2017:group3:ai.png?350|}} ===== Components Used ===== * DHS HomeManager * FHEM * HomeMatic Wireless Door / Window Sensor - optical * HomeMatic Wireless switch Actuator 1-channel * HomeMatic Wireless Temperatue / Humidity sensor indoor * AXIS M1113 Network Camera ===== System Architecture===== {{ :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 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'' ===== FHEM Definitions (Code Snippet) ===== Normal Mode define NormalMode notify DoorWindowSensor { if (($EVENT eq "closed") && (ReadingsVal("TempHumiditySensor","temperature","") >= 25.0)) { fhem "set Switch on" } else { fhem "set Switch off" } } Shield Mode define ShieldMode notify MotionSensor { if (($EVENT eq "motion")) { fhem "set Switch off" } } Child Mode define ChildMode notify DoorWindowSensor { if (($EVENT eq "open")) { fhem "set Switch on" } else { fhem "set Switch off" } } ===== It Works!===== {{:homeautomation2017:group3:fhem.jpg?nolink&400|}} {{:homeautomation2017:group3:modesss.jpg?nolink&500|}} {{:homeautomation2017:group3:cam.png?nolink&600|}} ===== Home automation protocols ===== **LonWorks** //__What is LonWorks?__// {{ :homeautomation2017:group3:lon.png?nolink&400 |}} //__Features of LonWorks__// * Efficient delivery of small messages. * Reliable delivery of messages. * Duplicate message detection. * Multiple communications media. * Low installation and maintenance cost * Efficient use of channel bandwidth. * Prevent tampering. //__Applications__// * Municipal and highway/tunnel/street lighting. * Heating and air conditioning systems. * Subway train control. * Stadium lighting and speaker control. * Security systems, fire detection and suppression, and newborn location monitoring and alarming. * Smart electricity metering **DASH7 Alliance Protocol** //__Features__// * Is an open source Wireless Sensor and Actuator Network protocol. * Built on top of an asynchronous Wireless Sensor Network Media Access Control. * This standard was mainly used for military logistics. * It uses Generally Radio Frequency Identification technology, which is used for locating and tracking objects in a variety of applications. * 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__// {{ :homeautomation2017:group3:blast.png?nolink&400 |}} //__Applications__// {{ :homeautomation2017:group3:app.png?nolink&700 |}} ===== Code package & Documentation ===== * Poster : {{ :homeautomation2017:group3:cognitive_living.png?nolink&400 |}} * Mode Configuration in FHEM (example) : {{ :homeautomation2017:group3:normalmodeconf.jpg?600 |}} * 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 |}}