Iranian Journal of Soil and Water Research

Iranian Journal of Soil and Water Research

Optimization of Well and Urban Treated Wastewater for Irrigation of Forage Maize Using NSGA-II Algorithm Integrated with A Full Interactions Regression Model and Response Surface Analysis

Document Type : Research Paper

Authors
1 Department of Water Engineering, Faculty of Agricultural Engineering, University of Agricultural Sciences and Natural Resources, Sari, Iran.
2 Assistant Professor of Water Engineering Department, Faculty of Agricultural Engineering, Sari Agricultural Sciences and Natural Resources University.
3 Department of Water Engineering, Faculty of Agriculture, University of Tabriz, Tabriz, Iran.
10.22059/ijswr.2026.413567.670130
Abstract
The utilization of treated municipal wastewater for forage maize irrigation represents an unavoidable strategy for mitigating water scarcity crises. However, this practice may entail the risk of heavy metal accumulation in plant tissues. The objective of this study was to determine the optimal blending ratio of well water and wastewater through a multi-objective optimization framework to simultaneously achieve maximum forage maize yield and minimum concentrations of nickel (Ni), zinc (Zn), cadmium (Cd), and lead (Pb). Three-year field data (2020–2022) were obtained from a lysimetric experiment conducted in Babolsar, Iran, comprising five blending treatments (0 to 100% wastewater). In the initial phase, a full interactions regression model was developed, attaining an average adjusted coefficient of determination of 0.9968 between six water quality parameters (EC, Na⁺, SAR, Ca²⁺, Mg²⁺, and N) and the five objectives. Subsequently, the NSGA-II multi-objective genetic algorithm, configured with a population size of 500 and 1,000 generations, generated a Pareto front consisting of 500 non-dominated solutions. Combined sensitivity analysis identified sodium concentration as the most influential variable governing the yield-toxicity trade-off, exhibiting a sensitivity coefficient of -0.232. In contrast, the sodium adsorption ratio (SAR) ranked second in importance with a coefficient of +0.207. The balanced solution selected from the Pareto front recommended an optimal blending ratio of 23% wastewater to 77% well water. This solution achieved a grain yield of 24.54 ton/ha (0.33% higher than the 100% wastewater treatment (I5)) while substantially reducing lead concentration from 46.85 to 14.19 µg/g and cadmium concentration from 8.39 to 0.96 µg/g (corresponding to 70% and 89% reductions, respectively). Multi-objective response surface analysis further corroborated the dualistic behavior of sodium-acting as a beneficial element at low concentrations while exacerbating toxicity at elevated levels. The proposed framework constitutes a reliable decision-support tool for the sustainable management of non-conventional water resources in agriculture.
Keywords
Subjects

Introduction

The escalating scarcity of freshwater resources in arid and semi-arid regions has rendered the utilization of non-conventional water sources, such as treated municipal wastewater, an unavoidable imperative in the agricultural sector. Treated Municipal wastewater, owing to its richness in essential macronutrients (particularly nitrogen, phosphorus, and organic matter) possesses considerable potential to enhance the yield of agronomic crops, including forage maize. Nevertheless, the concurrent presence of heavy metals such as nickel (Ni), zinc (Zn), cadmium (Cd), and lead (Pb) in treated wastewater composition poses significant risks to both human and animal food chain safety, as well as long-term soil quality. Consequently, the fundamental challenge in treated wastewater irrigation management lies in determining the optimal blending ratio with fresh water (well water) such that the nutritional benefits of the effluent are harnessed while maintaining tissue concentrations of toxic elements within permissible thresholds. Owing to the inherent conflict between maximizing crop yield and minimizing heavy metal uptake, this problem resides firmly within the domain of multi-objective optimization. Classical irrigation management approaches are ill-equipped to resolve these competing objectives simultaneously, necessitating advanced computational and multi-criteria decision-making frameworks. The objective of this study was to develop an integrated regression-optimization framework based on the NSGA-II multi-objective genetic algorithm to determine the optimal blending ratio of well water and treated municipal wastewater for forage maize irrigation and to conduct a comprehensive analysis of the trade-offs between quantitative yield and product biosafety.

Materials and Methods

The field data utilized in this study were derived from a three-year investigation (2020–2022) conducted at a farm located in Amij-Kola village, Babolsar County, Mazandaran Province, Iran. The experiment was executed in PVC lysimeters measuring 60 cm in diameter and 100 cm in height, arranged in a randomized complete block design with three replications. Irrigation treatments comprised five blending levels of well water and treated municipal wastewater: (I1) 100% well water, (I2) 25% wastewater + 75% well water, (I3) 50% wastewater + 50% well water, (I4) 75% wastewater + 25% well water, and (I5) 100% wastewater. For the purposes of this study, only data from non-magnetized water treatments were employed. The independent variables consisted of six irrigation water quality parameters: electrical conductivity (EC), sodium concentration (Na⁺), sodium adsorption ratio (SAR), calcium concentration (Ca²⁺), magnesium concentration (Mg²⁺), and total nitrogen (N). The dependent variables comprised five objectives: forage maize grain yield (ton/ha) as the maximization objective, and the tissue concentrations of four heavy metals (Ni, Zn, Cd, and Pb (µg/g)) as the minimization objectives. In the initial phase, to model the relationships between water quality and plant responses, three regression structures (linear, full quadratic, and full interactions) were fitted to the averaged dataset using Ridge regression (λ=0.1). The adjusted coefficient of determination (Adjusted R²) served as the criterion for selecting the optimal model. In the second phase, employing the selected model as the fitness function, the NSGA-II multi-objective genetic algorithm was executed with a population size of 500 and 1000 generations to derive the Pareto front. The search space was strictly bounded between the values of pure well water and pure wastewater to ensure the physical feasibility of the generated solutions. Simulated Binary Crossover (SBX) with a rate of 0.7 and polynomial mutation with a rate of 0.2 were utilized to produce offspring. Following Pareto front extraction, the balanced solution was identified using the ideal point method, incorporating user-defined weights (yield: 40%, each heavy metal: 15%). A combined sensitivity analysis was also performed to prioritize the water quality parameters. Finally, the optimal blending ratio was computed using the linear mixing equation for five linear parameters and subsequently validated.

Results and Discussion

Evaluation of the regression models revealed that the full interactions model, with an average adjusted R² of 0.9968 across all five objectives, demonstrated markedly superior performance compared to the linear (0.9898) and full quadratic (0.9940) models. This model achieved near-perfect predictive accuracy, particularly for cadmium and lead concentrations (R²adj ≈ 1.000). The NSGA-II algorithm successfully converged, yielding a final Pareto front comprising 500 non-dominated solutions. The convergence history indicated that the fitness function stabilized completely after approximately 600 generations. The final Pareto front substantiated a profound structural conflict between the yield objective and the heavy metal objectives; specifically, movement towards yields exceeding 24.5 ton/ha was inevitably accompanied by an exponential increase in lead and cadmium concentrations. Combined sensitivity analysis identified sodium concentration (Na⁺) as the most influential parameter governing the yield-toxicity trade-off, exhibiting a sensitivity coefficient of -0.232. The sodium adsorption ratio (SAR) ranked second in importance with a coefficient of +0.207, underscoring the dualistic and nonlinear behavior of sodium in forage maize physiology. The balanced solution selected from the Pareto front recommended an optimal blending ratio of 23% wastewater to 77% well water. This solution achieved a grain yield of 24.54 ton/ha, thereby not only maintaining the yield at the record level of the 100% wastewater treatment (24.46 ton/ha) but also improving it by 0.33%. From a biosafety perspective, this solution reduced lead concentration from 46.85 to 14.19 µg/g (a 70% reduction) and cadmium concentration from 8.39 to 0.96 µg/g (an 89% reduction) compared to the 100% wastewater treatment. Multi-objective response surface analysis further corroborated the nonlinear behavior of sodium; specifically, increasing sodium at lower salinity levels was associated with improved yield, whereas at higher levels, the slope of cadmium and nickel uptake escalated sharply.

Conclusions

This study successfully developed an integrated regression-optimization framework based on the NSGA-II algorithm for the qualitative management of forage maize irrigation with treated municipal wastewater. The findings unequivocally demonstrated that the full interactions regression model, by accounting for complex ion interactions, serves as a precise tool for simulating plant responses. The proposed balanced optimal solution (specifically, blending 23% wastewater with 77% well water) represents an intelligent compromise between food security and product safety, achieving near-maximum yield (24.54 ton/ha) while mitigating heavy metal hazards by 70% to 89% relative to irrigation with 100% wastewater. Both sensitivity analysis and response surface methodology convergently emphasized the pivotal role of sodium concentration and the meticulous management of the sodium adsorption ratio (SAR). The study revealed that the slight increase in heavy metal concentrations observed in the optimal solution relative to pure well water (I1) is an unavoidable cost of harnessing the substantial nutritional potential of wastewater to achieve economically viable yields; nonetheless, the absolute values of these metals remain within internationally accepted permissible limits. The framework presented herein can serve as an effective decision-support tool for farmers, extension specialists, and water resource managers in regions confronting freshwater scarcity yet possessing access to treated wastewater. Future research should focus on modeling the long-term dynamics of heavy metal accumulation in soil profiles and integrating such models with plant growth simulations.

Funding

The financial support for this study was provided by Sari Agricultural Sciences and Natural Resources University, Faculty of Agricultural Engineering. This support included a thesis research grant for the first author and separate research grants for the second and third authors, who are faculty members of the same university.

Authorship contribution

The contributions of the authors to this manuscript, which is derived from a thesis, are as follows:

First author (Narges Shakeri): Data collection, performing calculations, statistical analysis of data, analysis and interpretation of information and results, and drafting the manuscript.

Second author (Dr. Mohammad Mirnaseri, first thesis supervisor): Research design, supervision of the research process, verification and control of results, revision, review, and finalization of the manuscript, numerical coding in MATLAB software, numerical optimization, and assistance to the first author.

Third author (Dr. Mojtaba Khoshrvash, second thesis supervisor): Contribution to research design, research supervision, review and revision of the manuscript, examination of primary data, and guidance of the first author.

Fourth author (Dr. Reza Hasanzadeh Dalir, thesis advisor): Contribution to research design, research supervision, review and revision of the manuscript, and data analysis.

All authors have read and agreed to the published version of the manuscript.

Data availability statement

The data of the present study are available upon request from the authors (by emailing the corresponding author).

Acknowledgements

The authors would like to thank anonymous referees for their constructive comments.

Ethical considerations

The authors avoided data fabrication, falsification, and plagiarism, and any form of misconduct.

Conflict of interest

The authors declare no conflict of interest.

Acosta, J. A., Jansen, B., Kalbitz, K., Faz, A., & Martínez-Martínez, S. (2011). Salinity increases mobility of heavy metals in soils. Chemosphere, 85(8), 1318-1324.
Alloway, B. J. (1990). Heavy metals in soils. Blackie and Son Ltd.
Ayers, R. S., & Westcot, D. W. (1985). Water quality for agriculture (FAO Irrigation and Drainage Paper No. 29, Rev. 1). Food and Agriculture Organization of the United Nations.
Chatham House. (2025). The water footprints of global food and agriculture trade: Water availability challenges.
Coello Coello, C. A., Lamont, G. B., & Van Veldhuizen, D. A. (2007). Evolutionary algorithms for solving multi-objective problems (2nd ed.). Springer.
Daneshvar, M., Fattahi, F., Rahmani, H. R., Modarres Sanavy, S. A. M., & Sami, M. (2020). Effect of municipal wastewater irrigation and well water on plant and soil characteristics. Notulae Scientia Biologicae,12(2), 409–419. https://doi.org/10.15835/nsb12210767
Deb, K. (2001). Multi-objective optimization using evolutionary algorithms. John Wiley & Sons.
Deb, K., Pratap, A., Agarwal, S., & Meyarivan, T. (2002). A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2), 182–197. https://doi.org/10.1109/4235.996017
Du, J., Liu, R., Cheng, D., Wang, X., Zhang, T., & Yu, F. (2024). Enhancing NSGA-II algorithm through hybrid strategy for optimizing maize water and fertilizer irrigation simulation. Symmetry, 16(8), 1062. https://doi.org/10.3390/sym16081062
EU. (2002). Directive 2002/32/EC of the European Parliament and of the Council on undesirable substances in animal feed. Official Journal of the European Communities, L 140, 10-22.
FAO. (2025). The World Faces Growing Thirst: Water Use Rises as Resources Shrink. AQUASTAT.
FAO/WHO. (2025). Permissible limits for lead in cereals for animal feed. Joint FAO/WHO Food Standards Programme.
Grattan, S. R., & Grieve, C. M. (1999). Salinity–mineral nutrient relations in horticultural crops. Scientia Horticulturae, 78(1-4), 127–157.
Hayat, F., AL-Zayadneh, W., Khan, U., Asghar, S., Rehman, T., Kandhan, K., & Alyafei, M. (2026). Treated wastewater irrigation: unlocking sustainability in agriculture and food security—a comprehensive review. FAO AGRIS.
Kabata-Pendias, A. (2011). Trace elements in soils and plants (4th ed.). CRC Press.
Kabugu, S. (2025). Assessing the level of lead in maize bran used to make animal feeds in Kalisizo Sub County, Kyotera District [Master's dissertation, Makerere University].
Khoshravesh, M. & Pourgholam-Amiji, M. (2023). The Effect of Irrigation with Magnetically Effluent on Soil Chemical Properties, Water Productivity and Heavy Metals Uptake by Maize. Iranian Journal of Soil and Water Research, 54(6), 877-893. (In Persian)
Khoshravesh, M., & Pourgholam-Amiji, M. (2024). The effect of irrigation with magnetized wastewater on soil heavy metals, water productivity and heavy metals in aerial parts and grains of maize. Applied Water Science, 14, 182.
Kinraide, T. B. (1998). Three mechanisms for the calcium alleviation of mineral toxicities. Plant Physiology, 118(2), 513-520.
Lu, Y., Yao, H., Shan, D., Jiang, Y., Zhang, S., & Yang, J. (2015). Heavy metal residues in soil and accumulation in maize at long-term wastewater irrigation area in Tongliao, China. Journal of Chemistry, 2015, Article 628280.
Maathuis, F. J., & Amtmann, A. (1999). K⁺ nutrition and Na⁺ toxicity: the basis of cellular K⁺/Na⁺ ratios. Annals of Botany, 84(2), 123–133.
Mapanda, F., Mangwayana, E. N., Nyamangara, J., & Giller, K. E. (2005). The effect of long-term irrigation using wastewater on heavy metal contents of soils under vegetables in Harare, Zimbabwe. Agriculture, Ecosystems & Environment, 107(2-3), 151–165
Marschner, H. (2012). Marschner's mineral nutrition of higher plants (3rd ed.). Academic Press.
Mojiri, A., & Amirossadat, Z. (2011). Effects of urban wastewater on accumulation of heavy metals in soil and corn (Zea mays L.) with sprinkler irrigation method. Asian Journal of Plant Sciences, 10(3), 233–237
Munns, R., & Tester, M. (2008). Mechanisms of salinity tolerance. Annual Review of Plant Biology, 59, 651–681.
Ofori, S., Di Leto, Y., Smrčková, Š., Lopez Marin, M. A., Gallo, G., Růžičková, I., & Wanner, J. (2025). Treated wastewater reuse for crop irrigation: A comprehensive health risk assessment. Environmental Science: Advances, 4, 252–269.
Reed, P. M., Hadka, D., Herman, J. D., Kasprzyk, J. R., & Kollat, J. B. (2013). Evolutionary multiobjective optimization in water resources: The past, present, and future. Advances in Water Resources, 51, 438–456. https://doi.org/10.1016/j.advwatres.2012.01.005
Rengel, Z. (1992). The role of calcium in salt toxicity. Plant, Cell & Environment, 15(6), 625-632.
Salam, S. A., Qasim, M., El-Beltagi, H. S., Azizov, K., & Rebouh, N. Y. (2026). Cyclic use of wastewater and canal water improves maize growth while reducing heavy metal accumulation in soil. Water, Air, & Soil Pollution, 237, 1020.
Saleh, M., Salehi, M., Khanaki, S., Ebrahimian, H., Liaghat, A., Mousavi, S. M., Pashapour, S., & Ashrafi, A. (2025). Effects of treated wastewater irrigation on soil properties, nutrient uptakes, and crop yields of agronomic crops under different crop rotations. Agricultural Water Management, 316, 109585.
Saltelli, A., Ratto, M., Andres, T., Campolongo, F., Cariboni, J., Gatelli, D., Saisana, M., & Tarantola, S. (2008). Global sensitivity analysis: The primer. John Wiley & Sons.
Tester, M., & Davenport, R. (2003). Na⁺ tolerance and Na⁺ transport in higher plants. Annals of Botany, 91(5), 503–527.
Tiwari, K. K., Dwivedi, S., Mishra, S., Srivastava, S., Tripathi, R. D., Singh, N. K., & Chakraborty, S. (2008). Phytoremediation efficiency of Portulaca tuberosa roxb and Portulaca oleracea L. naturally growing in an industrial effluent irrigated area in Vadodra, Gujrat, India. Environmental Monitoring and Assessment, 147(1-3), 15–22.
UN. (2025). UN sounds alarm over rising demands on water resources as scarcity increases. UN News
Wakeel, A., Farooq, M., Qadir, M., & Schubert, S. (2011). Potassium substitution by sodium in plants. Critical Reviews in Plant Sciences, 30(4), 401–41.