journal article·2025-11-27Open access

Application of RGB Color Analysis and Neural Networks for Preliminary Assessment of Wastewater Pollutant Concentration

Žydrūnas Kavaliauskas

Applied Sciences· Volume 15· Issue 23

Abstract

This study presents a methodology for preliminary assessment of wastewater pollutant concentrations using RGB color intensity measurements combined with a multi-head neural network implemented in PyTorch. The model was trained on 120 samples from domestic, industrial, and synthetic sources to predict total pollutant concentration and identify the dominant RGB color. Key performance metrics include MAE = 0.012, RMSE = 0.018, MAPE = 2.1%, R2 = 0.96 for concentration prediction, and classification accuracy = 0.93 for dominant color identification. Observed color changes, primarily the rapid decrease of the red component, correlate with chemical and organic load, enabling visual differentiation of wastewater types. This approach provides a fast, low-cost, and equipment-free method for preliminary monitoring and has potential for real-time environmental applications. The proposed combination of RGB analysis with a multi-head neural network represents a novel approach for rapid, quantitative, and qualitative wastewater assessment.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Water Quality Monitoring and Analysis · Water Quality Monitoring Technologies · Innovations in Aquaponics and Hydroponics Systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Centre of Engineering Studies, Kauno kolegija, Pramones Ave. 20, LT-50468 Kaunas, Lithuania

References (35)

Show source-provided references
1. Machine learning constructs color features to accelerate development of long-term continuous water quality monitoring10.1016/j.jhazmat.2023.132612 ↗
2. Kwiek, P., and Jakubowska, M. (2024). Color Standardization of Chemical Solution Images Using Template-Based Histogram Matching in Deep Learning Regression. Algorithms, 17.10.20944/preprints202407.1502.v1 ↗
3. Single-Image-Referenced Colorimetric Water Quality Detection Using a Smartphone10.1021/acsomega.8b00625 ↗
4. Altowayti, W., Shahir, S., Othman, N., Eisa, T., Yafooz, W., Dhaqm, A., Soon, C., Yahya, I., Rahim, N., and Abaker, M. (2022). The Role of Conventional Methods and Artificial Intelligence in the Wastewater Treatment: A Comprehensive Review. Processes, 10.10.3390/pr10091832 ↗
5. August, E., Sabani, B., and Memeti, N. (2019). Using Colour Images for Online Yeast Growth Estimation. Sensors, 19.10.3390/s19040894 ↗
6. Zeng, R., Mannaerts, C., and Shang, Z. (2021). A Low-Cost Digital Colorimetry Setup to Investigate the Relationship betweenWater Color and Its Chemical Composition. Sensors, 21.10.3390/s21206699 ↗
7. Cao, P., Zhu, Y., Zhao, W., Liu, S., and Gao, H. (2019). Chromaticity Measurement Based on the Image Method and Its Application in Water Quality Detection. Water, 11.10.3390/w11112339 ↗
8. Color Alignment for Relative Color Constancy via Non-Standard References10.1109/TIP.2022.3214107 ↗
9. Rashid, F., Jamayet, N.B., Farook, T.H., AL-Rawas, M., Barman, A., Johari, Y., Noorani, T.Y., Abdullah, J.Y., Eusufzai, S.Z., and Alam, M.K. (2022). Color Variations during Digital Imaging of Facial Prostheses Subjected to Unfiltered Ambient Light and Image Calibration Techniques within Dental Clinics: An In Vitro Analysis. PLoS ONE, 17.10.1371/journal.pone.0273029 ↗
10. Minimum Error Adaptive RGB Calibration in a Context of Colorimetric Uncertainty for Cultural Heritage Preservation10.1016/j.cviu.2023.103835 ↗
11. Zhang, G., Song, S., Panescu, J., Shapiro, N., Dannemiller, K.C., and Qin, R. (2023). A Novel Systems Solution for Accurate Colorimetric Measurement through Smartphone-Based Augmented Reality. PLoS ONE, 18.10.1371/journal.pone.0287099 ↗
12. Chairat, S., Chaichulee, S., Dissaneewate, T., Wangkulangkul, P., and Kongpanichakul, L. (2023). AI-Assisted Assessment of Wound Tissue with Automatic Color and Measurement Calibration on Images Taken with a Smartphone. Healthcare, 11.10.3390/healthcare11020273 ↗
13. Suominen, J., and Egiazarian, K. (2024, January 21–25). Camera Color Correction Using Splines. Proceedings of the IS&T International Symposium on Electronic Imaging, Burlingame, CA, USA.
14. Souissi, M., Chaouch, S., and Moussa, A. (2024). Color Matching of Bicomponent (PET/PTT) Filaments with High Performances Using Genetic Algorithm. Sci. Rep., 14.10.1038/s41598-024-61608-z ↗
15. Dodevska, T., Hadzhiev, D., and Shterev, I. (2023). A Review on Electrochemical Microsensors for Ascorbic Acid Detection: Clinical, Pharmaceutical, and Food Safety Applications. Micromachines, 14.10.3390/mi14010041 ↗
16. Determination of Ascorbic Acid in Natural Fruit Juices Using Digital Image Colorimetry10.1016/j.microc.2019.104031 ↗
17. Computer Vision Analysis of Sample Colors versus Quadruple-Disk Iridium-Platinum Voltammetric e-Tongue for Recognition of Natural Honey Adulteration
18. Application of a novel nanocomposites carbon nanotubes functionalized with mesoporous silica-nitrenium ions (CNT-MS-N) in nitrate removal: Optimizations and nonlinear and linear regression analysis10.1016/j.eti.2021.101428 ↗
19. Removal of heavy metal ions from wastewater: A comprehensive and critical review10.1038/s41545-021-00127-0 ↗
20. Suspended solids-associated toxicity of hydraulic fracturing flowback and produced water on early life stages of zebrafish (Danio rerio)10.1016/j.envpol.2021.117614 ↗
21. A review of water pollution arising from agriculture and mining activities in Central Asia: Facts, causes and effects10.1016/j.envpol.2021.118209 ↗
22. Effective water/wastewater treatment methodologies for toxic pollutants removal: Processes and applications towards sustainable development10.1016/j.chemosphere.2021.130595 ↗
23. Application of advanced oxidation processes followed by different treatment technologies for hospital wastewater treatment10.1016/j.jclepro.2020.122411 ↗
24. Tools for water quality monitoring and mapping using paper-based sensors and cell phones10.1016/j.watres.2014.12.005 ↗
25. McGonigle, A.J.S., Wilkes, T.C., Pering, T.D., Willmott, J.R., Cook, J.M., Mims, F.M., and Parisi, A.V. (2018). Smartphone Spectrometers. Sensors, 18.10.3390/s18010223 ↗
26. Feasible photometric measurements in liquid–liquid extraction by exploiting smartphone-based digital images10.1039/C7AY00388A ↗
27. Research on ultraviolet-visible absorption spectrum preprocessing for water quality contamination detection10.1016/j.ijleo.2018.06.029 ↗
28. Leeuw, T., and Boss, E. (2018). The HydroColor App: AboveWater Measurements of Remote Sensing Reflectance and Turbidity Using a Smartphone Camera. Sensors, 18.10.3390/s18010256 ↗
29. Yan, J., Xu, Z., Yu, Y., Xu, H., and Gao, K. (2019). Application of a hybrid optimized BP network model to estimate water quality parameters of Beihai Lake in Beijing. Appl. Sci., 9.10.3390/app9091863 ↗
30. (2020). Water Quality—Sampling—Part 10: Guidance on Sampling of Waste Water (Standard No. ISO 5667-10:2020).
31. (2019). Water Quality—Determination of Biochemical Oxygen Demand After n Days (BODn)—Part 1: Dilution and Seeding Method with Allylthiourea Addition (Standard No. ISO 5815-1:2019).
32. (2002). Water Quality—Determination of the Chemical Oxygen Demand Index (ST-COD)—Small-Scale Sealed-Tube Method (Standard No. ISO 15705:2022).
33. (1999). Water Quality—Guidelines for the Determination of Total Organic Carbon (TOC) and Dissolved Organic Carbon (DOC) (Standard No. ISO 8245:1999).
34. (1997). Water Quality—Determination of Suspended Solids by Filtration Through Glass-Fibre Filters (Standard No. ISO 11923:1997).
35. (2011). Water Quality—Examination and Determination of Colour (Standard No. ISO 7887:2011).