Table of Contents

Group 3 : Cognitive Living

The Team

* Carl Kugblenu * Geraldine Villers * Madhubala Ganesan * Syed Asif Iqbal

Motivation

Goals

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.

Components Used

System Architecture

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!

Home automation protocols

LonWorks

What is LonWorks?

Features of LonWorks

Applications

DASH7 Alliance Protocol

Features

BLAST Network Technology

Applications

Code package & Documentation