Smartphone‐Based Colorimetric Determination of Imeglimin Hydrochloride Using Eosin Y: A Simple and Eco‐Friendly Analytical Approach Authors: Aya Barseem, Reem H Obaydo, Samar H Elagamy Published: 2025 ABSTRACT ABSTRACTA simple, rapid and eco‐friendly smartphone‐assisted colorimetric method was developed for the determination of imeglimin hydrochloride (IMG) in pharmaceutical dosage forms. The method is based on the formation of an orange‐coloured ion‐pair complex between eosin Y (EY) and the amine group of IMG through electrostatic interactions in an acidic medium. The intensity of the resulting colour was quantified using a smartphone camera, and the colour parameters were analysed using ImageJ software and the colour detector application. The absorbance of the resulting IMG–EY complex was recorded spectrophotometrically at the maximum wavelength of 524 nm. The smartphone and spectrophotometric approaches exhibited a linear response in the concentration range of 0.8–10 µg/mL, showing satisfactory accuracy and precision. Furthermore, the analytical performance of the ImageJ and RGB colour detector applications was evaluated and compared, confirming their reliability for quantitative colour analysis. The proposed methods were statistically compared with a direct spectrophotometric method for IMG determination. The combination of smartphone‐based analysis with colorimetric detection provides a cost‐effective, portable and user‐friendly alternative for the routine quality control of pharmaceutical formulations.Keywords: colorimetric analysis | eosin Y | imeglimin hydrochloride | pharmaceutical dosage form | smartphone detection Introduction The rapid advancement and widespread availability of smartphones have revolutionised analytical chemistry, transforming these everyday devices into compact, low‐cost and efficient sensing platforms. Integrating colorimetric techniques with smartphone technology has established a new paradigm in chemical analysis, enabling the quantitative detection of analytes through visual colour changes [1, 2, 3, 4, 5]. By utilizing the smartphone's built‐in camera and advanced image‐processing algorithms, colour variations, resulting from chemical reactions, can be accurately quantified, allowing rapid and reliable measurements in an easily accessible manner [6]. ImageJ is an open‐source, Java‐based image analysis program originally developed by the National Institute of Mental Health. It has become one of the most widely adopted tools for quantitative colour analysis due to its versatility and cross‐platform compatibility [6, 7]. The software can process a variety of image formats and enables precise measurement of colour intensity by analysing the red, green and blue (RGB) gray‐scale levels of coloured samples. Each RGB gray value corresponds to a pixel's brightness, ranging from 0 (black) to 255 (white). These RGB values can be converted mathematically into cyan, magenta and yellow (CMY) components using the relationship CMY = 255–RGB, where the CMY values directly reflect the colour intensity [8, 9]. In addition, smartphone‐based applications, such as colour detector, provide on‐screen visualization of colour models (RGB, CMYK, HSV) and enable real‐time extraction of colour parameters from selected regions, thereby improving the efficiency and practicality of smartphone‐assisted colorimetric measurements [10]. Imeglimin hydrochloride (IMG) is a novel oral antidiabetic drug approved for the treatment of Type 2 diabetes mellitus (T2DM) (Figure S1). Several studies have demonstrated that its mechanism of action involves the stimulation of insulin secretion, restoration of pancreatic β‐cell function and protection against β‐cell apoptosis [11, 12, 13, 14]. Various analytical methods have been established for the quantitative determination of IMG in pharmaceutical formulations, including spectrophotometric techniques based on its direct detection at 239 nm [15, 16]. Several chromatographic approaches employing UV [17, 18, 19] and mass spectrometric (MS) detection [20] have also been reported. Stability‐indicating studies have also been reported using liquid chromatography (LC) coupled with MS [21] and nuclear magnetic resonance (NMR) spectroscopy [22] for the identification of degradation products. To the best of our knowledge, no colorimetric method has yet been reported for the determination of IMG. Therefore, this study aims to develop a novel smartphone‐assisted colorimetric method using ImageJ and a colour detector app based on the colorimetric reaction of IMG with eosin Y (EY). EY has been extensively applied in the analysis of various pharmaceuticals, using both spectrophotometric and spectrofluorimetric techniques [23, 24, 25, 26]. In its mono‐ or di‐anionic forms, EY interacts electrostatically with the cationic form of IMG to form a stable ion‐pair complex, enabling sensitive and straightforward colorimetric detection. Experimental Section Materials IMG (labelled purity 99.19%) was purchased from Metrochem, India. Twymeeg 500 mg tablets were obtained from Sumitomo Dainippon Pharma Co., Japan. EY (purity 99%) was purchased from Sigma‐Aldrich, USA. Acetic acid and sodium acetate were purchased from Fischer Scientific, USA. Instrumentation Absorption measurements were performed using a Shimadzu UV‐1800 double‐beam spectrophotometer (Shimadzu, Japan) equipped with 1.0 cm quartz cuvettes. Spectra were recorded over the visible range with a data interval of 0.1 nm. pH measurements were obtained using a pH meter equipped with a double‐junction glass membrane electrode (HANNA, USA). Preparation of Reagents and Buffer Solutions A fresh aqueous solution of EY (4 × 10−3 M) was prepared by dissolving 1.3837 g in 500 mL of distilled water. Acetate buffer solutions (pH 4.0) of 0.2 M were prepared by mixing appropriate volumes of 0.2 M sodium acetate and 0.2 M acetic acid and then diluting the mixture to 100 mL with distilled water to achieve the desired pH. Preparation of Standard Stock and Working Solutions of IMG An accurately weighed portion of 25 mg IMG was transferred into a 25 mL volumetric flask and dissolved in distilled water to prepare a 1000 µg/mL stock solution. From this stock, a 100 µg/mL working solution was prepared. Aliquots of the working solution were transferred into a 10‐mL volumetric flasks and diluted with distilled water as needed to obtain final concentrations ranging from 8.0 to 100 µg/mL. Reaction With EY To perform the reaction, 1.0 mL of IMG working solution (8.0–100 µg/mL) was transferred into a 10‐mL volumetric flask, followed by 4 mL of distilled water, 1.0 mL of EY solution (4 × 10−3 M) and 2.0 mL of 0.2 M acetate buffer (pH 4.0). The solution was diluted to the mark with distilled water and thoroughly mixed, giving final concentrations ranging from 0.8 to 10 µg/mL. The absorbance of the formed complex was measured spectrophotometrically at λ max 524 nm. The colour intensity was measured using ImageJ software and the RGB colour detector mobile app. Smartphone‐Based Colorimetric Analysis A Samsung A54 smartphone camera was used to capture images of the samples placed in cuvettes against a white background for colour analysis. Digital image processing was performed using ImageJ 1.52a and the RGB colour detector. All measurements were conducted under constant lighting and fixed photographic conditions, with the camera settings summarized in Table 1. The average gray values were obtained using the ImageJ toolbox. Image acquisition and processing were carried out in triplicate, and further analysis of the RGB data was performed using the RGB colour detector. TABLE 1Digital camera specifications and software used for image processing.ParameterSpecificationsDigital cameraSamsung A54Maximum resolution50 megapixelsPixel size1.0 µmImaging conditions– Exposure modeNormal– Focal length1.57 mm– Metering modeSpot meteringImage formatTIFF, 2604 × 4624 pixelsColour representationStandard RGB Digital camera specifications and software used for image processing. Procedure for Assay of Dosage Form Ten Twymeeg 500 mg tablets were accurately weighed, powdered and homogenized. A portion of the powder equivalent to one tablet (500 mg IMG) was transferred into a 100‐mL volumetric flask, dissolved in approximately 50 mL of distilled water and sonicated for 10 min. The volume was then adjusted to 100 mL with distilled water and filtered to obtain a stock solution of 5000 µg/mL. A 10‐mL aliquot of this stock solution was diluted to 50 mL to prepare a working solution of 1000 µg/mL. Accurately measured aliquots of 0.2, 0.4 and 0.8 mL were transferred into 10 mL volumetric flasks and diluted to the mark, yielding concentrations of 20, 40 and 80 µg/mL, respectively. From each of these solutions, 1.0 mL aliquots were further diluted to 10 mL to achieve final concentrations of 2.0, 4.0 and 8.0 µg/mL, and the reaction with EY was performed as described in Section 2.5. Results and Discussion IMG forms an ion‐association complex with EY through electrostatic attraction between the anionic functional groups of EY and the cationic amino groups of IMG, as illustrated in Figure S2. The resulting IMG–EY complex exhibits a distinct visible absorption band at λ max of 524 nm (Figure 1). To assess the colour intensity of the formed complex, both ImageJ software and a mobile‐based RGB colour detector application were employed. ImageJ and the RGB colour detector have been widely used for quantifying colour intensity in various analytical applications [27, 28]. The RGB colour detector directly measures the red (R), green (G) and blue (B) channel values. In this study, the red channel was selected because it showed the highest correlation coefficient (0.999) between colour intensity and analyte concentration, increasing proportionally with the orange colour. In comparison, the blue and green channels exhibited lower correlation coefficients (0.95 for B and 0.967 for G). ImageJ was used to calculate the average RGB gray values from the captured images. These RGB values were then converted to their complementary CMY values using the equation: CMY = 255–RGB. Figure 2 shows the calculated gray values corresponding to successive concentrations of the IMG–EY complexes. Absorption spectrum of blank EY (4 × 10−3 M), IMG (3.0 µg/mL) and IMG–EY ion‐association complex. (A) Images of five successive concentrations of the IMG–EY complex (2.0–10 µg/mL) captured using the smartphone camera. (B) Corresponding gray value profiles obtained using ImageJ software. Optimization of Reaction Conditions Type of Buffer Different buffer systems were initially tested to provide the optimal medium for complex formation between IMG and EY. Among the evaluated buffers, acetate, phosphate and borate, the acetate buffer produced the most stable and intense colouration, indicating the most suitable medium for the reaction. Acetate buffer was chosen because its buffering properties align with the acid–base behaviour of both EY and IMG, thereby maximizing ion‐pair formation. EY is diprotic (pKa1 = 2.10, pKa2 = 4.95), so in the mildly acidic range around pH 3–6 it exists predominantly in its anionic forms (mono‐ and di‐anion), whereas IMG (basic in nature, pKa ≈ 10.21) is fully protonated and positively charged at those pH values. Acetate buffer (pKa ≈ 4.76; effective buffering range ≈ 3.76–5.76) therefore maintains the solution within the pH window where EY is negatively charged, and IMG is positively charged, promoting strong electrostatic attraction and stable ion‐pair complex formation. In addition, acetate's buffering capacity prevents pH drift that would weaken the complex [23, 29]. Effect of pH The pH of the reaction medium plays a crucial role in controlling the ionization of both EY and the drug, which directly affects the complexation process. The effect of pH was investigated in the range of 2.0–5.0 using 0.2 M acetate buffer. As shown in Figure S3a, the maximum colour intensity was obtained at pH 4.0, beyond which a noticeable decrease in intensity was observed, possibly due to partial protonation of the dye molecules. Concentration of EY The influence of EY concentration was studied by varying its volume between 0.5 and 3.0 mL of the 4 × 10−3 M solution. The absorbance (or colour intensity) increased with eosin volume up to 1.0 mL, after which it plateaued, indicating that this volume was sufficient for complete complex formation. Hence, 1.0 mL of EY solution was chosen as the optimal reagent volume (Figure S3b). Optimization of Imaging Procedure To achieve reproducible and accurate smartphone‐assisted colorimetric analysis, the imaging parameters were systematically optimized. Three smartphones with different camera resolutions—13, 25 and 50 MP—were evaluated under identical lighting and distance conditions. Although all devices produced interpretable images, the 50 MP camera provided the most consistent gray value readings with minimal signal variation, whereas lower resolution cameras exhibited slightly higher measurement variability. Several distances from the smartphone camera to the cuvette were evaluated, and a distance of 10 cm was ultimately chosen for image acquisition. Study of Stoichiometry of the Reaction The stoichiometry of the reaction between IMG and EY was determined using the Job's method of continuous variation by plotting the molar ratio of IMG to EY versus absorbance. The results indicated the formation of a 1:1 complex between IMG and EY, as evidenced by the maximum absorbance occurring at a mole fraction of 0.5 (Figure S4). Validation of the Proposed Methods Both the spectrophotometric and smartphone‐based colorimetric methods were validated in accordance with the ICH Q2(R1) guidelines for analytical method validation [30]. Linearity and Range For the spectrophotometric method, a calibration curve was constructed by plotting absorbance values against the corresponding concentrations. For the smartphone‐based approach, red values and CMY values were plotted versus the respective concentrations (Figure S5). For both approaches, a linear relationship was established over the concentration range of 0.8–10 µg/mL. The regression parameters, the limits of detection (LOD) and limits of quantification (LOQ) are summarized in Table 2. LOD and LOQ were calculated using the standard deviation of the intercept and the slope of the calibration curve, according to the following equations: LOD = 3.3 × (SD of intercept/slope) and LOQ = 10 × (SD of intercept/slope). TABLE 2Regression parameters for the calibration curves for determination of imeglimin hydrochloride (IMG) obtained using the smartphone‐based approaches (ImageJ and RGB colour detector) and the spectrophotometric method.MethodSmartphone approachParametersImageJRGB colour detectorSpectrophotometric approachLinearity (µg/mL)0.8–100.8–100.8–10Limit of detection (LOD) (µg/mL)0.120.210.084Limit of quantitation (LOQ) (µg/mL)0.370.630.25Slope ± S b 15.14 ± 0.0922.69 ± 0.0280.098 ± 0.00042Intercept ± S a 43.95 ± 0.56191.13 ± 0.170.21 ± 0.0025 Sy / x 0.730.220.0033Correlation coefficient (r)0.99990.99960.9999 Regression parameters for the calibration curves for determination of imeglimin hydrochloride (IMG) obtained using the smartphone‐based approaches (ImageJ and RGB colour detector) and the spectrophotometric method. Accuracy The accuracy of smartphone and spectrophotometric approaches were evaluated by analysing three concentration levels of IMG (0.8–4.0–10 µg/mL) in triplicate. The mean recovery percentages were within the range 98%–102%, as illustrated in Table S1, demonstrating that the proposed methods are accurate. Precision The precision of smartphone and spectrophotometric approaches were assessed in terms of intra‐day and inter‐day variability. Intra‐day precision was determined by analysing three different concentrations (1.0–2.0–6.0 µg/mL) three times within the same day. Inter‐day precision was assessed over three successive days. The results showed low relative standard deviation (RSD%) values (Table S2), confirming the high repeatability and intermediate precision of the methods. Specificity Specificity was confirmed by analysing the commercial Twymeeg tablet formulation. No interference from excipients (microcrystalline cellulose, hydroxypropyl methylcellulose, polyethylene glycol and magnesium stearate) was observed. Satisfactory recovery values were obtained, confirming the applicability of the method to routine pharmaceutical analysis (Table 3). The results obtained from the smartphone and spectrophotometric approaches were statistically compared with those of a reported spectrophotometric method based on direct measurement at λ max of 237 nm. The calculated F and t values were found to be lower than the corresponding tabulated values at a 95% confidence level, indicating no significant difference between the proposed and reference methods with respect to accuracy and precision (Table 3). TABLE 3The results for determination of imeglimin hydrochloride (IMG) in Twymeeg tablet using smartphone and spectrophotometric approaches with statistical comparison to a reported method.MethodMean % recovery* ± SD t value (2.77) a F value (19) a ImageJ99.97 ± 0.591.078.04RGB colour detector100.11 ± 0.720.5812.02Spectrophotometric100.03 ± 0.341.412.77The reported method100.36 ± 0.21 a the theoretical t value and F value (0.05) at *n = 3. The results for determination of imeglimin hydrochloride (IMG) in Twymeeg tablet using smartphone and spectrophotometric approaches with statistical comparison to a reported method. a the theoretical t value and F value (0.05) at *n = 3. Greenness Assessment The sustainability of the smartphone‐based approach was evaluated in comparison with the spectrophotometric approach for the colorimetric determination of IMG. Both methods followed the same analytical procedure and achieved comparable analytical performance; the only difference was in the detection technique. In the smartphone‐based approach, colour intensity was measured using either ImageJ software or the colour detector app, whereas in the spectrophotometric method, measurements were recorded using a UV–visible spectrophotometer. From a green chemistry perspective, the smartphone‐based approach demonstrated clear environmental advantages, including lower energy consumption, higher innovation potential, portability and enhanced throughput. The sustainability of both approaches was comprehensively assessed using the environmental, performance, and practicality index (EPPI) and the MA tool. The EPPI provides a dual‐index evaluation through the environmental impact (EI) index and the performance and practicality index (PPI), thereby addressing greenness, analytical efficiency and practical applicability. EPPI results are expressed as numerical scores (1–100) and visually represented by a pie chart, where green indicates greenness, and purple represents the combined contribution of analytical performance (redness) and practicality (blueness) [31]. The MA tool, a unified digital platform, integrates four major sustainability assessment frameworks—GEMAM, BAGI, RAPI and VIGI—into a single‐evaluation system using a structured 51‐question protocol. It provides individual domain scores and a composite Whiteness Score, visualized in a 3D colour‐segmented model [32]. On the basis of the MA tool evaluation, the smartphone‐based method achieved the highest overall sustainability score (67.1%), surpassing the spectrophotometric method (61.8%). The smartphone‐based approach showed a GEMAM score of 60.8 (reflecting greenness) and a VIGI score of 55 (indicating innovation), whereas the spectrophotometric method recorded a GEMAM score of 59.6 and a VIGI score of 35. Both methods exhibited similar RAPI (analytical performance) and BAGI (practicality) scores (Figure 3). MA Tool assessment results for (A) the smartphone‐based and (B) spectrophotometric approaches for IMG determination. The EPPI assessment further confirmed the advantages of the smartphone‐based method. The EI index, represented by the green portion of the pie charts (comprising sample preparation, reagents, waste and instrumentation), was higher for the smartphone‐based method, achieving 87.9% compared with 85.4% for the spectrophotometric method. The PPI is represented by the purple portion of the pie charts. PPI index evaluates aspects such as method sensitivity, AI integration, optimization, sample throughput and sample reusability. The PPI was also higher for the smartphone‐based method (73%) than for the spectrophotometric approach (68%), highlighting its superior performance and practicality (Figure 4). EPPI evaluation of (A) the smartphone‐based and (B) spectrophotometric methods for IMG determination. Conclusion In this study, ImageJ and the RGB colour detector smartphone application were successfully utilized for the colorimetric determination of IMG based on its ion‐association complex formation with EY. The results showed that the analytical performance of ImageJ and the colour detector was comparable. Moreover, the smartphone‐based approach demonstrated analytical performance consistent with the spectrophotometric method, while offering additional advantages in terms of portability, cost‐effectiveness and green analytical chemistry principles. Statistical comparison with the reported method confirmed the reliability of the developed procedures, with no significant difference in accuracy or precision. Overall, the developed methods provide simple, sensitive and environmentally benign alternatives for the determination of IMG in pharmaceutical formulations, highlighting the potential of smartphone‐based colorimetric analysis as a practical tool for routine quality control and point‐of‐care applications. Author Contributions Samar H Elagamy: conceptualization (lead) methodology (lead), writing the original draft (lead). Aya Barseem and Reem H. Obaydo: methodology (supporting), reviewing and editing (supporting). Conflicts of Interest The authors declare no conflicts of interest. Supporting information Supporting File 1: ansa70064‐sup‐0001‐SuppMat.docx. Barseem A., Obaydo R. H., and Elagamy S. H., “Smartphone‐Based Colorimetric Determination of Imeglimin Hydrochloride Using Eosin Y: A Simple and Eco‐Friendly Analytical Approach.” Analytical Science Advances 6, no. 2 (2025): e70064. 10.1002/ansa.70064 Contributor Information Reem H. Obaydo, Email: obaydo.reem@gmail.com. Samar H. Elagamy, Email: samar.elagamy@pharm.tanta.edu.eg. Data Availability Statement The authors have nothing to report. References Associated Data Supplementary Materials Supporting File 1: ansa70064‐sup‐0001‐SuppMat.docx. Data Availability Statement The authors have nothing to report.