Research Article

Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification

Volume: 12 Number: 2026 June 6, 2026
EN TR

Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification

Abstract

Water quality is a critical factor for both human health and aquatic ecosystems. An inaccurate assessment of water quality can have serious consequences, including risks to drinking water supplies and adverse effects on aquatic life. Therefore, there is growing demand for rapid, reliable methods to estimate water quality. In recent years, the application of deep learning (DL)-based methods for assessing water quality has increased significantly. DL methods achieve high classification performance by autonomously learning relationships within complex water quality datasets. This study aims to classify two-dimensional barcode-based visual representations of water quality using advanced DL architectures. The study used a tabular water-quality dataset comprising physicochemical parameters, which were subsequently transformed into QR, Aztec, and Data Matrix code images. These barcode datasets were initially evaluated using transfer learning with the MobileNet, MobileNetV2, and MobileNetV3Small Convolutional Neural Network (CNN) architectures, with a 5-fold cross-validation approach. Subsequently, the MobileNetV3Small model, which achieved the highest classification performance, served as the backbone of the CNN-Transformer architecture, enabling image classification with this proposed model. Based on the experimental results, the highest average performance was achieved on the Aztec code dataset. Specifically, the MobileNetV3Small model attained an accuracy of 91.95±1.19%, whereas the MobileNetV3Small-Transformer model reached 97.72±2.19%. Additionally, the proposed MobileNetV3Small-Transformer model yielded accuracy rates of 92.65±5.88% on the QR code dataset and 90.44±7.76% on the Data Matrix code dataset. This approach presents an alternative methodology for evaluating tabular data through visual representations and DL techniques in the field of environmental data analytics.

Keywords

References

  1. Ahmed, A. N., Othman, F. B., Afan, H. A., Ibrahim, R. K., Fai, C. M., Hossain, M. S., Ehteram, M. & Elshafie, A. (2019a). Machine learning methods for better water quality prediction. Journal of Hydrology, 578, 124084.
  2. Ahmed, U., Mumtaz, R., Anwar, H., Shah, A. A., Irfan, R. & García-Nieto, J. (2019b). Efficient water quality prediction using supervised machine learning. Water, 11 (11), 2210.
  3. Ali, M., Yaseen, M., Ali, S. & Kim, H.-C. (2025). Deep Learning-Based Approach for Microscopic Algae Classification with Grad-CAM Interpretability. Electronics, 14 (3), 442.
  4. Arabelli, R., Bernatin, T. & Veeramsetty, V. (2025). Water quality assessment for aquaculture using deep neural network. Desalination and Water Treatment, 101016.
  5. Azrour, M., Mabrouki, J., Fattah, G., Guezzaz, A. & Aziz, F. (2022). Machine learning algorithms for efficient water quality prediction. Modeling Earth Systems and Environment, 8 (2), 2793–2801.
  6. Bhatlawande, S., Mohole, S., Pahade, Y., Shilaskar, S. & Munjale, A. (2025). A Vision-Based System for Real-Time Monitoring of Water Quality in Natural and Artificial Reservoirs. 2025 3rd International Conference on Intelligent Data Communication Technologies and Internet of Things (IDCIoT), 1102–1107.
  7. Chellaiah, C., Anbalagan, S., Swaminathan, D., Chowdhury, S., Kadhila, T., Shopati, A. K., Shangdiar, S., Sharma, B. & Amesho, K. T. (2024). Integrating deep learning techniques for effective river water quality monitoring and management. Journal of Environmental Management, 370, 122477.
  8. de Fleury, M., Grippa, M., Brandt, M., Fensholt, R., Reiner, F., Kovacs, G. M. & Kergoat, L. (2025). Highly turbid and eutrophic small water bodies in West Africa well identified by a CNN U-Net algorithm. Remote Sensing Applications: Society and Environment, 37, 101412.

Details

Primary Language

English

Subjects

Modelling and Simulation, Artificial Intelligence (Other)

Journal Section

Research Article

Publication Date

June 6, 2026

Submission Date

January 21, 2026

Acceptance Date

April 13, 2026

Published in Issue

Year 2026 Volume: 12 Number: 2026

APA
Büyükarıkan, B., & Gök, Z. (2026). Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification. MEMBA Su Bilimleri Dergisi, 12(2026). https://doi.org/10.58626/memba.1868894
AMA
1.Büyükarıkan B, Gök Z. Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification. MEMBA Su Bilimleri Dergisi. 2026;12(2026). doi:10.58626/memba.1868894
Chicago
Büyükarıkan, Birkan, and Zehra Gök. 2026. “Analysis of Multi-Type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification”. MEMBA Su Bilimleri Dergisi 12 (2026). https://doi.org/10.58626/memba.1868894.
EndNote
Büyükarıkan B, Gök Z (June 1, 2026) Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification. MEMBA Su Bilimleri Dergisi 12 2026
IEEE
[1]B. Büyükarıkan and Z. Gök, “Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification”, MEMBA Su Bilimleri Dergisi, vol. 12, no. 2026, June 2026, doi: 10.58626/memba.1868894.
ISNAD
Büyükarıkan, Birkan - Gök, Zehra. “Analysis of Multi-Type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification”. MEMBA Su Bilimleri Dergisi 12/2026 (June 1, 2026). https://doi.org/10.58626/memba.1868894.
JAMA
1.Büyükarıkan B, Gök Z. Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification. MEMBA Su Bilimleri Dergisi. 2026;12. doi:10.58626/memba.1868894.
MLA
Büyükarıkan, Birkan, and Zehra Gök. “Analysis of Multi-Type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification”. MEMBA Su Bilimleri Dergisi, vol. 12, no. 2026, June 2026, doi:10.58626/memba.1868894.
Vancouver
1.Birkan Büyükarıkan, Zehra Gök. Analysis of Multi-type Barcode Images Using Hybrid CNN-Transformer Model for Water Quality Classification. MEMBA Su Bilimleri Dergisi. 2026 Jun. 1;12(2026). doi:10.58626/memba.1868894

Founded in 2013 as the "Menba Kastamonu University Faculty of Fisheries Journal," our journal continues to be published as the "MEMBA Journal of Water Sciences."
-----------
MEMBA Journal of Water Sciences is an international, peer-reviewed, open-access scientific journal published by Kastamonu University. The journal aims to encourage the publication of fundamental and applied scientific research related to aquatic sciences and water resources, strengthen interdisciplinary scientific communication, and increase knowledge in this field. The journal began publishing continuously in 2026 and only accepts original articles, short notes, technical notes, reports, and reviews in English.

MEMBA Water Sciences Journal
TRDizin, SOBIAD, ASCI, CAB Direct, Google Scholar, Paperity, Asosindex, Academic Journal Index, CNKI Scholar
----------
Submitting a plagiarism similarity report is mandatory when uploading an article to our journal, and the plagiarism similarity rate in this report must be below 30%. Authors must submit this report when uploading their article.
Articles uploaded to our journal must include abstracts in both Turkish and English.