Vol. 16 No. Jurnal Riset Teknologi Pencegahan Pencemaran Industri Journal homepage: https://w. Automatic Chicken Feeding Machine Using Fuzzy Inference System Mufidatul Islamiyah1*. Maisaroh2 12Computer Systems Study Program. Faculty of Technology and Design. Institute of Technology and Business,Asia Malang. Indonesia A R T IC L E I N F O ABSTRACT Article history: Received: March, 12 2025 Received in revised form April, 21 2025 Accepted: May, 03 2025 Available online: May, 16 2025 Efficient feed management is a crucial factor in increasing chicken farm productivity. However, manual feeding systems are often inconsistent and labor-intensive. To address these issues, this study designed and implemented an automatic chicken feeder equipped with a fuzzy inference system, where the fuzzy system plays a role in processing sensor data. The sensors used in this research are temperature sensors, ultrasonic. RTC, electric motors and microcontrollers. This system can automatically determine the timing and amount of feed given based on parameters such as time, number of chickens, and the level of remaining feed in the container. The fuzzy method is used because it can handle uncertain and variable input data and allows for more flexible decision-making. System testing was conducted using MATLAB simulations to test the fuzzy logic response to feed quantity and input conditions. In addition to simulation testing, hardware testing was also conducted to ensure that all physical components of the automatic chicken feeder functioned properly and directly according to the feed design. The simulation results showed that the defuzzifier value was 10, thus concluding that the motor movement of the device was categorized as moderate and also demonstrated that the system can provide feed in a timely and appropriate manner, while reducing feed waste. Thus, this tool has the potential to help farmers save time, operational costs, and improve feed efficiency. Keywords: Automatic Chicken Feed Fuzzy Inference System Livestock Efficiency Intelligent Control INTRODUCTION Poultry farming, particularly chicken farming, is a crucial sector in providing animal protein in Indonesia. Maintaining chicken productivity and health requires proper and regular feeding, which is crucial (Dayat. Jayanegara, and Sukria 2. However, in practice, manual feeding is still often encountered. Feed consumption for chicks aged 1-7 days for feed consumption between 12-20 grams per day (Widodo et al. Meanwhile, for chickens aged 22-35 days, daily consumption is between 70-12 grams and for chickens aged 36-42 days, daily consumption per chicken is around 30-150 grams (Rasyaf 2. Manual methods are not only labor intensive. In Indonesia, most of them still use a manual feeding system of around 70-80% because the livestock farming is still small-scale, but for developing countries such as Southeast Asia. Africa and Latin America, around 60-75% still use semi-manual methods, however, for large-scale livestock farming, they have switched to feed automation, especially in the commercial broiler sector (Birhanu et al. Irregularity in feeding schedule can have a negative impact on the growth and condition of chickens(Febry Rahmadhani Hasibuan. Putri Agustina Anggraini Arwira. Raini Dahriana Pulungan. Adyla Syukhraini Marwi, 2. Apart from that, it can cause chickens to experience stress and have a low daily weight gain compared to those fed consistently, 15-20% experience slower growth compared to the controlled group of chickens (Widodo. & Kurniawan 2. With the advancement of automation and artificial intelligence technology, many innovations have been developed to increase efficiency in the livestock sector. One such innovation is the use of automated feeding equipment *Correspondence author. E-mail: mufidatul@asia. id (Mufidatul Islamiya. doi: https://10. 21771/jrtppi. 2503-5010/2087-0965A 2025 Jurnal Riset Teknologi Pencegahan Pencemaran Industri-BBSPJPPI (JRTPPI-BBSPJPPI). This is an open acces article under the CC BY-NC-SA license . ttps://creativecommons. org/licenses/by-nc-sa/4. 0/). Accreditation number: (Ristekdikt. 158/E/KPT/2021 Mufidatul Islamiyah / Jurnal Riset Teknologi Pencegahan Pencemaran Industri Vol 16 No 1 . 61-69 (Setiawan. Desriyanti, and Vidyastari 2. However, conventional automatic systems are often only based on scheduled times and do not take into account the actual condition of the chickens, such as the amount of remaining feed, the level of chicken activity or the environmental temperature (Fais 2025. Julfikar Diawan,Mustamin Hamid This research presents a new innovation: a fuzzy inference system with automatic control of feed timing and volume that can adjust feed based on parameters such as feed weight, chicken usage, and previous feed consumption. Unlike previous studies that only examined time or simple sensors, this system uses Mamdani fuzzy logic to improve feed distribution accuracy and feed consumption efficiency. This system also has the potential to be integrated with IoT platforms for real-time remote maintenance. To overcome these limitations, a fuzzy inference system was established as part of intelligent control in chicken feeding (Sudarmawan. Panji Sasmito, and Primaswara 2. Fuzzy Logic involves multiple inputs, outputs and indicates several types of data such as mathematical, experimental and numerical data (Okello et By utilizing input from various sensors such as feed weight, temperature and humidity sensors, the fuzzy inference system (FIS) can determine the optimal time and amount of feed automatically by adjusting to the actual conditions in the chicken coop (Otomatis 2024. Trinaldi FIS (Fuzzy inference syste. is used to model and optimize process parameters (Mohammed et al. The main elements of a FIS system are fuzzification, inference and defuzzification (Samanta et al. Fuzzification is the process of converting precise inputs such as temperature and humidity into fuzzy values. These fuzzy values are then interpreted as degrees of membership in a fuzzy set based on a predetermined membership function. The result of fuzzification is a fuzzy value that belongs to one or more fuzzy sets, with degrees of membership indicated by values ranging from 0 to 1(Hendrawati et al. While defuzzification changes the fuzzy output produced by the inference system back to clear values that can be used as output for the control system(Vinayagam et 2. By implementing an automatic feeding tool based on a fuzzy inference system, the feeding process is expected to be more efficient, scheduled on time, and optimally in accordance with the nutritional needs of chickens, so as to improve chicken welfare and overall livestock productivity. This research aims to design and implement an automatic chicken feeding device that utilizes a fuzzy inference system, to increase feeding efficiency, reduce distribution delays, and adjust the amount of feed adaptively based on the chicken's needs which are influenced by parameters such as time, remaining feed weight and chicken METHODS The system architecture of the free-range chicken egg incubator consists of three stages, as shown in Figure 1. Figure 1. Architecture of the Automatic Chicken Feeder System Input The system analysis was conducted starting with an ultrasonic sensor used to detect the feed capacity in the container, as well as a temperature sensor that measures the air temperature around the device. Data obtained from these two sensors were then processed by an Arduino Uno microcontroller, which was then analyzed using a fuzzy inference system to determine the duration and rotation speed of the DC motor. In addition, an RTC (Real Time Cloc. was used to automatically schedule chicken feeding, and system information was displayed on an LCD screen. In addition to hardware analysis, software analysis was also conducted to understand the software used in this project. Arduino IDE version 1. 13 was chosen as the development environment because it supports Arduino Uno programming and provides various libraries needed in system design. This software is based on a combination of C and Java programming languages, which are considered suitable and compatible for the needs of implementing an automatic chicken feeding system based on fuzzy logic. Mufidatul Islamiyah/ Jurnal Riset Teknologi Pencegahan Pencemaran Industri Vol 16 No 1 . Ultrasonic Sensor Arduino Uno Arduino Uno RTC LCD Shield L289N Motor DC Temperature sensor Figure 2. System block diagram Figure 2 illustrates the working range of an automatic chicken feeding system based on fuzzy inference. This system is operated by ultrasonic and temperature sensors that detect environmental conditions and feed Data from both sensors are sent to an Arduino Uno microcontroller, which then uses fuzzy logic to interpret the data and determine feeding decisions. The results of the fuzzy logic analysis are then sent to the L298N drive motor, which controls the DC motor to activate the feeding mechanism. On the other hand, a Real Time Clock (RTC) module is used to automatically adjust the feeding time based on the clock, and an LCD screen displays system information in real time. In addition to the block diagram, this journal also features a flowchart that explains how the fuzzy application works to determine the time duration of the feeding motor rotation speed, as shown in Figure 3. Start Temperature and capacity values Temperature and capacity values AUobtained Fuzzification of temperature and capacity values reasoning process with basic Defuzzyfication using installed sensors. Once the data is collected, a fuzzy process is performed on the accuracy and capacity values, which involves converting the numerical values into fuzzy The next step is fuzzy regression . uzzy inferenc. , which uses predefined rules of thumb to determine the outcome based on a combination of sample size and The inference results are then processed through a defuzzification step, which involves converting the fuzzy kernel into a tautological value . risp outpu. This value is used to determine the speed of the DC motor as the system output, which directly affects the quantity and speed of electricity consumption. This process ends after the output is complete. Fuzzy Inference System (FIS) Fuzzy Inference System can be used as a prediction model when the input and output are uncertain, whereas using classical methods such as regression techniques cannot model uncertainty well (Seidi. Yaghoubi, and Shirazi 2. Therefore, the FIS method is very suitable for use in automatic chicken feeding systems. Fuzzy control regulates the input-output relationship (Julfikar Diawan,Mustamin Hamid 2. The main process that controls the automatic chicken feeding system consists of Fuzzification. Fuzzy inference system and Defuzzification which sequentially function to change the input into a fuzzy set, then processed using fuzzy rules to produce output in the form of a firm value to regulate the work of the actuator (Hendrawati et al. ,(Barzegar et al. (Salameh et al. FIS using the Mamdani method consists of three main steps: DC motor rotation speed output End Figure 3 overall system flowchart Figure 3 illustrates the level of work performed by a fuzzy inference system in an automated poultry production Temperature and feed capacity data are collected Fuzzifcation: In this stage, the clear input is converted into fuzzy input known as linguistic variables through different membership functions. (Barzegar et al. (Khan et al. Membership functions Membership functions are graphical representations that quantify linguistic terms and represent fuzzy sets Common membership functions include triangular. Gaussian, trapezoidal, and bell-shaped Mufidatul Islamiyah / Jurnal Riset Teknologi Pencegahan Pencemaran Industri Vol 16 No 1 . 61-69 (Rajaprakash et al. Fuzzification assigns numeric input values to membership levels in fuzzy sets based on text. In this study, we use the Trapezoidal membership function, which provides a smooth transition between different membership degrees, which helps in capturing uncertainty more accurately and more flexibly than other membership functions, and is suitable for various fuzzy logic applications (Barzegar et al. The following are the defuzzification results from the research on automatic chicken feeding equipment. Rule Evaluation and Rule Aggregation: The inference engine uses the fuzzy rules of the knowledge base to generate fuzzy output. However, this output cannot be directly used in the process or system, therefore, it must be transformed into a clear output. Fuzzy rules are expressed as IF-THEN statements, after defining all IF-THEN rules, an aggregation process is applied to combine them, resulting in a single fuzzy set (Barzegar et al. Defuzzification is a process of fuzzy inference system, which aims to convert fuzzy results . lso known as linguistic or classification degree. into clear output. This is necessary so that the system can analyze actuators or physical components, such as DC motors, accurately and clearly. Defuzzifiers come in various types, including Mean Of Maximum (MOM). Centroid Of Area (COA). Largest Of Maximum (LOM). Bisector of Area (BOA) and Smallest Of Maximum (SOM)(Barzegar et al. (Kamga et al. (Kusumadewi et al. Among these methods, the COA method is the most common method that we use in this study. (Barzegar et al. Table 1 shows the variables used to define the membership function for the model used in the design of the automatic chicken feeding machine. RESULT AND DISCUSSION Testing was carried out with the aim of finding out whether the entire tool can work well or not and the fuzzy logic that has been implemented in the Arduino program can determine the duration of the motor speed on the chicken feeding tool. Fuzzifikasi of Input and output Variables Fuzzification is used to convert clear input criteria into degrees of membership in a predefined fuzzy set (Jalalifar. Delavar, and Ghaderi 2. Table 1. Linguistic terms and numerical terms for input Linguistic Numerical Term Term Linguistic Numerical Term Term Feed Content Temperature Little O 5cm Cold O 37 0C Medium >5 cm dan O Medium >37 0C dan O 390C Lots Hot >39 0C Automatic Chicken Feeding Machine Design The design of this automatic chicken feeder uses a fuzzy inference method to intelligently regulate the amount and time of feeding, taking into account input variables such as the number of chickens, feeding time, and remaining feed in the container, so that the system can operate flexibly and efficiently according to real conditions in the field. Figure 4. Automatic Chicken Feeding Machine Design Figure 5. Membership Function plot of input . eed content, temperatur. and output . otor spee. Rule Evaluation and Rule Aggregation The rule base in the fuzzy inference system is designed based on if-then logic, which regulates the Mufidatul Islamiyah/ Jurnal Riset Teknologi Pencegahan Pencemaran Industri Vol 16 No 1 . 61-69 relationship between input variables such as the number of chickens, remaining feed, and time, to determine the output in the form of the amount of feed to be given. The following is the simulation result using Matlab. Table 2. Temperature Measurement Data Test data Sensor measurement data Capacity Temperature data 9 cm 36,81 8 cm 36,95 6 cm 36,84 4 cm 36,73 3 cm 37,16 Table 1 above is the test data for the capacity and temperature values from two different sensor inputs which were taken 5 times as an example for modeling tools using Mamdani fuzzy logic. Metode Centroid Of Area (COA) Figure 6. MATLAB Rule Viewer output Based on the rule viewer shown in Figure 6, it explains that the fuzzy inference system receives two input parameters, namely a feed content of 5 cm and an environmental temperature of 39. 5AC. In the fuzzification stage, the feed content value of 5 cm is included in the Low and Medium categories with overlapping membership degrees, while the temperature of 39. 5AC is completely in the Hot category. The fuzzy inference process then activates a number of relevant rules based on the combination of these inputs. These rules produce a fuzzy output in the form of a DC motor speed level which is then converted into a crisp value through the defuzzification process. The defuzzification results show that the system recommends a DC motor speed of 10. 1, which indicates that the motor will rotate at a medium to high speed. This reflects the system's adaptive response to hot temperature conditionsAiwhich physiologically increase the activity and feeding needs of chickensAiand the decreasing feed volume, so that faster and more efficient feed distribution is needed. Defuzzifikasi Test Analysis Results This test was conducted comprehensively to determine the results of the fuzzy logic application to determine whether the speed duration can run properly. The test results are displayed in Table 1. At this stage, the reasoning function of the obtained data is tested using fuzzy logic. The calculation uses sample number 1 as a reference. The first data in the table yields a capacity value of 9 cm, with the following membership values. A Low membership O 5 yuN yaycuyc (O . = { A 9Oe5 = 1,6 5 Oe 2,5 2,5 Membership is in progress > 5 cm and O 7 9Oe2,5 yuN ycAyceyccycnycyco (> 5 ycayco yccycaycu O 7 ycayc. = . Oe2,5 = = 2,6 A Multiple memberships > 7 yuN yaycuycyc (> 7 ycayc. = { 9 Oe 7,5 1,5 = 0,6 7,5 Oe 5 2,5 Next is to find the second membership value, namely the temperature, which is obtained as a temperature value of 36 with the following membership values. Cold temperature membership 36 O 37 37 Oe 36,81 0,19 37 Oe 35 = 0. Moderate temperature membership 35 Ou 36 O 39 yuN yaycuycoycc 36,81 O= { A Mufidatul Islamiyah / Jurnal Riset Teknologi Pencegahan Pencemaran Industri Vol 16 No 1 . yuN ycAyceyccycnycyco 35 Ou 36,81 O 39 = { 36,81 Oe 35 39 Oe 35 1,81 = 0,452 Hot temperature membership 36 O 40 yuN ycyycaycuycayc 36,81 O 40 = { 40 Oe 36,81 1,5 44 Oe 40 = 0,375 The value of the capacity and temperature status is for capacity . 6,4 and 0. and for the value of temperature is . 095, 0. 452, 0. while for the predetermined rule value is . 5, 10, 14. then for the PWM change process is: ,6 O 4,. ,6 O . ,6 O 14,. n= 1,6 2,6 0,6 Center Average Defuzzifier. The method is written in the Oc. u yuUycn O nyc. n= ( yuUyc. Information : n = Centered average defuzzification _p = Predicate alpha value . inimum value of membership degre. ni = crisp value obtained from inference results = Number of fuzzy rules The next is the defuzzification calculation process using the Center Average Defuzzifier method. = 8,72 The sum of the capacity values above yields a value The capacity yields a value of 11. 26, as formulated n= . ,095 O4,. ,452O. ,375O14,. 0,095 0,452 0,375 10,385 = 11,26 0,922 From the results of the PWM changes, the figures 01 and 11. 26 for the defuzzification values of the two sensors, namely the capacity sensor and the temperature sensor. The RPM measurement of the motor is carried out to check the relationship between the PWM value received and the actual reaction of the motor in the form of rotational speed, so that the system can be tested All data from the analysis table is tested in the same way as the first data test. The fuzzification results from the analysis table are displayed in the following table: Table 3. Fuzzy Test Results From the test results data in Table 4. 2, the minimum value of -predicate and z for each rule is The next step is to find the output value in the form of crips . The method used in this process is the Gambar 7. Urface View Mamdani FIS Figure 7 shows a three-dimensional surface representing the influence of environmental temperature and feed content variables on the rotational speed of the DC motor as a feed dispensing actuator. Based on the simulation results: When the feed content in the container is at a low level . Ae2 c. and the environmental temperature is high . Ae45AC), the system responds by increasing the DC motor speed to near the maximum value . This aims to accelerate the feeding process so that the chickens' nutritional needs can be immediately met in temperature conditions that have the potential to increase the chickens' metabolic activity. Conversely, when the feed content is still high . Ae10 c. , even though the temperature increases, the system regulates the motor speed to a minimum value . , because the feed availability is considered still sufficient so that additional supplies are not needed in the near future. At medium to low temperatures . Ae39AC), the system maintains the motor speed at an intermediate value . Ae. , indicating stability in the feed distribution process that is not affected by extreme temperature changes. Based on these results, it can be concluded that the fuzzy inference system successfully regulates the feeding speed automatically and adaptively Mufidatul Islamiyah/ Jurnal Riset Teknologi Pencegahan Pencemaran Industri Vol 16 No 1 . 61-69 according to environmental conditions and available feed capacity, thereby increasing the efficiency and accuracy of feeding in the poultry farming system. So the PWM value obtained from the data can be categorized into the medium fuzzy output range with the following provisions: Table 4. Range Output Fuzzy Terms Slow Medium Fast Range 0<=z<5 5 < = z < 10 10 < = z < 20 CONCLUSION Based on the test results that have been carried out on the application of fuzzy to determine the speed of DC motor movement in an automatic chicken feeder, it can be The addition of fuzzy logic to this automatic chicken feeder system has been realized and can work well to determine the speed of motor rotation so that it is not excessive or lacking when feeding. To drive the DC motor, a PWM with a duty cycle of more than 30% is needed so that calculations are needed to determine the minimum OCR2 value so that the motor can move. The use of temperature sensors on the tool is considered less effective because the placement of the tool can change according to the wishes of the farmer. The travel time required for the conveyor to distribute chicken feed depends on the amount of feed available. The more feed there is, the longer the travel time REFERENCE