Dynamic Modeling and Performance Assessment of Khorshed Wastewater Treatment Plant Using GPS-X: A Case Study, Alexandria, Egypt
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Area
2.2. Data Collection and Analysis
2.3. Methodology
Model Development
2.4. Model Assumptions
- ASP runs at a steady temperature.
- The reactor’s dissolved oxygen (DO) concentration is kept steady, and there is adequate mixing.
- pH is constant and close to neutral.
- The model’s coefficients are taken to be constants for any influent characteristics.
- Enough inorganic nutrients are present to guarantee adequate microbial biomass growth (heterotrophic and autotrophic).
- It is anticipated that organic and nitrogenous chemicals will hydrolyze simultaneously.
2.5. GPS-X Modeling Approach
- Gathering the bare minimum of actual KWWTP data needed for GPS-X modeling.
- Using physical and influent data from the central unit’s activities to depict the current KWWTP.
- Model items chosen by building the KWWTP layout representation in the GPS-X environment.
- Characterization of the quality characteristics of KWWTP influent wastewater (including the necessary values for the easily measured components, such as N-NO3−, BOD5, COD, and TSS).
- Modifying and establishing the COD and nitrogen components’ influent fractionation using the GPS-X influent adviser to a satisfactory level and mass balance of composite factors.
- Executing the model and calibrating it by modifying kinetic, stoichiometric, and other pertinent parameters to fit the model and obtain the greatest possible match between the model’s output and the real plant effluent quality data.
- Using a separate set of KWWTP wastewater quality data to validate the calibrated model.
2.6. Model Calibration
- Use a range of settings for μ–max H (heterotrophic coefficient decay) to improve the mathematical reaction to COD output and dynamic variables, while keeping other parameters at their default values to lessen dynamism [28].
- Once the simulation line and experimental data of COD coincide, the specific microbial biomass growth rate (μ-max H) can be determined by modifying XBH-related factors, such as the yield for heterotrophic biomass (YH) and heterotrophic decay coefficient (bH) [29].
- After noting the discrepancies between the expected and observed values, parameter values were adjusted until an effective match was achieved. Correlating the model’s prediction with the experiment’s outcomes is the aim of the model calibration process.
2.7. Model Validation
3. Results and Discussion
3.1. Waste Water Characterization
3.1.1. Total Suspended Solids (TSS)
3.1.2. Chemical Oxygen Demand (COD)
3.1.3. Biochemical Oxygen Demand (BOD5)
3.1.4. Nitrate-Nitrogen (N-NO3−)
3.2. Steady-State Simulation
3.3. Steady-State Simulation Calibration
3.4. Dynamic Model Validation
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Faroque, S.; South, N. Water pollution and environmental injustices in Bangladesh. Int. J. Crime Justice Soc. Democr. 2022, 11, 1–13. [Google Scholar] [CrossRef]
- Lintern, A.; Webb, J.A.; Ryu, D.; Liu, S.; Bende-Michl, U.; Waters, D.; Leahy, P.; Wilson, P.; Western, A.W. Key factors influencing differences in stream water quality across space. WIREs Water 2018, 5, e1260. [Google Scholar] [CrossRef]
- Obidike, L.; Madigoe, E. Development and optimization of sewage wastewater treatment program. Appl. Water Sci. 2021, 11, 187. [Google Scholar] [CrossRef]
- Eslami, H.; Talebi Hematabadi, P.; Ghelmani, S.V.; Salehi Vaziri, A.; Derakhshan, Z. The performance of advanced sequencing batch reactor in wastewater treatment plant to remove organic materials and linear alkyl benzene sulfonates. Jundishapur J. Health Sci. 2015, 7, 27–33. [Google Scholar] [CrossRef]
- Machingura, F.; Nyamwanza, A.; Hulme, D.; Stuart, E. Climate information services, integrated knowledge systems and the 2030 Agenda for Sustainable Development. Sustain. Earth 2018, 1, 1. [Google Scholar] [CrossRef]
- Mishra, R.K. Fresh water availability and its global challenge. Br. J. Multidiscip. Adv. Stud. 2023, 4, 1–78. [Google Scholar] [CrossRef]
- Waha, K.; Krummenauer, L.; Adams, S.; Aich, V.; Baarsch, F.; Coumou, D.; Fader, M.; Hoff, H.; Jobbins, G.; Marcus, R.; et al. Climate change impacts in the Middle East and Northern Africa (MENA) region and their implications for vulnerable population groups. Reg. Environ. Change 2017, 17, 1623–1638. [Google Scholar] [CrossRef]
- Mehrim, A.I.; Refaey, M.M. An Overview of the Implication of Climate Change on Fish Farming in Egypt. Sustainability 2023, 15, 1679. [Google Scholar] [CrossRef]
- Moussaoui, N.E.; Lamkaddem, A.; El Alami, Y.; El Hammoudani, Y.; Talbi, S.; Faraji, M.; Lakrad, F.; Mrabti, T.; Faize, A.; Baghaz, E. Renewable energy research in Africa: A bibliometric review (1979–2022). Int. J. Sustain. Dev. Plan. 2024, 19, 457–467. [Google Scholar] [CrossRef]
- Rahimi, S.; Modin, O.; Mijakovic, I. Technologies for biological removal and recovery of nitrogen from wastewater. Biotechnol. Adv. 2020, 43, 107570. [Google Scholar] [CrossRef]
- Mu’azu, N.D.; Alagha, O.; Anil, I. Systematic Modeling of Municipal Wastewater Activated Sludge Process and Treatment Plant Capacity Analysis Using GPS-X. Sustainability 2020, 12, 8182. [Google Scholar] [CrossRef]
- McHarg, A.M. Optimisation of Municipal Wastewater Biological Nutrient Removal Using Computer Simulation. Master’s Thesis, University of Ottawa, Ottawa, ON, Canada, 2002. [Google Scholar]
- El-Hoz, M.; Gerges, N. Simulation Study to Improve Wastewater Treatment Plant Operation and Upgrading. In Proceedings of the Proceedings of the International Conference on Environmental Pollution and Remediation, Toronto, ON, Canada, 15–17 July 2013; Volume 8, pp. 184–195. [Google Scholar]
- Han, H.-G.; Qiao, J.-F. Prediction of activated sludge bulking based on a self-organizing RBF neural network. J. Proc. Contr. 2012, 22, 1103–1112. [Google Scholar] [CrossRef]
- Olsson, G.; Newell, B. Wastewater Treatment Systems: Modelling, Diagnosis and Control; IWA Publishing: New York, NY, USA, 2005. [Google Scholar]
- Ruano, M.V.; Serralta, J.; Ribes, J.; Garcia-Usach, F.; Bouzas, A.; Barat, R.; Seco, A.; Ferrer, J. Application of the general model ‘Biological Nutrient Removal Model No. 1’ to upgrade two full-scale WWTPs. Environ. Technol. 2012, 33, 1005–1012. [Google Scholar] [CrossRef][Green Version]
- Tiar, S.M.; Bessedik, M.; Abdelbaki, C.; ElSayed, N.B.; Badraoui, A.; Slimani, A.; Kumar, N. Steady-State and Dynamic Simulation for Wastewater Treatment Plant Management: Case Study of Maghnia City, North-West Algeria. Water 2024, 16, 269. [Google Scholar] [CrossRef]
- Von Sperling, M.; Verbyla, M.; Oliveira, S. Removal efficiencies. In Assessment of Treatment Plant Performance and Water Quality Data: A Guide for Students, Researchers and Practitioners; IWA Publishing: London, UK, 2020; pp. 181–206. [Google Scholar]
- Hydromantis. GPS-X Technical Reference—v8.0: Modelling Fundamentals; Hydromantis Environmental Software Solutions, Inc.: Hamilton, ON, Canada, 2019; Available online: https://www.hydromantis.com/help/GPS-X/docs/8.0/Technical/index.html (accessed on 1 July 2023).
- Aliyu, A.; Mohamed, T.S.; ElSayed, N.B.; Abdelbaki, C.; Bessedik, M.; Kumar, N. Modeling Biological Nutrients Removal for Wastewater Treatment Plant (WWTP) Management: A Case Study of Ain El Houtz WWTP (Algeria). Water Air Soil Pollut. 2024, 236, 72. [Google Scholar] [CrossRef]
- Pereira, S.F. Modelling of a Wastewater Treatment Plant Using GPS-X. Master’s Thesis, Universidade NOVA de Lisboa, Caparica, Portugal, 2014. [Google Scholar]
- Henze, M.; Gujer, W.; Mino, T.; van Loosedrecht, M. Activated Sludge Models ASM1, ASM2, ASM2d AND ASM3; IWA Publishing: New York, NY, USA, 2006. [Google Scholar]
- Power, M. The predictive validation of ecological and environmental models. Ecol. Model. 1993, 68, 33–50. [Google Scholar] [CrossRef]
- Vanrolleghem, P.A.; Insel, G.; Petersen, B.; Sin, G.; De Pauw, D.; Nopens, I.; Dovermann, H.; Weijers, S.; Gernaey, K. A comprehensive model calibration procedure for activated sludge models. In Proceedings of the 76th Annual Conference of the Water Environment Federation, Los Angeles, CA, USA, 11–15 October 2003; Volume 1, pp. 210–237. [Google Scholar]
- Maurer, M.; Gujer, W. Dynamic modelling of enhanced biological phosphorus and nitrogen removal in activated sludge systems. Water Sci. Technol. 1998, 38, 203–210. [Google Scholar] [CrossRef]
- Van Veldhuizen, H.M.; van Loosdrecht, M.C.M.; Heijnen, J.J. Modelling biological phosphorus and nitrogen removal in a full scale activated sludge process. Water Res. 1999, 33, 3459–3468. [Google Scholar] [CrossRef]
- Henze, M.; Gujer, W.; Mino, T.; Matsuo, T.; Wentzel, M.C.; Marais, G.v.R.; Van Loosdrecht, M.C.M. Activated Sludge Model No.2d, ASM2D. Water Sci. Technol. 1999, 39, 165–182. [Google Scholar] [CrossRef]
- Sharifi, S.; Murthy, S.; Takács, I.; Massoudieh, A. Probabilistic parameter estimation of activated sludge processes using Markov Chain Monte Carlo. Water Res. 2014, 50, 254–266. [Google Scholar] [CrossRef]
- Costa, C. A Comprehensive View of the ASM1 Dynamic Model: Study on a Practical Case. Water 2022, 14, 1046. [Google Scholar] [CrossRef]
- Bajpai, P. Biermann’s Handbook of Pulp and Paper: Volume 1: Raw Material and Pulp Making; Elsevier: London, UK, 2018. [Google Scholar]
- Choubert, J.; Bello, M.; Ranganathan, P.; Brennan, F.; Solimeno, A.; García, J.; Choubert, J. Towards a better understanding of kinetic interactions between microalgae and bacteria. Sci. Total Environ. 2002, 9, 607–608. [Google Scholar]
- Siegrist, H.; Tschui, M. Interpretation of experimental data with regard to the activated sludge model no. 1 and calibration of the model for municipal wastewater treatment plants. Water Sci. Technol. 1992, 25, 167–183. [Google Scholar] [CrossRef]
- Choubert, J.-M.; Racault, Y.; Grasmick, A.; Beck, C.; Heduit, A. Nitrogen removal from urban wastewater by activated sludge process operated over the conventional carbon loading rate limit at low temperature. Water SA 2005, 31, 503–510. [Google Scholar] [CrossRef][Green Version]
- Marquot, A.; Stricker, A.E.; Racault, Y. ASM1 dynamic calibration and long-term validation for an intermittently aerated WWTP. Water Sci. Technol. 2006, 53, 247–256. [Google Scholar] [CrossRef]
- Novak, R.; Fabiyi, M.; Connery, K.; de Gracia, M.; Goel, R. Development of a New Open Basin High Purity Oxygen Module in the GPS-Xtm Software for Wastewater Treatment Simulation; Water Environment Federation: Alexandria, VA, USA, 2013. [Google Scholar]
- Sabri, D.; Yassine, D.; Yahia, H.; Dounia, M. Dynamic simulation for wastewater treatment plants management: Case of Souk-Ahras region, north-eastern Algeria. J. Water Land Dev. 2017, 34, 221. [Google Scholar] [CrossRef]
- Elawwad, A.; Matta, M.; Abo-Zaid, M.; Abdel-Halim, H. Plant-wide modeling and optimization of a large-scale WWTP using BioWin’s ASDM model. J. Water Proc. Eng. 2019, 31, 100819. [Google Scholar] [CrossRef]
- Barker, P.S.; Dold, P.L. General Model for Biological Nutrient Removal Activated-Sludge Systems: Model Application. Water Environ. Res. 1997, 69, 985–991. [Google Scholar] [CrossRef]
- Rathore, K. Dynamic Modeling of an Advanced Wastewater Treatment Plant. Ph.D. Thesis, University of South Florida, Tampa, FL, USA, 2018. [Google Scholar]
- Petersen, B.; Gernaey, K.; Henze, M.; Vanrolleghem, P.A. Calibration of activated sludge models: A critical review of experimental designs. In Biotechnology for the Environment: Wastewater Treatment and Modeling, Waste Gas Handling; Springer: Dordrecht, The Netherlands, 2003; pp. 101–186. [Google Scholar]
- Elshorbagy, W.E.; Shawaqfah, M. Development of an ASM1 dynamic simulation model for an activated sludge process in United Arab Emirates. Desalin. Water Treat. 2015, 54, 15–27. [Google Scholar] [CrossRef]












| Parameters | Unit | KWWTP |
|---|---|---|
| Population | inhabitants | 1,536,311 |
| Sewage type | domestic raw | |
| Average design flow rate | m3d−1 | 35,000 |
| BOD5 concentration | mg O2 L−1 | 500 |
| Peak flow | m3 h−1 | 2500 |
| BOD5 load | mg d−1 | 10,000 |
| Suspended solids | mg L−1 | 600 |
| Retention time | h | 24 |
| Suspended solids load | kg d−1 | 21,000 |
| Parameters | Unit | Mean | Min | Max | Median | SD |
|---|---|---|---|---|---|---|
| TSS | mg.L−1 | 182.14 | 1.20 | 440.00 | 183.00 | 57.05 |
| TDS | mg.L−1 | 844.59 | 120.00 | 1310.00 | 870.00 | 187.73 |
| COD | mg COD.L−1 | 405.07 | 287.00 | 580.00 | 394.00 | 50 |
| BOD5 | mg O2.L−1 | 189.25 | 114.00 | 288.00 | 184.00 | 31.1 |
| N-NO3− | mg N.L−1 | 1.34 | 1.10 | 1.80 | 1.30 | 0.20 |
| Parameters | Unit | Mean | Min | Max | Median | SD | % Removal Efficiency (RE) | Egyptian Standards Law 48/82 |
|---|---|---|---|---|---|---|---|---|
| TSS | mg.L−1 | 8.57 | 3.00 | 19.00 | 8.00 | 2.42 | 95.29% | 50 mg.L−1 |
| TDS | mg.L−1 | 741.07 | 5.00 | 1163.00 | 780.00 | 199.31 | 12.25% | 5000 mg.L−1 |
| COD | mg COD.L−1 | 30.64 | 19.00 | 48.00 | 31.00 | 5.41 | 92.43% | 80 mg.L−1 |
| BOD5 | mgO2.L−1 | 12.14 | 5.00 | 18.00 | 12.00 | 2.22 | 93.58% | 60 mg.L−1 |
| N-NO3− | mg N.L−1 | 4.66 | 3.60 | 5.40 | 4.75 | 0.60 | 71.24% | 45 mg.L−1 |
| Process Unit | Physical Input Data | Value | Operational Input Data | Value | Model Selected |
|---|---|---|---|---|---|
![]() | Flow Data | 35,000 m3 | COD states | ||
![]() | Grit Production per Flow | 20 mg.L−1 | Empiric | ||
![]() | Number of tanks | 4 | Flow per tank | 364.58 m3.hr−1. | ASM1 |
| Number of reactors (in each tank) | 4 | ||||
| Maximum Water Level (Height) | 6.3 m | No. of decanting processes | 4–6 times/day | ||
| Surface Area | 1050 m2 | ||||
![]() | Volume | 30 m3 | Empiric | ||
| Chlorine Dosage | 5 mg.L−1 | ||||
| pH in Contact Tank | 7 |
| S/N | Parameters | Influent Value | Calibrated Value |
|---|---|---|---|
| 1 | COD | 385 | 385 |
| 2 | BOD5 | 171 | 171 |
| 3 | TSS | 189 | 188.8 |
| 4 | N-NO3− | 4.4 | 4.4 |
| Parameter Fraction | Symbol | Ratio | Value g COD/m3 | Ratio of References | |
|---|---|---|---|---|---|
| Soluble biodegradable substrate | Ss | 0.2 | 77 | [33,34] | 0.32 |
| Soluble inert substrate | SI | 0.05 | 19.3 | [32] | 0.056 |
| Particulate biodegradable substrate | XS | 0.62 | 238.7 | Own Study [XS = TCOD − (Ss + SI + XI)] | |
| Particulate inert substrate | XI | 0.13 | 50.1 | [33,34] | 0.05 |
| BOD5/BOD5 ultimate ratio | fBOD5 | 0.5415 | Own Study | ||
| VSS/TSS ratio | ivt | 0.8498 | Own Study | ||
| Parameters | Symbol | Unit | Range | Default Values | Calibrated Values | References |
|---|---|---|---|---|---|---|
| Stoichiometric Parameters | ||||||
| Yield for heterotrophic biomass | YH | g COD/g COD | (0.57–0.67) | 0.67 | 0.01 | [17] |
| Yield for autotrophic biomass | YA | g COD/g COD | (0.15–0.24) | 0.24 | 0.24 | [11] |
| Particulate COD to total COD | XCOD/VSS1 | g COD/g VSS | 1.48 | 0.17 | [17] | |
| Kinetic Parameters | ||||||
| Maximum specific growth rate for heterotrophic biomass | μ–max H | d−1 | (0.6–13.2) | 6 | 6 | [37,38] |
| Heterotrophic decay rate | bH | d−1 | (0.3–1.2) | 0.62 | 0.62 | [17] |
| Half saturation constant | Ks | mg COD/L | (10–40) | 20 | 2.4 | [37,38] |
| S/N | Variables | Simulated Values | Observed Values | RMSE |
|---|---|---|---|---|
| 1 | COD | 40.68 | 31 | 0.04 |
| 2 | BOD5 | 16.08 | 10 | 0.11 |
| 3 | TSS | 15.5 | 13 | 0.10 |
| 4 | N-NO3 | 2.3 | 1.5 | 0.67 |
| S/N | Variable | Average Simulated Value | Average Observed Value | RMSE |
|---|---|---|---|---|
| 1 | COD | 51.03 | 30.60 | 0.02 |
| 2 | BOD5 | 16.17 | 13.40 | 0.07 |
| 3 | TSS | 14.27 | 9.40 | 0.82 |
| 4 | N-NO3− | 1.12 | 1.34 | 0.75 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
El Hawary, A.H.; ElSayed, N.B.; Abdelbaki, C.; Omar, M.Y.; Awad, M.A.; Tischbein, B.; Kumar, N.; El-Nadry, M. Dynamic Modeling and Performance Assessment of Khorshed Wastewater Treatment Plant Using GPS-X: A Case Study, Alexandria, Egypt. Water 2026, 18, 174. https://doi.org/10.3390/w18020174
El Hawary AH, ElSayed NB, Abdelbaki C, Omar MY, Awad MA, Tischbein B, Kumar N, El-Nadry M. Dynamic Modeling and Performance Assessment of Khorshed Wastewater Treatment Plant Using GPS-X: A Case Study, Alexandria, Egypt. Water. 2026; 18(2):174. https://doi.org/10.3390/w18020174
Chicago/Turabian StyleEl Hawary, Ahmed H., Nadia Badr ElSayed, Chérifa Abdelbaki, Mohamed Youssef Omar, Mohamed A. Awad, Bernhard Tischbein, Navneet Kumar, and Maram El-Nadry. 2026. "Dynamic Modeling and Performance Assessment of Khorshed Wastewater Treatment Plant Using GPS-X: A Case Study, Alexandria, Egypt" Water 18, no. 2: 174. https://doi.org/10.3390/w18020174
APA StyleEl Hawary, A. H., ElSayed, N. B., Abdelbaki, C., Omar, M. Y., Awad, M. A., Tischbein, B., Kumar, N., & El-Nadry, M. (2026). Dynamic Modeling and Performance Assessment of Khorshed Wastewater Treatment Plant Using GPS-X: A Case Study, Alexandria, Egypt. Water, 18(2), 174. https://doi.org/10.3390/w18020174





