MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1088/2057-1976/ae4eee

Медицинская библиотека · Biomedical physics & engineering express · 2026

An accurate glucose detection platform using colorimetry and supervised learning algorithms.

Kanchan Mithun, Harish Pragna, Powar Omkar S, More Harsh, Reddy Emani Ruthvesh

СтатьяПеревод в очереди

Аннотация

Maintaining optimal health and preventing diabetes-related complications requires accurate and timely monitoring of blood glucose levels. In line with this, the present study focuses on developing an affordable, reliable, and precise Point-of-Care (POC) diagnostic platform for glucose detection by integrating microfluidic and colorimetric principles. The system employs a custom-fabricated microfluidic chip designed to facilitate efficient enzymatic color reactions using only ~20 μl of sample per microwell, achieving complete color development within 3-4 min. This chip is housed inside a compact, USB-powered 3D-printed imaging module equipped with a high-resolution fixed-focus camera, enabling consistent control over imaging parameters such as focal distance, camera alignment, and illumination conditions. The overall workflow is optimized for seamless compatibility with embedded systems or laptops, eliminating the dependency on smartphones or external calibration tools and making the setup well-suited for real-time diagnostic use in POC environments. A total of 1280 images, representing 16 glucose concentration levels ranging from 50 to 200 mg dl-1, were captured under standardized conditions, labelled according to known concentrations, and processed through uniform preprocessing steps. Engineered image features extracted from the preprocesses images were then analysed using supervised machine learning models, including Random Forest, Support Vector Machine (SVM), K-Nearest Neighbours (KNN), and a Feedforward Neural Network, to establish a robust predictive framework capable of delivering fast, consistent, and accurate glucose estimation for practical healthcare applications. Among the evaluated models, the Random Forest (RF) classifier achieved the highest cross-validation precision of 98% and an exceptional specificity approaching 100%. This clearly describes its ability to distinguish between different glucose concentration levels. Further, the confusion matrix and the ROC curve analysis have validated the model's reliability, with very minimal chances of misclassifications and a high mean AUC value of around 1. These results ensure the potential of the image-based glucose concentration estimation as a cost effective and a reliable, scalable solution for real time monitoring in various medical related industries.

Другие публикации по теме

ColorimetrySupervised Machine LearningBlood GlucosePoint-of-Care Systems
Для цитирования: Kanchan Mithun, Harish Pragna, Powar Omkar S, More Harsh, Reddy Emani Ruthvesh. An accurate glucose detection platform using colorimetry and supervised learning algorithms.. Biomedical physics & engineering express. 2026. DOI: 10.1088/2057-1976/ae4eee.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by/4.0/

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

Institute of Physics and Engineering in Medicine

IPEM's aim is to promote the advancement of physics and engineering applied to medicine and biology for the public benefit. Its members are professionals working in healthcare, education, industry and research.

IPEM publishes scientific journals and books and organises conferences to disseminate knowledge and support members in their development. It sets and advises on standards for the practice, education and training of scientists and engineers working in healthcare to secure an effective and appropriate workforce.

Purpose-led Publishing is a coalition of three not-for-profit publishers in the field of physical sciences: AIP Publishing, the American Physical Society and IOP Publishing.

Together, as publishers that will always put purpose above profit, we have defined a set of industry standards that underpin high-quality, ethical scholarly communications.

We are proudly declaring that science is our only shareholder.

Mithun Kanchan , Pragna Harish , Omkar S Powar ∗ , Harsh More and Emani Ruthvesh Reddy

Published 18 March 2026 • © 2026 The Author(s). Published by IOP Publishing Ltd Biomedical Physics & Engineering Express , Volume 12 , Number 2 Citation Mithun Kanchan et al 2026 Biomed. Phys. Eng. Express 12 025040 DOI 10.1088/2057-1976/ae4eee

Authors

AFFILIATIONS

Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal, Karnataka 576104, India

https://orcid.org/0000-0002-8694-770X

AFFILIATIONS

Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal, Karnataka 576104, India

AFFILIATIONS

Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal, Karnataka 576104, India

EMAIL

[email protected]

Author notes

∗ Author to whom any correspondence should be addressed.

https://orcid.org/0000-0003-4646-8787

AFFILIATIONS

Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal, Karnataka 576104, India

https://orcid.org/0009-0006-3175-3357

AFFILIATIONS

Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal, Karnataka 576104, India

Notes

Article metrics

771 Total downloads 0 Video abstract views

Submit

Share this article

Article information

Dates

Peer review information

Method : Single Anonymous Screened for originality? Yes

Buy this article in print

Abstract

Maintaining optimal health and preventing diabetes-related complications requires accurate and timely monitoring of blood glucose levels. In line with this, the present study focuses on developing an affordable, reliable, and precise Point-of-Care (POC) diagnostic platform for glucose detection by integrating microfluidic and colorimetric principles. The system employs a custom-fabricated microfluidic chip designed to facilitate efficient enzymatic color reactions using only ~20 μl of sample per microwell, achieving complete color development within 3–4 min. This chip is housed inside a compact, USB-powered 3D-printed imaging module equipped with a high-resolution fixed-focus camera, enabling consistent control over imaging parameters such as focal distance, camera alignment, and illumination conditions. The overall workflow is optimized for seamless compatibility with embedded systems or laptops, eliminating the dependency on smartphones or external calibration tools and making the setup well-suited for real-time diagnostic use in POC environments. A total of 1280 images, representing 16 glucose concentration levels ranging from 50 to 200 mg dl −1 , were captured under standardized conditions, labelled according to known concentrations, and processed through uniform preprocessing steps. Engineered image features extracted from the preprocesses images were then analysed using supervised machine learning models, including Random Forest, Support Vector Machine (SVM), K-Nearest Neighbours (KNN), and a Feedforward Neural Network, to establish a robust predictive framework capable of delivering fast, consistent, and accurate glucose estimation for practical healthcare applications. Among the evaluated models, the Random Forest (RF) classifier achieved the highest cross-validation precision of 98% and an exceptional specificity approaching 100%. This clearly describes its ability to distinguish between different glucose concentration levels. Further, the confusion matrix and the ROC curve analysis have validated the model’s reliability, with very minimal chances of misclassifications and a high mean AUC value of around 1. These results ensure the potential of the image-based glucose concentration estimation as a cost effective and a reliable, scalable solution for real time monitoring in various medical related industries.

Export citation and abstract BibTeX RIS

Original content from this work may be used under the terms of the Creative Commons Attribution 4.0 licence . Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.

1. Introduction

Diabetes mellitus, often known as diabetes, is a long-term metabolic condition that disrupts the body’s ability to regulate blood glucose levels. This disorder primarily arises from malfunction or destruction of pancreatic β -cells responsible for insulin secretion, leading to abnormal glucose metabolism. As reported by the World Health Organization (WHO), over 95% of diabetic cases fall under type 2 diabetes, a condition that can gradually cause severe damage to critical organs and tissues, particularly the nerves and blood vessels. The resulting complications — including blindness, kidney damage, cardiovascular diseases, and limb amputations — make continuous glucose monitoring essential for preventing further deterioration and maintaining patient health.

In this context, colorimetric glucose detection has become one of the most reliable and cost-effective analytical methods. The principle is straightforward — the concentration of glucose in a sample is directly linked to the color intensity generated during an enzymatic reaction. This change in color can be measured using spectrophotometric techniques to determine glucose concentration with high precision [ 1 – 3 ]. The emergence of Point-of-Care (POC) diagnostic technologies has further advanced healthcare accessibility by combining microfluidic systems with compact analytical tools, offering fast, accurate, and low-cost testing platforms suitable for decentralized and resource-limited settings [ 4 – 6 ]. These microfluidic-based POC devices are valued for their portability, reduced reagent usage, and enhanced detection sensitivity.

For any colorimetric-based POC glucose sensor, three major aspects govern its performance:

Among the many available sensing platforms, paper-based microfluidic analytical devices ( μ PADs) have attracted considerable attention for their simplicity, affordability, and ease of use [ 7 – 16 ]. These μ PADs can be fabricated using techniques such as wax printing, inkjet printing, photolithography, laser cutting, or screen printing. Despite their advantages, challenges such as uneven enzyme binding, fluid spreading, multiple fabrication steps, and surface porosity can affect the accuracy of the readings. A promising alternative that mitigates these drawbacks is Xurography — a rapid prototyping method that uses a precision cutting plotter to pattern thin polymeric films into microchannels [ 17 ]. This technique allows fast, repeatable, and inexpensive fabrication of flexible microfluidic chips, which have been successfully utilized in various biological and analytical applications [ 18 – 21 ].

Recent developments have also seen the integration of machine learning (ML) and smartphone-based imaging into colorimetric glucose sensing systems [ 22 – 31 ]. Such systems typically capture images of color changes on μ PADs using a smartphone camera, and ML algorithms interpret the image data to estimate glucose concentrations. For example, Mercan et al [ 32 ] demonstrated glucose measurement in artificial saliva using ML-aided analysis of μ PAD images. Similarly, Lee et al [ 33 ] applied regression-based ML models to simultaneously measure glucose and pH levels from colorimetric paper sensors. Kılıc et al [ 34 ] developed a non-enzymatic detection approach using gold-silver nanoparticles, addressing the enzyme stability issue while employing ML to process color intensity data. Ghateii and Jahanshahi [ 35 ] proposed a dual-imaging (flash/no-flash) strategy with ML models to minimize lighting inconsistencies, achieving high prediction accuracy across various glucose ranges. Other studies, such as those by Poddar et al [ 36 ] and Kanchan et al [ 37 , 38 ], have incorporated feature extraction, data correction, and even convolutional neural networks (CNNs) to enhance the prediction accuracy of glucose concentration. Choi et al [ 39 ] further improved performance using transfer learning and data augmentation techniques.

Although these smartphone-assisted, ML-driven approaches show strong potential, their practical implementation still faces several challenges. The dependence on external hardware, calibration curve and variances in image capture arising due to different camera sensors, ambient light conditions, device calibration, and feature extraction that reduce the reproducibility of results [ 40 ] can be avoided by standardizing most of these variables.

In this direction, the present study proposes the development of a cost-efficient microfluidic analytical device fabricated using a glass substrate layered with adhesive-coated polyvinyl films. These films are precisely patterned using a cutting plotter and assembled into a compact chip designed to optimize enzyme–reagent interactions for colorimetric reactions. The entire microfluidic system is integrated into a 3D-printed housing equipped with a fixed-focus camera and uniform lighting setup, ensuring stable imaging conditions and eliminating variations caused by smartphones or ambient environments.

The device operates as a self-contained colorimetric detection unit, capable of performing glucose estimation without any external smartphone or calibration setup. To process the captured images, several machine learning algorithms — including Random Forest, Support Vector Machine (SVM), K-Nearest Neighbours (KNN), and a basic Feedforward Neural Network — are employed. These models are trained using simple statistical image descriptors such as mean, standard deviation, skewness, and entropy. Due to the low-dimensional nature of these features, the models require minimal training time (less than five minutes) and deliver predictions within milliseconds, making them ideal for real-time, portable diagnostic applications.

Overall, this study presents an integrated and efficient POC diagnostic system that combines rapid microfabrication, controlled imaging, and computational intelligence. By removing the dependency on external calibration and smartphone devices, this approach aims to provide a reliable, low-cost, and standalone colorimetric platform for glucose monitoring and other biochemical detection applications.

2. Methodology

2.1. Fabrication of microchip

The overview of the experimental setup for the present study is represented in figure 1 . The microfluidic chip was developed using a layered construction technique that combined multiple sheets of adhesive-backed polyvinyl chloride (PVC), a material selected for its durability, flexibility, and optical compatibility. The device layout, including the geometry of the microchannels and microwells, was designed in CorelDRAW, which generated vector files later used by a precision cutting plotter to carve out the patterns with high accuracy. A glass microscope slide (dimensions: 75 mm × 25 mm × 1 mm) acted as the structural base, providing mechanical stability and a uniform surface for film adhesion. The fabrication sequence began with the application of a white PVC layer, cut to match the dimensions of the glass slide, forming a clean, high-contrast surface that enhances the visibility of colorimetric changes. Over this base, a black PVC film was precisely cut to define the microfluidic network consisting of 21 microwells, each measuring 5 mm × 5 mm, and carefully aligned onto the slide. To achieve the required channel depth, additional layers of black PVC were laminated, resulting in a final thickness of roughly 200 μm. The assembly process was completed by adding a transparent protective layer and thoroughly inspecting the device to ensure uniform alignment, smooth channel formation, and complete sealing between layers. Further details can be found in previous studies [ 37 , 38 ]. This multi-layer microfabrication approach enabled the creation of a robust, leak-proof, and optically suitable platform for subsequent colorimetric glucose detection experiments.

Figure 1. (a) The fabricated PVC on glass microchip. (b) Colorimetric glucose estimation is performed using the Glucose Oxidase-Peroxidase (GOD-POD) reaction. (c) The colorimetric…
Figure 1. (a) The fabricated PVC on glass microchip. (b) Colorimetric glucose estimation is performed using the Glucose Oxidase-Peroxidase (GOD-POD) reaction. (c) The colorimetric enzyme reaction image capturing device containing controlled light source and fixed camera setup. (d)The processed images of the reaction are subjected to feature extraction and selection process followed by accurate estimation of glucose concentration levels using Supervised learning algorithms. (The 3D model is generated using Autodesk Fusion 360 Version 2.0 software; https://www.autodesk.com/education/edu-software/overview#FSN ). Download figure: Standard image High-resolution image

2.2. Reaction protocol and analytical methodology

For the quantitative analysis of glucose, the Mybio Glucose Test Kit (Mylab Discovery Solutions Pvt. Ltd, India) was employed as the primary diagnostic reagent system. The kit comprises a glucose-specific enzymatic formulation containing phosphate buffer, glucose oxidase (GOD), peroxidase (POD), 4-aminoantipyrine, phenol, and a reference glucose standard. The underlying

detection mechanism is based on the GOD–POD enzymatic reaction, which enables colorimetric estimation of glucose concentration through the oxidation of glucose and subsequent chromogenic product formation. To simulate glucose levels within the physiological range of normal individuals (fasting: 70–110 mg dl −1 ; postprandial: up to 130 mg dl −1 ), a set of calibration standards was carefully prepared using D-galactose (SRL Chemicals, India). Standard glucose solutions were formulated with incremental concentrations ranging from 50 mg dl −1 to 200 mg dl −1 , increasing in 10 mg dl −1 intervals, thereby generating 16 calibration samples for reference analysis. All volumetric measurements were carried out with precision-calibrated micropipettes (1–10 μl and 100–1000 μl ranges) to ensure accurate sample preparation and minimize systematic deviations. Prior to microfluidic experimentation, the accuracy of these prepared standards was validated using spectrophotometric analysis, confirming the correctness of concentration levels. The validated samples were then analyzed using the fabricated microfluidic platform to evaluate glucose response and colorimetric behaviour.

For potential Point-of-Care (POC) implementation beyond the scope of the present experimental setup, replacing conventional laboratory micropipettes with more practical sample-handling alternatives could streamline user operation. Options such as pre-calibrated capillary tubes, single-use droplet applicators, or miniature transfer pipettes can offer precise volumetric control without requiring technical expertise. Furthermore, in future system iterations, incorporating automated fluidic actuation mechanisms within the microchip architecture could enable reagent dispensing and mixing with minimal manual input, thereby improving consistency and operational convenience in real-world diagnostic applications.

2.3. Image capturing device

The image capture device was designed using Autodesk Fusion 360, enabling precise modelling and optimization of structural features prior to fabrication. Additive manufacturing of the prototype was carried out using a Fracktal Volterra 3D printer, chosen for its high-resolution printing capability and material compatibility. The finalized device possesses compact dimensions of 7.8 cm × 4.6 cm × 9 cm, ensuring portability and ease of integration with the microfluidic platform. The CAD model was processed through Fracktory slicing software, which converted the design into machine-readable G-code for accurate layer-by-layer deposition. During fabrication, a polycarbonate (PC) filament was employed owing to its superior mechanical strength, heat resistance, and optical stability. Printing was performed using a 0.8 mm nozzle with a 70% triangular infill pattern, providing an optimal balance between rigidity and weight. The fully printed components—comprising the main device housing and the slidable holder for the microfluidic chip—are depicted in figure 2 and figure 3 , demonstrating the successful translation of the CAD model into a functional, durable, and precisely aligned imaging assembly.

Figure 2. CAD model of the image capture device. The main body consists of opening at top for fixing camera module and opening at lower portion for slider followed by the microflu…
Figure 2. CAD model of the image capture device. The main body consists of opening at top for fixing camera module and opening at lower portion for slider followed by the microfluidic chip holder that slides inside the main body. (The 3D model is generated using Autodesk Fusion 360 Version 2.0 software; https://www.autodesk.com/education/edu-software/overview#FSN ). Download figure: Standard image High-resolution image
Figure 3. 3D printed main body and slider with grooves for holding the microfluidic chip. Download figure: Standard image High-resolution image
Figure 3. 3D printed main body and slider with grooves for holding the microfluidic chip. Download figure: Standard image High-resolution image

The experimental configuration utilized in this study is depicted in figure 4 , comprising the integrated image capture module, microfluidic analytical chip inside the device, camera system, and processing unit. Image acquisition was facilitated using a Raspberry Pi AI camera module equipped with a Sony IMX500 image sensor, interfaced with a Raspberry Pi 4 processor for synchronized data handling and on-board computation. To ensure consistent illumination and minimize photometric variability, a 0.2 W miniature LED light source, powered directly by the processor, was mounted at the base of the imaging assembly, thereby maintaining a uniform and controlled lighting environment throughout the experiment. For each trial, an individual glucose concentration sample was prepared and precisely dispensed into 20 of the 21 available microwells on the microfluidic chip, leaving one well vacant for reference calibration. A single high-resolution image of the entire microwell array was initially captured, from which 20 sub-images corresponding to each well were extracted through a Region of Interest (ROI) segmentation algorithm employing automated box detection. Given the fixed focal geometry of the camera and the stabilized illumination setup, a total of 80 images per glucose concentration were systematically acquired to ensure statistical robustness and reproducibility. This process ultimately yielded a comprehensive dataset of 1,280 images, encompassing all calibrated glucose concentrations, which served as the dataset for subsequent image processing and machine learning-based quantification analyses.

Figure 4. The image capture device consisting of camera sensor is connected to Raspberry Pi processor and images are stored in computer system. Download figure: Standard image Hig…
Figure 4. The image capture device consisting of camera sensor is connected to Raspberry Pi processor and images are stored in computer system. Download figure: Standard image High-resolution image

2.4. Feature extraction, selection and data analysis

The proposed methodology for glucose level detection and classification consists of several key stages: preprocessing, feature extraction, feature selection, classification, and evaluation using 10-fold cross-validation. In this work, glucose concentration estimation is formulated as a supervised multi-class classification task, where each class corresponds to a known and clinically relevant glucose concentration level prepared under controlled laboratory conditions. This formulation is adopted to support rapid and computationally efficient point-of-care screening, rather than continuous biochemical quantification. The overall workflow is depicted in figure 5 , illustrating the sequential steps from raw image acquisition to classification, It is important to note that the machine learning models operate on numerical feature vectors derived from the preprocesses images, rather than on raw image pixels.

Иллюстрация — в первоисточнике ↗

Figure 5. Workflow of the proposed glucose detection system, illustrating the sequential stages of pre-processing, feature extraction, feature selection, classification, and evaluation. Download figure: Standard image High-resolution image

2.4.1. Pre-processing

The preprocessing function consists of four essential steps: resizing, grayscale conversion, denoising, and normalization. This routine ensures image uniformity, enhances visual quality, and prepares the data for subsequent feature extraction and model input. Initially, each input image is resized to 256 × 256 pixels using bicubic interpolation to standardize spatial dimensions and improve computational efficiency. The resized image is then converted to a single-channel grayscale representation to reduce data dimensionality while preserving intensity-based information relevant to colorimetric analysis. Noise reduction is applied to the grayscale image using a Gaussian smoothing filter or built-in denoising techniques (e.g., ImageFilter.SMOOTH ) to suppress minor intensity fluctuations while retaining essential structural details. Finally, pixel intensity values are normalized to the range [0,1] to stabilize model training and ensure numerical consistency across samples. The transformation of raw colorimetric images into structured feature representations that form the basis for subsequent machine learning analysis is provided in figure 6 .

Figure 6. Visualization of experimental image processing workflow Raw colorimetric image captured from the microfluidic platform, grayscale and denoised image after preprocessing,…
Figure 6. Visualization of experimental image processing workflow Raw colorimetric image captured from the microfluidic platform, grayscale and denoised image after preprocessing, edge detection output using the Canny algorithm, representative intensity histogram illustrating pixel value distribution, and Histogram of Oriented Gradients visualization highlighting local gradient orientations used for feature extraction. Download figure: Standard image High-resolution image

2.4.2. Feature extraction

Feature extraction plays a crucial role in identifying key characteristics from images, facilitating pattern recognition and classification. The techniques used in this study include Canny Edge Detection, shape-based features, intensity histogram features, and Histogram of Oriented Gradients (HOG).

Canny Edge Detection is a multi-stage algorithm that enhances edge details while minimizing false detections and noise. First, the input image is smoothed using a Gaussian filter to reduce noise while preserving significant structures. The Sobel operator is then applied to compute intensity gradients along the x and y axes, enabling detection of rapid pixel intensity changes. Non-maximum suppression is used to retain only local maxima along the gradient direction, thereby refining edge thickness and suppressing weak responses. Finally, dual-threshold hysteresis classifies pixels into strong and weak edges, retaining weak edges only when connected to strong edges to ensure edge continuity while reducing false positives.

Shape-based features describe the geometric structure of the detected regions and include contour count, area, and perimeter. The number of contours provides an estimate of distinct object boundaries, while contour area is computed by summing pixels enclosed within each boundary, offering an estimate of object size. The perimeter represents the total length of a contour boundary and captures shape complexity. Intensity histogram features represent the distribution of pixel intensity values within an image and provide insight into contrast and illumination characteristics. Although images were initially acquired in RGB format, all histogram-based features in this study were computed on grayscale-converted images to reduce computational complexity and ensure consistency across samples.

Histogram of Oriented Gradients (HOG) is a feature descriptor that captures local gradient orientation patterns and is widely used for texture and shape analysis. Gradient magnitudes and orientations are computed using Sobel operators, after which the image is divided into small spatial cells. Within each cell, gradient orientations are accumulated into histograms, which are subsequently normalized across overlapping blocks to enhance robustness against illumination and contrast variations.

All extracted features were initially considered to characterize the colorimetric response of glucose across different concentration levels. However, the simultaneous use of all features can introduce redundancy and increase computational complexity. To address this, filter-based feature selection techniques were subsequently applied to identify the most informative feature subsets that balance classification performance with computational efficiency, which is particularly important for point-of-care applications.

To improve clarity and reproducibility of the proposed workflow, representative examples of the experimental images and their corresponding preprocessing and feature extraction outputs are shown in figure 7 . The figure visually demonstrates the transformation from raw colorimetric images to resized, grayscale, denoised, normalized, and edge-detected representations, which form the basis for subsequent feature extraction and machine learning analysis.

Figure 7. Visualization of image preprocessing and feature extraction pipeline, (a) Raw colorimetric image captured from the microfluidic platform, (b) resized image standardized …
Figure 7. Visualization of image preprocessing and feature extraction pipeline, (a) Raw colorimetric image captured from the microfluidic platform, (b) resized image standardized to 256 × 256 pixels, (c) grayscale-converted image, (d) denoised image after Gaussian smoothing, (e) normalized grayscale image with pixel intensities scaled to [0,1], and (f) edge-detected image obtained using the Canny algorithm, highlighting structural boundaries used for subsequent shape-based feature extraction. Download figure: Standard image High-resolution image

2.4.3. Feature selection

To enhance classification efficiency and reduce dimensionality, filter-based feature selection methods were applied exclusively on the training data within each fold of the cross-validation process. Feature ranking and selection were performed using only the training subset, and the selected feature sets were subsequently applied to the corresponding validation data to prevent information leakage and ensure unbiased performance evaluation.

The Chi-Square test assesses the statistical relationship between each feature and the target class. It evaluates whether the observed feature distributions differ significantly from expected distributions under the assumption of independence. The Chi-Square statistic is computed in equation ( 1 ) as:

where O represents observed values, and E denotes expected values. Features with higher Chi-Square scores exhibit a stronger dependency on the class label and are prioritized for selection.

Mutual Information quantifies the degree of dependency between features and the target variable. Unlike Chi-Square, MI captures both linear and non-linear relationships, making it suitable for high-dimensional data. It is defined using equation ( 2 ) as:

where P (x, y) represents the joint probability distribution. Features with higher MI values contribute more to classification performance and are selected accordingly.

Fisher Score is a supervised ranking method that evaluates a feature’s discriminative power by analyzing its variance between different class labels. It is given in equation ( 3 ) by:

where and represent the mean and variance of the feature in class I, while is the number of samples in that class. Higher Fisher Scores indicate features that provide better class separability.

2.4.4. Performance evaluation and classification

The selected feature subsets were utilized to train and evaluate four widely used supervised machine learning classifiers: Support Vector Machine (SVM), Neural Network (NN), K-Nearest Neighbors (KNN), and Random Forest (RF). These classifiers were chosen to provide a balanced comparison across different learning paradigms and model complexities. SVM classifier is a margin-based learning algorithm that determines an optimal separating hyperplane between classes and is particularly effective in high-dimensional feature spaces with strong generalization capability. The Neural Network model, inspired by the structure of biological neurons, is capable of modeling complex non-linear relationships by learning hierarchical feature interactions within the data. The KNN classifier operates on a distance-based principle, assigning class labels based on the majority vote of the nearest neighbors, and is well suited for non-parametric pattern recognition tasks. The RF classifier is an ensemble-based approach that constructs multiple decision trees during training and aggregates their outputs, thereby improving prediction stability and reducing overfitting by effectively balancing bias and variance.

To ensure model robustness and prevent overfitting, a 10-fold cross-validation strategy was adopted. The dataset was partitioned into ten equal subsets; in each iteration, nine subsets were used for training and one subset for validation. This iterative process ensured that each data sample contributed to both training and validation phases, resulting in an unbiased and statistically reliable evaluation of model performance. Classification performance was quantitatively assessed using multiple evaluation metrics, including accuracy, precision, sensitivity (recall), specificity, F1-score, and the area under the receiver operating characteristic curve (ROC–AUC). Together, these metrics provide a comprehensive assessment of each classifier’s predictive capability and robustness.

The performance of machine learning classifiers is inherently influenced by hyperparameter selection. In this study, model hyperparameters were selected based on commonly adopted configurations and preliminary validation experiments to ensure stable learning and reproducibility across cross-validation folds. The hyperparameter settings used for each classifier are summarized in table 1 .

Table 1. Hyperparameter configurations used for machine learning classifiers.

ModelHyperparameters
SVMkernel = rbf, C = 1.0, gamma = scale
KNNn_neighbors = 5
Random Forestn_estimators = 100, max_depth = None, bootstrap = True
Neural Network (MLP)hidden_layer_sizes = (100,), activation = relu, solver = adam, max_iter = 500

While these configurations yielded consistent and reproducible performance across all cross-validation folds, it is acknowledged that further hyperparameter optimization may lead to additional performance gains and is therefore considered as part of future work, particularly for regression-based extensions and broader clinical validation.

The subsequent sections present the experimental results, comparative performance analysis, and a detailed discussion of findings, highlighting the most effective and reliable classification model for the proposed glucose detection framework.

3. Results and discussion

3.1. Visualization before pre-processing

Before applying preprocessing techniques, the raw images captured from the microfluidic platform exhibited variations in size, illumination, noise levels, and contrast. These inconsistencies could impact feature extraction and classification accuracy. The images contained background artifacts, uneven lighting, and varying sharpness, which necessitated preprocessing steps like resizing, grayscale conversion, denoising, and normalization. By visualizing the raw images, we observed the need for standardization to enhance feature consistency and improve model performance.

Figure 8 illustrates the class distribution of images, showcasing an equal number of images per class, ensuring a balanced dataset. Each class contains approximately the same number of samples, preventing model bias toward any specific class and enabling fair classification performance across different categories. A well-balanced dataset like this contributes to stable model training and evaluation, minimizing issues related to class imbalance, such as biased predictions and skewed performance metrics. This uniform distribution supports reliable feature extraction and classification, reinforcing the robustness of the proposed methodology.

Figure 8. Class distribution of images before preprocessing, showing an equal number of samples per class to ensure a balanced dataset for classification. Download figure: Standar…
Figure 8. Class distribution of images before preprocessing, showing an equal number of samples per class to ensure a balanced dataset for classification. Download figure: Standard image High-resolution image

To analyse pixel intensity variations in raw images, pixel intensity histograms were examined, as shown in figure 9 . The histograms represent the frequency distribution of pixel intensities for multiple representative raw images prior to preprocessing. A consistent trend toward higher intensity values was observed across these samples, suggesting illumination-related variability in the captured images. Such non-uniformity in pixel intensity can influence subsequent feature extraction and classification performance. Therefore, preprocessing steps including grayscale conversion, normalization, and denoising were applied to standardize pixel intensity distributions, improve contrast, and enhance the robustness of downstream feature extraction and classification.

Figure 9. Pixel intensity distribution of a sample image before preprocessing, showing the frequency of different intensity values. Download figure: Standard image High-resolution…
Figure 9. Pixel intensity distribution of a sample image before preprocessing, showing the frequency of different intensity values. Download figure: Standard image High-resolution image

To examine the structure of the extracted feature space and assess potential class separability, Principal Component Analysis (PCA) was applied for dimensionality reduction. Figure 10 presents a simplified two-dimensional PCA visualization using the first two principal components (PC1 and PC2), which together capture over 70% of the total variance in the dataset. For improved interpretability, glucose concentrations were grouped into clinically relevant ranges rather than individual concentration levels. While partial overlap between groups is observed, the plot reveals meaningful structure in the feature space, indicating that the extracted features retain discriminative information. These observations further motivate the use of feature selection and supervised learning techniques to enhance classification performance.

Figure 10. Two-dimensional PCA visualization (PC1 vs PC2) of extracted image features, with glucose concentrations grouped into clinically relevant ranges. The first two principal…
Figure 10. Two-dimensional PCA visualization (PC1 vs PC2) of extracted image features, with glucose concentrations grouped into clinically relevant ranges. The first two principal components explain 43.7% and 29.4% of the total variance, respectively, highlighting the dominant structure of the feature space while reducing visual clutter caused by excessive class overlap. Download figure: Standard image High-resolution image

3.2. Feature extraction, selection and evaluation

3.2.1. Using chi-square

The Chi-Square test was applied to evaluate the significance of each feature concerning the target variable. Figure A1 (Supporting Information section) illustrates the Chi-Square scores for different features, highlighting their relative importance. The results indicate that shape perimeter and shape area were the most significant features, contributing the most to the classification process. Conversely, features such as HOG mean and color histogram mean exhibited lower Chi-Square scores, suggesting minimal influence on the target variable. By selecting the top-ranked features, dimensionality was reduced while preserving the most informative attributes, leading to improved model efficiency and generalization performance. This selection process ensures that only relevant features are utilized, minimizing noise and redundancy in the dataset.

In this study, various classifiers were trained to evaluate their effectiveness. As shown in figure 11 , the Random Forest classifier outperformed all other models, achieving an impressive accuracy of 0.9748, indicating its robustness in handling feature importance and non-linearity. The K-Nearest Neighbours (KNN) classifier achieved moderate accuracy at 0.5247, reflecting its sensitivity to the feature space distribution. However, Support Vector Machine (SVM) and Neural Network models struggled with the selected features, yielding significantly lower accuracies of 0.1181 and 0.0946, respectively. These results suggest that the discriminative power of the Chi-Square-selected features was best utilized by Random Forest, while SVM and Neural Networks might require more refined feature selection or additional preprocessing for improved performance.

Figure 11. Classifier performance using Chi-Square-selected features. Download figure: Standard image High-resolution image
Figure 11. Classifier performance using Chi-Square-selected features. Download figure: Standard image High-resolution image

To comprehensively evaluate the classifiers trained using features selected via the Chi-Square method, key performance metrics, including Precision, Sensitivity (Recall), Specificity, and F1-score, were analysed. This analysis highlights the importance of selecting an appropriate classifier based on the chosen feature selection technique. Table 2 presents a comparative assessment of these classifiers.

Table 2. Classifier performance metrics using chi-square feature selection.

ClassifierPrecisionSensitivity (recall)SpecificityF1-score
SVM0.1710.1180.9420.084
Neural Network0.1080.1060.9410.101
K-Nearest Neighbors (KNN)0.5490.5430.9690.542
Random Forest0.9770.9761.0000.977

From the results, it is evident that the Random Forest classifier outperforms all other models, achieving the highest precision (0.977), recall (0.976), specificity (1.000), and F1-score (0.977). The KNN classifier follows with moderate performance, showing a balanced trade-off between precision (0.549) and recall (0.543). Conversely, the SVM and Neural Network classifiers exhibit lower predictive power, with significantly lower recall and F1-scores, indicating poor classification performance for this dataset. These findings suggest that feature selection using Chi-Square significantly benefits tree-based models like Random Forest, whereas models like SVM and Neural Networks struggle to generalize effectively with the selected features.

The confusion matrix for the Random Forest classifier using Chi-Square feature selection is presented in figure 12 . It provides a detailed breakdown of the classification performance across different class labels. The diagonal values represent correctly classified instances, while off-diagonal values indicate misclassifications. Minimal misclassification errors are present, primarily seen as small non-zero values outside the diagonal. This strong performance aligns with the previously reported high precision, recall, and specificity metrics, reinforcing the model’s ability to distinguish between different classes effectively.

Figure 12. Confusion matrix for the random forest classifier using chi-square feature selection. Download figure: Standard image High-resolution image
Figure 12. Confusion matrix for the random forest classifier using chi-square feature selection. Download figure: Standard image High-resolution image

3.2.2. Using mutual information

Mutual Information (MI) measures the dependency between features and the target variable, helping identify the most informative attributes for classification. Figure A3(Supporting Information section) presents the MI scores for the extracted features, where higher values indicate stronger relevance to glucose concentration levels. Features such as shape perimeter, shape area, HOG statistics (mean and standard deviation), and color histogram standard deviation exhibit the highest MI scores, suggesting they carry significant information for classification. Unlike the Chi-square test, which focuses on categorical independence, MI captures both linear and non-linear relationships between variables, making it particularly effective in identifying complex dependencies within the dataset. The selected features with high MI scores were retained for further model training, ensuring an optimal balance between dimensionality reduction and predictive performance.

The results of classifier performance using MI-selected features are illustrated in figure 13 . Like the Chi-Square method, the Random Forest classifier achieved the highest accuracy of 0.9738 , confirming its robustness in handling high-dimensional data with important feature dependencies. The K-Nearest Neighbours (KNN) classifier demonstrated moderate accuracy, maintaining a value of 0.5247 , indicating its reliance on feature quality and distance-based classification. However, both the Support Vector Machine (SVM) and Neural Network models performed poorly, with accuracies of 0.1181 and 0.0863 , respectively. These results suggest that while MI-based feature selection captures significant dependencies between features and labels, certain classifiers like SVM and Neural Networks require further feature transformation or dimensionality adjustments for optimal performance. Overall, the findings indicate that Random Forest is the most effective classifier when using MI-selected features, closely aligning with the trends observed in the Chi-Square selection approach.

Figure 13. Classifier performance using mutual information-selected features. Download figure: Standard image High-resolution image
Figure 13. Classifier performance using mutual information-selected features. Download figure: Standard image High-resolution image

To further evaluate the impact of different feature selection techniques, the classifiers were trained using Mutual Information-selected features, and their performance metrics were analyzed. The results, presented in table 3 , include key classification metrics such as Precision, Sensitivity (Recall), Specificity, and F1-score across all examined classifiers.

Table 3. Classifier performance metrics using mutual information feature selection.

ClassifierPrecisionSensitivity (recall)SpecificityF1-score
SVM0.1710.1180.9420.081
Neural Network0.1360.1210.9410.119
K-Nearest Neighbors (KNN)0.5500.5400.9700.540
Random Forest0.9800.9801.0000.980

From the results, it is evident that Random Forest remains the most effective classifier, achieving 98% precision, recall, and F1-score, along with a perfect specificity score of 1.000. The K-Nearest Neighbours (KNN) classifier continues to demonstrate moderate classification performance, with a precision of 0.550 and recall of 0.540. In contrast, SVM and Neural Networks struggle to achieve high classification accuracy, with significantly lower recall and F1-scores. Notably, the Neural Network classifier shows slight improvement in precision (0.136) compared to the Chi-Square method but still underperforms relative to KNN and Random Forest. These results highlight that Mutual Information-based feature selection enhances tree-based models like Random Forest, leading to better discrimination between classes. However, it provides only marginal improvements for SVM and Neural Networks, suggesting that these models may require more complex feature transformations or additional tuning to achieve optimal performance.

The confusion matrix for the Random Forest classifier utilizing Mutual Information as a feature selection technique is presented in figure 14 . The diagonal elements represent correctly classified instances, while off-diagonal elements indicate misclassifications. The model demonstrates strong classification performance, with a high number of correct predictions across all class labels. By analyzing the confusion matrix, we observe that misclassifications are minimal, further reinforcing the effectiveness of Random Forest in handling feature-selected data. The distribution of misclassified instances is sparse, suggesting that the model effectively distinguishes between different class labels. Compared to the Chi-Square-based feature selection, the performance remains consistently strong, with only slight variations in specific class misclassifications. The findings from this confusion matrix validate the high accuracy observed in the previous classifier performance metrics.

Figure 14. Confusion matrix for random forest classifier using mutual information feature selection. Download figure: Standard image High-resolution image
Figure 14. Confusion matrix for random forest classifier using mutual information feature selection. Download figure: Standard image High-resolution image

3.2.3. Using fisher score selected features

Fisher Score is a widely used supervised feature selection method that evaluates the discriminatory power of each feature based on the variance between classes. Higher Fisher scores indicate that a feature contributes significantly to class separation. Figure A5(Supporting Information section) presents the Fisher scores for different extracted features. The results highlight that HOG standard deviation (hog_std) and HOG mean (hog_mean) have the highest Fisher scores, suggesting their strong contribution to distinguishing between classes. In contrast, color histogram mean, and color histogram standard deviation exhibit the lowest scores, indicating their minimal impact on classification performance. These findings suggest that features related to Histogram of Oriented Gradients (HOG) are particularly effective for classification tasks in this dataset. The feature selection process using Fisher Scores helps refine the feature set, improving model interpretability and reducing computational complexity.

The classifier performance using Fisher Score-selected features is illustrated in figure 15 . Similar to previous feature selection methods, the Random Forest classifier achieved the highest accuracy of 0.9759 , demonstrating its superior ability to leverage the selected discriminative features for classification. The K-Nearest Neighbors (KNN) classifier maintained a moderate accuracy of 0.5247 , suggesting that while the selected features contribute to distance-based classification, additional parameter tuning may be necessary for further improvements. The Support Vector Machine (SVM) and Neural Network classifiers exhibited lower performance, with accuracies of 0.1181 and 0.0925 , respectively. These results indicate that while Fisher Score effectively identifies features with strong class separation, certain classifiers require further optimization to fully exploit these features. Overall, Fisher Score selection yielded consistent classification trends with previous methods, reaffirming the effectiveness of Random Forest as the most reliable classifier.

Figure 15. Classifier performance using Fisher Score-selected features. Download figure: Standard image High-resolution image
Figure 15. Classifier performance using Fisher Score-selected features. Download figure: Standard image High-resolution image

To complete the evaluation of feature selection techniques, classifiers were trained using Fisher Score-selected features, and their performance metrics were analyzed. Table 4 presents the classification performance metrics, including Precision, Sensitivity (Recall), Specificity, and F1-score for all classifiers.

Table 4. Classifier performance metrics using fisher score feature selection.

ClassifierPrecisionSensitivity (recall)SpecificityF1-score
SVM0.1700.1200.9400.080
Neural Network0.1300.1100.9400.110
K-Nearest Neighbors (KNN)0.5500.5400.9700.540
Random Forest0.9800.9801.0000.980

The results obtained using Fisher Score feature selection closely align with those from Mutual Information. Random Forest continues to exhibit superior classification performance, achieving 98% precision, recall, and F1-score, along with a perfect specificity of 1.000. K-Nearest Neighbors (KNN) also maintains its moderate classification ability, with an F1-score of 0.54. On the other hand, SVM and Neural Networks remain the weakest performers, with significantly lower recall and F1-scores. While the Neural Network classifier achieves an F1-score of 0.11, its performance remains suboptimal compared to KNN and Random Forest. Similarly, SVM exhibits an F1-score of 0.08, indicating difficulties in distinguishing between classes effectively. These results reaffirm that tree-based models like Random Forest are highly effective when paired with Fisher Score-selected features. However, linear models like SVM and Neural Networks struggle to leverage these features effectively, highlighting the importance of selecting an appropriate classifier based on the feature selection method.

Figure 16 presents the confusion matrix for the Random Forest classifier when employing Fisher Score as the feature selection technique. The confusion matrix provides a detailed breakdown of the model’s classification performance, showcasing the number of correct and incorrect predictions for each class. The diagonal elements represent correctly classified instances, while the off-diagonal elements indicate misclassified samples. The matrix reveals that the Random Forest model achieves a high level of accuracy, with the majority of predictions aligning with the true labels. Misclassifications are minimal and appear sporadically, suggesting that the Fisher Score effectively enhances feature selection by retaining the most discriminative attributes. The few misclassified instances might result from overlapping feature distributions or inherent similarities between certain class labels. When compared to other feature selection methods such as Chi-Square and Mutual Information, the Fisher Score demonstrates stable performance, contributing to improved classification accuracy. The reduction in off-diagonal misclassifications signifies that the selected features provide meaningful information, leading to better decision boundaries in the classification process. Moving forward, additional evaluation metrics such as the Receiver Operating Characteristic (ROC) curve and Area Under the Curve (AUC) was examined to further validate the classifier’s effectiveness in distinguishing between classes. More details can be found in Fig. A2, Fig. A4 and Fig. A6 for Chi-squared, Mutual Information and Fisher score in Supporting Information section respectively.

Figure 16. Confusion matrix for random forest classifier using fisher score for feature selection. Download figure: Standard image High-resolution image
Figure 16. Confusion matrix for random forest classifier using fisher score for feature selection. Download figure: Standard image High-resolution image

4. Limitations

Despite the strong classification performance observed across multiple feature selection strategies, certain limitations of the present study should be acknowledged. First, glucose concentration estimation is formulated as a discrete multi-class classification problem rather than continuous regression. While this formulation is appropriate for rapid point-of-care screening and embedded system implementation, it does not provide continuous biochemical quantification of glucose levels.

Second, all experiments were conducted under controlled laboratory conditions, using a single imaging device, fixed camera geometry, standardized illumination, and manual sample handling. As a result, the robustness of the proposed system under real-world operating conditions such as device-to-device variability, user-dependent sample handling, variable lighting environments, and clinical sample matrices has not yet been fully evaluated.

Future work will therefore focus on extending the proposed imaging and feature extraction framework to regression-based models for continuous glucose prediction, incorporating user-friendly and automated fluidic handling mechanisms for practical point-of-care deployment, and validating system performance across multiple devices, illumination conditions, and clinically relevant samples to enhance generalizability and clinical applicability.

5. Conclusion

The study presents successful realization of a low-cost, microfluidic analytical platform, meticulously engineered through the integration of a glass substrate and multi-layered polyvinyl adhesive films precisely patterned via a computer-controlled cutting plotter. The choice of polyvinyl adhesive films was guided by their affordability, commercial accessibility, and compatibility with precision cutting technologies, facilitating rapid fabrication without the need for complex cleanroom procedures. Their inherent adhesive property provided robust, leak-proof interlayer bonding, eliminating the necessity for external sealing agents. This configuration establishes an ideal platform for colorimetric detection, offering consistent and reproducible optical responses across multiple assays. The fabrication approach promotes rapid prototyping and scalable production, making it particularly suitable for Point-of-Care (POC) diagnostic applications that demand both affordability and reliability. The developed microfluidic chip was seamlessly integrated into a custom-engineered 3D-printed imaging enclosure, featuring a fixed-focus optical module and stabilized illumination source. This controlled setup ensured standardized imaging conditions, minimizing external variability and enabling precise quantification of glucose concentration through colorimetric analysis.

An image-based analytical framework powered by machine learning was developed to enable accurate estimation of glucose concentrations. In this, key numerical and pattern-based features, including pixel intensity, perimeter, area, histogram, histogram mean are considered as crucial factors that contributes towards the model performance. After being trained on an extensive dataset, the models had achieved significant efficiency in colorimetric detection such that they need not rely on predefined values. Among the evaluated supervised learning algorithms—Random Forest (RF), Support Vector Machine (SVM), Neural Networks (NN), and K-Nearest Neighbors (KNN), Random Forest (RF) classifier has shown superior performance. It had demonstrated the highest precision of around 98%, and also a specificity of 98% which is backed up with a robust confusion matrix and ROC curve with AUC value of 1.

These findings underscore the feasibility of image-driven glucose monitoring as a scalable, economical, and non-invasive strategy for real-time biomedical assessment. The implemented machine learning framework, integrated with the microfluidic imaging platform, offers a compelling substitute to traditional analytical techniques, thereby advancing the development of accessible, efficient, and high-throughput diagnostic solutions.

Acknowledgments

The authors would like to acknowledge the support given for resources and computational facilities by the School of Mechanical Engineering and the School of Electrical Engineering, Manipal Institute of Technology, Manipal Academy of Higher Education, Manipal.

Conflicts of interest

The authors declare no conflict of interest.

Data availability statement

The dataset consists of large raw image files and intermediate machine-learning feature datasets that are not currently stored in a public repository. These files can be shared upon reasonable request. The data that support the findings of this study are available upon reasonable request from the authors.

Funding declaration

This research received no external funding.

Author contribution

Omkar Powar - image processing, Feature Extraction/Selection, ML algorithm. Pragna Harish - chemical testing, lab result validation. Mithun Kanchan -conceptualization, methodology, investigation, validation, supervision, writing-original draft, writing-editing, review. Harsh More —CAD modelling, 3D printing, software Emani Ruthvesh Reddy - 3D printing, writing-original draft.

Show References

You may also like

Journal articles

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.