Image-Based Glucose Concentration Detection in Liquids Using Refractometer and Grayscale-RGB Processing

Authors

  • Anton Yudhana Universitas Ahmad Dahlan, Indonesia
  • Son Ali Akbar Universitas Ahmad Dahlan, Indonesia
  • Aldo Wiguna Universitas Ahmad Dahlan, Indonesia
  • Fatma Nuraisyah Universitas Ahmad Dahlan, Indonesia
  • Shoffan Saifullah AGH University of Krakow, Poland
  • Sri Budi Laksmiantini PLN Pelaksana Pelayanan Pelanggan (UP3)

DOI:

https://doi.org/10.3126/ocemjmtss.v5i1.89698

Keywords:

glucose detection, image processing, grayscale transformation, python prototype, refractometer, rgb analysis

Abstract

Excessive sugar consumption is a major driver of the global diabetes epidemic, underscoring the need for low-cost, accurate, and non-invasive sugar detection technologies. This study introduces an image-processing-based prototype that integrates a handheld analog refractometer with a digital microscope camera and Python-based processing to estimate glucose concentrations in liquid samples. Refractometer scale images were captured and analyzed using both grayscale and RGB transformations to enhance boundary clarity and interpretability. The methodology was validated on 30 laboratory-prepared glucose solutions and 15 commercial beverages. Laboratory results showed that raw refractometer readings systematically overestimated glucose mass fractions by ~4 percentage points, but regression-based calibration reduced error to below 1 percentage point (MAE = 0.77 pp, RMSE = 1.02 pp, R2=0.93.

Grayscale consistently provided sharper boundary detection compared to individual RGB channels, confirming its robustness as the preferred preprocessing mode. Commercial beverage testing revealed residual discrepancies (~3 pp on average) relative to label-derived sugar values, attributed to non-sugar solutes influencing refractive index. The proposed prototype demonstrates strong potential for semiautomated glucose quantification in low-resource environments. While not intended for clinical diagnostics, it provides a portable and reproducible tool for food safety, nutrition monitoring, and public health applications, with future extensions toward mobile integration and real-time quality control.

Downloads

Download data is not yet available.
Abstract
0
PDF
0

Author Biographies

Anton Yudhana, Universitas Ahmad Dahlan, Indonesia

Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia

Son Ali Akbar, Universitas Ahmad Dahlan, Indonesia

Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia

Aldo Wiguna, Universitas Ahmad Dahlan, Indonesia

Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia

Fatma Nuraisyah, Universitas Ahmad Dahlan, Indonesia

Faculty of Public Health, Universitas Ahmad Dahlan, Yogyakarta, Indonesia

Shoffan Saifullah, AGH University of Krakow, Poland

Faculty of Computer Science, AGH University of Krakow, Krakow, Poland

Sri Budi Laksmiantini, PLN Pelaksana Pelayanan Pelanggan (UP3)

Medical Doctor, PLN Pelaksana Pelayanan Pelanggan (UP3) Yogyakarta, Indonesia

Downloads

Published

2026-01-10

How to Cite

Yudhana, A., Akbar, S. A., Wiguna, A., Nuraisyah, F., Saifullah, S., & Laksmiantini, S. B. (2026). Image-Based Glucose Concentration Detection in Liquids Using Refractometer and Grayscale-RGB Processing. OCEM Journal of Management, Technology & Social Sciences, 5(1), 165–178. https://doi.org/10.3126/ocemjmtss.v5i1.89698

Issue

Section

Articles