Design and Implementation of a Cost-Effective, AI-Enabled Smart Security System for Real-Time Threat Detection in Nigerian Rural Communities
Abstract
This study presented the design and implementation of a cost-effective, AI-enabled smart security system tailored for real-time threat detection in Nigerian rural communities. The system integrated an ESP32-CAM microcontroller, a Passive Infra-Red (PIR) Camera Sensor Module, and a Global System for Mobile Communications (GSM) module, employing a quantized MobileNet model for edge-based classification and Short Message Service (SMS) alert transmission without internet dependency. The methodology involved developing a lightweight MobileNet model trained on a 226-sample dataset, achieving a 97.35% training accuracy, and simulating system performance with 30 test instances, resulting in a 93.3% classification accuracy. The key performance metric included a 0.5-second motion-to-capture time, 60–77ms classification time (post-1s load), and an average 3.2-second SMS alert delivery. Results demonstrated robust threat distinction between threats and non-threats, and was validated by a confusion matrix showing 9 True Positives, 19 True Negatives, 1 False Positive, and 1 False Negative. The system, with an estimated cost of less than ₦30,000, was shown to be more affordable and adaptable to resource-constrained areas than many of the current alternatives. The system's performance confirms its potential as a scalable, intelligent security solution for rural Nigeria, despite the fact that it is simulation-based, which restricted real-world environmental testing.
Full Text:
PDFReferences
K. Ohazuruike, F. A. Elechi, and P. N. Eze, "Impact of herdsmen and community clashes on national integration in nigeria," south east political science review, vol. 9, no. 1, 2024. https://journals.npsa-se.org.ng/index.php/SEPSR/article/view/211
A. M. M. I. Chowdhury and E. S. Hasan, "Smart Surveillance Systems: Trends, Challenges and Future Directions," Indonesian Journal of Computer Science, vol. 14, no. 2, pp. 1-10, 2025.
N. J. M. I. I., S. G. Oladele and S. I. O. U. K., "Design and Implementation of Farm Monitoring and Security System," International Journal of Computer Applications, vol. 182, no. 31, pp. 31-36, 2018.
B. N. Mohapatra, S. S. Taware, and P. P. Parab, "Smart Security Alarm System using PIR Sensor," Perspectives in Communication, Embedded-systems and Signal-processing - PiCES (pices), vol. 5, no. 9, pp. 90-92, Jan. 2022, doi: 10.5281/zenodo.5867913.
H. Ahmadu, A. D. Jiya, H. Usman, and I. Yusuf, “Efficacy of a Remote Home-Based Security System on Residential Estate Safety in Minna Metropolis, Niger State, Nigeria,” FNAS Journal of Computing and Applications (FNAS-JCA), vol. 2, no. 2, 2025.
P. G. Gopinath, M. Harika, K. Chandu, K. B. Reddy, B. K. Chandrika, and P. Gurucharan, “Development of GSM-based surveillance system in remote areas using solar power,” Journal of Emerging Technologies and Innovative Research (JETIR), vol. 11, no. 4, pp. 1–10, Apr. 2024. https://www.jetir.org/papers/JETIR2404690.pdf
B. N. Mohapatra, S. S. Taware, and P. P. Parab, “Smart security alarm system using PIR sensor,” pices, vol. 5, no. 9, pp. 90–92, Jan. 2022.
S. A. Akinwumi, A. C. Ezenwosu, T. Omotosho, and O. Adewoyin, “Arduino based security system using passive infrared (PIR) motion sensor,” IOP Conference Series: Earth and Environmental Science, vol. 655, no. 1, p. 012039, Feb. 2021, doi: 10.1088/1755-1315/655/1/012039.
K. Likhitha, S. Malineni, N. Jampani, and N. L. Prasanna, “Home security system using PIR sensor-IoT,” International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 5, no. 2, pp. 497–500, Mar.–Apr. 2019, doi: 10.32628/CSEIT195272.
V. Kothandapani, P. Kodidela, and P. Gurram, “IoT based smart intruder detection system for smart homes,” International Journal of Scientific Research in Science and Technology, Jul. 2021, doi: 10.32628/IJSRST218410.
O. E. Ikpenyi, O. E. Abumere, and J. A. Amusan, “Construction of GSM based home security alert system using passive infrared sensor,” World Journal of Advanced Research and Reviews, vol. 14, no. 2, pp. 648–657, May 2022, doi: 10.30574/wjarr.2022.14.2.0447.
A. R. Axay and A. Purohit, “IoT-based motion sensor camera surveillance system with Telegram control using ESP32-CAM,” 2025. doi: 10.13140/RG.2.2.11183.24484.
C. Azubuike and O. Obiefuna, “Wireless communication: The impact of GSM on the economic lives of the Nigerian rural users,” J. Educ. Soc. Res., vol. 4, no. 7, pp. 79–86, 2014, doi: 10.5901/jesr.2014.v4n7p79.
P. Dutta, U. K. Garapati, B. Sridharan, and V. Agarwal, “A comprehensive review of embedded system design aspects for rural application platform,” Int. J. Comput. Appl., vol. 106, no. 11, pp. 39–44, 2014, doi: 10.5120/18567-9819.
E. Edozie, V. H. U. Eze, M. Imaculate, and W. Janat, “Design and implementation of a smart surveillance security system,” Int. J. Comput. Eng. Technol., vol. 14, no. 1, pp. 28–36, 2023.
F. Kristensen, H. Hedberg, H. Jiang, and P. Nilsson, “An embedded real-time surveillance system: Implementation and evaluation,” J. Signal Process. Syst., vol. 52, no. 1, pp. 75–94, 2008, doi: 10.1007/s11265-007-0100-7.
K. Ohazuruike, F. A. Elechi, and P. N. Eze, “Impact of herdsmen and community clashes on national integration in Nigeria,” South East Political Science Review, vol. 9, no. 1, 2024. [Online]. Available: https://journals.npsa-se.org.ng/index.php/SEPSR/article/view/211
S. G. Oladele and S. I. O. Uk, “Design and implementation of farm monitoring and security system,” Int. J. Comput. Appl., vol. 182, no. 31, pp. 31–36, 2018.
V. N. Pamadi and P. Singh, “Edge AI vs Cloud AI: A comparative study of performance, latency and scalability,” Int. J. Eng. Emerg. Technol., vol. 13, no. 3, 2025.
A. Rana, T. Kumar, and N. Puri, “Design of GSM-based fire detection system using microcontroller and sensors,” in Advances in Manufacturing Technology and Management: Proc. 6th Int. Conf. Advanced Production and Industrial Engineering (ICAPIE), Nov. 2022, pp. 557–568, Springer. doi: 10.1007/978-981-16-9523-0_62.
A. F. Santamaria, P. Raimondo, M. Tropea, F. De Rango, and C. Aiello, “An IoT surveillance system based on a decentralised architecture,” Sensors, vol. 19, no. 6, p. 1462, 2019, doi: 10.3390/s19061462.
P. H. M. Sá, R. B. Loureiro, F. V. N. Lisboa, and R. M. Peixoto, “Efficient deployment of machine learning models on microcontrollers: A comparative study of quantization and pruning strategies,” in Proc. IX Simpósio Internacional de Inovação e Tecnologia (SIINTEC), Oct. 2023. doi: 10.5151/siintec2023-305873.
Refbacks
- There are currently no refbacks.