You are currently viewing a new version of our website. To view the old version click .
Electronics
  • Article
  • Open Access

18 March 2023

Nutrient Film Technique-Based Hydroponic Monitoring and Controlling System Using ANFIS

and
1
BINUS Graduate Program—Master of Computer Science, Computer Science Department, Bina Nusantara University, Jakarta 11480, Indonesia
2
Department of Electrical, Electronic and Communication Engineering, Faculty of Engineering, Tokyo City University, Setagaya-ku, Tokyo 158-8557, Japan
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Sustainable and Smart Agriculture with Artificial Intelligence Techniques

Abstract

Most people are now aware of the importance of a healthy lifestyle, including the importance of consuming vegetables. As a result, the demand for vegetables has increased, and so their production needs to be increased. Currently, most plantations use soil as a growing medium, which is time-consuming and requires a significant amount of space. To modernize cultivation, hydroponic techniques should be adopted. However, implementing hydroponics can be challenging as it requires precise pH and nutrient adjustments. The previous research has proposed the hydroponic pH and nutrient control using the Sugeno fuzzy method. However, in Sugeno fuzzy method, there is no systematic procedure in designing the fuzzy controller, thus, the design relies on hydroponic expert knowledge. To address this issue, a smart hydroponic system was developed using the adaptive neuro-fuzzy inference system (ANFIS) method, which allows for automatic adjustments based on the collected dataset and remote control through internet of things (IoT) technology. This study showed that the system could accurately adjust pH and nutrient levels, allowing plants to grow better. Furthermore, the fuzzy controller created using ANFIS is 67% more accurate than creating the fuzzy controller using the Sugeno fuzzy method. Finally, the web application dashboard of the proposed system is also presented in this paper.

1. Introduction

In this modern era, people have come to understand the importance of health, and the implementation of a healthy lifestyle has become prevalent. One of the popular healthy lifestyles involves the consumption of healthy food. Vegetables are highly regarded as a healthy food due to their beneficial substances for the human body. These include vitamins, minerals, fiber, and phytochemical compounds. These substances make sufficient vegetable consumption become a solution to prevent various diseases [1]. As the public realizes the importance of a healthy lifestyle, the demand for vegetable production increases. However, in Indonesia, vegetable plantation is still performed traditionally by using soil as the medium. This method needs to be modernized because it requires a large space and has a slow pace of production [2]. A form of modernization that can be implemented is by planting using hydroponic technique.
Hydroponics is a planting process that utilizes water as the growing medium. When plants are cultivated using hydroponics, they can grow faster and larger compared to traditional growing methods due to the provision of nutrients to obtain maximum crop yields [3]. However, implementing this technique requires water reservoirs with precisely calibrated nutrient levels, which can be seen as an obstacle for some people who wish to grow crops using hydroponics, as it requires a bit of complexity in the setup.
Several studies have tried to resolve the difficulty of nutritional adjustment techniques. In a study by Mehra et al. [4], the deep neural network (DNN) was implemented to control the environmental conditions of the hydroponic system. There are also researchers who proposed an automatic hydroponic system by using Bayesian networks [5]. Another research that intrigued the authors of this study was an automatic hydroponic system that implemented fuzzy logic [6]. According to Denai et al. [7], controlling a system by using fuzzy logic results in a good performance and it only needs a simple mathematical model to formulate the algorithm.
However, a weakness found in fuzzy logic was the absence of a systematic procedure for designing a fuzzy controller. This is where the adaptive neuro fuzzy inference system (ANFIS) plays an important role in overcoming this issue, as ANFIS can automatically perform parameter adjustments [8]. Researchers have used ANFIS to train the fuzzy controller using real data from existing problems. In this study, we present an internet-of-things (IoT) and ANFIS-based hydroponic control system. The IoT system is designed to monitor and regulate the pH and nutrient levels of the plants being observed. Then, the ANFIS algorithm is subsequently used to regulate the pH-up, pH-down, water, and nutrition pumps.
The main contribution of this paper are as follows:
  • A prototype of indoor IoT-based nutrient film technique hydroponic control system has been developed, which integrates sensors connected to both Arduino and Raspberry Pi 4;
  • Implementation of an ANFIS model to provide precise control actions based on the parameters measured in a hydroponic system;
  • Performance comparison between the implementation of FIS and ANFIS in creating a smart hydroponic system that can automatically control the nutrient and pH level in the system.
The remaining sections of this study are organized as follows. Section 2 discusses the related studies on the methods of a smart hydroponic system. Section 3 explains the methodology, defining the proposed method, and the design prototype in order to achieve the aim of the research. Section 4 discusses the evaluation after the system has successfully been created. The authors tested and evaluated the system to ensure that the goals of this research are achieved. Section 5 contains the conclusions and suggestions for future work.

3. Design of Smart Hydroponic Monitoring and Controlling System Using ANFIS

The system in this study is divided into two parts: hardware design and application design. Hardware design describes the whole system architecture and the way each component communicates with each other. Application design explains the procedure on creating the ANFIS models and how the system works.

3.1. Proposed Hardware Design

Figure 1 depicts the design of the system, which is divided into two main components. The first component is the layer device, which includes a set of sensors, actuators, and a microcontroller. The second component is the layer database and web, which include a set of computation devices and an end-user interface.
Figure 1. System architecture.
Layer device consists of three parts: a water reservoir sensor, a nutrient control section, and an actuator section. Figure 2 shows the details of the water reservoir sensor. In this part, Arduino Uno plays a very important role in controlling and receiving sensor data of pH and TDS. The flow of the sensor section starts from the ultrasonic sensor from Kuongshun Electronic HC-SR04 that is connected to Arduino Uno, which is used to measure the level of the water by calculating the distance between the top part of the water reservoir and the water in the reservoir itself.
Figure 2. Water reservoir sensor details.
Arduino is also connected to Dual H-Bridge L298N which is used to control the movement of the DC motor gearbox in accordance with the pulse width modulation (PWM) input from Arduino. Then, the TDS sensor from DFRobot DFR0300 and pH sensor from DFRobot SEN0161 V2 are attached to the DC motor gearbox, and based on the PWM input from Arduino, the TDS sensor and pH sensor will be lowered to the determined height to start measuring the level of TDS and pH of the water reservoir. After the measurement is performed, Arduino will receive the measured TDS and pH data.
Furthermore, there is also a nutrient control section in the device layer, the details as shown by Figure 3. The Arduino Uno plays a crucial role in ensuring that the pH and TDS chemicals are always readily available. Four ultrasonic sensors are connected to the Arduino and are employed to measure the levels of the chemical liquids for pH Up, pH Down, nutrient A, and nutrient B. In addition to the ultrasonic sensors, a Piezo buzzer is also connected to the Arduino, serving as a notification to the user when the chemical liquid level is running low. Hence, if the volume of any of the chemical liquids falls below the predetermined level, the Piezo buzzer will produce sounds until the chemical liquid is returned to the specified level.
Figure 3. Nutrient control section details.
Arduino Uno also plays a critical role in the actuator section, serving as the control center for all existing actuators. As shown in Figure 4, there are two Dual H-Bridge L298N units connected to the Arduino, one to control the nutrient peristaltic pump and the other to control the pH peristaltic pump. The Dual H-Bridge L298N was chosen because it allows control of the actuators using PWM, enabling the precise control of the output of each peristaltic pump. Additionally, the Arduino is connected to a relay that is used to control three actuators: the water pump to add water to the reservoir, the water pump to reduce the water inside the reservoir, and the aerator to provide more oxygen into the system.
Figure 4. Actuator section details.
The Arduino on the water reservoir sensor section, nutrient control section, and actuator section are all connected to the Raspberry Pi 4 from the layer database and web, and this Raspberry acts as the brain of the entire system. The pH and TDS data on the Arduino sensor section are sent to Raspberry, then the pH and TDS data are processed by the fuzzy controller created by ANFIS, and the output is then sent to Arduino in the actuator section as shown in Figure 5. The output is a number in a form of seconds, which will determine how long each pump needs to be turned on in the actuator section. Raspberry will also send the output to the cloud database, then the web server will automatically detect that new data and reload the web component to show the latest data. This study also implements the internet of things, thus, the system can be controlled from anywhere. In order to accomplish everything described above, the Raspberry will work in multithreading by operating two applications at the same time. The first application is to control the system, while the other is to monitor the cloud database.
Figure 5. Raspberry Pi process details.

3.2. Proposed Application Design

ANFIS is a combination of fuzzy and neural network. The neural network needs a digital dataset to create the models and train it. The dataset needs to be accurate so it can produce a good ANFIS. However, a dataset for this study is not yet available. Therefore, as can be seen in Figure 6, the first step that needs to be taken is collecting data to be used as the study’s dataset. The step in creating the dataset can be performed by conducting an experiment in adjusting the water’s pH and nutrient level inside the reservoir based on the pH and TDS data acquired by the sensors. The adjustments can be performed by pumping a pH up or down, by pumping a nutrient liquid, or by refilling the water in the reservoir. The time needed for the pump to be turned on to perform the adjustment will be recorded and stored to be used as a dataset. The pH and TDS sensors used for creating the dataset are manual tools as shown in Figure 7a,b. The accuracy of the pH and TDS meters has been tested and calibrated before being used.
Figure 6. Data processing flow.
Figure 7. Manual tools for creating the dataset.
The dataset is divided into four types, one for each ANFIS model, which results in four ANFIS models altogether. It needs to be divided into four models because the structure of ANFIS is made up of multi-input and single output. Therefore, each model will have an output that represents each actuator used to manipulate the level of pH and nutrients of the water inside the reservoir.
The first and the second datasets are the ones to lower or increase the level of pH of the water inside the reservoir. The first step in collecting the data is by filling the reservoir with 10 liters of water, then the pH is measured by using a pH meter. If the measured pH is less than normal, which is 5.5–6.5 [21], then the pH Up liquid will be pumped until it reaches the normal level. Meanwhile, if the measured pH is more than the normal level, then the pH Down liquid will be pumped until the pH level returns to normal. The duration of time that the pH liquid is turned on will be captured, as well as the pH and TDS data before and after manipulation.
The third and fourth datasets are the ones to lower or increase the level of nutrients dissolved in the water inside the reservoir. The steps to create the dataset uses the same steps as creating the pH dataset, which is by filling the reservoir with 10 L of water, then the dissolved nutrient will be measured. If the measured nutrient level is less than the normal threshold, which is 600–900 ppm [21], then the nutrient-boosting liquid will be pumped until it returns to the normal threshold. If it is more than its normal level, then the pump for disposing water from the reservoir and the pump for filling water into the reservoir will be turned on until the nutrient level returns to normal. The duration of time that each pump operates will be captured along with the pH and TDS data after the performed adjustment. Some examples of collected data can be seen in Table 3.
Table 3. Some examples of the dataset.
The data cleansing process needs to be performed after the data have been collected to remove all duplicated and irrelevant data. The data can be duplicated because the data are created manually, which might happen because of double input. In addition, an example of irrelevant data is when there is a starting nutrient level and pH, but no nutrient level, and the pH is captured after adjusting the pH or TDS, thus causing the output result to be unusable as a dataset, which can happen because of wrong input. Microsoft Excel is used for cleansing the data; a simple conditional formatting is used to remove all of the duplicated and irrelevant data.
After the dataset is prepared, the design process of ANFIS can be started by determining the degree of membership function. Through trial and error, the most optimal membership functions are:
  • For pH Up model, it is a generalized bell membership function, with 2 degrees of TDS membership function and 7 degrees of pH membership function, as shown in Figure 8;
    Figure 8. ANFIS pH Up structure.
  • For pH Down model, it is a generalized bell membership function, with 2 degrees of membership function for TDS and 3 degrees of membership function for pH, as shown in Figure 9;
    Figure 9. ANFIS pH Down structure.
  • For TDS Up model, it is a generalized bell membership function, with 5 degrees of membership function for TDS, as shown in Figure 10;
    Figure 10. ANFIS TDS Up structure.
  • For TDS Down model, it is a generalized bell membership function, with 5 degrees of membership function for TDS, as shown in Figure 11.
    Figure 11. ANFIS TDS Down structure.
As for the Generalized bell membership function as follows:
f x ; a , b , c = 1 1 + x c a 2 b
where x is the input value, c is the center of the bell-shaped curve, a is the width of the curve, and b is a shape parameter that controls the steepness of the curve. When n is greater than 1, the curve becomes more steep, and when n is less than 1, the curve becomes less steep. When n approaches infinity, the curve becomes a step function.
The next phase after designing ANFIS is the training stage. In this stage, ANFIS will learn by itself based on the defined dataset. Then, an ANFIS model will be formed. An ANFIS model is a complete fuzzy controller that consists of membership functions of input-output and rule-base pairs.
Figure 12 shows the system workflow. When the system runs, there will be two processes that run at the same time. The first process is the automatic hydroponic adjustment process. When the time shows that it is measurement time, the initial step is measuring the level of the water inside the reservoir. If the level does not reach the threshold, which is 10 liters, then it needs to be redetermined whether the water level is below the threshold or not. If it is below the determined level, then the water pump to add water into the reservoir will turn on to add water until the water level is at 10 L. Meanwhile, if the water level is not below the threshold, then a validation needs to be carried out again to confirm whether the water is above the threshold. If it is true, then the water pump coming out of the reservoir will turn on to reduce the water in the reservoir until the water level is at 10 L. If the water level is currently at 10 L, then there will be a validation to ensure the status of the water pump that adding water into the reservoir is already off. If the status is still on, then a trigger will be sent to turn the pump off, but if it is off, then there will be a validation sent to ensure the status of the water pump that the function of pumping water out of the reservoir is switched off. If the status is still on, then a trigger is sent to turn off the pump, and if it is off, then the process will continue to measure pH and TDS. Next, an order will be given to Arduino to perform the pH measurement process and TDS measurement process. The captured pH and TDS data will be input into the ANFIS pH model. If the computational results of ANFIS pH is not 0, then the pH needs to be manipulated by adding a pH Up liquid or adding a pH Down liquid until it produces an output result of 0. The next process is TDS evaluation, where the captured TDS data will be computed on the Raspberry based on the created model. If the computation result is not 0, then the dissolved nutrient level will be manipulated by adding nutrient liquids A and B or adding pure water to the reservoir. The process will be performed repeatedly until the computation result is 0.
Figure 12. Flowchart system.
The second process is detecting the level of chemical liquid. There are four liquid chemicals used to manipulate the hydroponic system. Each liquid is stored inside a bottle with a height of 12 cm, and above the bottle, an ultrasonic sensor is embedded to measure the height of the liquid level. The first liquid to measure is pH Up. The ultrasonic pH Up sensor will read the liquid level. If the liquid level is below 3 cm, the Piezo buzzer will make a sound to notify the user that the pH Up liquid has run out. However, if the measurement results are above 3 cm, then the next liquid level measurement will continue until the last chemical liquid.

4. Results and Discussions

4.1. Device Installation & Implementation

The smart hydroponic system is made based on the design that has been described. Figure 13 is the final result of the system. The entire hydroponic system is placed indoors, so an LED glowing light is needed so that the plants can grow perfectly. Figure 14 shows Bok Choy that have been grown in a hydroponic system from the sowing process, to seedling and mature stages. It takes 30 days to grow until mature and after which, the Bok Choy have reached 52 cm in height.
Figure 13. Final results of the smart hydroponic system.
Figure 14. Bok Choy growing process.
Figure 15 shows the details of the parts used in the system. Each part has been numbered with the following details:
Figure 15. Details of the smart hydroponic system.
  • pH Up peristaltic pump is used to increase the pH level in the reservoir;
  • pH Down peristaltic pump is used to decrease the pH level in the reservoir;
  • Modified DC gearbox is used to lower and raise the pH and TDS sensors;
  • pH sensor is used to measure the pH level in the reservoir;
  • The TDS sensor is used to measure the TDS level in the reservoir;
  • Ultrasonic sensor is used to measure the level of water inside the reservoir;
  • The hydroponic system water pump is used to pump water from the reservoir to the NFT hydroponic system;
  • pH up, pH down, nutrient A, and nutrient B chemicals are used to manipulate pH and TDS levels in the reservoir;
  • TDS Up peristaltic pump is used to increase the nutrient or TDS levels in the reservoir;
  • First water pump is used to add water to the main reservoir from the temporary water reservoir;
  • Temporary water storage is used to store water before it is put into the system;
  • Second water out is a pump used to reduce the water in the reservoir;
  • Relays are used as on or off switches for all of the water pumps;
  • Dual H-Bridge L298N is used to activate the DC gearbox;
  • Arduino Uno is used as a microcontroller for pH, TDS, and ultrasonic sensors;
  • Raspberry Pi 4 acts as the brain of the smart hydroponic system;
  • Dual H-Bridge L298N is used to turn on the TDS Up peristaltic pump;
  • Dual H-Bridge L298N is used to turn on the pH Up and pH Down peristaltic pumps;
  • Arduino Uno is used as a microcontroller for all actuators.

4.2. System Evaluation

In order to ensure that the system has been designed correctly, several evaluations need to be conducted. The first evaluation is calculating the pH and TDS sensors error rate. The error rate can be calculated by comparing the results of system sensor measurements with the manual sensors used in data collection. The calculation of error rate can be seen as follows:
% E r r o r = O r i g i n a l   V a l u e M e a s u r e d   V a l u e O r i g i n a l   V a l u e × 100 %
where Original Value is the manual sensors, as can be seen in Figure 7, and Measured Value is the sensor that is used in the system, as can be seen in Figure 15. Table 4 and Table 5 show the error rate of each sensor. The “pH Data Collection” and “TDS Data Collection” columns are the data that have been captured by the manual sensors. The “pH System” and “TDS system” columns are the data that have been captured by the system sensors.
Table 4. Error rate pH sensor.
Table 5. Error rate TDS sensor.
The average error rate for pH sensors is −1.19% and the average error rate for TDS sensors is −0.96%. Both sensors have very small error rates which prove that the pH and TDS system sensors are already accurate. After they have been proven to be successful, then a test on each created model should be performed to prove that those models are working properly.
As for the ANFIS pH model, the first step that should be taken is manipulating the level of pH inside the reservoir, whether by increasing or decreasing the pH level. Then, the system will try to normalize the pH level inside the reservoir in accordance with the manipulation.
Table 6 shows the response of the ANFIS pH model during the testing. “Starting Data” is the pH and TDS levels in the reservoir after the manipulation step by increasing or decreasing the pH level. The “Starting Data” are the input for the ANFIS pH model. Then, ANFIS pH model will provide output data in the form of the duration to turn on the pH Up or pH down pump in seconds. After that, the pH and TDS measurements will be repeated. The result of the measurement after increasing or decreasing the pH level based on the ANFIS output is captured. It can be seen on Table 4 that the ANFIS pH model has succeeded in returning the manipulated pH levels to the normal range.
Table 6. Testing results of ANFIS pH model.
Table 7 shows the response of the ANFIS TDS model during the testing. “Starting Data” is the pH and TDS levels in the reservoir after the manipulation step by increasing or decreasing the nutrient level. The “Starting Data” are the inputs for the ANFIS TDS model. Then ANFIS TDS model will provide output data in the form of the duration to turn on the nutrients A and B pump or adding fresh water to the reservoir in seconds. After that the pH and TDS measurements will be repeated. The result of the measurement after increasing or decreasing the TDS level based on the ANFIS output is captured. It can be seen on Table 6 that the ANFIS TDS model has succeeded in returning the manipulated TDS levels to the normal range.
Table 7. Testing results of ANFIS TDS model.

4.3. ANFIS Evaluation

The accuracy of the ANFIS model needs to be compared to show that the model provides a better accuracy. In this research, the ANFIS model will be compared with fuzzy Sugeno. The data collection process, such as when creating a dataset, needs to be conducted again, so that this data will become a benchmark in measuring the level of accuracy of the two models. The data is labeled as “Observed Data”. The benchmark data that have been collected can be seen in Table 8.
Table 8. Observed data.
The next step is creating the fuzzy Sugeno. In fuzzy Sugeno, four fuzzy controllers will be made, fuzzy controller pH Up, fuzzy controller pH Down, fuzzy controller TDS UP, and fuzzy controller TDS Down. The first process is to define all degrees of the membership function for each fuzzy controller. According to research by Herman and Surantha [13], the degree of membership function is as shown in Figure 16, and pH can be categorized as follows:
Figure 16. Membership function of fuzzy controller pH.
  • Very Low (0–3.3);
  • Low (3–5.5);
  • Normal (5.25–6.5);
  • Moderately High (6.25–7.75);
  • High (7.9–9.25);
  • Very High (9–14).
As for the degree of TDS membership function, it can be seen in Figure 17, where TDS can be categorized as follows:
Figure 17. Membership function fuzzy of controller pH.
  • Very Low (0–330);
  • Low (320–495);
  • Moderately Low (485–600);
  • Normal (590–910);
  • Moderately High (900–1000);
  • High (990–1400);
  • Very High (1390–1600).
Then, the rules for each condition needs to be defined. Table 9 and Table 10 are knowledge bases for pH and as a guidance for each IF–Then statement. As for the output of fuzzy, which is in the form of how long the pH Up and pH Down need to turned on can be seen in Figure 18.
Table 9. Knowledge base for pH Up.
Table 10. Knowledge base for pH Down.
Figure 18. Output level of pH.
Once all fuzzy controllers have been made, the last evaluation can then be performed by giving the fuzzy Sugeno and ANFIS the same starting data or input data as the benchmark data, then the output results can be compared with the output based on Table 8. The details can be seen in Table 11.
Table 11. Result evaluation.
The root mean square error (RMSE) needs to be calculated based on the results from each output in Table 11 in order to determine the difference between the output predicted by the model and the observed data. Afterwards, a box plot should be created to visually depict the distribution of the data for an easier analysis. The RMSE box plots of all fuzzy controller models as shown in Figure 19, Figure 20, Figure 21 and Figure 22
R M S E = f o r e c a s t   v a l u e s o b s e r v e d   v a l u e s 2
where forecast values is the output that is predicted by fuzzy Sugeno or fuzzy ANFIS, and observed values is the data that have been captured manually and used for the dataset. Referring to the RMSE box plots of all fuzzy controller models as shown in Figure 19, Figure 20, Figure 21 and Figure 22, it can be seen that the ANFIS fuzzy controller produces a smaller range and error rate than the Sugeno fuzzy controller. Furthermore, the percentage of improvement by using ANFIS instead of fuzzy Sugeno can be calculated by averaging all of the RMSE. The results can be seen in Table 12.
Figure 19. Box plot RMSE pH Up.
Figure 20. Box plot RMSE pH Down.
Figure 21. Box plot RMSE TDS Up.
Figure 22. Box plot RMSE TDS Down.
Table 12. ANFIS percentage of improvement.
Thus, it can be concluded that the output results from the ANFIS fuzzy controller model are more stable and 67% more accurate than the Sugeno fuzzy controller. Therefore, it can also be said that the implementation of the ANFIS method in making fuzzy controllers for controlling smart hydroponic systems provides a better predictive result compared with the Sugeno method.

4.4. Smart Hydroponic Web Application

Figure 23 illustrates the dashboard smart hydroponic web app page. The IoT features can be obtained by using this web application. There are six pieces of information on this page:
Figure 23. Details of the smart hydroponic system.
  • Plant Type, which provides information about the crops that are being planted in the system;
  • Planted, which provides information about when the plant is planted;
  • Global Status, which informs the current plant growth conditions based on TDS and pH levels;
  • Growing Week, which provides information about how many weeks the plants have been in the system since they were planted;
  • Tank Condition, which provides an updated information on PPM, pH, and water level status in the reservoir. PPM and pH are shown with a gauge meter with the PPM range of 1–1250, and for pH range of 1–14;
  • Environment Condition, which informs the status of the system environment. Here, the user can turn on or off the system from anywhere by pressing the “Main Power” button. In addition, the user can also turn on or turn off the “Grow Light” lamp. Lastly, the information of the weather forecast chart for the next 7 days can be accessed.
This system can also be manually operated by the users through the “Override System” menu, as can be seen in Figure 24. Users only need to turn on the feature, then fill in the desired pH and PPM values.
Figure 24. Override menu in web application.

5. Conclusions

Developing automatic hydroponic monitoring and controlling systems can help both traditional farmers and hydroponic farmers. As for the traditional farmers, the existence of this system can be a consideration for them to change their plantation medium to make it more efficient. Meanwhile, for the hydroponic farmers, this system can help them in reducing the routines that they need to perform, which involves checking the levels of nutrients, pH, and water levels.
In developing a smart hydroponic system, a system that can perform accurate adjustments on many actuators is needed. This kind of system can be developed by using the fuzzy logic method. However, this method requires the knowledge of an expert in defining membership functions and rules. Therefore, a different fuzzy method that combines artificial intelligence is needed so that the system can perform independent learning based on the existing data and eliminate the dependency of an expert’s knowledge. The method that fulfils this requirement is ANFIS, which is a method that combines neural networks and fuzzy logic. This method can create fuzzy controllers independently from the given dataset. Thus, to make ANFIS produce maximum performance and accuracy, a good dataset is needed. This study also proves that the implementation of the ANFIS method is superior in accuracy than the traditional fuzzy method, which is Sugeno fuzzy, by 67%.
As for future work, the system can be improved by incorporating GoAT ranking sensors to optimize the system flow [12]. Additionally, by implementing a multi-adaptive neuro fuzzy inference system (MANFIS), the system can be made more efficient, as only one fuzzy controller model will be required instead of four [22]. Furthermore, the system can be expanded to a larger scale and integrated with edge-fog-cloud computing environments to achieve near real-time data processing, reduce latency, and increase system efficiency [4]. Finally, conducting a study to compare the growth and yields of plants grown in a NFT system, such as broccoli and spinach, with traditional planting methods, can provide insights into the advantages of this method compared to traditional methods.

Author Contributions

Conceptualization, V.V. and N.S.; methodology, N.S.; software, V.V.; validation, V.V.; formal analysis, N.S.; investigation, V.V.; resources, N.S.; data curation, V.V.; writing—original draft preparation, V.V. and N.S.; writing—review and editing, V.V.; visualization, V.V.; supervision, N.S.; project administration, V.V.; funding acquisition, N.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research publication is fully supported by Bina Nusantara University.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy purposes.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

MHzUnit of electromagnetic wave frequency, megahertz
GHzUnit of electromagnetic wave frequency, gigahertz
PpmConcentration of solute in very dilute solutions, parts per million
Cmlength, centimeter

References

  1. Asaduzzaman, M.; Asao, T. Vegetables; IntechOpen: London, UK, 2018. [Google Scholar] [CrossRef]
  2. Gashgari, R.; Alharbi, K.; Mughrbil, K.; Jan, A.; Glolam, A. Comparison between Growing Plants in Hydroponic System and Soil Based System. In Proceedings of the 4th World Congress on Mechanical, Chemical, and Material Engineering, Madrid, Spain, 16–18 August 2018; Volume 18, pp. 1–7. [Google Scholar] [CrossRef]
  3. Roberto, K. How-To Hydroponics; FutureGarden Press: New York, NY, USA, 2005. [Google Scholar]
  4. Mehra, M.; Saxena, S.; Sankaranarayanan, S.; Tom, R.; Veeramanikandan, M. IoT based hydroponics system using Deep Neural Networks. Comput. Electron. Agric. 2018, 155, 473–486. [Google Scholar] [CrossRef]
  5. Alipio, M.; Cruz, A.; Doria, J.; Fruto, R.M. On the design of Nutrient Film Technique hydroponics farm for smart agriculture. Eng. Agric. Environ. Food 2019, 12, 315–324. [Google Scholar] [CrossRef]
  6. Yolanda, D.; Hindersah, H.; Hadiatna, F.; Triawan, M. Implementation of Real-Time Fuzzy logic control for NFT-based hydroponic system on Internet of Things environment. In Proceedings of the 2016 6th International Conference on System Engineering and Technology (ICSET), Bandung, Indonesia, 3–4 October 2016; pp. 153–159. [Google Scholar] [CrossRef]
  7. Denai, M.A.; Palis, F.; Zeghbib, A. ANFIS based modelling and control of non-linear systems: A tutorial. In Proceedings of the 2004 IEEE International Conference on Systems, Man and Cybernetics (IEEE Cat. No.04CH37583), The Hague, The Netherlands, 10–13 October 2004; Volume 4, pp. 3433–3438. [Google Scholar] [CrossRef]
  8. Aguilar, L.; Melin, P.; Castillo, O. Intelligent control of a stepping motor drive using a hybrid neuro-fuzzy ANFIS approach. Appl. Soft Comput. 2003, 3, 209–219. [Google Scholar] [CrossRef]
  9. Gomes, E.; Costa, F.; Rolt, C.; Plentz, P.; Dantas, M. A Survey from Real-Time to Near Real-Time Applications in Fog Computing Environments. Telecom 2021, 2, 489–517. [Google Scholar] [CrossRef]
  10. Tran, M.Q.; Nguyen, G.T.; Tan, S.; Nguyen, P.; Tsuchiya, T. Fog Computing Enabled Hydroponic Farming Systems. J. Mob. Multimed. 2022, 18, 981–1008. [Google Scholar] [CrossRef]
  11. Ibayashi, H.; Kaneda, Y.; Imahara, J.; Oishi, N.; Kuroda, M.; Mineno, H. A Reliable Wireless Control System for Tomato Hydroponics. Sensors 2016, 16, 644. [Google Scholar] [CrossRef] [PubMed]
  12. Costa, F.; Nassar, S.; Dantas, M. GoAT: A Sensor Ranking Approach for IoT Environments. Closer 2021, 1, 169–177. [Google Scholar] [CrossRef]
  13. Surantha, N.; Herman, H. Smart hydroculture control system based on iot and fuzzy logic. Int. J. Innov. Comput. Inf. Control. IJICIC 2020, 16, 207–221. [Google Scholar] [CrossRef]
  14. Kaiser, M.S.; Chowdhury, Z.; Mamun, S.A.; Hussain, A.; Mahmud, M. A Neuro-Fuzzy Control System Based on Feature Extraction of Surface Electromyogram Signal for Solar-Powered Wheelchair. Cogn. Comput. 2016, 8, 946–954. [Google Scholar] [CrossRef]
  15. Soheli, S.J.; Jahan, N.; Hossain, M.; Adhikary, A.; Khan, D.M.A.; Wahiduzzaman, M. Smart Greenhouse Monitoring System Using Internet of Things and Artificial Intelligence. Wirel. Pers. Commun. 2022, 124, 3603–3634. [Google Scholar] [CrossRef]
  16. Salazar, J.; David, H.-R.; Cruz, R.; Fernández, J.; Vera, M.; Macotela, F. Estimation of the Evapotranspiration using ANFIS algorithm for Agricultural Production in Greenhouse. In Proceedings of the 2019 IEEE International Conference on Applied Science and Advanced Technology (iCASAT), Queretaro, Mexico, 27–28 November 2019; pp. 1–5. [Google Scholar] [CrossRef]
  17. Arora, S.; Keshari, A.K. Dissolved oxygen modelling of Yamuna River using different ANFIS models. Water Sci. Technol. 2021, 84, 3359–3371. [Google Scholar] [CrossRef] [PubMed]
  18. Ali, M.; Afandi, A.; Parwati, A.; Hidayat, R.; Hasyim, C. Design of water level control systems using pid and anfis based on firefly algorithm. JEEMECS (J. Electr. Eng. Mechatron. Comput. Sci.) 2019, 2, 9–14. [Google Scholar] [CrossRef]
  19. Sharifi, H.; Roozbahani, A.; Shahdany, S.M.H. Evaluating the Performance of Agricultural Water Distribution Systems Using FIS, ANN and ANFIS Intelligent Models. Water Resour. Manag. 2021, 35, 1797–1816. [Google Scholar] [CrossRef]
  20. Kirci, P.; Ozturk, E.; Celik, Y. A Novel Approach for Monitoring of Smart Greenhouse and Flowerpot Parameters and Detection of Plant Growth with Sensors. Agriculture 2022, 12, 1075. [Google Scholar] [CrossRef]
  21. Resh, H. Hydroponic Food Production: A Definitive Guidebook for the Advanced Home Gardener and the Commercial Hydroponic Grower; CRC Press: Boca Raton, FL, USA, 2022. [Google Scholar] [CrossRef]
  22. Mukhtar, M.; Khudher, D.; Kalganova, T. A control structure for ambidextrous robot arm based on Multiple Adaptive Neuro-Fuzzy Inference System. IET Control. Theory Appl. 2021, 15, 1518–1532. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.