Research Article

Enhanced Intelligent Smart Home Control and Security System Based on Deep Learning Model

Algorithm 1

MufHAS (home control, monitoring, and security) algorithm
1: Begin
2: Define parameters
3: Initialize EHA and HSD
4: Establish and confirm the status of
5: If
6:  Evaluate the initial state of Ha;
7:  if(where = number of configured home appliances)
8:   Start MufHAS
9:  Else, go to step 4
10: End if
11: if not
  go step 4
12: Evaluate the initial state of Hs;
13: If(where = number of home sensors and detectors)
14:  Connect MufHAS to the internet
15:  Acquire sensor data
16: Else, go to step 4
17: If is_connected(MufHAS)
19:  Get the values for
20:  Upload data to
21:  Update status of Hs in MufHAS
22:  Display graphical status of Hs in MufHAS
23:  Synchronize data to CS
24: Else, go to step 12
  End if
25: Case 1: (LDR)
26: if(D=1),then
27:  Notify the user, “It’s DARK, Turn on the LIGHTS.
28: Else
29:  Notify the user “It’s BRIGHT, Turn off the LIGHTS.
30: break;
31: Case 2: (Home security)
32:  Ensure the camera is ON
33: IfM is detected,
   Notify via iHOCS and apply SVM
34: If
35:  Mute alarm
36: Else,
   Notify user via email “TOSIN: Motion detected”
37:  Raise alarm and send picture to email
38: end if
38 User monitors Ha and Hs via app
40: Remotely control the home
41: End