Fuzzy Logic-based Gain Scheduling for PI control of a Nonlinear pH Process

Document Type : Regular Article

Authors

Department of Chemical Engineering, Amirkabir University of Technology (Tehran Polytechnic), Tehran 159163-4311, Iran

10.22034/ijche.2026.564760.1581
Abstract
pH control is crucial in biological and water treatment processes, yet it poses significant challenges due to its nonlinear characteristics. Conventional Proportional-Integral-Derivative (PID) controllers, although operator-friendly, often struggle to maintain satisfactory performance in highly nonlinear systems, especially when subjected to disturbances, measurement delay, and measurement noise. On the other hand, gain scheduling is a technique to cope with the process nonlinearity while maintaining the PID simplicity for the operators. In this paper, a gain-scheduled digital proportional-integral (PI) controller is presented for pH control, where the parameters of the controller are adapted using fuzzy logic. The control error and its numerical derivative are fed to the fuzzy inference unit with 7 membership functions, fuzzifying the severity of the control deviation. Then, the PI proportional and integral gains are updated in the defuzzification step. A simulation of a benchmark pH process with measurement delay was carried out under various scenarios. The results show that the proposed fuzzy-PI controller significantly outperforms the conventional PI controller. This is especially true in cases of feed disturbance and considerable changes in the setpoint, where the nonlinear process deviates significantly from the nominal point. In a combined disturbance/setpoint change scenario, the fuzzy-PI controller reduces the integral of the absolute error by 54%.

Keywords

Subjects

[1] Hao XD, Wang QL, Zhu JY, Van Loosdrecht MCM (2010) Microbiological endogenous processes in biological wastewater treatment systems. Crit Rev Environ Sci Technol 40(3):239–265. https://doi.org/10.1080/10643380802278901.
[2] Aguiar RA, Franco IC, Leonardi F, Lima F (2018) Fractional PID controller applied to a chemical plant with level and pH control. Chem Prod Process Model 13(4):1–12. https://doi.org/10.1515/cppm-2018-0004.
[3] Åström KJ, Wittenmark B (2008) Adaptive Control, 2nd ed. Dover Publications, Mineola.
[4] Stephanopoulos G (2025) Chemical and Biological Process Dynamics and Control. Tetractýs Editions, Winchester, MA.
[5] Ju HC, Ri KC, Jon JS, Kim CJ (2023) pH Control of Yeast Fed-Batch Fermentation Process by Improved Input-Output Linearization Method. Theor Found Chem Eng 57(6):1403–1413. https://doi.org/10.1134/s0040579523060088.
[6] Wang Y, Zhang N, Chen C, Jiang Y, Liu T (2023) Nonlinear Adaptive Generalized Predictive Control for PH Model of Nutrient Solution in Plant Factory Based on ANFIS. Processes 11(8):2317. https://doi.org/10.3390/pr11082317.
[7] Hozefa J, Shadab S, Revati G, Wagh SR, Singh NM (2021) Adaptive control of nonlinear systems: Parametric and non-parametric approach. In: 2021 29th Mediterranean Conference on Control and Automation (MED), pp 1007–1012. https://doi.org/10.1109/MED51440.2021.9480230.
 [8] Chen J, Ou B (2023) pH nonlinear process control method based on Lyapunov stability theory. In: 2023 IEEE 12th Data Driven Control and Learning Systems Conference (DDCLS), pp 863–868. https://doi.org/10.1109/DDCLS58216.2023.10166680.
[9] Yoon SS, Yoon TW, Yang DR, Kang TS (2002) Indirect adaptive nonlinear control of a pH process. Comput Chem Eng 26(9):1223–1230. https://doi.org/10.1016/S0098-1354(02)00088-1.
[10] Salehi S, Shahrokhi M, Nejati A (2009) Adaptive nonlinear control of pH neutralization processes using fuzzy approximators. Control Eng Pract 17(11):1329–1337. https://doi.org/10.1016/j.conengprac.2009.06.007.
[11] Pishvaie MR, Shahrokhi M (2000) pH Control Using the Nonlinear Multiple Models, Switching, and Tuning Approach. Ind Eng Chem Res 39(5):1311–1319. https://doi.org/10.1021/ie990412k.
[12] Pishvaie MR, Shahrokhi M (2006) Control of pH processes using fuzzy modeling of titration curve. Fuzzy Sets Syst 157:2983–3006. https://doi.org/10.1016/j.fss.2006.05.010.
[13] Wu H, Yan F, Wang G, Lv C (2022) A predictive control based on decentralized fuzzy inference for a pH neutralization process. J Process Control 110:76–83. https://doi.org/10.1016/j.jprocont.2021.12.001.
[14] Hermansson AW, Syafiie S (2015) Model predictive control of pH neutralization processes: A review. Control Eng Pract 45:98–109. https://doi.org/10.1016/j.conengprac.2015.09.005.
[15] Saadat A, Alvanagh AA, Rezaei H (2013) pH control in biological process using MMPC based on neuro-fuzzy model by LOLIMOT algorithm. In: 2013 9th Asian Control Conference (ASCC), pp 1–6. https://doi.org/10.1109/ASCC.2013.6606384.
[16] Pataro IML, Gil JD, Guzmán JL, Berenguel M, Lemos JM (2023) A learning-based model predictive strategy for pH control in raceway photobioreactors with freshwater and wastewater cultivation media. Control Eng Pract 138:105619. https://doi.org/10.1016/j.conengprac.2023.105619.
[17] Glida HE, Abdou L, Chelihi A, Sentouh C, Perozzi G (2022) Optimal model-free fuzzy logic control for autonomous unmanned aerial vehicle. Proc Inst Mech Eng Part G J Aerosp Eng 236(5):952–967. https://doi.org/10.1177/09544100211025379.
[18] Muller A, Marsili-Libelli S, Aivasidis A, Lloyd T, Kroner S, Wandrey C (1997) Fuzzy control of disturbances in a wastewater treatment process. Water Res 31(12):3157–3167. https://doi.org/10.1016/S0043-1354(97)00215-7.
[19] Karr CL, Sharma SK, Hatcher WJ, Harper TR (1993) Fuzzy control of an exothermic chemical reaction using genetic algorithms. Eng Appl Artif Intell 6(6):575–582. https://doi.org/10.1016/0952-1976(93)90054-2.
[20] Sahu H, Ayyagari R (2016) Interval fuzzy type-II controller for the level control of a three tank system. IFAC-PapersOnLine 49(1):561–566. https://doi.org/10.1016/j.ifacol.2016.03.114.
[21] Maidi A, Diaf M, Corriou JP (2008) Optimal linear PI fuzzy controller design of a heat exchanger. Chem Eng Process Process Intensif 47(5):938–945. https://doi.org/10.1016/j.cep.2007.03.008.
[22] Anitha T, Gopu G, Nagarajapandian M, Devan PAM (2019) Hybrid Fuzzy PID Controller for Pressure Process Control Application. In: 2019 IEEE Student Conference on Research and Development (SCOReD), pp 129–133. https://doi.org/10.1109/SCORED.2019.8896276.
[23] Ruano MV, Ribes J, Ruiz-Martinez A, Seco A, Robles A (2024) An advanced control system for nitrogen removal and energy consumption optimization in full-scale wastewater treatment plants. J Water Process Eng 57:104705. https://doi.org/10.1016/j.jwpe.2023.104705.
[24] Precup RE, Hellendoorn H (2011) A survey on industrial applications of fuzzy control. Comput Ind 62(3):213–226. https://doi.org/10.1016/j.compind.2010.10.001.
[25] Gamiz J, Vilanova R, Martinez-Garcia H, Bolea Y, Grau A (2020) Fuzzy Gain Scheduling and Feed-Forward Control for Drinking Water Treatment Plants (DWTP) Chlorination Process. IEEE Access 8:110018–110032. https://doi.org/10.1109/ACCESS.2020.3002156.
[26] Wase MG, Gebrekirstos RF, Jin GG, So GB (2023) Fuzzy Gain Scheduling of the Fractional-Order PID Controller for a Continuous Stirred-Tank Reactor Process. Processes 11(12):3275. https://doi.org/10.3390/pr11123275.
[27] Puviyarasi B, Murukesh C, Alagiri M (2022) Design and implementation of gain scheduling decentralized PI/PID controller for the fluid catalytic cracking unit. Biomed Signal Process Control 77:103780. https://doi.org/10.1016/j.bspc.2022.103780.
[28] Vlad C, Caraman S, Carp D, Minzu V, Barbu M (2012) Gain Scheduling control of dissolved oxygen concentration in a wastewater treatment process. In: 2012 20th Mediterranean Conference on Control and Automation (MED), pp 860–865. https://doi.org/10.1109/MED.2012.6265746.
[29] Lin JY, Yu CC (1993) Automatic tuning and gain scheduling for pH control. Chem Eng Sci 48(18):3159–3171. https://doi.org/10.1016/0009-2509(93)80202-2.
[30] Babuska R, Oosterhoff J, Oudshoorn A, Bruijn PM (2002) Fuzzy self-tuning PI control of pH in fermentation. Eng Appl Artif Intell 15(1):3–15. https://doi.org/10.1016/S0952-1976(02)00003-9.
[31] Regunath S, Kadirkamanathan V (2001) Design of a pH control system using fuzzy non-uniform grid scheduling and evolutionary programming. Appl Soft Comput 1(1):91–104. https://doi.org/10.1016/S1568-4946(01)00011-4.
[32] Fu C, Ma X, Zhang L (2022) Fuzzy-PID Strategy Based on PSO Optimization for pH Control in Water and Fertilizer Integration. IEEE Access 10:4471–4482. https://doi.org/10.1109/ACCESS.2021.3138910.
[33] Henson MA, Seborg DE (1994) Adaptive nonlinear control of a pH neutralization process. IEEE Trans Control Syst Technol 2(3):169–182. https://doi.org/10.1109/87.317975.
[34] Gadewar SB, Doherty MF, Malone MF (2001) A systematic method for reaction invariants and mole balances for complex chemistries. Comput Chem Eng 25(9–10):1199–1217. https://doi.org/10.1016/S0098-1354(01)00695-0.
[35] Seborg DE, Edgar TF, Mellichamp DA, Doyle III FJ (2017) Process Dynamics and Control, 4th ed. Wiley, Hoboken.
[36] Song B, Xiao Y, Xu L (2020) Design of fuzzy PI controller for brushless DC motor based on PSO–GSA algorithm. Syst Sci Control Eng 8(1):67–77. https://doi.org/10.1080/21642583.2020.1723144.
[37] Sandhya K, Laxmi AJ, Soni MP (2012) Design of PI and Fuzzy Controllers for Dynamic Voltage Restorer (DVR). AASRI Procedia 2:149–155. https://doi.org/10.1016/j.aasri.2012.09.027.
[38] Alizadeh MH, Sahlodin AM (2024) Energy-efficient semi-continuous distillation of a ternary mixture using combined tracking-economic model predictive control. Chem Eng Res Des 209:283–298. https://doi.org/10.1016/j.cherd.2024.07.064.
[39] Åström KJ, Hägglund T (1984) Automatic tuning of simple regulators with specifications on phase and amplitude margins. Automatica 20(5):645–651. https://doi.org/10.1016/0005-1098(84)90014-1.
 
 
 

 

 

Articles in Press, Accepted Manuscript
Available Online from 31 July 2026