PiBase An IoT Based Security System Usin
PiBase An IoT Based Security System Usin
Abstract— Smart environments are environments where digital learning. The application can also be used in other smart
devices are connected to each other over the Internet and operate in environments where authorized access is required. The
sync. Security is of paramount importance in such environments. ecosystem of the application consists of a Raspberry Pi, a
This paper addresses aspects of authorized access and intruder Passive Infrared (PIR) motion sensor, a Raspberry Pi camera
detection for “smart” environments. Proposed is PiBase, an Internet module and an Android mobile phone. The software for the
of Things (IoT)-based app that aids in detecting intruders and system is developed in Java, Python and NodeJS. The user
providing security. The hardware for the application consists of a information is stored in Google Firebase, a cloud environment
Raspberry Pi, a PIR motion sensor to detect motion from infrared
provided by Google. The use of Google’s software solution
radiation in the environment, an Android mobile phone and a
ensures that user information is protected at all times and the
camera. The software for the application is written in Java, Python
and NodeJS. The PIR sensor and Pi camera module connected to the
information is robust to attacks compared with other home-
Raspberry Pi aid in detecting human intrusion. Machine learning grown solutions.
algorithms, namely Haar-feature based cascade classifiers and In the remainder of the article, Section II describes related
Linear Binary Pattern Histograms (LBPH), are used for face work, Section III describes the hardware and software
detection and face recognition, respectively. The app lets the user components, Section IV, the architecture and implementation
create a list of non-intruders and anyone that’s not on the list is and Section V sheds light on future work and concludes the
identified as an intruder. The app alerts the user only in the event of
article.
an intrusion by using the Google Firebase’s Cloud Messaging
service to trigger a notification to the app. The user may choose to II. RELATED WORK
add the detected intruder to the list of non-intruders through the app
to avoid further detections as intruder. Face detection by the Haar Chowdhury, Nooman and Sarker [5] proposed an access
Cascade algorithm yields a recall of 94.6%. Thus, the system is both control system using Raspberry Pi for home security. The
highly effective and relatively low cost. application is setup to send an email and tweet to the user
anytime a face is detected at the door. The user is required to
Keywords— Android, Google Firebase, Haar features, Linear re-tweet with the door lock or open command to trigger the
Binary Pattern Histogram, machine learning, PIR sensor magnetic lock which in turn opens or keeps the door locked.