Image-Based Glucose Concentration Detection in Liquids Using Refractometer and Grayscale-RGB Processing
DOI:
https://doi.org/10.3126/ocemjmtss.v5i1.89698Abstract
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.
Keywords:
glucose detection, image processing, grayscale transformation, python prototype, refractometer, rgb analysisDownloads
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 The OCEM Journal of Management, Technology, and Social Sciences

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
© 2024 by The OCEM Journal of Management, Technology and Social Sciences is licensed under CC BY-NC 4.0
