Research Article
Enhanced Intelligent Smart Home Control and Security System Based on Deep Learning Model
Algorithm 2
CNN-based home security algorithm
1: Begin | 2: Define parameters | 3: Initialize Ms and Cam | 4: Establish and confirm the status of | 5: If | 6: Evaluate the initial state of the home | 7: If the camera and motion sensor are active | 8: Start MufHAS security | 9: Else, go to step 4 | 10: end if | 11: whileMs is ON | 12: for each object detected do | 13: if cam is on sleep mode; | 14: trigger ON | 15: else | 16: Continue streaming | 17: end if | 18: Capture image | 19: Extract region of interest | 20: Apply the trained CNN model | 21: if | 22: Save to cloud | 23: else, | 24: Raise an alarm and save the captured picture | 25: end if | 26: End |
|