Sugeno Fuzzy Logic for IoT-based Chicken Farm Drinking Water Quality Monitoring
Abstract
Introduction: The quality of drinking water plays a crucial role in the health and productivity of broiler chickens. In Indonesia, many poultry farms still rely on manual water testing using litmus paper, which may yield inaccurate results. This study aims to develop an Internet of Things (IoT)-based system integrated with the Sugeno fuzzy logic method to monitor and assess the quality of drinking water for broiler chickens in real time. Methods: An IoT prototype was developed using an ESP32 microcontroller, pH and turbidity sensors, and a cloud-based mobile application. Water quality data from 1,975 samples were collected over three days from a broiler farm in East Kalimantan using water sourced from a former mining lake. The system applies the Sugeno fuzzy inference system with 15 expert-defined rules to classify water quality into four categories: Very Good, Good, Bad, and Very Bad. Performance was evaluated using a Confusion Matrix. Results: The system achieved a classification accuracy of 96.76%, precision of 97.52%, recall of 98.79%, and F1-score of 98.15%. The results demonstrate the system's effectiveness in identifying water quality, with the majority of predictions falling into the correct class. The system also successfully transmitted real-time data to an Android application for monitoring purposes. Conclusions: The integration of IoT and Sugeno fuzzy logic provides a reliable, accurate, and scalable solution for real-time water quality monitoring in poultry farming. This system enhances decision-making for farmers, supports animal welfare, and can be further developed to include additional environmental parameters for broader livestock health monitoring
Downloads
References
H. T. Ciptaningtyas, “IoT-based Smart Irrigation for Allium ascalonicum using Fuzzy Logic,” 2023 8th International Conference on Informatics and Computing, ICIC 2023. 2023, doi: 10.1109/ICIC60109.2023.10382022.
V. Melo, “A Fuzzy Logic Approach for Self-managing Energy Efficiency in IoT Nodes,” IFIP Advances in Information and Communication Technology, vol. 641. pp. 237–251, 2022, doi: 10.1007/978-3-030-96466-5_15.
A. A. M. Kurniawan, “Fuzzy logic method for making push notifications on monitoring system of IoT-based electric truck charging,” Bull. Electr. Eng. Informatics, vol. 14, no. 1, pp. 118–131, 2025, doi: 10.11591/eei.v14i1.7412.
F. Irwanto, “IoT and fuzzy logic integration for improved substrate environment management in mushroom cultivation,” Smart Agric. Technol., vol. 7, 2024, doi: 10.1016/j.atech.2024.100427.
V. Thomopoulos, “Application of Fuzzy logic and IoT in a small-scale Smart Greenhouse System,” Smart Agric. Technol., vol. 8, 2024, doi: 10.1016/j.atech.2024.100446.
N. N. Misra, “IoT, Big Data, and Artificial Intelligence in Agriculture and Food Industry,” IEEE Internet Things J., vol. 9, no. 9, pp. 6305–6324, 2022, doi: 10.1109/JIOT.2020.2998584.
S. Othmen, “Enhancing IoT-Enabled Healthcare Applications by Efficient Cluster Head and Path Selection Using Fuzzy Logic and Enhanced Particle Swarm Optimization,” Int. J. Commun. Syst., vol. 38, no. 3, 2025, doi: 10.1002/dac.6096.
M. Alshehri, “Fuzzy Logic Based Explainable AI Approach for the Easy Calibration of AI Models in IoT Environments,” Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), vol. 13184. pp. 621–633, 2022, doi: 10.1007/978-3-030-98404-5_57.
A. I. Gufroni, “Classification of Temperature and Humidity in Green Open Spaces by Implementing Internet of Things (IoT) using Mamdani Fuzzy Logic,” J. Adv. Res. Appl. Sci. Eng. Technol., vol. 49, no. 2, pp. 205–217, 2025, doi: 10.37934/araset.49.2.205217.
M. Pérez-Gaspar, “A fuzzy description logic based IoT framework: Formal verification and end user programming,” PLoS One, vol. 19, no. 3, 2024, doi: 10.1371/journal.pone.0296655.
Y. M. Arif, “A Novel Digital Twin Framework for Adaptive Urban Weather Visualization Using IoT and Fuzzy Logic,” Int. J. Intell. Eng. Syst., vol. 17, no. 5, pp. 494–507, 2024, doi: 10.22266/ijies2024.1031.39.
M. A. Subandri and R. Sarno, “Cyclomatic Complexity for Determining Product Complexity Level in COCOMO II,” Procedia Comput. Sci., vol. 124, pp. 478–486, 2017, doi: 10.1016/j.procs.2017.12.180.
S. A. Pasaribu and M. T. Unggul, “Comparison Analysis of Load Balance Performance Per Connection Classifier ( Pcc ) And Equal Cost Multi-Path ( Ecmp ) Networks for Multiple Path Networks,” vol. 1, no. 2, pp. 11–20, 2022.
J. Dou et al., “Improved landslide assessment using support vector machine with bagging, boosting, and stacking ensemble machine learning framework in a mountainous watershed, Japan,” Landslides, vol. 17, no. 3, pp. 641–658, 2020, doi: 10.1007/s10346-019-01286-5.
A. S. Mashaleh, “IoT Smart Devices Risk Assessment Model Using Fuzzy Logic and PSO,” Comput. Mater. Contin., vol. 78, no. 2, pp. 2245–2267, 2024, doi: 10.32604/cmc.2023.047323.
J. Vellingiri, “Fuzzy logic and CPSO-optimized key management for secure communication in decentralized IoT networks: A lightweight solution,” Peer-to-Peer Netw. Appl., vol. 17, no. 5, pp. 2979–2997, 2024, doi: 10.1007/s12083-024-01733-8.
G. Shahana, “Comparison of Mamdani and Sugeno fuzzy based data aggregation models for developing smart aquaculture system,” Proceedings of the 2022 International Conference on Innovative Computing, Intelligent Communication and Smart Electrical Systems, ICSES 2022. 2022, doi: 10.1109/ICSES55317.2022.9914378.
V. K. Quy, “IoT-Enabled Smart Agriculture: Architecture, Applications, and Challenges,” Applied Sciences (Switzerland), vol. 12, no. 7. 2022, doi: 10.3390/app12073396.
N. M. Abdulkareem, “IoT and Cloud Computing Issues, Challenges and Opportunities: A Review,” Qubahan Acad. J., vol. 1, no. 2, pp. 1–7, 2021, doi: 10.48161/qaj.v1n2a36.
G. Hewei, “Fuzzy-Logic Approach for Traffic Light Control Based on IoT Technology,” Lecture Notes in Networks and Systems, vol. 301. pp. 75–85, 2022, doi: 10.1007/978-981-16-4863-2_7.
B. A. Kindhi, “Fuzzy Logic and IoT for Smart City Lighting Maintenance Management,” 3rd 2021 East Indonesia Conference on Computer and Information Technology, EIConCIT 2021. pp. 369–373, 2021, doi: 10.1109/EIConCIT50028.2021.9431917.
D. S. B. Ginting, “Performance of Fuzzy Tsukamoto and Fuzzy Sugeno Methods in Predicting Types of Neurotic Disorder,” Proceeding - ELTICOM 2023: 7th International Conference on Electrical, Telecommunication and Computer Engineering: Sustainable and Resilient Communities with Smart Technologies. pp. 194–199, 2023, doi: 10.1109/ELTICOM61905.2023.10443173.
A. Amirullah, “Dual Fuzzy-Sugeno Method to Enhance Power Quality Performance using a Single-phase Dual UPQC-Dual PV Without DC-Link Capacitor,” Prot. Control Mod. Power Syst., vol. 9, no. 1, pp. 133–153, 2024, doi: 10.23919/PCMP.2023.000107.
E. M. S. Rochman, “Identification of Tuberculosis with the Fuzzy Sugeno Method and Diet Recommendations Using the Naive Bayes Method,” AIP Conference Proceedings, vol. 3250, no. 1. 2025, doi: 10.1063/5.0240684.
C. C. Ou, “Classification method for nailfold capillary images using an optimized sugeno fuzzy ensemble of convolutional neural networks,” Comput. Biol. Med., vol. 189, 2025, doi: 10.1016/j.compbiomed.2025.109975.

Copyright (c) 2025 Indonesian Journal of Data and Science

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License and Copyright Agreement
By submitting a manuscript to the Indonesian Journal of Data and Science (IJODAS), the author(s) confirm and agree to the following:
- All co-authors have given their consent to enter into this agreement.
- The submitted manuscript has not been formally published elsewhere, except as an abstract, thesis, or in the context of a lecture, review, or overlay journal.
- The manuscript is not currently under review or consideration by another journal or publisher.
- All authors have approved the manuscript and its submission to IJODAS, and where applicable, have received institutional approval (tacit or explicit) from affiliated organizations.
- The authors have secured appropriate permissions to reproduce any third-party material included in the manuscript that may be under copyright.
- The authors agree to abide by the licensing and copyright terms outlined below.
Copyright Policy
Authors who publish in IJODAS retain the copyright to their work and grant the journal the right of first publication. The published work is simultaneously licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0) , which permits others to share and adapt the work for non-commercial purposes, with proper attribution to the authors and the initial publication in this journal.
Reuse and Distribution
- Authors may enter into separate, additional contractual arrangements for non-exclusive distribution of the journal-published version of the article (e.g., institutional repositories, book chapters), provided there is proper acknowledgment of its initial publication in IJODAS.
- Prior to and during the submission process, we encourage authors to archive preprints and accepted versions of their work on personal websites or institutional repositories. This method supports scholarly communication, visibility, and early citation.
For more details on the terms of the Creative Commons license used by IJODAS, please visit the official license page.