Water level control of small-scale recirculating aquaculture system with protein skimmer using fuzzy logic controller (original) (raw)

Water level control of small-scale recirculating aquaculture system with protein skimmer using fuzzy logic controller

Mulyanto 1{ }^{1}, Bedi Suprapty 1{ }^{1}, Achmad Fanany Onnilita Gaffar 1{ }^{1}, Muhammad Taufiq Sumadi 2{ }^{2}
1{ }^{1} The Applied Modern Computing and Robotic Systems Unit, Politeknik Negeri Samarinda, Samarinda, Indonesia
2{ }^{2} Department of Informatics, Faculty of Science and Technology, Universitas Muhammadiyah Kalimantan Timur, Samarinda, Indonesia

Article Info

Article history:

Received Dec 30, 2022
Revised Mar 4, 2023
Accepted Apr 24, 2023

Keywords:

3-coupled tank system
Fuzzy logic controller
Protein skimmer
Small-scale recirculating
aquaculture system

ABSTRACT

The recirculating aquaculture system (RAS) is a land-based aquaculture facility, either open-air or indoors, that minimizes water consumption by filtering, adapting, and reusing water. Solid organic matter from fish waste and food waste directly becomes waste that needs to be eliminated because it is a source of increasing total ammonia nitrogen (TAN), total suspended solids (TSS), total dissolved solids (TDS), and also has an impact on reducing dissolved oxygen (DO). RAS requires a water level control system so the fish tank does not experience water shortages or floods, disrupting the aquatic aquaculture ecosystem. In this study, small-scale RAS is modeled using a 3 -coupled tanks system approach with a tank configuration that follows the most straightforward RAS water recirculation process (fish tank, mechanic filter, biofilter). Clean water from the reservoir flows into the fish tank through a protein skimmer. This study applies the fuzzy logic controller (FLC) to control the water level in the protein skimmer and biofilter tanks by controlling the position of several valves where the placement positions of the valves have been determined according to system requirements. The study results show that the tuned single-input FLC has the best average output response characteristics with ts=50,h1zz=49.98,esx=0.02t_{s}=50, h_{1 \mathrm{zz}}=49.98, e_{s x}=0.02 in protein skimmer and ts=4700,h1zz=39.75,esx=0.25t_{s}=4700, h_{1 \mathrm{zz}}=39.75, e_{s x}=0.25 in the tank system.

This is an open access article under the CC BY-SA license.

Corresponding Author:

Bedi Suprapty
The Applied Modern Computing & Robotic Systems Unit, Politeknik Negeri Samarinda
Samarinda, Kalimantan Timur, Indonesia
Email: bedirheody@gmail.com

1. INTRODUCTION

The recirculating aquaculture system (RAS) is a land-based aquaculture facility, either open-air or indoors, that minimizes water consumption by filtering, adapting, and reusing water. Compared to a traditional pond or open-water aquaculture, the water recirculation process in RAS allows for the control of culture conditions and the collection of wastes. In addition, land-based aquaculture avoids fish escapes and limits the transmission of diseases and parasites from outside [1].

RAS technology tends to be like a water treatment system where the recirculation process aims to control the quality of RAS water. Solid organic matter from fish waste and food waste directly becomes waste that needs to be eliminated because it is a source of increasing ammonia nitrogen (TAN), total suspended solids (TSS), total dissolved solids (TDS), and also has an impact on reducing dissolved oxygen (DO) [2]. TSS can be reduced by using mechanical filtration. TAN is lowered by using biological filtration through a nitrification-denitrification process. Meanwhile, TDS is lowered using a protein skimmer through a foam fractionation process. Proper aeration is necessary for the nitrification-denitrification and foam

fractionation processes. Foam fractionation is the process of converting fine solids and protein residues in the form of fat into foam which is removed as FOAMATE [3]-[7].

RAS requires a water level control system so the fish tank does not experience water shortages or floods, disrupting the aquatic aquaculture ecosystem. Small-scale RAS can be analogous to a tank system so that controlling the water level requires a mathematical model approach to the tank system, which can be obtained empirically or experimentally [8]-[10] and the control strategy used [11]-[17].

The number and configuration of tanks in a tank system depend on the needs of the process to be modeled. The complexity and nonlinearity of a tank system model tend to increase with the number and configuration of tanks used. The selection of the control strategy and the type of controller used is crucial [9], [10], [13]-[15], [18]-[25]. In addition, this study involved a protein skimmer in RAS. The positioning of the protein skimmer in relation to the circulating water system in the RAS adds to the complexity of level control.

In this study, small-scale RAS is modeled using a 3-coupled tanks system approach with a tank configuration that follows the simplest RAS water recirculation process (fish tank, mechanic filter, biofilter). Clean water from the reservoir flows into the fish tank through a protein skimmer. This is intended so that clean water is completely free of TDS. In this case, the protein skimmer can be assumed as a supplier of clean water for the tank system. Meanwhile, the output water from the last tank (biofilter) is channeled into the reservoir. The purpose of control is to condition the water level in the protein skimmer at a certain level so that the foam fractionation process can work properly and control the water level in the biofilter tank in such a way that the fish tank does not run out of water or experience flooding.

This study applies the fuzzy logic controller (FLC) to control the water level in the protein skimmer and biofilter tanks by controlling the position of several valves where the placement positions of the said valves have been determined according to system requirements.

2. METHOD

This section explains the proposed research design and methods used. The proposed research design is the 3 -coupled tank system and water level control. FLC is used as the method.

2.1. The 3-coupled tank system

The small-scale RAS built in this applied research is modeled using a 3 -coupled tank system, as shown in Figure 1. The balance of water volume in the recirculating system is a problem in itself. Fish tank volume is usually larger than the volume of the water reservoir, with specific technical considerations. This difference needs to be anticipated so that the fish Tank does not experience water shortages, thereby disrupting the aquatic aquaculture ecosystem. By comparing the water level in the fish tank and reservoir and considering the water pump’s capacity, the water volume balance in the recirculation system can be conditioned according to needs.

In this study, the reservoir is assumed to have free dimensions, so a balanced review based on water level is focused on the water level in tank 3. By conditioning the water level in tank 3 (bio-filter), it is hoped that tank 1 (fish tank) will not run out of water or experience flooding. Meanwhile, to ensure that the protein skimmer can carry out the foam fractionation process, the water level in the protein skimmer must be maintained at the specified liquid level. If the water level in the protein skimmer changes, it will disrupt the FOAMATE production process at the FOAMATE outlet.

Modeling a small-scale RAS with a protein skimmer in a 3-coupled tank system is carried out by observing the mass balance of water between tanks, with the primary supply source coming from the protein skimmer water outlet. From Figure 1, we can get (1).

qp=k1⋅qpumpqin1=k3⋅q1qin2=k2⋅(1−k3)⋅q1\begin{aligned} & q_{p}=k_{1} \cdot q_{p u m p} \\ & q_{i n 1}=k_{3} \cdot q_{1} \\ & q_{i n 2}=k_{2} \cdot\left(1-k_{3}\right) \cdot q_{1} \end{aligned}

k1,k2k_{1}, k_{2} and k3k_{3} is the constant valve position (0≤k≤1).k1(0 \leq k \leq 1) . k_{1} and k2k_{2} are controlled using actuators. k3k_{3} controlled based on the change k1k_{1} and k2(k3=k1,k2)k_{2}\left(k_{3}=k_{1}, k_{2}\right). The pump water discharge specification is stated by qpump. q_{\text {pump. }}. In protein skimmers, Bernoulli’s principle applies as (2).

P1+12⋅ρ⋅vp2+ρ⋅g⋅h1=P2+12⋅ρ⋅v12++ρ⋅g⋅hoP_{1}+\frac{1}{2} \cdot \rho \cdot v_{p}^{2}+\rho \cdot g \cdot h_{1}=P_{2}+\frac{1}{2} \cdot \rho \cdot v_{1}^{2}++\rho \cdot g \cdot h_{o}

img-0.jpeg

Figure 1. Small-scale RAS with protein skimmer in the 3-coupled tank system model

The applicable pressure is the aeration pressure of the aeration pump, thus P1=P2.vpP_{1}=P_{2} . v_{\mathrm{p}} is the velocity of water flow at the protein skimmer inlet with a cross-sectional area k1⋅ak_{1} \cdot a. Because A1∗k1⋅aA_{1}{ }^{*} k_{1} \cdot a then it can be assumed vp≈0v_{p} \approx 0. The outlet portion is at the bottom of the protein skimmer, so that can be assumed ho=0h_{o}=0. Then, (2) become (3).

g⋅h1=12⋅v12→v1=2⋅g⋅h1g \cdot h_{1}=\frac{1}{2} \cdot v_{1}^{2} \rightarrow v_{1}=\sqrt{2 \cdot g} \cdot \sqrt{h_{1}}

The water discharge flowing at the outlet through cross-section aa can be expressed by (4),

q1=a⋅v1=a⋅2⋅g⋅h1=α⋅h1q_{1}=a \cdot v_{1}=a \cdot \sqrt{2 \cdot g} \cdot \sqrt{h_{1}}=\alpha \cdot \sqrt{h_{1}}

where α=a⋅2⋅g\alpha=a \cdot \sqrt{2 \cdot g}. The mass balance of the protein skimmer can be expressed by (5).

A1⋅dh1dt=qp−q1=qp−q1A1⋅dh1dt=k1⋅qpump−α⋅h1\begin{aligned} & A_{1} \cdot \frac{d h_{1}}{d t}=q_{p}-q_{1}=q_{p}-q_{1} \\ & A_{1} \cdot \frac{d h_{1}}{d t}=k_{1} \cdot q_{p u m p}-\alpha \cdot \sqrt{h_{1}} \end{aligned}

MATLAB Simulink Model from (5) is shown in Figure 2.

img-1.jpeg

Figure 2. MATLAB Simulink model sub-system protein skimmer

The flow of water from Tank 1 to Tank 2 creates energy, where the total energy in Tank 1 equals the total energy in Tank 2. This can be expressed by Bernoulli’s principle as (6).

P1+12⋅ρ⋅vin12+12⋅ρ⋅vin22+ρ⋅g⋅h2=P2+12⋅ρ⋅v32+ρ⋅g⋅h3P_{1}+\frac{1}{2} \cdot \rho \cdot v_{i n 1}^{2}+\frac{1}{2} \cdot \rho \cdot v_{i n 2}^{2}+\rho \cdot g \cdot h_{2}=P_{2}+\frac{1}{2} \cdot \rho \cdot v_{3}^{2}+\rho \cdot g \cdot h_{3}

Because Tank 1 and Tank 2 are open, the applied pressure is atmospheric pressure, so P1=P2⋅vin1P_{1}=P_{2} \cdot v_{i n 1} and vin2v_{i n 2} are the velocity of the water flow from the circulation pipe with the cross-sectional area of the valve k3⋅ak_{3} \cdot a and k2⋅ak_{2} \cdot a. Because A2′′(k3⋅a;k2⋅b)A_{2}{ }^{\prime \prime}\left(k_{3} \cdot a ; k_{2} \cdot b\right) then it can be assumed vin1=vin2≈0v_{i n 1}=v_{i n 2} \approx 0. Then, (6) become (7).

g⋅h2=12⋅v32+g⋅h3→v3=2⋅g⋅(h2−h3)g \cdot h_{2}=\frac{1}{2} \cdot v_{3}^{2}+g \cdot h_{3} \rightarrow v_{3}=\sqrt{2 \cdot g \cdot\left(h_{2}-h_{3}\right)}

The water discharge flowing into Tank 2 through cross-section bb can be expressed by (8),

q3=b⋅v3=b⋅2⋅g⋅h2−h3=β⋅h23q_{3}=b \cdot v_{3}=b \cdot \sqrt{2 \cdot g} \cdot \sqrt{h_{2}-h_{3}}=\beta \cdot \sqrt{h_{23}}

where β=b⋅2⋅g\beta=b \cdot \sqrt{2 \cdot g} dan h23=h2−h3\sqrt{h_{23}}=\sqrt{h_{2}-h_{3}}. With reference to (1) and (8), the mass balance in Tank 1 can be expressed by (9),

A2⋅dh2dt=q2−q3=qin1+qin2−q3A2⋅dh2dt=k3⋅q1+k2⋅(1−k3)⋅q1−q3A2⋅dh2dt=(k3+k2⋅(1−k3))⋅α⋅h1−β⋅h23\begin{aligned} & A_{2} \cdot \frac{d h_{2}}{d t}=q_{2}-q_{3}=q_{i n 1}+q_{i n 2}-q_{3} \\ & A_{2} \cdot \frac{d h_{2}}{d t}=k_{3} \cdot q_{1}+k_{2} \cdot\left(1-k_{3}\right) \cdot q_{1}-q_{3} \\ & A_{2} \cdot \frac{d h_{2}}{d t}=\left(k_{3}+k_{2} \cdot\left(1-k_{3}\right)\right) \cdot \alpha \cdot \sqrt{h_{1}}-\beta \cdot \sqrt{h_{23}} \end{aligned}

where k3+k2⋅(1−k3)k_{3}+k_{2} \cdot\left(1-k_{3}\right) are multi-valve. MATLAB Simulink model from (9) is shown in Figures 3 and 4.
img-2.jpeg

Figure 3. MATLAB Simulink model sub-system Tank 1

img-3.jpeg

Figure 4. MATLAB Simulink model sub-system multi-valve

In the same way, obtained (10).

v4=2.g⋅h34v_{4}=\sqrt{2 . g} \cdot \sqrt{h_{34}}

The water discharge flowing into Tank 3 through cross section bb can be expressed by (11).

q4=b⋅v4=b⋅2.g⋅h34=β⋅h34q_{4}=b \cdot v_{4}=b \cdot \sqrt{2 . g} \cdot \sqrt{h_{34}}=\beta \cdot \sqrt{h_{34}}

The mass balance in Tank 2 can be expressed by (12).

A3⋅dh3dt=q3−q4A3⋅dh3dt=β⋅h23−β⋅h34\begin{aligned} & A_{3} \cdot \frac{d h_{3}}{d t}=q_{3}-q_{4} \\ & A_{3} \cdot \frac{d h_{3}}{d t}=\beta \cdot \sqrt{h_{23}}-\beta \cdot \sqrt{h_{34}} \end{aligned}

MATLAB Simulink Model from (12) is shown in Figure 5.
img-4.jpeg

Figure 5. MATLAB Simulink model sub-system Tank 2

In Tank 3, around the outlet pipe, it can be assumed that hout =0h_{\text {out }}=0 so that the applicable Bernoulli’s principle is as (13).

g⋅h4=12⋅vout 2→vout =2.g⋅h4g \cdot h_{4}=\frac{1}{2} \cdot v_{\text {out }}^{2} \rightarrow v_{\text {out }}=\sqrt{2 . g} \cdot \sqrt{h_{4}}

The water rate in the outlet pipe is expressed by (14).

qout =a⋅vout =a⋅2.g⋅h4=α⋅h4q_{\text {out }}=a \cdot v_{\text {out }}=a \cdot \sqrt{2 . g} \cdot \sqrt{h_{4}}=\alpha \cdot \sqrt{h_{4}}

The mass balance in Tank 3 can be expressed by (15).

A4⋅dh4dt=q4−qout A4⋅dh4dt=β⋅h34−β⋅h4\begin{aligned} & A_{4} \cdot \frac{d h_{4}}{d t}=q_{4}-q_{\text {out }} \\ & A_{4} \cdot \frac{d h_{4}}{d t}=\beta \cdot \sqrt{h_{34}}-\beta \cdot \sqrt{h_{4}} \end{aligned}

MATLAB Simulink model from (15) is shown in Figure 6, while the valve position variables, k1k_{1} and k2k_{2} are modeled as shown in Figure 7.
img-5.jpeg

Figure 6. MATLAB Simulink model sub-system Tank 3
img-6.jpeg

Figure 7. MATLAB Simulink model sub-system k1k_{1} dan k2k_{2}

2.2. Water level control

In this study, k1k_{1} is the variable valve position used to adjust the water level in the protein skimmer (h1).k2\left(h_{1}\right) . k_{2} is used to adjust the water level in tank 3(h4)3\left(h_{4}\right), while k3k_{3} is used to adjust the multi-valve manually. The multi-valve regulates the water flow transition from the protein skimmer to the tank system. The water level in the protein skimmer is expected to reach h1=50 cmh_{1}=50 \mathrm{~cm}, while the water level in tank 3,h4=40 cm3, h_{4}=40 \mathrm{~cm}. The specifications of small-scale RAS with a protein skimmer are shown in Table 1.

Table 1. Specifications of small-scale RAS with a protein skimmer

Description Notation Value Unit
Cross-sectional area of circulating pipe aa 1.27 cm2\mathrm{~cm}^{2}
Cross-sectional area of interaction pipe between Tank 1, Tank 2, Tank 3 bb 5.06 cm2\mathrm{~cm}^{2}
Cross-sectional area of outlet pipe in Tank 3 aa 1.27 cm2\mathrm{~cm}^{2}
Cross-sectional area of protein skimmer A1A_{1} 400 cm2\mathrm{~cm}^{2}
Cross-sectional area of Tank 1 A2A_{2} 10000 cm2\mathrm{~cm}^{2}
Cross-sectional area of Tank 2 and Tank 3 A3=A4A_{3}=A_{4} 1500 cm2\mathrm{~cm}^{2}
The flow rate of pump qpump q_{\text {pump }} 694 cm3/sec\mathrm{~cm}^{3} / \mathrm{sec}

2.3. Fuzzy logic controller

FLC is a fuzzy logic-based controller that implements the fuzzy inference system (FIS) in its reasoning. FIS consists of four parts: fuzzification, inference engine, knowledge-based, and defuzzification. Fuzzification is the process of transforming crisp values into fuzzy values using fuzzy sets for each of the variables involved. Fuzzy sets are constructed using membership functions (triangular, trapezoidal membership functions, etc.) that represent the linguistic variables used. The linguistic variable is a representation of human reasoning over many values within a specific range. An illustration of the fuzzification process is shown in Figure 8. The range of values {0…100}\{0 \ldots 100\} is represented linguistically as low, medium, and high. the low and high linguistic variables are represented by the trapezoidal membership

function and the triangular membership function for medium. The value of crips 35 is fuzzified into linguistic low with a fuzzy value of 0.75 and medium with a fuzzy value of 0.25 .

An inference engine is a reasoning process based on the logic of human linguistic knowledge (knowledge-based) packaged into a rule-based set. The inference engine applies fuzzy operators, implications, and aggregations. All three use the AND/min or OR/max method, as needed.
img-7.jpeg

Figure 8. Fuzzification

FIS Mamdani applies IF (input) THEN (output) rules. If the input is more than one, then the fuzzy operator needs to be applied to each rule-based line. The implication is the transformation of the result of using the IF (input) THEN (output) rules to each rule line into a set of fuzzy outputs. The implication method can be AND/min or OR/max. As the illustration shown in Figure 9. Aggregation is the process of combining all output fuzzy sets into a single fuzzy set. Typically, aggregation uses the AND/max method. Finally, defuzzification is the process of transforming a single fuzzy set into one crisp value as the FIS output. Usually using the centroid method. This is illustrated in Figure 10.
img-8.jpeg

Figure 9. Application of IF (input) THEN (output) rules and their implicit
img-9.jpeg

Figure 10. Aggregation and defuzzification

3. RESULTS AND DISCUSSION

These results are obtained from the simulations carried out using the MATLAB/Simulink software. The results are divided into five parts, single-input FLC, single-input FLC with setpoint, gained single-input FLC with setpoint, tuned single-input FLC with setpoint, and setpoint change experiment.

3.1. Single-input FLC

Single-input FLC is an FLC that utilizes water level output data at any time as input. While the FLC output is a constant valve position (0≤k≤1)(0 \leq k \leq 1). Linguistic variables for the fuzzy input set (Level) are VLV L (very low), LL (low), MM (medium), HH (high), and VHV H (very high). Linguistic variables for the output fuzzy set (valve) are CFC F (close fast), CSC S (close slow), NCN C (no change), OSO S (open slow), and OFO F (open fast). The target water level is set on a linguistic variable MM where the valve condition is NCN C. Reasoning based on linguistic logic is: i) IF Level is VLV L, THEN Valve is OFO F, ii) IF Level is LL, THEN Valve is OSO S, iii) IF Level is MM, THEN Valve is NCN C, iv) IF Level is HH, THEN Valve is CSC S, and v) IF Level is VHV H, THEN Valve is CFC F. Fuzzy sets (input and output) are built using trapezoidal and triangular membership functions in the range of values {0\{0 … 1$}$ as shown in Figure 11.
img-10.jpeg

Figure 11. Fuzzy set of input (level) and output (valve)

The range of values for the fuzzy output set (valve) is directly related to the range of valve position values (0≤k≤1)(0 \leq k \leq 1). The range of values for the fuzzy input set (level) represents the normalized value of the water level in the protein skimmer (h1)\left(h_{1}\right) and tank 3(h4)3\left(h_{4}\right). In this case, the crisp input value is expressed by (16),

level =h/N\text { level }=h / N

where NN is the normalizer value.
FLC with one input was built using FIS MATLAB with some design characteristics: i) FIS: Mamdani, ii) Implication method (AND): min, iii) aggregation method: max, and iv) defuzzification method: centroid.

MATLAB Simulink model for water level control small-scale RAS with protein skimmer using single-input FLC is shown in Figures 12 and 13, with output response water level in the protein skimmer as in Figure 14(a) and water level in Tank 3 as in Figure 14(b) with criteria ±2%\pm 2 \% from the final value.

img-11.jpeg

Figure 12. MATLAB Simulink model for water level control of small-scale RAS using single-input FLC
img-12.jpeg

Figure 13. MATLAB Simulink model for tank system sub-system
img-13.jpeg

Figure 14. Output response for (a) h1ts=107sec,h1ss=50.04h_{1} t_{s}=107 \mathrm{sec}, h_{1 s s}=50.04 and (b) h4ts=8915sec,h4ss=40.06h_{4} t_{s}=8915 \mathrm{sec}, h_{4 s s}=40.06 using FLC one input

3.2. Single-input FLC with setpoint

If a setpoint is included for each water level (h1\left(h_{1}\right. dan h4)\left.h_{4}\right) then it is necessary to consider the presence of an error level, which is expressed by: eh=hsetpoint −houtput e_{h}=h_{\text {setpoint }}-h_{\text {output }}. With hsetpoint h_{\text {setpoint }} acting as a normalizer such thaterror_level =eh/hsetpoint =e_{h} / h_{\text {setpoint }}, then error_level will be within the value range {−1…1}\{-1 \ldots 1\}. The set of fuzzy inputs (error level) used is shown in Figure 15. The linguistic variable used is NBN B (negative big), NSN S (negative small), ZZ (zero), PSP S (positive small), and PBP B (positive big). Reasoning based on linguistic logic

used is: i) IF Level is NBN B, THEN Valve is CFC F, ii) IF Level is NSN S, THEN Valve is CSC S, iii) IF Level is ZZ, THEN Valve is NCN C, iv) IF Level is PSP S, THEN Valve is OSO S, and v) IF Level is PBP B, THEN Valve is OFO F.
img-14.jpeg

Figure 15. Set of fuzzy input (error level) for one input FLC with setpoint

MATLAB Simulink model of small-scale RAS water level control using a single-input FLC with setpoint shown in Figures 16 and 17 with output response as shown in Figure 18. It appears that the system response output produces a steady state error, ess−h1=4.94e_{s s-h 1}=4.94 and ess−h4=9.77e_{s s-h 4}=9.77.
img-15.jpeg

Figure 16. MATLAB Simulink model for water level control of small-scale RAS using single-input FLC with setpoint
img-16.jpeg

FLC protein skimmer
img-17.jpeg

Figure 17. MATLAB Simulink Model for sub-system FLC one input with setpoint

img-18.jpeg

Figure 18. Output response using FLC one input with setpoint

3.3. Gained single-input FLC with setpoint

To reduce exxe_{x x} the FLC gain is used, which is placed on the output side of the FLC, as shown in Figure 19. In this case, the controlled signal is expressed as (17).

u=FLC(eh setpoint )⋅GFLCu=F L C\left(\frac{e_{h}}{\text { setpoint }}\right) \cdot G_{F L C}

img-19.jpeg

FLC Protein Skimmer
img-20.jpeg

Figure 19. MATLAB Simulink model for sub-system gained single-input FLC setpoint

The system response output is shown in Figure 20. By setting GFLC1=1.16G_{F L C 1}=1.16 and GFLC2=1.6G_{F L C 2}=1.6 a protein skimmer water level steady state value can be achieved, h1xx=50.03h_{1 x x}=50.03 with tx=77.25sect_{x}=77.25 \mathrm{sec}, as can be seen in Figure 20(a). Meanwhile the water level in Tank 3, h4xx=39.97h_{4 x x}=39.97 with tx=5260sect_{x}=5260 \mathrm{sec}. In this case, GFLCG_{F L C} serves to minimize the steady state error (exx)\left(e_{x x}\right) outside the ±2%\pm 2 \% area of the final value, as shown in Figure 20(b).
img-21.jpeg

IAES Int J Rob & Autom, Vol. 12, No. 3, September 2023: 300-314

(a)
(b)

Figure 20. Output response using gained single-input FLC with setpoint for (a) h1(ts=77.25sec,h1ss=h_{1}\left(t_{s}=77.25 \mathrm{sec}, h_{1 s s}=\right. 50.03)50.03) and (b) output response h4(ts=5260sec,h4ss=39.97)h_{4}\left(t_{s}=5260 \mathrm{sec}, h_{4 s s}=39.97\right)

3.4. Tuned single-input FLC with setpoint

Next, esse_{s s} is reduced by tuning the input and output fuzzy sets (without FLC gain). Tuning the fuzzy input set is done by changing the range of values for each linguistic variable, as shown in Table 2. The form of the membership function is the same as in Figure 15. Meanwhile, the output fuzzy set tuning is shown in Table 3 and Figure 21. The system response output is shown in Figure 22.

Table 2. Tuning the range of linguistic variable values, set of fuzzy input (error level)

Linguistic variable before after
NB −1-1 −0.2-0.2 −1-1 −0.01-0.01
NS −0.4-0.4 0 −0.02-0.02 0
Z −0.2-0.2 0.2 −0.01-0.01 −0.01-0.01
PS 0 0.4 0 0.02
PB 0.2 1 0.01 1

Table 3. Tuning the range of linguistic variable values, set of fuzzy output (valve)

Linguistic variable before after
CF 0 0.4 0 0.05
CS 0.3 0.5 0 0.5
NC 0.4 0.6 0.495 0.505
OS 0.5 0.7 0.5 1
OF 0.6 1 0.95 1

img-22.jpeg

Figure 21. Tuning fuzzy output set (valve)
img-23.jpeg

Figure 22. Output response using tuned single-input FLC with setpoint

By applying a tuned single-input FLC then it is obtained h1ss=49.98h_{1 s s}=49.98 with ts=50sect_{s}=50 \mathrm{sec}, while the water level in Tank 3, h4ss=39.75h_{4 s s}=39.75 with ts=4700sect_{s}=4700 \mathrm{sec}. The appearance of overshoot in the response output h1h_{1} is still acceptable because it is still within the ±2%\pm 2 \% area of the final value.

A summary of the experimental results of dynamical system models using several types of singleinput FLC with setpoints is shown in Table 4. From the table, it can be seen that the tuned single-input FLC has the best average output response characteristics.

Table 4. Summary of the experimental results of dynamic system model using single-input FLC with setpoint variations

Single input FLC Protein Skimmer Tank System
tst_{s} h1 s sh_{1 \mathrm{~s} \mathrm{~s}} esse_{s s} tst_{s} h4 s sh_{4 \mathrm{~s} \mathrm{~s}} esse_{s s}
original 125 45.07 4.93 5100 30.23 9.77
gained 77.25 50.03 0.03 5260 39.97 0.03
tuned 50 49.98 0.02 4700 39.75 0.25

3.5. Setpoint change experiment

Furthermore, both types of FLC (gained and tuned FLC) controllers were tested with changing setpoints. This test is intended to simulate the condition of the small-scale RAS water level, which under certain conditions, may change because the mechanical filter material begins to saturate with TSS. The test results, which are shown in Figure 23, show that tuned FLC can follow setpoint changes well, and vice versa for gained FLC.
img-24.jpeg

Figure 23. The results of the gained FLC and tuned FLC tests with changing setpoints

4. CONCLUSION

The small-scale RAS mathematical modeling in this study is approached by analogy with a 3coupled tank system (fish tank, mechanic filter, biofilter). System dynamic models become complex when protein skimmers are involved. In order for the foam fractionation process in the protein skimmer to function properly, the water level in the protein skimmer needs to be conditioned in such a way as not to change. In this study, clean water from the reservoir flowed into the fish tank via a protein skimmer to ensure that TDS was completely removed. This means protein skimmer is a source of fish tank supply. Because the biofilter tank is the last tank where the water outlet goes to the reservoir, the water level of the biofilter tank needs to be controlled in such a way that the fish tank does not lack water or otherwise flooding occurs. Control of the water level at these two points is carried out simultaneously through the configuration of several predefined valves where the opening/closing position of the valves is controlled using FLC. This study uses a singleinput FLC with a setpoint designed in two modes: gained and tuned FLC. The study results show that the tuned single-input FLC has the best average output response characteristics. Tests were also carried out by providing a changing setpoint, where the results showed that the tuned FLC could follow the setpoint changes well and vice versa for the gained FLC.

ACKNOWLEDGEMENTS

IAES Int J Rob & Autom, Vol. 12, No. 3, September 2023: 300-314

The authors are grateful to the Applied Modern Computing & Robotic Systems Unit Politeknik Negeri Samarinda, East Kalimantan, Indonesia.

REFERENCES

[1] European Commission and Directorate-General for Maritime Affairs and Fisheries, Recirculation aquaculture systems. Publications Office, 2020. doi: 10.2771/66025.
[2] K. J. de Jesus Gregersen, L.-F. Pedersen, P. B. Pedersen, E. Syropoulou, and J. Dalsgaard, “Foam fractionation and ozonation in freshwater recirculation aquaculture systems,” Aquacultural Engineering, vol. 95, p. 102195, Nov. 2021, doi: 10.1016/j.aquaeng.2021.102195.
[3] P. Almeida, L. Dewasme, and A. Vande Wouwer, “Denitrification control in a recirculating aquaculture system-A simulation study,” Processes, vol. 8, no. 10, p. 1306, Oct. 2020, doi: 10.3390/pr8101306.
[4] F. Asiri and K.-H. Chu, “A novel recirculating aquaculture system for sustainable aquaculture: Enabling wastewater reuse and conversion of waste-to-immune-stimulating fish feed,” ACS Sustainable Chemistry & Engineering, vol. 8, no. 49, pp. 1809418105, Dec. 2020, doi: 10.1021/acsuschemeng.0c06375.
[5] K. J. Jankowski, F. H. Mejia, J. R. Blaszczak, and G. W. Holtgrieve, “Aquatic ecosystem metabolism as a tool in environmental management,” WIREs Water, vol. 8, no. 4, Jul. 2021, doi: 10.1002/wat2.1521.
[6] T. Kassem, I. Shahrour, J. El Khattabi, and A. Raslan, “Smart and sustainable aquaculture farms,” Sustainability, vol. 13, no. 19, p. 10685, Sep. 2021, doi: 10.3390/su131910685.
[7] X. Zhang et al., “Evaluation and analysis of water quality of marine aquaculture area,” International Journal of Environmental Research and Public Health, vol. 17, no. 4, p. 1446, Feb. 2020, doi: 10.3390/ijprph17041446.
[8] R. B. Balaram Naik and S. Kanagalakshmi, “Mathematical modelling and controller design for interacting hybrid two tank system (IHTTS),” in 2020 Fourth International Conference on Inventive Systems and Control (ICISC), Jan. 2020, pp. 297-303. doi: 10.1109/ICISC47916.2020.9171218.
[9] S. Subramanian, G. B. Chidhambaram, and S. Dhandapani, “Modeling and validation of a four-tank system for level control process using black box and white box model approaches,” IEEJ Transactions on Electrical and Electronic Engineering, vol. 16, no. 2, pp. 282-294, Feb. 2021, doi: 10.1002/tee. 23295.
[10] X. Tan, Z. Zhu, G. Sun, L. Diao, and J. Cao, “Modeling and simulation of layered water tank based on MATLAB/SIMULINK,” Journal of Physics: Conference Series, vol. 2173, no. 1, p. 012005, Jan. 2022, doi: 10.1088/1742-6596/2173/1/012005.
[11] Q. A. Mahmood, A. T. Nawaf, and S. A. Mohamedali, “Simulation and performance of liquid level controllers for linear tank,” Jurnal Teknologi, vol. 82, no. 3, Apr. 2020, doi: 10.11113/jt.v82.14245.
[12] H. Mudia, “Comparative study of Mamdani-type and Sugeno-type fuzzy inference systems for coupled water tank,” Indonesian Journal of Artificial Intelligence and Data Mining, vol. 3, no. 1, p. 42, May 2020, doi: 10.24014/ijaidm.v3i1.9309.
[13] N. N. Son, “Level control of quadruple tank system based on adaptive inverse evolutionary neural controller,” International Journal of Control, Automation and Systems, vol. 18, no. 9, pp. 2386-2397, Sep. 2020, doi: 10.1007/s12555-019-0504-8.
[14] C. Zhou and P. Jiang, “A design of high-level water tank monitoring system based on Internet of things,” in 2020 7th International Forum on Electrical Engineering and Automation (IFEEA), Sep. 2020, pp. 769-774. doi: 10.1109/IFEEA51475.2020.00163.
[15] P. Barat and S. Mandal, “Robust control of coupled-tank system using uncertainty and disturbance estimator,” in 2021 IEEE Second International Conference on Control, Measurement and Instrumentation (CMI), Jan. 2021, pp. 128-132. doi: 10.1109/CMI50323.2021.9362932.
[16] B. Prasad, R. Kumar, and M. Singh, “Performance analysis of model predictive control for cascaded tank level control system,” in 2021 IEEE 2nd International Conference On Electrical Power and Energy Systems (ICEPES), Dec. 2021, pp. 1-6. doi: 10.1109/ICEPES52894.2021.9699765.
[17] C. Utrea and F. Páez, “Design and comparison of strategies for level control in a nonlinear tank,” Processes, vol. 9, no. 5, p. 735, Apr. 2021, doi: 10.3390/pr9050735.
[18] V. Chaudhari, B. Tamhane, and S. Kurode, “Robust liquid level control of quadruple tank system - Second order sliding mode approach,” IFAC-PapersOnLine, vol. 53, no. 1, pp. 7-12, 2020, doi: 10.1016/j.ifacol.2020.06.002.
[19] P. Shah and S. Hanwate, “Modelling and simulation of quadruple tank system using SBL-PI controller,” in 2020 International Conference on Industry 4.0 Technology (4Tech), Feb. 2020, pp. 70-75. doi: 10.1109/I4Tech48345.2020.9102644.
[20] D. S. Bhandare, N. R. Kulkarni, and M. V. Bakshi, “Linearization of a coupled tank MIMO system and its validation using MATLAB,” in 2021 6th International Conference for Convergence in Technology (I2CT), Apr. 2021, pp. 1-5. doi: 10.1109/I2CT51068.2021.9417875.
[21] N. S. Pooia, M. Ghatke, and S. D’souza, “Application of distributed control system for monitoring and control of three tank level control,” in 2019 3rd IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), May 2018, pp. 387-391. doi: 10.1109/RTEICT42901.2018.9012569.
[22] V. C and E. C, “Fuzzy PI and Fuzzy PID Controller Based Hopper Tank Level Control System,” in 2021 International Conference on Advances in Electrical, Computing, Communication and Sustainable Technologies (ICAECT), Feb. 2021, pp. 1-5. doi: 10.1109/ICAECT49130.2021.9392451.
[23] K. Narwekar and V. A. Shah, “Level control of coupled tank using higher order sliding mode control,” in 2017 IEEE International Conference on Intelligent Techniques in Control, Optimization and Signal Processing (INCOS), Mar. 2017, pp. 1-5. doi: 10.1109/ITCOSP.2017.8303098.
[24] H. Leng and Y. Zhang, “Modeling and simulation of double capacity tank level control system based on linear graph theory,” in 2018 37th Chinese Control Conference (CCC), Jul. 2018, pp. 1574-1579. doi: 10.23919/ChICC.2018.8483329.
[25] M. M. Gulzar, M. Munawar, Z. Dewan, M. Salman, and S. Iqbal, “Level control of coupled conical tank system using adaptive model predictive controller,” in 2020 IEEE 17th International Conference on Smart Communities: Improving Quality of Life Using ICT, IoT and AI (HONET), Dec. 2020, pp. 236-240. doi: 10.1109/HONET50430.2020.9322842.

BIOGRAPHIES OF AUTHORS

img-25.jpeg

Mulyanto (1) 园 C\mathbf{C} was born in Samarinda, on February 13, 1975. He received a bachelor’s degree in computer science from the University of Indonesia in 1999 and then received a master’s in computer science from Gadjah Mada University in 2016. He is a lecturer at the Department of Information Technology, State Polytechnic of Samarinda. His current research interests include modeling and simulation, artificial intelligence, and intelligent computing. He can be contacted at mulyanto@polnes.ac.id.
img-26.jpeg

Bedi Suprapty (1) 园 C\mathbf{C} was born in Samarinda, on December 10, 1978. She completed her undergraduate (S1) majoring in Information Technology at STMIK Widya Cipta Dharma Samarinda in 2001, and her postgraduate study in the Information System Department at Diponegoro University Semarang in 2013. Beginning in 2002, she has been working as a lecturer in the Department of Information Technology, State Polytechnic of Samarinda until now. Her representative published articles are Design of Information System for Acceptance Selection of Prospective Employees Online Using Tahani Fuzzy Logic Method and Simple Additive Weighting (2016) and Rainfall Prediction using Fuzzy Inference System for Preliminary Micro-Hydro Power Plant Planning (2018, SCOPUS Indexed). Her areas of interest include Human-computer interaction, intelligent computing, and artificial intelligence (AI). She can be contacted at bedirheody @ gmail.com.
img-27.jpeg

Achmad Fanany Omnilita Gaffar (1) 园 C\mathbf{C} was born in Surabaya, on October 23, 1969. Completed undergraduate (S1) majoring in Electrical Engineering at Sepuluh Nopember Institute of Technology Surabaya in 1995. Completed postgraduate study in the Electrical Engineering Department at Brawijaya University Malang in 2011. Beginning in 1998, he has been working as a lecturer in the Department of Electrical Engineering, and as a lecturer at the Department of Information Technology, State Polytechnic of Samarinda from 2012 until now. In the last 4 years, he produced 20 Scopus-indexed articles in the form of journals and IEEE proceedings. His areas of interest include robotics and artificial intelligence, intelligent control, machine learning, computer vision, and data science. He can be contacted at onnygaffar212@polnes.ac.id.
img-28.jpeg

Muhammad Taufiq Sumadi (1) 园 C\mathbf{C} was born in Samarinda, 1995. Completed postgraduate study in the Informatics and Computer Engineering Department at EEPIS (Electronic Engineering Polytechnic Institute of Surabaya) in 2021. Beginning in 2022, he has been working as a lecturer in the Department of Informatics, Faculty of Sains and Technology, Universitas Muhammadiyah Kalimantan Timur. His areas of interest include cryptography, intelligent networks, and image processing. He can be contacted at sumadi11895@gmail.com.