The covered water: An evaluation of water quality variations in covered vs. uncovered slow sand filters using flow cytometry and machine learning
2026 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesis
Abstract [en]
Ensuring access to clean and safe water remains a critical global challenge, highlighting the need for effective and sustainable treatment technologies. Slow sand filtration is widely recognised for its ability to remove a broad spectrum of contaminants from water through a combination of physical and biological processes, making it especially valuable in resource-limited settings.
Operational factors can influence filter performance, affecting both water quality and maintenance requirements. Therefore, this study applies machine learning to systematically identify and quantify these effects between covered and uncovered filters by processing flow cytometry data. Enabling data-driven optimisation of slow sand filter (SSF) operation, as the impact on the filters from the environments remains partially unknown.
The flow cytometry data were passed through a noise filter and singlet gate to extract key summary statistics. Membrane integrity was approximated by the tube ratio, the number of events in the sample stained with SYBR Green and Propidium Iodide divided by the number of events in the sample stained with SYBR Green only. Tree-based classifiers were evaluated with stratified and group-wise cross-validation to test whether the coverage status could be separated and which features contributed. Furthermore, Dynamic Time Warping (DTW) was employed on multi-variable time series to observe and quantify differences in the timing of the biological response between filter configurations.
No significant difference in tube ratio was found between covered (56.2 % ± 13.1) and uncovered filters (57.5 % ± 15.2, p = 0.56). The classifiers reached a ROC-AUC of up to 0.89 with stratified cross-validation, but 0.49-0.51 when trained on one pair of neighbouring filters and tested on the other, which shows that the models recognised individual samples rather than the coverage. The tube ratio was the highest ranked feature in both models, although the importance was spread over several features (Gini importance 0.25, a measure of how much a feature is used by the Random Forest). DTW found no phase shift between the configurations (median lag of 0 days), and the distance between covered and uncovered filters was similar to the distance between replicate filters of the same type. The only parameter that differed was the mean propidium iodide fluorescence, which was slightly higher in uncovered filters (1892 versus 1726 A.U., p = 0.010 on file level).
The higher propidium iodide signal in uncovered filters points in the direction of the hypothesis that solar exposure contributes to membrane damage, but the effect is small compared to the variation between sampling dates and was not confirmed by the tube ratio. In this dataset, the tube ratio therefore did not work as a metric to separate covered from uncovered filters. Future studies should use a propidium iodide-gated intact cell fraction, more replicate filters and operational data such as head loss.
Place, publisher, year, edition, pages
2026. , p. 50
Keywords [en]
Flow Cytometry, Slow Sand Filtration, Machine Learning, Tube Ratio, Dynamic Time Warping
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:bth-30627OAI: oai:DiVA.org:bth-30627DiVA, id: diva2:2112596
External cooperation
Tekniska Verken i Linköping AB (publ)
Subject / course
DV1478 Bachelor Thesis in Computer Science
Presentation
2026-10-02, J3202, Valhallavägen 1, 371 40 Karlskrona, 09:20 (English)
Supervisors
Examiners
2026-10-262026-10-232026-10-26Bibliographically approved