Abstract
This study aims to evaluate and monitor the efficacy of a full-scale two-stage multi-soil-layering (TS-MSL) plant in removing fecal contamination from domestic wastewater. The TS-MSL plant under investigation consisted of two units in series, one with a vertical flow regime (VF-MSL) and the other with a horizontal flow regime (HF-MSL). Furthermore, this study attempts to see whether linear model (LM) and K-nearest neighbor (KNN) model can be used to predict total coliform (TC) removal in the TS-MSL system. For 24 months, the TS-MSL system was monitored, with bimonthly measurements recorded at the inlet and outlet of each compartment. Obtained results show removal of 85% of COD, 67% of TP, 27% of TN, and 3 log units of coliforms with good system stability. Thus, the effluent meets the Moroccan water quality code for reuse in the irrigation of green spaces. In addition, as compared to LM, the KNN model (R2 = 0.988) may be considered as an effective method for predicting TC removal in the TS-MSL system. Finally, sensitivity analysis has shown that TC and dissolved oxygen level in the influent were the most influential parameters for predicting TC removal in the TS-MSL system.





Similar content being viewed by others
Explore related subjects
Discover the latest articles and news from researchers in related subjects, suggested using machine learning.Data Availability
All data generated or analyzed during this study are included in this paper.
References
AFNOR (1997) Recueil de normes françaises: eau, méthodes d’essai. 2ème édition, Paris
Amendolia SR, Cossu G, Ganadu ML, Golosio B, Masala GL, Mura GM (2003) A comparative study of K-Nearest neighbour, support vector machine, and multi-layer perceptron for thalassemia screening. Chemom. Intell. Lab. Syst. 69:13–20. https://doi.org/10.1016/S0169-7439(03)00094-7
Artiningsih A, Zubair H, Imran AM, Widodo S (2018) Distribution of manganese heavy metal (Mn) in soil around of Antang Landfill, Makassar City, Indonesia. Earth Environ Sci. 473:012088. https://doi.org/10.1088/1755-1315/473/1/012088
Arora S, Kazmi AA (2015) The effect of seasonal temperature on pathogen removal efficacy of vermifilter for wastewater treatment. Water Res. 74:88–99. https://doi.org/10.1016/j.watres.2015.02.001
Ávila C, Bayona JM, Martín I, Salas JJ, García J (2015) Emerging organic contaminant removal in a full-scale hybrid constructed wetland system for wastewater treatment and reuse. Ecol. Eng. 80:108–116. https://doi.org/10.1016/j.ecoleng.2014.07.056
Bomo A-M, Husby A, Stevik K, Hanssen JF (2003) Removal of fish pathogenic bacteria in biological sand filters. Water Res. 37:2618–2626. https://doi.org/10.1016/S0043-1354(03)00075-7
Chudoba EA, Mallin MA, Cahoon LB, Skrabal SA (2013) Stimulation of fecal bacteria in ambient waters by experimental inputs of organic and inorganic phosphorus. Water Res. 47:3455–3466. https://doi.org/10.1016/j.watres.2013.03.047
Cruz-Morató C, Lucas D, Llorca M, Rodriguez-Mozaz S, Gorga M, Petrovic M, Barceló D, Vicent T, Sarrà M, Marco-Urrea E (2014) Hospital wastewater treatment by fungal bioreactor: removal efficiency for pharmaceuticals and endocrine disruptor compounds. Sci. Total Environ. 493:365–376. https://doi.org/10.1016/j.scitotenv.2014.05.117
Curds CR (1982) The ecology and role of protozoa in aerobic sewage treatment processes. Annu. Rev. Microbiol. 36:27–46. https://doi.org/10.1146/annurev.mi.36.100182.000331
Darmansyah, Ginting SB, Sanjaya A, Soraya F, Supriyadi D (2019) Synthesis and characterization of activated sludge/zeolite adsorbent for lampung textile industry wastewater treatment. J. Phys. Conf. Ser. 1376. https://doi.org/10.1088/1742-6596/1376/1/012040
De Leonardis G, Rosati S, Balestra G, Agostini V, Panero E, Gastaldi L, Knaflitz M (2018, June) Human activity recognition by wearable sensors: comparison of different classifiers for real-time applications. In 2018 IEEE international symposium on medical measurements and applications (memea) (pp. 1-6). IEEE. https://doi.org/10.1109/MeMeA.2018.8438750
de Oliveira VA, Rodrigues AF, Morais MAV, Terra MDCNS, Guo L, de Mello CR (2021) Spatiotemporal modelling of soil moisture in an Atlantic forest through machine learning algorithms. Eur J Soil Sci 72(5):1969–1987. https://doi.org/10.1111/ejss.13123
Díaz FJ, O’geen AT, Dahlgren RA (2010) Efficacy of constructed wetlands for removal of bacterial contamination from agricultural return flows. Agric. Water Manag. 97:1813–1821. https://doi.org/10.1016/j.agwat.2010.06.015
Ding W, Nan Y, Wu J, Han C, Xin X, Li S et al (2022) Combining multi-dimensional molecular fingerprints to predict the hERG cardiotoxicity of compounds. Comput Biol Med 105390. https://doi.org/10.1101/2021.06.06.447291
Ebrahim JE, Salih AA, Abahussain A (2016) Effect of long-term irrigation using treated wastewater on heavy metal contents of soils grown to Medicago sativa in the Kingdom of Bahrain. Int. J. Adv. Agric. Res. 4:20–29
El Moussaoui T, Mandi L, Wahbi S, Masi S, Ouazzani N (2019) Soil proprieties and alfalfa (Medicago sativa L.) responses to sustainable treated urban wastewater reuse. Arch. Agron. Soil Sci. 65:1900–1912. https://doi.org/10.1080/03650340.2019.1580359
Elfanssi S, Ouazzani N, Latrach L, Hejjaj A, Mandi L (2018) Phytoremediation of domestic wastewater using a hybrid constructed wetland in mountainous rural area. Int. J. Phytoremediation 20:75–87. https://doi.org/10.1080/15226514.2017.1337067
Elmansour TE, Mandi L, Ahmali A, Elghadraoui A, Aziz F, Hejjaj A, Del Bubba M, Ouazzani N (2020) Effect of polyphenols on activated sludge biomass during the treatment of highly diluted olive mill wastewaters: biomass dynamics and purifying performances. Water Sci. Technol. 82:1416–1429. https://doi.org/10.2166/wst.2020.423
Eturki S, Ayari F, Jedidi N, Ben Dhia H (2012) Use of clay mineral to reduce ammonium from wastewater. Effect of various parameters. Surf. Eng. Appl. Electrochem. 48:276–283. https://doi.org/10.3103/S1068375512030064
Faulwetter JL, Gagnon V, Sundberg C, Chazarenc F, Burr MD, Brisson J, Camper AK, Stein OR (2009) Microbial processes influencing performance of treatment wetlands: a review. Ecol. Eng. 35:987–1004. https://doi.org/10.1016/j.ecoleng.2008.12.030
Forsyth D (2019) Applied machine learning. Springer International Publishing, Cham. https://doi.org/10.1007/978-3-030-18114-7_12
Groemping U, Lehrkamp M (2018) Package “relaimpo”: relative importance of regressors in linear models 1–36
Grömping U (2015) Variable importance in regression models. Wiley Interdiscip. Rev. Comput. Stat. 7:137–152. https://doi.org/10.1002/wics.1346
Grömping U (2006) Relative importance for linear regression in R: the package relaimpo. J. Stat. Softw. 17:1–27. https://doi.org/10.18637/jss.v017.i01
Gómez D, Salvador P, Sanz J, Rodrigo JF, Gil J, Casanova JL (2021) Prediction of desert locust breeding areas using machine learning methods and SMOS (MIR_SMNRT2) Near Real Time product. J Arid Environ 194:104599. https://doi.org/10.1016/j.jaridenv.2021.104599
Hassan MA, Khalil A, Kaseb S, Kassem MA (2017) Potential of four different machine-learning algorithms in modeling daily global solar radiation. Renew Energy 111:52–62. https://doi.org/10.1016/j.renene.2017.03.083
Hong Y, Huang G, An C, Song P, Xin X, Chen X, Zhang P, Zhao Y, Zheng R (2019) Enhanced nitrogen removal in the treatment of rural domestic sewage using vertical-flow multi-soil-layering systems: experimental and modeling insights. J. Environ. Manage. https://doi.org/10.1016/j.jenvman.2019.03.097
Hossain E, Hossain MF, Rahaman MA (2019) A color and texture-based approach for the detection and classification of plant leaf disease using KNN classifier. In 2019 International Conference on Electrical, Computer and Communication Engineering (ECCE) (pp. 1-6). IEEE. https://doi.org/10.1109/ECACE.2019.8679247
Isgren CM, Edwards T, Pinchbeck GL, Winward E, Adams ER, Norton P, Timofte D, Maddox TW, Clegg PD, Williams NJ (2019) Emergence of carriage of CTX-M-15 in faecal Escherichia coli in horses at an equine hospital in the UK; Increasing prevalence over a decade (2008-2017). BMC Vet. Res. 15:1–8. https://doi.org/10.1186/s12917-019-2011-9
Jasper JT, Sedlak DL (2013) Phototransformation of wastewater-derived trace organic contaminants in open-water unit process treatment wetlands. Environ. Sci. Technol. 47:10781–10790. https://doi.org/10.1021/es304334w
Kadam A, Oza G, Nemade P, Dutta S, Shankar H (2008) Municipal wastewater treatment using novel constructed soil filter system. Chemosphere 71:975–981. https://doi.org/10.1016/j.chemosphere.2007.11.048
Kar Yan Tam (1992) Genetic algorithms, function optimization, and facility layout design. Eur. J. Oper. Res. 63:322–346. https://doi.org/10.1016/0377-2217(92)90034-7
Khalifa J, Ouazzani N, Hejjaj A, Mandi L (2020) Remediation and disinfection capabilities assessment of some local materials to be applied in multi-soil-layering (MSL) ecotechnology. Desalin. Water Treat. 178:53–64. https://doi.org/10.5004/dwt.2020.24950
Kuhn M (2009) The caret package. J Stat Softw, 28(5)
Latrach L, Ouazzani N, Hejjaj A, Mahi M, Masunaga T, Mandi L (2018) Two-stage vertical flow multi-soil-layering (MSL) technology for efficient removal of coliforms and human pathogens from domestic wastewater in rural areas under arid climate. Int. J. Hyg. Environ. Health 221:64–80. https://doi.org/10.1016/j.ijheh.2017.10.004
Latrach L, Ouazzani N, Masunaga T, Hejjaj A, Bouhoum K, Mahi M, Mandi L (2016) Domestic wastewater disinfection by combined treatment using multi-soil-layering system and sand filters (MSL-SF): A laboratory pilot study. Ecol. Eng. 91:294–301. https://doi.org/10.1016/j.ecoleng.2016.02.036
Laurin V, Labbé N, Parent S, Juteau P, Villemur R (2008) Microeukaryote diversity in a marine methanol-fed fluidized denitrification system. Microb. Ecol. 56:637–648. https://doi.org/10.1007/s00248-008-9383-x
Li X, Luan F, Wu Y (2020) A comparative assessment of six machine learning models for prediction of bending force in hot strip rolling process. Metals 10(5):685. https://doi.org/10.3390/met10050685
Luo W, Huan S, Fu H, Wen G, Cheng H, Zhou J, Wu H, Shen G, Yu R (2011) Preliminary study on the application of near-infrared spectroscopy and pattern recognition methods to classify different types of apple samples. Food Chem. 128:555–561. https://doi.org/10.1016/j.foodchem.2011.03.065
Mancosu N, Snyder RL, Kyriakakis G, Spano D (2015) Water scarcity and future challenges for food production. Water (Switzerland) 7:975–992. https://doi.org/10.3390/w7030975
Markelova NY (2010) Predacious bacteria, Bdellovibrio with potential for biocontrol. Int. J. Hyg. Environ. Health 213:428–431. https://doi.org/10.1016/j.ijheh.2010.08.004
Masunaga T, Sato K, Mori J, Shirahama M, Kudo H, Wakatsuki T (2007) Characteristics of wastewater treatment using a multi-soil-layering system in relation to wastewater contamination levels and hydraulic loading rates: original article. Soil Sci. Plant Nutr. 53:215–223. https://doi.org/10.1111/j.1747-0765.2007.00128.x
Morgan JA, Hoet AE, Wittum TE, Monahan CM, Martin JF (2008) Reduction of pathogen indicator organisms in dairy wastewater using an ecological treatment system. J. Environ. Qual. 37:272–279. https://doi.org/10.2134/jeq2007.0120
Motamarri S, Boccelli DL (2012) Development of a neural-based forecasting tool to classify recreational water quality using fecal indicator organisms. Water Res. 46:4508–4520. https://doi.org/10.1016/j.watres.2012.05.023
Nguyen XC, Nguyen TTH, Le QV, Le PC, Srivastav AL, Pham QB et al (2022) Developing a new approach for design support of subsurface constructed wetland using machine learning algorithms. J Environ Manage 301:113868. https://doi.org/10.1016/j.jenvman.2021.113868 Epub 2021 Oct 7
Normes de qualité des eaux destinées à l’irrigation, Maroc, 2007. Secrétariat d'état auprès du ministère de l'énergie, des mines, de l'eau et de l'environnement, chargé de l'eau et de l'environnement.
Rambags F, Tanner CC, Stott R, Schipper LA (2019) Bacteria and virus removal in denitrifying bioreactors: effects of media type and age. Ecol. Eng. 138:46–53. https://doi.org/10.1016/j.ecoleng.2019.06.021
Robertson GP (2000) Denitrification. In: Sumner ME (ed) Handbook of Soil Science. CRC Press, USA, pp 885–894
Roy S, Ghosh S, Bhowmick N, Roy Choudhury PK (2019) Role of physicochemical factors on bacterial attachment in textile fibrous media. Water Environ. J. 33:21–30. https://doi.org/10.1111/wej.12365
Sato K, Iwashima N, Wakatsuki T, Masunaga T (2011) Quantitative evaluation of treatment processes and mechanisms of organic matter, phosphorus, and nitrogen removal in a multi-soil-layering system. Soil Sci Plant Nutri 57(3):475–486. https://doi.org/10.1080/00380768.2011.590944
Sbahi S, Ouazzani N, Latrach L, Hejjaj A, Mandi L (2020) Predicting the concentration of total coliforms in treated rural domestic wastewater by multi-soil-layering (MSL) technology using artificial neural networks. Ecotoxicol. Environ. Saf. 204:111118. https://doi.org/10.1016/j.ecoenv.2020.111118
Sbahi S, Ouazzani N, Hejjaj A, Mandi L (2021a) Neural network and cubist algorithms to predict fecal coliform content in treated wastewater by multi-soil-layering system for potential reuse. J. Environ. Qual. 1–14. https://doi.org/10.1002/jeq2.20176
Sbahi S, Ouazzani N, Latrach L, Hejjaj A, Mandi L (2021b) Nitrogen modeling and performance of multi-soil-layering (MSL) bioreactor treating domestic wastewater in rural community. J. Water Proc. Eng. 13:6–11. https://doi.org/10.1016/j.jwpe.2021.102389
Schipper LA, Robertson WD, Gold AJ, Jaynes DB, Cameron SC (2010) Denitrifying bioreactors-an approach for reducing nitrate loads to receiving waters. Ecol. Eng. 36:1532–1543. https://doi.org/10.1016/j.ecoleng.2010.04.008
Schwager A, Boller M (1997) Transport phenomena in intermittent filters. Waf. Sc•. T«It 35, 13–20. https://doi.org/10.1016/S0273-1223(97)00090-5
Shen J, Huang G, An C, Song P, Xin X, Yao Y, Zheng R (2018) Biophysiological and factorial analyses in the treatment of rural domestic wastewater using multi-soil-layering systems. J. Environ. Manage. 226:83–94. https://doi.org/10.1016/j.jenvman.2018.08.001
Sinaga DM, Robson MG, Gasong BT, Halel AG, Pertiwi D (2016) Fecal coliform bacteria and factors related to its growth at the Sekotong shallow wells (West Nusa Tenggara, Indonesia). Public Heal. Indones. 2:47–54. https://doi.org/10.36685/phi.v2i2.62
Sleytr UB, Huber C, Ilk N, Pum D, Schuster B, Egelseer EM (2007) S-layers as a tool kit for nanobiotechnological applications. FEMS Microbiol. Lett. https://doi.org/10.1111/j.1574-6968.2006.00573.x
Song P, Huang G, An C, Xin X, Zhang P, Chen X, Ren S, Xu Z, Yang X (2020a) Exploring the decentralized treatment of sulfamethoxazole-contained poultry wastewater through vertical-flow multi-soil-layering systems in rural communities. Water Res. 116480. https://doi.org/10.1016/j.watres.2020.116480
Song P, Huang G, Hong Y, An C, Xin X, Zhang P (2020b) A biophysiological perspective on enhanced nitrate removal from decentralized domestic sewage using gravitational-flow multi-soil-layering systems. Chemosphere. https://doi.org/10.1016/j.chemosphere.2019.124868
Song Y, Huang Y, Ting J, Fang H, Nie X, Jun Z, Yuan Z, Ge C, Luo AC, Chen X (2015) Treatment of turtle aquaculture effluent by an improved multi-soil-layer system. J. Zhejiang Univ. Sci. B 16:145–154. https://doi.org/10.1631/jzus.B1400090
Spietz RL, Williams CM, Rocap G, Horner-Devine MC (2015) A dissolved oxygen threshold for shifts in bacterial community structure in a seasonally hypoxic estuary. PLoS One 10:1–18. https://doi.org/10.1371/journal.pone.0135731
Stevik TK, Aa K, Ausland G, Hanssen JF (2004) Retention and removal of pathogenic bacteria in wastewater percolating through porous media: a review. Water Res. 38:1355–1367. https://doi.org/10.1016/j.watres.2003.12.024
Sudo R (1984) Role and function of protozoa in the biological treatment of polluted waters 1 quick review of activated sludge and bio-film processes primary grid sedimentation chamber tank Influentl ~ A erotion tank Return sludge tank I Effluent Chlorination tank. Immobil. Biocatal. Saccharomyces Yeasts Wastewater Treatment 117–141
Tang W, Li X, Liu H, Wu S, Zhou Q, Du C, Teng Q, Zhong Y, Yang C (2020) Sequential vertical flow trickling filter and horizontal flow multi-soil-layering reactor for treatment of decentralized domestic wastewater with sodium dodecylbenzene sulfonate. Bioresour. Technol. 300:122634. https://doi.org/10.1016/j.biortech.2019.122634
Tate RL (1978) Cultural and environmental factors affecting the longevity of Escherichia coli in histosols. Appl. Environ. Microbiol. 35:925–929. https://doi.org/10.1128/aem.35.5.925-929.1978
Terzi Ö (2012) Monthly rainfall estimation using data-mining process. Appl Comput Intell Soft Comput 2012. https://doi.org/10.1155/2012/698071
Thurston, Foster, Karpiscak, and Gerba (2001) Fate of indicator microorganisms, Giardia and Cryptosporidium in subsurface flow constructed wetlands. Wat. Res. Vol. 35, No. 6, pp. 1547–1551, 2001. 10.1016/s0043-1354(00)00414-0
Thompson KA, Dickenson ER (2021) Using machine learning classification to detect simulated increases of de facto reuse and urban stormwater surges in surface water. Water Research 204:117556. https://doi.org/10.1016/j.watres.2021.117556
Tunçsiper B, Ayaz SÇ, Akça L (2012) Coliform bacteria removal from septic wastewater in a pilot-scale combined constructed wetland system. Environ. Eng. Manag. J. 11, 1873–1879. 10.30638/eemj.2012.233
Valeurs Limites Spécifiques de Rejet Domestique, Maroc. Arrêté n°1607–06 du Joumada II1427 (25 Juillet 2006). Secrétariat d’Etat Auprès du Ministère de l’Energie, des Mines, de l’Eau et de l’Environnement, Chargé de l’Eau et de l’Environnement, Département de l’Eau. Royaume du Maroc, pp 50.
Wand H, Vacca G, Kuschk P, Krü Ger M, Kä Stner M (2006) Removal of bacteria by filtration in planted and non-planted sand columns. https://doi.org/10.1016/j.watres.2006.08.024
Wang L, Long F, Liao W, Liu H (2020) Prediction of anaerobic digestion performance and identification of critical operational parameters using machine learning algorithms. Bioresource Technology 298:122495. https://doi.org/10.1016/j.biortech.2019.122495 Epub 2019 Dec 2
Wei C, Jie W, Zhong W (2018) Performance of single-pass and by-pass multi-step multi-soil-layering systems for low-(C/N)-ratio polluted river water treatment. Chemosphere 206:579–586. https://doi.org/10.1016/j.chemosphere.2018.05.035
Winward GP, Avery LM, Frazer-Williams R, Pidou M, Jeffrey P, Stephenson T, Jefferson B (2008) A study of the microbial quality of grey water and an evaluation of treatment technologies for reuse. Ecol. Eng. 32:187–197. https://doi.org/10.1016/j.ecoleng.2007.11.001
Worland SC, Farmer WH, Kiang JE (2018) Improving predictions of hydrological low-flow indices in ungauged basins using machine learning. Environm Modell Softw 101:169–182. https://doi.org/10.1016/j.envsoft.2017.12.021
Zhang QY, Yang P, Liu LS, Liu ZJ (2020) Formulation and characterization of a heterotrophic nitrification-aerobic denitrification synthetic microbial community and its application to livestock wastewater treatment. Water (Switzerland) 12. https://doi.org/10.3390/w12010218
Zhang S, Li X, Zong M, Zhu X, Cheng D (2017) Learning k for kNN classification. ACM Trans. Intell. Syst. Technol. 8. https://doi.org/10.1145/2990508
Zuber V, Strimmer K (2011) High-dimensional regression and variable selection using CAR scores. Stat. Appl. Genet. Mol. Biol. 10:1–25. https://doi.org/10.2202/1544-6115.1730
Funding
This study is financially supported by the National Center for Studies and Research on Water and Energy (Cadi Ayyad University) and the Laboratory of Water, Biodiversity and Climate Change (Faculty of Sciences Semlalia).
Author information
Authors and Affiliations
Contributions
Conceptualization, methodology, validation, formal analysis, writing original draft: Khadija Zidan and Sofyan Sbahi. Investigation, visualization: Khadija Zidan and Abdessamed Hejjaj. Writing — review and editing: Naaila Ouazzani and Ali Assabbane. Conceptualization, resources, supervision, and writing — review and editing: Laila Mandi. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable
Consent for publication
Not applicable
Competing interests
The authors declare no competing interests
Additional information
Responsible Editor: Diane Purchase
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Zidan, K., Sbahi, S., Hejjaj, A. et al. Removal of bacterial indicators in on-site two-stage multi-soil-layering plant under arid climate (Morocco): prediction of total coliform content using K-nearest neighbor algorithm. Environ Sci Pollut Res 29, 75716–75729 (2022). https://doi.org/10.1007/s11356-022-21194-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11356-022-21194-x
Keywords
Profiles
- Laila Mandi View author profile