FractalFormer for Image-Based estimation of Reactive Blue 21 in water
| dc.contributor.author | Durmus, Barbaros | |
| dc.contributor.author | Durmus, Neslihan | |
| dc.contributor.author | Dogan, Sengul | |
| dc.contributor.author | Tuncer, Turker | |
| dc.date.accessioned | 2026-08-12T17:28:41Z | |
| dc.date.issued | 2026 | |
| dc.department | Fırat Üniversitesi | |
| dc.description.abstract | This work introduces FractalFormer, a novel and lightweight deep learning model for visual quantification of Reactive Blue 21 (RB21) concentrations in aquatic environments. Unlike conventional spectrophotometric methods, which are costly, stationary, and require extensive sample preparation, FractalFormer enables direct and reliable measurement from real-world laboratory images. A dataset was collected containing 13 standard RB21 concentrations (0-1000 ppm) using three types of laboratory glassware (beaker, Erlenmeyer flask, volumetric flask) under varied lighting and viewing angles. Ground-truth concentrations were determined via UV-Vis spectrophotometry at 625 nm, providing a robust reference for supervised learning. Implemented in MATLAB2023b, FractalFormer comprises 63 layers and 82 interconnections, integrating fractal self-attention modules and recursive convolutional blocks. The model achieved 100% training accuracy, 99.83% validation accuracy, and over 99% accuracy, precision, recall, and F1-score on the test set. Grad-CAM visualization highlighted that the introduced FractalFormer focused on relevant regions and these results illustrated that this transformer has high explainable AI (XAI) capability. The proposed workflow reduces reagent use and laboratory waste. UV-Vis requires dilution only for samples with high absorbance, outside the linear range. FractalFormer estimates concentration from undiluted images under the calibrated imaging setup. The method still requires calibration against UV-Vis reference concentrations. The same framework can support other dyes and pollutants after new calibration and training. It offers a scalable and cost-effective option for laboratory water quality assessment. By combining high performance with explainable AI techniques, FractalFormer demonstrates the potential of domain-specific transformer architectures in environmental diagnostics, particularly for rapid, low-cost monitoring in resource-limited settings. | |
| dc.identifier.doi | 10.1016/j.ces.2026.123603 | |
| dc.identifier.issn | 0009-2509 | |
| dc.identifier.issn | 1873-4405 | |
| dc.identifier.scopus | 2-s2.0-105034087597 | |
| dc.identifier.scopusquality | Q1 | |
| dc.identifier.uri | https://doi.org/10.1016/j.ces.2026.123603 | |
| dc.identifier.uri | https://hdl.handle.net/11508/55404 | |
| dc.identifier.volume | 327 | |
| dc.identifier.wos | WOS:001698712000001 | |
| dc.identifier.wosquality | Q2 | |
| dc.indekslendigikaynak | Web of Science | |
| dc.indekslendigikaynak | Scopus | |
| dc.language.iso | en | |
| dc.publisher | Pergamon-Elsevier Science Ltd | |
| dc.relation.ispartof | Chemical Engineering Science | |
| dc.relation.publicationcategory | Makale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı | |
| dc.rights | info:eu-repo/semantics/closedAccess | |
| dc.snmz | KA_WoS_20260511 | |
| dc.subject | Reactive Blue 21 | |
| dc.subject | FractalFormer | |
| dc.subject | Computer Vision | |
| dc.subject | Environmental monitoring | |
| dc.subject | Transformer architecture | |
| dc.subject | Deep learning | |
| dc.title | FractalFormer for Image-Based estimation of Reactive Blue 21 in water | |
| dc.type | Article |







