Intelligent Child Safety System Using Machine Learning in IoT Devices
Intelligent Child Safety System Using Machine Learning in IoT Devices
Abstract—Child safety and tracking is of utmost importance prove to be an additional feature in over-all monitoring of the
as children are the most vulnerable. With increasing crime rates children’s whereabouts in order to ensure their safety.
such as child kidnaping, child trafficking, child abuse and so on, Location and vitals monitoring give parents the confidence to
the need for an advanced smart security system has become a allow their children to explore the world outside, without the
necessity. With this motivation, a self-alerting “INTELLIGENT
stress and fear of wondering where they are or if they are safe.
CHILD SAFETY SYSTEM USING MACHINE LEARNING
IN IOT DEVICES” is developed to aid parents to monitor and IoT has made this possible with the introduction of wearable
track their children in real time as an alternate to stay beside sensors and various communication standards such as Wi-Fi,
them. This system is intended as an everyday wearable device ZigBee, Bluetooth, GSM etc. Though Wi-Fi and Bluetooth
on the child, in the form of a wrist band, hand glove, arm band are used widely, they appear to be an unreliable medium of
or a belt. The system is designed to continuously monitor the communication between the parent and child as they are not
location and body vitals of children. This electronic system available everywhere. Therefore, an SMS text enabled
comprises of an Arduino controller, a Raspberry-Pi and sensors communication medium between the child's wearable device
to detect the changes in parameters such as temperature, BVP and the parent is ideal as the environment for GSM is almost
(Blood Volume Pulse) and GSR (Galvanic Skin Response). The
present everywhere.
system also uses a GSM and GPS module. Decision Tree
Classifier Algorithm is used to detect any distress situation with This paper discusses about a smart wearable device that
sensor values as inputs. The location of the victim is traced using continuously monitors and tracks children and autonomously
the GPS module and is sent to the registered contact numbers as alerts the concerned using GSM technology. A major
a text message using a GSM module. The novelty of this work advantage of this proposed system over other wearable
lies in the autonomous decision making process with increased devices is that, it does not entirely depend on manual alerting
accuracy. by the victim, but can detect a distress situation
Keywords—Child safety, GPS, GSM, Sensors, Arduino, automatically. This system also takes in the child’s emotional
Raspberry-Pi, Decision Tree Classifier, Autonomous Decision, status into consideration which further aids in detecting
Intelligent Child Safety System using Machine Learning in IoT
alarming situations. These features stand out as the novelty of
Devices.
the proposed system. Further it can be used in any cell phone
I. INTRODUCTION and does not necessarily require a tech proficient individual
to operate.
Children can become victims to harm, injury,
violence and abuse as they are vulnerable by virtue of their II. EXISTING SYSTEMS
young age and evolving capacities. Unfortunately, a child
goes missing once every 10 minutes in India [1]. The “Design and Construction of a Panic Button Alarm
System for Security Emergencies” [3], requires manual
Vital signs are often considered to be the baseline
triggering of the panic button in case of any emergency. In
indicators of a child’s health and mental status. Vital signs addition to that, it uses Wi-Fi which is not as reliable as GSM.
are never stagnant, as they are influenced by a variety of
internal and external factors, which include disease, anxiety, In “A novel approach to provide protection for women by
pain, exercise and even circadian and diurnal rhythms. An using smart security device” [4], the GSR (galvanic skin
unusually high heartbeat, abnormal skin temperature and response) measurement is not used. The GSR proves to be an
emotional disturbance helps to detect the abnormal influential parameter in determining emotional stress. In
movement of the child while he/she is victimized. Real time addition to this, usage of a threshold may lead to false alarms.
monitoring of vitals has been made possible with various U. Chowdhury et al [5] considered the usage of heart rate
applications in the domain of IoT. but the GSR was not taken into account. A common drawback
WHDs (Wearable Health Devices) [2] is an emerging of all the existing systems is the use of a threshold to detect an
technology that enables continuous ambulatory monitoring of abnormal situation. This is inaccurate as it can lead to many
human vital signs when children are away from home and false alarms and the values of some vital parameters may even
parents. Incorporating location tracking with WHDs can remain normal or fall below the threshold during an
This work was funded by the SSN Trust
978-1-7281-9180-5/20/$31.00 ©2020 IEEE
Authorized licensed use limited to: Chaitanya Bharathi Institute of Tech - HYDERABAD. Downloaded on October 17,2024 at 08:51:25 UTC from IEEE Xplore. Restrictions apply.
emergency. These limitations can be overcome by IV. DATA ACQUISITION UNIT
incorporating an intelligent system using machine learning
A. Arduino Nano
III. PROPOSED SYSTEM The Arduino Nano shown in Fig.3 is a microcontroller
A. Flow of Data board based on the ATmega328. Primarily it is used to accept
the analog signals from various sensors, forward them to the
This project involves three stages of operation namely, Raspberry-Pi for classification and trigger the GSM module
data acquisition, data classification and alert notification. based upon the results of the classification. It also houses an
Values of the body vitals are obtained using wearable sensors emergency button for manual triggering, buzzer for alarming
connected to a micro-controller. Classification of the obtained in the proximity and LEDs for status indication purposes.
data is done using a processing unit. An alert notification is
sent when the result from the classification is abnormal.
B. System Architecture
Fig. 3. Arduino Nano micro-controller
B. Raspberry Pi 3 Model B
The Raspberry-Pi shown in Fig.4 is a series of small
single-board computers. The function of the Raspberry-Pi in
the proposed system is to run the machine learning model and
predict the distress situation with more accuracy. A pre-
trained model is loaded into it and is used for prediction.
Authorized licensed use limited to: Chaitanya Bharathi Institute of Tech - HYDERABAD. Downloaded on October 17,2024 at 08:51:25 UTC from IEEE Xplore. Restrictions apply.
D. Temperature sensor
Skin temperature is the temperature of the outermost G. GPS Module
surface of the body. Normal human skin temperature on the GPS (Global Positioning System) is a satellite-based
trunk of the body varies between 33.5 to 36.9 °C (92.3 to system that uses satellites and ground stations to measure and
98.4 °F) [7]. This work uses LM35 temperature sensor to compute its position on Earth. GPS receiver receives
measure skin temperature. information signals from GPS satellites and calculates the
location in terms of latitude and longitude [10]. NEO-6M
GPS chip is used for this project. It has a high level of
sensitivity i.e. -161 dB tracking.
Authorized licensed use limited to: Chaitanya Bharathi Institute of Tech - HYDERABAD. Downloaded on October 17,2024 at 08:51:25 UTC from IEEE Xplore. Restrictions apply.
outcome or class. The topmost node in a decision tree is
known as the root node. It works by partitioning the attribute
value. The partitions are carried out in a recursive
manner. This model running in the Raspberry-Pi has been
implemented using python with the machine learning library,
scikit-learn.
Authorized licensed use limited to: Chaitanya Bharathi Institute of Tech - HYDERABAD. Downloaded on October 17,2024 at 08:51:25 UTC from IEEE Xplore. Restrictions apply.
FN) of each class (0 or 1). From the confusion matrix, we get B. Autonomous alerting
the model’s performance through the following metrics: The autonomous working of the system was tested with
1. Precision: It is the ability of a classifier to label an three subjects of age 12, 17 and 15 years respectively. Since
instance positive that is actually positive. For each the simulation of a real life danger situation is difficult, the
class, it is given by subjects were made to watch short video clips which induce
fear. These short video clips were taken from YouTube for
ܶܲ testing. In table 3, ‘1’ indicates that an alert was sent and ‘0’
ൌ ሺͳሻ
ܶܲ ܲܨ indicates that an alert was not sent.
2. Recall: It is the ability of a classifier to find all TABLE III. TESTING OF THE SYSTEM
positive instances. For each class, it given by
Subject Sex Age Fear Inducing Video Clips Average
No. No. No. No. No. (out of
ܶܲ 5)
ൌ ሺʹሻ 1 2 3 4 5
ܶܲ ܰܨ 1 F 12 1 1 1 1 1 5
2 M 17 1 0 1 1 1 4
3. F1 Score: It is the weighted harmonic mean of
Precision and Recall. For each class, it is given by 3 F 15 1 1 1 1 1 5
C. Location Request
The Fig.14 depicts the scenario when the message “LOC”
was sent to the system. The location of the child was sent back
by the system.
Authorized licensed use limited to: Chaitanya Bharathi Institute of Tech - HYDERABAD. Downloaded on October 17,2024 at 08:51:25 UTC from IEEE Xplore. Restrictions apply.
REFERENCES
[1] Hindustantimes.com, ‘With 60,000 chilrden going missing in India e
every year, social media has propelled child lifting fear’, 2019.
[Online]. Available:
https://www.hindustantimes.com/india-news/with-60-000-children-
going-missing-in-india-every-year-social-media-has-propelled-child-
lifting-fear/story-AvL4yvASeN4fgXQPoAkBKP.html
[2] Dias D, Paulo Silva Cunha J. Wearable Health Devices-Vital Sign
Monitoring, Systems and Technologies. Sensors (Basel),18(8):2414,
2018.
[3] Awodeyi, Afolabi & Moses, Obomighie & Opeyemi, Makinde & A.,
Ben-Obaje & Abayomi-Zannu, Temidayo. Design and Construction of
a Panic Button Alarm System for Security Emergencies. International
Journal of Engineering and Techniques, 4(3):649-652, 2018.
[4] K. Seelam and K. Prasanti. A novel approach to provide protection for
women by using smart security device. 2nd International Conference
on Inventive Systems and Control (ICISC), Coimbatore, pp. 351-357,
2018.
[5] U. Chowdhury et al. Multi-sensor Wearable for Child Safety, IEEE
10th Annual Ubiquitous Computing, Electronics & Mobile
Communication Conference (UEMCON), New York City, NY, USA,pp.
0968-0972, 2019.
[6] S. Cheriyedadh, ‘Photoplethysmography (PPG)’, 2019. [Online].
Available:
Fig. 14. Location Request https://www.news-medical.net/health/Photoplethysmography-
(PPG).aspx
[7] M.J. Price, M. Trbovich, ‘Skin Temperature’, 2016.[Online].
VIII. CONCLUSION AND FUTURE SCOPE Available:
This paper has focused mainly on the autonomous https://www.sciencedirect.com/topics/agricultural-and-biological-
operation of the safety system. Combined usage of three sciences/skin-temperature
different vitals has increased the accuracy of detecting the [8] B. Farnsworth, ‘What is GSR(Galvanic Skin Responese) and how does
it work?’, 2018. [Online]. Available: https://imotions.com/blog/gsr/
abnormal situation. Usage of machine learning has improved
[9] Electronicsforu.com, ‘All You Wanted to Know About GSM Module
the accuracy and made the system intelligent for a general and GPRS Module’, 2019. [Online]. Available:
case compared to a threshold detector when tested on https://www.electronicsforu.com/resources/gsm-module
different sets of subjects. [10] Electronicwings.com, ‘GPS Receiver Module’. [Online]. Available:
A. Future scope https://www.electronicwings.com/sensors-modules/gps-receiver-
module
The system can be miniaturized to make it more [11] K. Sharman, C. Castellini, E.L. van den Broek, A. Ablu-Scheffr, F.
concealing. The efficiency of the system can be increased Schwenker. A dataset of continuous affect annotations and
when it uses a dataset which has been developed by physiological signals for emotion analysis. Scientific Data, 6(1):196,
2019.
monitoring BVP, GSR and temperature of children. By
[12] D. Jones , ‘The Blood Volume Pulse – Biofeedback Basics’,
tuning the parameters of the machine learning model, this 2018.[Online]. Avaible :
work can also be extended as a potential device for ensuring https://www.biofeedback-tech.com/articles/2016/3/24/the-blood-
women safety. volume-pulse-biofeedback-basics
[13] A. Navlani, ‘Decision Tree Classification using Python’,
2018.[Online]. Available :
https://www.datacamp.com/community/tutorials/decision-tree-
classification-python
Authorized licensed use limited to: Chaitanya Bharathi Institute of Tech - HYDERABAD. Downloaded on October 17,2024 at 08:51:25 UTC from IEEE Xplore. Restrictions apply.