IoT and Edge AI for Quail Environmental Monitoring and Stress-Related Behaviour Classification
DOI:
https://doi.org/10.58797/cser.040105Keywords:
computer vision, edge AI, Internet of Things, quail behaviour, technology-enhanced learningAbstract
Temperature and humidity readings can show changes inside a quail cage, but they do not tell us how the birds are responding to those conditions. This study developed a low-cost monitoring system that combines environmental sensing with image-based analysis of quail behaviour. A DHT22 sensor measured cage temperature and humidity, while an ESP32 collected and transmitted the readings. A Raspberry Pi 4 processed images captured by a USB camera and ran a Convolutional Neural Network (CNN) based on MobileNet to classify quail behaviour into three operational categories: Normal, Stress, and Aggressive. Environmental readings and classification results were sent through MQTT, stored in a MySQL database, and displayed together on a web dashboard. The system also generated an alert when an abnormal condition was detected. In five comparisons with reference instruments, the DHT22 showed average errors of 0.36% for temperature and 0.38% for humidity. The MobileNet model reached an aggregate validation accuracy of 91.3% on 1,200 labelled images. The average time from image capture to alert delivery was 4.7 seconds. These results show that environmental data and behavioural classification can be processed together on a Raspberry Pi-based platform under the tested conditions. The system was developed for quail monitoring, but its combination of sensors, real-time data, IoT communication, and image classification could also be used as a practical context for interdisciplinary learning.
References
Aristeidou, M., Lorke, J., & Ismail, N. (2023). Citizen science: Schoolteachers’ motivation, experiences, and recommendations. International Journal of Science and Mathematics Education, 21, 2067–2093. https://doi.org/10.1007/s10763-022-10340-z
Batool, F., Bilal, R. M., Hassan, F. U., Nasir, T. A., Rafeeque, M., Elnesr, S. S., Farag, M. R., Mahgoub, H. A. M., Naiel, M. A. E., & Alagawany, M. (2023). An updated review on behavior of domestic quail with reference to the negative effect of heat stress. Animal Biotechnology, 34(2), 424–437. https://doi.org/10.1080/10495398.2021.1951281
Benita, F., Virupaksha, D., Wilhelm, E., & Tunçer, B. (2021). A smart learning ecosystem design for delivering data-driven thinking in STEM education. Smart Learning Environments, 8, 11. https://doi.org/10.1186/s40561-021-00153-y
Bhujel, A., Wang, Y., Lu, Y., Morris, D., & Dangol, M. (2025). A systematic survey of public computer vision datasets for precision livestock farming. Computers and Electronics in Agriculture, 229, 109718. https://doi.org/10.1016/j.compag.2024.109718
Cakic, S., Popovic, T., Krco, S., Nedic, D., Babic, D., & Jovovic, I. (2023). Developing edge AI computer vision for smart poultry farms using deep learning and HPC. Sensors, 23(6), 3002. https://doi.org/10.3390/s23063002
Campbell, M., Miller, P., Díaz-Chito, K., Hong, X., McLaughlin, N., Parvinzamir, F., Martínez Del Rincón, J., & O’Connell, N. (2024). A computer vision approach to monitor activity in commercial broiler chickens using trajectory-based clustering analysis. Computers and Electronics in Agriculture, 217, 108591. https://doi.org/10.1016/j.compag.2023.108591
Cheng, C.-C., Wang, J.-S., Zhai, X., & Yang, Y.-T. C. (2025). AI literacy and gender equity in elementary education: A quasi-experimental study of a STEAM–PBL–AIoT course with questionnaire validation. International Journal of STEM Education, 12, 50. https://doi.org/10.1186/s40594-025-00574-y
Duenk, P., Ellen, E. D., de Jong, I. C., & van der Sluis, M. (2024). Research note: Effects of high barn temperature on group-level dispersion and individual activity in broiler chickens. Poultry Science, 103(8), 103901. https://doi.org/10.1016/j.psj.2024.103901
Dvir, M., & Tsybulsky, D. (2025). Facilitating the design and analysis of middle school students’ reasoning in the context of citizen science: A framework of the interrelations between statistical, scientific, and nature of science reasoning with data-based claims. Science & Education, 34, 4545–4581. https://doi.org/10.1007/s11191-025-00637-0
Elwakeel, A. E. (2025). A smart automatic control and monitoring system for environmental control in poultry houses integrated with earlier warning system. Scientific Reports, 15, 31630. https://doi.org/10.1038/s41598-025-17074-2
Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017). On calibration of modern neural networks. Proceedings of the 34th International Conference on Machine Learning, 70, 1321–1330. https://proceedings.mlr.press/v70/guo17a.html
Kjelvik, M. K., & Schultheis, E. H. (2019). Getting messy with authentic data: Exploring the potential of using data from scientific research to support student data literacy. CBE—Life Sciences Education, 18(2), es2. https://doi.org/10.1187/cbe.18-02-0023
Ko, K. I., & Lee, M. H. (2025). MQTT-based architecture for real-time data collection and anomaly detection in smart livestock housing. Sensors, 25(23), 7186. https://doi.org/10.3390/s25237186
Merenda, V. R., Bodempudi, V. U. C., Pairis-Garcia, M. D., & Li, G. (2024). Development and validation of machine-learning models for monitoring individual behaviors in group-housed broiler chickens. Poultry Science, 103(12), 104374. https://doi.org/10.1016/j.psj.2024.104374
Modak, M., Pritom, M. M., Banik, S. C., & Rabbi, M. S. (2025). Internet of Things-based health surveillance systems for livestock: A review of recent advances and challenges. IET Wireless Sensor Systems, 15(1), e70013. https://doi.org/10.1049/wss2.70013
Musavi, M., Friess, W. A., James, C., & Isherwood, J. C. (2018). Changing the face of STEM with stormwater research. International Journal of STEM Education, 5, 2. https://doi.org/10.1186/s40594-018-0099-2
Nasiri, A., Zhao, Y., & Gan, H. (2024). Automated detection and counting of broiler behaviors using a video recognition system. Computers and Electronics in Agriculture, 221, 108930. https://doi.org/10.1016/j.compag.2024.108930
Nsabiyeze, A., Zhang, M., Li, J., Zhao, Q., & Zhang, X. (2025). Precision livestock farming for climate-resilient livestock management: A review of real-time monitoring and decision support systems. Journal of Cleaner Production, 524, 146454. https://doi.org/10.1016/j.jclepro.2025.146454
Oso, O. M., Mejia-Abaunza, N., Bodempudi, V. U. C., Chen, X., Chen, C., Aggrey, S. E., & Li, G. (2025). Automatic analysis of high, medium, and low activities of broilers with heat stress operations via image processing and machine learning. Poultry Science, 104(4), 104954. https://doi.org/10.1016/j.psj.2025.104954
Paneru, B., Dhungana, A., Dahal, S., Ritz, C. W., Kim, W., Liu, T., & Chai, L. (2026). Computer vision models for precision poultry farming: A narrative review of behavioral and welfare monitoring studies. Poultry Science, 105(7), 106887. https://doi.org/10.1016/j.psj.2026.106887
Provolo, G., Brandolese, C., Grotto, M., Marinucci, A., Fossati, N., Ferrari, O., Beretta, E., & Riva, E. (2025). An Internet of Things framework for monitoring environmental conditions in livestock housing to improve animal welfare and assess environmental impact. Animals, 15(5), 644. https://doi.org/10.3390/ani15050644
Restrepo-Arias, J., Branch-Bedoya, J., & Awad, G. (2024). Image classification on smart agriculture platforms: Systematic literature review. Artificial Intelligence in Agriculture, 13, 1–17. https://doi.org/10.1016/j.aiia.2024.06.002
Shahab, H., Iqbal, M., Sohaib, A., Khan, F. U., & Waqas, M. (2024). IoT-based agriculture management techniques for sustainable farming: A comprehensive review. Computers and Electronics in Agriculture, 220, 108851. https://doi.org/10.1016/j.compag.2024.108851
Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https://doi.org/10.1016/j.ipm.2009.03.002
Tong, Q., Wang, J., Yang, W., Wu, S., Zhang, W., Sun, C., & Xu, K. (2024). Edge AI-enabled chicken health detection based on enhanced FCOS-Lite and knowledge distillation. Computers and Electronics in Agriculture, 226, 109432. https://doi.org/10.1016/j.compag.2024.109432
Williams, K. A., Hall, T. E., & O’Connell, K. (2021). Classroom-based citizen science: Impacts on students’ science identity, nature connectedness, and curricular knowledge. Environmental Education Research, 27(7), 1037–1053. https://doi.org/10.1080/13504622.2021.1927990
Yang, X., Bist, R. B., Paneru, B., Liu, T., Applegate, T., Ritz, C., Kim, W., Regmi, P., & Chai, L. (2024). Computer vision-based cybernetics systems for promoting modern poultry farming: A critical review. Computers and Electronics in Agriculture, 225, 109339. https://doi.org/10.1016/j.compag.2024.109339
Yang, X., Bist, R., Paneru, B., & Chai, L. (2024). Monitoring activity index and behaviors of cage-free hens with advanced deep learning technologies. Poultry Science, 103(11), 104193. https://doi.org/10.1016/j.psj.2024.104193
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Inna Novianty, Ahmad Fauzan, Daffa Ardyana Eka Putra, Muhammad Fadhil Al Faruq, Muhammad Faza Elrahman, Radyanka Irza Pramono, Raqhim Putra Al Rusdi, Zulvian Hardhan, Lathifunnisa Fathonah, Faldiena Marcelita, Gema Parasti Mindara, Shelvie Nidya Neyman

This work is licensed under a Creative Commons Attribution 4.0 International License.