IoT Motion Detection Sensors For Monitoring in A Smart Campus
IoT Motion Detection Sensors For Monitoring in A Smart Campus
http://www.westminster.ac.uk/westminsterresearch
This is a copy of the author’s accepted version of a paper subsequently published in the
proceedings of the 13th Mediterranean Conference on Embedded Computing
(MECO’2024) & International Conference on Cyber-Physical Systems and Internet-of-
Things (CPS&IoT’2024), Budva, Montenegro 11 - 14 Jun 2024.
https://doi.org/10.1109/meco62516.2024.10577922
© 2024 IEEE . This manuscript version is made available under the CC-BY 4.0 license
https://creativecommons.org/licenses/by/4.0/
Abstract—This paper presents the study of the monitoring of As of 2025, more than 30 billion devices will be connected to
student attendance in a Smart Campus using the IoT Motion the internet. While 5G rolls out at neck-breaking speed, the
Detection Sensors, and the implementation of IoT technology in resulting evolution in communications will bring the world a
educational institutions. The proposed solution is far more secure faster, smarter future. By the estimation of 5G Americas and
than the existing RFID monitoring system. The IoT devices are
embedded into the existing campus environment for data to be
analyst firm Omdia, 5G is on track to hit 8 billion connections
collected, transmitted through Wi-Fi using MQTT protocol and by 2028, at its ten-year mark—exceeding LTE’s 10-year
store data in local server. The collected data is then accessible to connection total by more than 2.5 billion.
the management with real time insights and attendance pattern. With the help of the wide arrays of devices connected over the
The proposed solution was tested in a one UG course in real time internet, IoT has greatly transformed sectors such as
over a period of 8 hours (9:00 – 13:00 and 14:00 -18:00). agriculture, healthcare, entertainment, and education [1]. As a
result of the increased data connectivity, communication has
Keywords—Internet of Things (IoT), RFID, MQTT, classroom reached a significant level, which has had enormous practical
occupancy, smart campus. advantages. These devices can monitor and control their
I. INTRODUCTION environment with the help of real-time data inputs from several
other interconnected devices. The education sector has evolved
The recent growing advancements in technology and from traditional blackboards to projectors and online
increase in computational power pose a serious threat to the presentation classes; similarly, IoT can catapult the evolution of
security of user data. The Internet of Things can be the education sector. Even though IoTs are already being
implemented to eliminate cyber security risks to a certain level implemented in educational institutions, such as RFIDs to
and also to make better use of the available resources to monitor attendance and provide access to the facility, the
improve the quality of service. Universities are under pressure educational platform can still be improved by developing a
to make better use of their available resources due to the rising smart environment to monitor and control certain tasks, which
demand for higher education. Even though IoT system may increase security and make better use of resources. With
development and implementation are very popular in education the aid of IoT, academic staff may easily engage with remote
institutions, there is a concern that security is still not given students who are in different locations and control the
enough consideration. Universities are adopting creative instruction in smart classrooms using gestures, speech, and
solutions in today’s rapidly evolving technology landscape to facial recognition. Additionally, they may automatically gather
protect the security of data and replace traditional methods with data from sensors, analyze analytics on student behaviors,
more cost-effective IoT solutions. interest, performance, and engagement, and collect feedback
from students on their interests and the likeability of a teaching
session [1]. Certain schools in China have already started using TABLE I. COMPONENTS REQUIRED
IoT devices to monitor and assess the emotions of the students, Software components Hardware Components
including their mood changes and their attention level. Which Gateway Handset
are processed and sent as feedback to the students and their Docker and Docker containers Raspberry Pi 5
caretakers. This method of using IoT to assess student’s Mosquito (MQTT broker) Raspberry Pi Pico W IoT node
protocol
emotions and distress levels has been proven to improve their Influx DB Micro PIR Motion sensor
academic results. An Internet of Things (IoT) system enables Grafana Breadboard
data interchange across an extensive network and gives users Node Red
management over connected as well as wireless devices.
Through various communication interfaces, data may be
gathered as input, stored in a computer system, processed, and B. IoT System Implementation
utilized by other applications. Wirelessly linked devices As mentioned earlier, we have integrated the Raspberry Pi
provide users with the liberty to function over remote networks Pico W and Micro pir motion sensors together to collect,
with more control, which improves overall productivity [2]. process, share, and store data. The IoT system is equipped with
motion sensors integrated into a Pico W on a single-piece
There are number of available approaches to count the number breadboard such as shown in Fig.1. The sensors are used to
of students in a classroom, such as thermal imaging, ultrasound capture measurements such as student’s motion.
imaging, camera image processing, thermal imaging, and beam The first stage involves storing the student’s details, such as
counters affixed to entryways [3], WiFi-based approach [4], their allotted seat number, student registration number,
and RFID-based attendance system [5]-[9]. Each approach has scheduled classroom, and course timetable. Once the students
its own advantages and disadvantages across various are in their allotted seats, the motion sensor reading gets
dimensions such deployment, privacy, accuracy, cost, power, triggered. The sensor readings are then sent to the MQTT
communications, and operations. For example, using camera- broker and stored in the InfluxDB datastore. The data can then
based image processing is computationally expensive, cameras be sent to the institution's backend server. The architecture of
endanger privacy, thermal and ultrasound imaging and WiFi the IoT system is shown in Figure 1. The sensor data is collected
data have low accuracy. Therefore, understanding both by the first Pico W and is constantly published under the topic
challenges and benefits of various approaches in order to adopt "sensor_mo_data" using the MQTT protocol. In real time,
the most suitable methods is important for the real deployment multiple sensors will be employed to collect attendance from
of classroom occupancy monitoring system. multiple students i.e. desks. All the collected data will be
published under topics (one per IoT node) using the MQTT
This paper describes our experiences in adopting Internet of broker connected via gateway microprocessor.
Things (IoT) motion detection sensors to monitor the Temperature Sensor
attendance of lectures in courses at our university campus in
real time in a smart campus, process the data, present the IoT node
RasP. Pi 5
processed data in a graphical format for easy interpretation, and Rasp Pi Pico W
compare the obtained result with the expected result. To MQTT Broker
determine its accuracy, the data will be collected over a period WIFI
(2 x 4 hours) and then compared to the number of students Motion Sensor WIFI Data Analysis
enrolled in the classes. Section II. will describe the IoT system Gateway
design and architecture. Some experimental results will be
presented in Section III. Data Visualization
Humidity
Sensor Smartphone
II. IOT SYSTEM DESIGN AND ARCHITECTURE WIFI
a)
ACKNOWLEDGMENT
This work was supported by a WIUT-UOW Research
collaboration funded project under grant RCF2022-003.
REFERENCES
[1] C. Harmer, “IoT: A study into the effectiveness of smart classrooms.
[online] Available at:
https://www.researchgate.net/publication/366274611_IoT_A_study_into
_the_effectiveness_of_smart_classrooms”, 2022.
[2] F. J. Perez Montalbo, “An IoT Smart Lighting System for University
Classrooms. International Symposium on Educational Technology
b)
(ISET). [online] doi:https://doi.org/10.1109/ISET49818.2020.00011”,
Figure 4. Student 1 Motion vs. Time slot a) 9:00 – 13:00 and
2020.
b) 14:00 to 18:00
[3] T. Sutjarittham, H. H. Gharakheili, S. S. Kanhere, and V. Sivaraman,
“Data-driven monitoring and optimization of classroom usage in a
smart campus,” in Proc. ACM/IEEE IPSN, Porto, Portugal, 2018, pp.
224–229.
[4] I. P. Mohottige and T. Moors, “Estimating room occupancy in a smart
campus using WiFi soft sensors,” in Proc. IEEE LCN, Chicago, IL,
USA, Oct. 2018, pp. 191–199.
[5] S. Mohite, G. Kulkarni, and R. Sutar,“RFID Security Issues.
International Journal of Engineering Research & Technology (IJERT),
ISSN: 2278-0181, Vol. 2 Issue 9, September - 2013.
[6] G. T. Bharathy, “Smart Attendance Monitoring System using IoT and
RFID. [online] 3(6). doi:https://doi.org/10.35629/5252-030613071313”,
2021.
a) [7] J. Dedy Irawan, “RFID and IOT for Attendance Monitoring System.
ResearchGate. [online]
doi:https://doi.org/10.1051/matecconf/201816401020”, 2018.
[8] S. Rajarshi, A. Ghosh, S. Sounak Dey, M. Das, and A. Chakrabarty, “IoT
& Cloud-based Smart Attendance Management System using RFID.
International Research Journal on Advanced Science Hub , [online]
5(03), pp.111–118. doi:https://doi.org/10.47392/irjash.2023.020”, 2023.
[9] P. Kuppusamy, “Smart Education Using Internet of Things Technology.
Advances in Data Mining and Database Management, [online] pp.385–
412. doi:https://doi.org/10.4018/978-1-5225-8446-9.ch017”, 2019.
b)
Figure 5. Student 2 Motion vs. Time slot a) 9:00 – 13:00 and b) 14:00 to 18:00