FractalFormer for Image-Based estimation of Reactive Blue 21 in water

dc.contributor.authorDurmus, Barbaros
dc.contributor.authorDurmus, Neslihan
dc.contributor.authorDogan, Sengul
dc.contributor.authorTuncer, Turker
dc.date.accessioned2026-08-12T17:28:41Z
dc.date.issued2026
dc.departmentFırat Üniversitesi
dc.description.abstractThis 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.doi10.1016/j.ces.2026.123603
dc.identifier.issn0009-2509
dc.identifier.issn1873-4405
dc.identifier.scopus2-s2.0-105034087597
dc.identifier.scopusqualityQ1
dc.identifier.urihttps://doi.org/10.1016/j.ces.2026.123603
dc.identifier.urihttps://hdl.handle.net/11508/55404
dc.identifier.volume327
dc.identifier.wosWOS:001698712000001
dc.identifier.wosqualityQ2
dc.indekslendigikaynakWeb of Science
dc.indekslendigikaynakScopus
dc.language.isoen
dc.publisherPergamon-Elsevier Science Ltd
dc.relation.ispartofChemical Engineering Science
dc.relation.publicationcategoryMakale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/closedAccess
dc.snmzKA_WoS_20260511
dc.subjectReactive Blue 21
dc.subjectFractalFormer
dc.subjectComputer Vision
dc.subjectEnvironmental monitoring
dc.subjectTransformer architecture
dc.subjectDeep learning
dc.titleFractalFormer for Image-Based estimation of Reactive Blue 21 in water
dc.typeArticle

Dosyalar