BioFilter-MoE: Multi-Task Mixture-of-Experts Transformer for Textile Wastewater Prediction and Treatment Recommendation

Authors

  • Nusrat Yasmin Nadia Department of Textile Engineering, Ahsanullah University of Science & Technology, 141 & 142, Love Road, Tejgaon Industrial Area, Dhaka-1208, Bangladesh
  • Habibor Rahman Rabby Department of Computer Science, Campbellsville University, 2300 Greene Way #100, Louisville, KY 40220, USA
  • Md Habibul Arif Department of Information Technology, Washington University of Science and Technology, 2900 Eisenhower Ave, Alexandria, VA 22314, USA
  • Abdur Rahman Lindon Department of Information Technology, Washington University of Science and Technology, 2900 Eisenhower Ave, Alexandria, VA 22314, USA
  • Hafiz Aziz Khan Department of Information Technology, Washington University of Science and Technology, 2900 Eisenhower Ave, Alexandria, VA 22314, USA

Keywords:

Multi-Task Learning, Mixture-of-Experts, Tabular Transformer, Textile Wastewater Treatment, Biofilter Media Recommendation

Abstract

Textile dyeing effluents exhibit highly non-linear physicochemical dynamics that render conventional rule-based treatment optimization inadequate for real-time control. Existing data-driven approaches address effluent forecasting in isolation, neglecting the operational necessity of simultaneous treatment prescriptions. This study proposes BioFilter-MoE, a Multi-Task Tabular Transformer with Sparse Mixture-of-Experts (MoE) routing, trained jointly to predict multi-parameter effluent quality and recommend optimal biofilter media configurations from a single unified architecture. A Fourier-based numerical tokenization scheme encodes continuous thermodynamic variables alongside categorical media constraints into a shared embedding space, while sparse MoE layers dynamically route distinct influent states to specialized expert sub-networks, revealing chemically coherent specialization without post-hoc attribution. Dual Cross-Attention task heads support simultaneous regression and classification, with multi-task loss balanced via homoscedastic uncertainty weighting. Under five-fold cross-validation, BioFilter-MoE achieves BOD R² = 0.7914 ± 0.0225 and COD R² = 0.8081 ± 0.0205. On the held-out test set, it attains a Macro F1 of 0.9948 [0.9833, 1.000] and ROC-AUC of 0.9998 for biofilter media recommendation, compared to Macro F1 scores of 0.046 for both Random Forest and XGBoost. Ablation studies confirm that removing the Fourier tokenizer causes the largest single-component degradation, reducing mean R² from 0.655 to 0.597. BioFilter-MoE thus establishes a prescriptive decision-support framework for regulatory-compliant, real-time textile wastewater management with architecture-embedded interpretability.

Published

30-12-2023

How to Cite

Nusrat Yasmin Nadia, Habibor Rahman Rabby, Md Habibul Arif, Abdur Rahman Lindon, & Hafiz Aziz Khan. (2023). BioFilter-MoE: Multi-Task Mixture-of-Experts Transformer for Textile Wastewater Prediction and Treatment Recommendation. Well Testing Journal, 32(2), 238–266. Retrieved from https://welltestingjournal.com/index.php/WT/article/view/292

Issue

Section

Original Research Articles

Similar Articles

<< < 1 2 3 4 5 6 7 8 9 > >> 

You may also start an advanced similarity search for this article.