Abstract
Sunset Yellow (SY) is a widely used synthetic azo dye in the food, pharmaceutical, and cosmetic industries, but its excessive release poses serious health and environmental risks. In this study, a magnetic molecularly imprinted polymer (MMIP)-based electrochemical sensor was developed for the selective detection of SY using 1-vinylpyridine as the functional monomer. Scanning electron microscopy (SEM) revealed irregular particle morphologies with an average diameter of approximately 69 nm, attributed to surface cavities formed during the imprinting process. Batch sorption experiments confirmed the high specificity of the MMIPs, with a maximum sorption capacity of 80 mg g− 1 under optimal conditions (pH 2, sorbent dosage 2 mg, contact time 18 min). Sorption kinetics followed a pseudo-second-order model, and adsorption behavior was best described by the Langmuir isotherm, indicating monolayer adsorption. Electrochemical measurements demonstrated that the fabricated sensor exhibited high sensitivity, selectivity, and stability for SY detection. The sensor performed optimally at pH 7, an accumulation time of 60 s, and a concentration of 1.5 × 10⁻³ M, with recovery values of 72.9–99.3% in real water and beverage samples, highlighting its practical applicability for environmental and food analysis. The LOD and LOQ values were found to be 5.82 × 10− 5 M and 1.76 × 10− 4 M, respectively. These results confirm the effectiveness of MMIP-based platforms for rapid, accurate, and selective monitoring of synthetic dyes in complex matrices.
Introduction
Rapid industrialization driven by population growth and increasing lifestyle demands has significantly affected the quality of air, water, and soil. To enhance product appeal and market competitiveness, industries such as textiles, leather, cosmetics, pharmaceuticals, and food processing heavily depend on dyes and coloring agents in their production processes1,2. SY FCF (E110), an azo dye, is one of the most widely used colorants in foods and beverages due to its excellent water solubility and stability over a wide pH range3. However, despite its broad use, SY has been associated with several adverse health and environmental impacts. Although conclusive evidence is limited, studies have linked it to genotoxic effects, allergic reactions, and potential connections to hyperactivity in children. Its safety continues to be evaluated by regulatory bodies such as the FDA and EFSA. Due to its poor biodegradability, this dye tends to persist in aquatic ecosystems, posing long-term ecological risks4,5.
Several methods have been explored for dye removal, including oxidation6, photocatalysis7, biodegradation8, membrane filtration9, and sorption10. Among these, sorption using advanced adsorbents remains one of the most effective and straightforward approaches. However, conventional adsorbents often suffer from low selectivity and high cost. Consequently, molecularly imprinted polymers (MIPs) have emerged as promising synthetic materials owing to their high selectivity, chemical stability, and cost-effective preparation. Their performance can be further enhanced by reducing MIPs to the nanoscale or integrating them with magnetic nanoparticles to form magnetic molecularly imprinted polymers (MMIPs)11. These hybrid materials exhibit improved binding performance, greater surface area, and efficient separation. MMIPs combine the molecular recognition ability of MIPs with the magnetic responsiveness of nanoparticles such as Fe3O4 or γ-Fe2O3. While the polymeric shell provides specific binding sites, the magnetic core enables rapid and simple recovery12.
MMIPs have gained increasing attention in electrochemical sensing applications due to their facile magnetic separation, excellent specificity, and reusability. Typically, an electrochemical sensor consists of three main components: a transducer (commonly an electrode that converts chemical interactions into electrical signals), a recognition element (in this case, the MMIPs), and a signal processor, which interprets the output response13,14. MMIP-based sensors are particularly effective for detecting food additives such as SY in complex real-world samples, offering fast response times, high sensitivity, and low detection limits.
The novelty of this work lies in the design of a magnetic molecularly imprinted polymer-based electrochemical sensor for the selective detection of SY, providing a cost-effective, sensitive, and eco-friendly approach to monitoring synthetic dyes in environmental samples. This approach contributes to the achievement of several United Nations Sustainable Development Goals (SDGs), including SDG 3 (Good Health and Well-being), SDG 6 (Clean Water and Sanitation), SDG 9 (Industry, Innovation and Infrastructure), SDG 11 (Sustainable Cities and Communities), SDG 12 (Responsible Consumption and Production), and SDG 14 (Life Below Water), by promoting sustainable, low-cost, and efficient strategies for the detection and removal of hazardous dyes from water systems. To the best of our knowledge, this is the first report of an MMIP-based electrochemical sensor specifically designed for SY quantification in environmental samples, highlighting its novel contribution to both analytical chemistry and environmental sustainability.
Materials and methods
Materials
SY dye (90%, MACSEN LABS), 1-vinylpyridine (95%, USA Chemical Suppliers), ethylene glycol dimethacrylate (EGDMA, 99%, Sigma Aldrich), azobisisobutyronitrile (AIBN, 98%, Sigma Aldrich). All reagents were of analytical grade.
Preparation of Core-Shell MIPs
The initial stage of the polymerization process involved preparing a suitable core material to support subsequent polymer growth. Magnetic nanoparticles (MNPs) were synthesized using a co-precipitation technique14. In 80 mL of deionized water, a 1:2 molar ratio of iron (II) sulfate and iron (III) chloride (1.72 g and 2.32 g, respectively) was dissolved. Nitrogen gas was continuously purged through the solution to maintain an inert atmosphere. After homogenization, the reaction mixture was heated to 80 °C and stirred for 30 min before ammonium hydroxide was gradually added to initiate the co-precipitation process15.
The successful synthesis of MNPs was indicated by the formation of black precipitates, which were collected using an external magnet, thoroughly washed to remove impurities, and vacuum-dried. The MNP surface was modified in two steps to introduce vinyl functional groups to facilitate polymerization. First, 300 mg of MNPs were sonicated for 15 min in a solution containing 40 mL of ethanol and 4 mL of deionized water. Then, 5 mL of ammonium hydroxide and 2 mL of tetraethoxyorthosilicate (TEOS) were added, and the suspension was stirred on a magnetic stirrer. A silica layer containing hydroxyl groups was formed on the MNP surface after stirring for 10 h at room temperature.
The second modification involved reacting 250 mg of TEOS-coated MNPs in 50 mL anhydrous toluene with 5 mL of 3-(trimethoxysilyl)propyl methacrylate (MPS). The reaction was carried out at room temperature under an inert atmosphere with continuous stirring for 10 h. The resulting silane-functionalized MNPs (Fe₃O₄@SiO₂-C = C) were collected magnetically, washed with ethanol and deionized water, and vacuum-dried for later use. For polymerization, 0.8 mmol of 1-vinylpyridine and 0.2 mmol of SY dye were dissolved in 30 mL of ethanol for the imprinted polymers and stirred for 3 h. Then, 200 mg of the functionalized MNPs were added, along with 4.0 mmol of EGDMA and 0.05 mmol of AIBN and the mixture was stirred for 12 h at 60 °C under nitrogen protection to ensure homogeneity16,17. Parallel synthesis was performed to prepare non-imprinted polymers (NIPs) without the template dye.
Characterization
The morphological and physicochemical properties of the synthesized magnetic molecularly imprinted polymers (MMIPs) and non-imprinted polymers (MNIPs) were investigated. Surface morphology and particle structure were examined using scanning electron microscopy (SEM, JEOL JSM 5910, Akishima, Tokyo, Japan). Functional group analysis was performed via Fourier-transform infrared spectroscopy (FTIR) with an ATR-equipped Thermo Electron system (Waltham, MA, USA). Elemental composition and distribution were evaluated using X-ray fluorescence (XRF, Shimadzu RF-6000, Japan).
Sorption experiments
Sorption experiments were performed to evaluate the binding efficiency of the synthesized MMIPs and MNIPs under controlled operational conditions. Batch adsorption studies were conducted by varying adsorbent dosage (2–10 mg), initial SY dye concentrations (5–35 ppm), pH (2–9), and contact time (3–18 min). For each experiment, the adsorbent was added to 10 mL of dye solution in glass vials and shaken at 200 rpm using an orbital shaker.
After the designated contact time, the suspensions were centrifuged at 5000 rpm for 5 min, and the clear supernatant was collected for analysis. The residual SY concentration (Cf) was determined using a UV–Vis spectrophotometer at 490 nm. This wavelength was selected because SY exhibits its maximum absorbance (λ-max) around 482–485 nm in aqueous media; however, under our experimental pH and buffer conditions, a bathochromic shift to 490 nm was observed during preliminary wavelength scanning (200–700 nm). Therefore, all quantitative measurements were performed at 490 nm to ensure maximum sensitivity. SY concentrations were determined using calibration curves plotted with standard solutions (concentration range 5–40 ppm, R² > 0.998), based on a linear relationship between absorbance and concentration. All measurements were repeated three times.
The equilibrium adsorption capacity (qe, mg g− 1) was calculated using the following Eq18.:
Where qe (mg g− 1) is the equilibrium adsorption capacity, Cinitial and Cfinal (mg L− 1) are the initial and equilibrium concentrations of the SY in solution, respectively, Vol (L) is the volume of the SY solution, and mass (g) is the mass of the adsorbent used. The vaues of Cinitial were set experimentally, while Cfinal was determined from the calibration curve obtained using UV-Vis spectrophotometry after equilibrium was reached.
Electrochemical experiments
The electrochemical sensing properties of the polymers were assessed using a GAMRY Interface 1010B potentiostat in a standard three-electrode configuration. The system consisted of a platinum plate counter electrode, a silver/silver chloride (Ag/AgCl) reference electrode, and a Teflon working electrode filled with carbon paste embedded with MMIPs19. The working electrode had a cavity of 1.5 mm diameter and 1 mm depth.
The sensing material was prepared by mixing 85 mg graphite powder with 15 mg MMIPs in 1 mL deionized water to form a homogeneous paste, which was left to dry at room temperature for 24 h. Subsequently, 1 mL of paraffin oil was added to achieve the desired consistency. The paste was pressed into the Teflon chamber containing a platinum disc to establish electrical contact20.
Commercially available fruit juice samples were purchased from a local market and analyzed without further purification. Prior to analysis, the juice samples were degassed by ultrasonication for 10 min to remove dissolved gases. The samples were then filtered through a 0.45 μm membrane filter to eliminate suspended solids and pulp. To minimize matrix effects, the filtered juice was diluted tenfold with 0.1 M phosphate buffer solution (PBS, pH 7.0).
For recovery studies, known concentrations of Sunset Yellow were spiked into the diluted juice samples at three different levels. The spiked samples were gently mixed and allowed to equilibrate for 15 min at room temperature to ensure uniform distribution of the analyte.
Results and discussion
Morphological and structural characterization
SEM results
Scanning electron microscopy (SEM) revealed irregular spherical MMIPs particles with a core-shell structure (Fig. 1). Their rough texture is attributed to imprinting cavities, which generate a heterogeneous surface morphology. In contrast, MNIPs exhibited a larger pore structure and a smoother surface. MMIPs had an average particle diameter of approximately 69 nm, whereas MNIPs displayed a significantly larger average diameter of around 194 nm.
SEM analysis (a) MMIPs (b) MNIPs.
FTIR results
Fourier-transform infrared spectroscopy (FTIR) confirmed the successful polymerization of MMIPs (Fig. 2). The Fe–O bond of magnetite was identified as the source of an absorption band at 532 cm−¹. The efficient formation of the polymers was supported by the similar spectral features displayed by both MMIPs and MNIPs21,22,23. The C = N and C = C stretching vibrations of the pyridine ring were associated with bands observed at 1638 and 1452 cm−¹. At 2942 cm−¹, a distinctive C–H stretching band appeared24. The C = O stretching vibration of EGDMA was also correlated with the sharp band at 1721 cm−¹, while the C–O stretching was indicated by a prominent peak at 1144 cm−¹. Additionally, the out-of-plane bending vibration of C–H was assigned to the absorption band at 751 cm−¹25,26,27.
FTIR analysis of MMIPs and MNIPs.
XRF results
The XRF study was conducted to investigate the elemental composition of the synthesized product. The quantitative X-ray fluorescence (XRF) analysis of MMIPs and MNIPs is presented in Tables 1 and 2, respectively. Both silicon (Si) and iron (Fe) are clearly present in the samples, according to the spectra. The successful incorporation of magnetite (Fe₃O₄) nanoparticles into the polymer matrix is confirmed by the substantial iron content28. Furthermore, the significant silicon concentration provides strong evidence of surface modification with a silica layer, which was introduced to enhance the magnetite particles’ stability, functionality, and dispersion. The formation of magnetic nanoparticles and their subsequent silanization was verified by this elemental analysis29,30,31.
Binding experiments
Effect of pH
The influence of pH on the sorption performance of both MMIPs and MNIPs was systematically investigated due to its critical role in modulating the ionization state of dye molecules and the surface charge of the sorbents (Fig. 3a). The influence of pH on the adsorption performance of MMIPs and MNIPs was evaluated over a pH range of 2–10, using a fixed initial dye concentration of 25 ppm and an adsorbent mass of 30 mg in 10 mL of solution. The results indicated that the maximum sorption capacity was achieved at an acidic pH of around 2. Sorption efficiency decreased as the pH shifted toward more basic values. This trend suggests that the polymer surface becomes protonated under acidic conditions, enhancing its interaction with the target analyte32.
(a) Effect of pH on sorption efficiency of MMIPs and MNIPs (b) Effect of concentration on sorption efficiency of MMIPs and MNIPs.
Specifically, electrostatic interactions appear to be the main driving force behind the binding affinity of SY dye to MMIPs synthesized using 1-vinylpyridine as the functional monomer. The nitrogen atom in the pyridine ring of 1-vinylpyridine becomes protonated in acidic media, conferring a positive charge to the polymer surface33. Since SY is an anionic dye containing sulfonate groups, it carries a negative charge in aqueous solution. This charge complementarity enables strong electrostatic attraction between the dye molecules and the positively charged binding sites on the MMIPs surface. Consequently, these interactions significantly enhance the overall sorption efficiency of the imprinted polymer in acidic environments, resulting in a marked increase in dye binding affinity34.
Effect of concentration
Another crucial factor strongly influencing the sorption behavior of the polymers is the analyte concentration. Up to a certain threshold, an increase in sorption capacity was observed with rising SY dye concentration, as shown in Fig. 3b. The sorption capacity reached a plateau beyond this point, indicating that the accessible binding sites on the polymer surface were saturated35. Once saturation was achieved, additional increases in dye concentration did not enhance sorption. Based on this pattern, a concentration of 25 ppm was selected as the optimal amount for further studies. Although MMIPs exhibits a higher overall adsorption capacity than MNIPs, the similar adsorption trends observed in Fig. 3a and b suggest that the binding mechanism is largely controlled by nonspecific interactions. In addition to imprinting effects, the higher absorption of MMIPs may also be influenced by structural factors.
Sorption isotherm models were applied to the equilibrium adsorption data of MMIPs to characterize the interaction mechanism between SY and the polymeric binding sites. The fitted curves for all models are shown in Fig. 4(a–d). Among the tested models, the Langmuir isotherm yielded the highest regression coefficient for the MMIPs (Table 3), suggesting the presence of strong, high-affinity binding sites capable of forming a near-monolayer coverage under the studied concentration range. However, because molecularly imprinted polymers inherently possess heterogeneous binding sites, the Langmuir model alone does not fully represent their sorption behavior36,37,38.
Isotherm study (a) Freundlich-Isotherms (b) Langmuir (linear)-Isotherms (c) Langmuir-isotherms (d) Temkin-isotherms.
To address this, the Freundlich and Temkin models were also evaluated to describe surface heterogeneity and adsorbate–adsorbent interaction energy, respectively. In addition, the Langmuir–Freundlich (Sips) model, frequently used for MIP systems, was included to account for non-uniform site energy distributions through its heterogeneity exponent (n). This hybrid model combines the monolayer capacity of the Langmuir equation with the heterogeneity of the Freundlich model, providing a more realistic description of adsorption on imprint-generated cavities. For the MMIPs, the Sips model produced a heterogeneity factor (n < 1), confirming the presence of multiple classes of binding sites.
A brief description of the main parameters used in each model is provided for clarity. In the Freundlich model, Kf represents adsorption capacity and n reflects surface heterogeneity. In the Langmuir model, KL is the affinity constant and q₀ is the theoretical monolayer adsorption capacity. For the Temkin model, BT relates to adsorption heat and AT represents the binding constant. The Langmuir–Freundlich model incorporates the Langmuir capacity (q₀) along with the heterogeneity parameter n, making it particularly suitable for characterizing real MIP systems38. Table 3 shows the adsorption parameters of MMIPs under the studied conditions.
Effect of time
Time is another important factor significantly influencing the overall sorption performance (Fig. 5a). This was investigated by examining the effect of contact time on the sorption efficiency of the three types of MMIPs over a period of 3 to 18 min. Initially, the sorption capacity increased with time, indicating active interaction between the dye molecules and the accessible binding sites39. However, the sorption rate eventually plateaued, suggesting that the sorbent had reached saturation and all active sites were occupied. The influence of sorbent dosage on the sorption efficiency was also evaluated, showing that an optimum dosage exists to maximize dye removal (Fig. 5b).
(a) Effect of Time on sorption efficiency of MMIPs and MNIPs, (b) Effect of sorbent dosage on sorption efficiency of MMIPs and MNIPs, (c) First-order kinetic study, (d) Second-order kinetic study.
The experimental data were analyzed using the pseudo-first-order and pseudo-second-order kinetic models to gain deeper insight into the sorption process (Fig. 5c and d)40. The fitting results showed that the pseudo-second-order model best described the sorption kinetics, with a high correlation coefficient (R² = 0.9998) (Table 4). According to this model, the rate-limiting step is chemisorption, where the sorption process depends on both the interaction between sorbent and sorbate and the availability of active sites. Specifically, the model indicates that the sorption rate is directly proportional to the number of active binding sites41.
For SY dye, electrostatic interactions are the main driving force behind sorption. Strong ionic interactions occur between the dye molecules and the protonated functional groups of the polymer once the dye diffuses from the bulk solution to the MMIPs’ surface. These results demonstrate that sorption is not only effective but also highly dependent on the strength of contact between the interacting species42.
K and qₑ in the pseudo-first-order model represent the rate constant and the equilibrium sorption capacity, respectively, while qₑ and K₂ in the pseudo-second-order model represent the equilibrium sorption capacity and the rate constant. R² indicates the regression coefficient, reflecting the goodness of fit for each kinetic model.
Effect of sorbent dosage
The sorption efficiency of MMIPs is largely dependent on the amount of sorbent used. Different dosages ranging from 2 to 10 mg (0.002–0.01 g) were evaluated. The maximum sorption capacity was observed at a dose of 2 mg (Fig. 5b]. Performance decreased when the dosage exceeded this value. Consequently, 2 mg was determined to be the optimal dosage for further experiments43.
Electrochemical studies
Cyclic voltammetry (CV) and Square Wave Adsorptive Anodic Stripping Voltammetry (SWAdASV) were performed to investigate the electrochemical sensing capabilities of MMIPs and MNIPs. Comparison among MMIPs, MNIPs, and a blank sample (without dye) revealed that MMIPs exhibited a significantly higher response (Fig. 6a and b]. This enhanced performance is attributed to the presence of selective cavities on the sensor surface, which enable dye pre-concentration, as evidenced by a pronounced oxidation peak44. Distinct redox peaks were particularly evident with MMIP-based sensors. The main oxidation peak (peak 2) exhibited a current density of 755.64 µA/cm² at a potential of 0.936 V, showing a sharper response than that observed for MNIPs or the blank. The SWAdASV data (Fig. 6b) followed a similar trend, with MMIPs producing the highest peak current of 1802 µA/cm², compared to 1205 µA/cm² for MNIPs and 366.2 µA/cm² for the blank. These results demonstrate that MMIPs possess higher sensitivity toward SY dye due to their molecularly imprinted recognition sites45.
Comparison (a) CV for MMIPs, MNIPs, and Blank (b) SWAdASV for MMIPs, MNIPs, and Blank.
Mechanistically, the enhanced performance of MMIPs is attributed to specific interactions between SY and the functional monomer 1-vinylpyridine (1-VP). The sulfonate groups of SY interact electrostatically with protonated pyridine groups, and the interaction is further stabilized by hydrogen bonding and π–π stacking. Complementary cavities retaining these functionalities after template removal allow rapid and selective rebinding. The stronger and more intense oxidation peaks observed for MMIPs can be explained by this preconcentration effect. Overall, MMIPs prepared with 1-VP provide accessible, high-affinity sites that significantly enhance the electrochemical detection of SY, offering a sensitive and selective platform for monitoring azo dyes.
Effect of pH
The pH of the surrounding medium plays a crucial role in determining the electrochemical behavior of SY. Cyclic voltammetry (Fig. 7a) showed that variations in pH caused clear shifts in the oxidation peak potential, with the peak progressively moving toward more negative values as the pH increased. A linear correlation between anodic peak potential (Epa) and pH was observed, indicating proton involvement in the oxidation process. Among the tested conditions, the highest and most well-defined response was recorded at pH 7, which exhibited both the largest peak area and the lowest peak potential46.
Effect of pH on the detection response of SY dye (a) CV (b) SWAdASV (c) peak-potential (CV) (d) peak-potential (SWAdASV).
The enhanced signal at pH 7 is attributed to the favorable protonation state of the SY molecule and the 1-vinylpyridine units in the polymer, which together facilitate improved electron transfer and stronger interactions within the sensing interface. This near-neutral environment avoids excessive protonation at low pH and insufficient proton availability at high pH, resulting in improved charge-transfer kinetics47.
These observations were further supported by SWAdASV measurements (Fig. 7b), where the stripping current also reached a maximum at pH 7, confirming that this condition favors efficient analyte accumulation and electrochemical oxidation. At lower pH, over-protonation of SY and the pyridine groups diminished interaction efficiency, whereas at higher pH, reduced proton involvement weakened the proton-coupled oxidation process (Fig. 7c and d). Based on these combined results, pH 7 was selected as the optimal working pH for subsequent electrochemical sensing studies48. These results highlight that maintaining an optimal pH not only maximizes electrochemical response but also ensures efficient and selective recognition of SY by the molecularly imprinted sites.
Effect of time
The effects of accumulation time and applied potential on the electrochemical response of SY were evaluated using both MMIP- and MNIP-modified electrodes (Fig. 8a, b). Accumulation times ranged from 30 to 120 s. In CV measurements on the MMIPs electrode, increasing the accumulation time beyond 90 s produced only marginal increases in peak current, indicating that the available binding sites on the electrode surface were approaching saturation. SWAdASV measurements showed a similar trend: the peak current increased rapidly at short accumulation times and then plateaued at longer times, reflecting the maximum occupancy of active binding sites. In comparison, the MNIP-modified electrode exhibited lower peak currents and a less pronounced saturation effect under identical conditions, consistent with nonspecific adsorption. Based on these observations, an accumulation time of 90 s was selected as optimal for subsequent electrochemical measurements, balancing high signal intensity and preventing unnecessary saturation of the MMIPs binding sites49,50,51.
Effect of time (a) CV (b) SWAdASV.
Effect of concentration
Figure 9(a-d) illustrates how the electrochemical response of MMIP-based sensors is influenced by varying the concentration of SY over a range of 1.51 × 10⁻⁶ to 1.51 × 10⁻³ mol L⁻¹. The highest current density for both CV and SWAdASV was observed at 1.5 × 10⁻³ M, which was therefore selected for further experiments. A calibration plot of current density versus concentration exhibited a strong linear relationship, with a correlation coefficient (R²) of 0.9946 (Fig. 9c)52.
Concentration effect (a) CV-response (b) SWAdASV response (c) Calibration curve (d) Chronoamperometry test.
Chronoamperometric analysis was conducted to investigate the diffusion behavior of SY in more detail. Measurements were performed for concentrations ranging from 0.0000015 to 0.0015 M. Under a constant applied potential of 1.18 V, the data were plotted with time (seconds) on the x-axis and current density (µA/cm²) on the y-axis (Fig. 9d)53. The chosen potential corresponds to the anodic oxidation peak of SY obtained from the optimized voltammetric studies (CV). Operating the chronoamperometric measurement at this peak potential ensures maximum faradaic response, high sensitivity, and minimal contribution from non-faradaic background current. These indicate that an optimal concentration ensures maximum sensor response while maintaining linearity for quantitative detection.
Interference study
An interference study was carried out to assess the selectivity of the MMIP-based magnetosensor toward SY under the optimized detection conditions. Cyclic voltammetry (CV) was employed for all measurements. A fixed concentration of SY (10 µM) was used, while each potential interfering species, ascorbic acid, glucose, and Congo Red dye, was added at a 10-fold higher concentration (100 µM) to evaluate their influence on the sensor response (Fig. 10). All experiments were performed using the same MMIP-modified magnetosensor, which was thoroughly rinsed and reconditioned between successive measurements to maintain consistency54.
Interference study of SY detection by MMIP sensors.
The introduction of these interferents caused only minor variations in the oxidation peak current of SY, indicating negligible interaction with the imprinted binding sites. Since the presence of these compounds did not significantly affect the sensor performance, the results confirm the high selectivity of the MMIP-based magnetosensor for SY.
Real sample analysis
Water samples collected from local rivers and wastewater treatment plants were analyzed to assess the practical applicability of the MMIP-based sensor. Prior to analysis, samples were filtered to remove suspended particulates and then spiked with known concentrations of SY at three levels (low, medium, and high). These spiking levels were selected based on (i) the linear working range of the sensor, ensuring measurements within the most sensitive region of the calibration curve, and (ii) the concentration range typically reported for synthetic dyes in environmental water samples. As presented in Table 5, the recoveries obtained ranged from 72.9 to 99.3%, confirming the high accuracy and reproducibility of the sensor in complex matrices. Overall, the MMIP-based sensor demonstrates strong potential for reliable SY detection in real water and beverage samples, supporting its suitability for practical environmental and food analysis.
To comprehensively evaluate the analytical performance of the MMIP-based electrochemical sensor, a series of validation experiments was conducted. The sensor displayed a clear concentration-dependent increase in peak current, yielding a linear calibration curve within the tested range. The LOD and LOQ, calculated using the 3σ/slope and 10σ/slope criteria, were 5.82 × 10− 5 M and 1.76 × 10− 4 M, respectively.
Conclusion
An electrochemical sensor based on magnetic molecularly imprinted polymers (MMIPs) was successfully developed for the selective detection of SY. Magnetic nanoparticles enhanced the surface area and facilitated rapid separation, while the imprinted polymer layer provided highly specific recognition sites complementary to the target dye. The sensor exhibited excellent sensitivity, selectivity, and reproducibility across a wide concentration range, with a low detection limit suitable for trace-level monitoring. Optimal performance was achieved at pH 7, an accumulation time of 90 s, and a concentration of 1.5 × 10⁻³ M, ensuring efficient pre-concentration and maximal electrochemical response. In real sample analyses, the sensor demonstrated high recovery rates ranging from 72.9 to 99.3%, confirming its accuracy and reliability in complex matrices such as river water, industrial effluents, and beverages. These results highlight the sensor’s robust stability and practical applicability for environmental monitoring and food safety assessment. Overall, the findings underscore the potential of MMIP-based platforms as effective tools for the accurate and rapid detection of artificial food colorants. This strategy can be extended to other hazardous additives or emerging contaminants, paving the way for the development of advanced molecularly imprinted electrochemical sensors with broad analytical and environmental applications. In the future, we plan to perform quantitative comparisons with NIP-derived parameters to provide a more comprehensive assessment of the imprinting effect. Correspondingly, a systematic adsorption study of MNIPs will be performed under the same experimental conditions to enable direct comparison.
Data availability
The datasets used and/or analysed during the current study are available from the corresponding author on reasonable request.
References
Malik, S. et al. Biodegradable Cobalt and Tin doped Chitosan nanocomposites from structure tailoring to solar-driven photocatalytic degradation of toxic organic dyes. Int. J. Biol. Macromol. 283, 137512. https://doi.org/10.1016/j.ijbiomac.2024.137512 (2024).
Azam, J. et al. Solar light assisted metal selenide-chitosan nanoparticles from structure tailoring to photocatalytic mineralization of selected industrial dyes. Water Air Soil. Pollut. 235 (6), 386. https://doi.org/10.1007/s11270-024-07156-8 (2024).
Ighnih, H. et al. Ait Addi, A. Efficient removal of hazardous dye from aqueous solutions using magnetic kaolinite nanocomposite: experimental and Monte Carlo simulation studies. Inorg. Chem. Commun. 153, 110886. https://doi.org/10.1016/j.inoche.2023.110886 (2023).
Abumelha, H. M. Efficient removal of sunset yellow food dye from aqueous environment using bimetal-organic frameworks encapsulated with chitosan: synthesis, characterization, adsorption analysis, and optimization. J. Mol. Liq. 407, 125208. https://doi.org/10.1016/j.molliq.2024.125208 (2024).
Ciğeroğlu, Z. et al. Recent advances in the removal of sunset yellow dye from wastewater: A review. Sustain. Mater. Technol. 42, e01187. https://doi.org/10.1016/j.susmat.2024.e01187 (2024).
Saeed, M., Muneer, M., Haq, A. U. & Akram, N. Photocatalysis: an effective tool for photodegradation of dyes—a review. Environ. Sci. Pollut Res. 29 (1), 293–311. https://doi.org/10.1007/s11356-021-16389-7 (2022).
Cevallos-Mendoza, J., Amorim, C. G., Rodríguez-Díaz, J. M. & Montenegro, M. D. C. B. Removal of contaminants from water by membrane filtration: a review. Membranes 12 (6), 570. https://doi.org/10.3390/membranes12060570 (2022).
Rathi, B. S. & Kumar, P. S. Sustainable approach on the biodegradation of Azo dyes: a short review. Curr. Opin. Green. Sustain. Chem. 33, 100578. https://doi.org/10.1016/j.cogsc.2021.100578 (2022).
Aftab, R. A. et al. Removal of congo red from water by adsorption onto activated carbon derived from waste black cardamom peels and machine learning modeling. Alex Eng. J. 71, 355–369. https://doi.org/10.1016/j.aej.2023.03.055 (2023).
Yu, W. et al. Boosting electromagnetic wave absorbing capacity of Al₂O₃ coating through in situ generating nano-TiO₁.₈₁ from Ti₂AlC MAX phases. Adv. Funct. Mater. 35, 2504393. https://doi.org/10.1002/adfm.202504393 (2025).
Waliullah, R. M. et al. Optimization of toxic dye removal from contaminated water using chitosan-grafted novel nanocomposite adsorbent. J. Mol. Liq. 388, 122763. https://doi.org/10.1016/j.molliq.2023.122763 (2023).
Shafqat, S. R., Bhawani, S. A., Bakhtiar, S., Ibrahim, M. N. M. & Shafqat, S. S. Template-assisted synthesis of molecularly imprinted polymers for the removal of Methyl red from aqueous media. BMC Chem. 17 (1), 46. https://doi.org/10.1186/s13065-023-00957-8 (2023).
Rao, Q. et al. Advanced selective adsorption of Alizarin dye from wastewater using novel nanomagnetic molecularly imprinted polymers. Adv. Compos. Hybrid. Mater. 8 (1), 162. https://doi.org/10.1007/s42114-024-01095-y (2025).
Sabzehmeidani, M. M., Ghaedi, M., Dashtian, K. & Abbasi-Asl, H. Hydrophilic magnetic molecularly imprinted resin in PVDF membrane for efficient selective removal of dye. J. Environ. Manag. 300, 113707. https://doi.org/10.1016/j.jenvman.2021.113707 (2021).
Metwally, M. G., Benhawy, A. H., Khalifa, R. M., Nashar, E., Trojanowicz, M. & R. M. & Application of molecularly imprinted polymers in the analysis of waters and wastewaters. Molecules 26 (21), 6515. https://doi.org/10.3390/molecules26216515 (2021).
Al-Madhagi, H., Yazbik, V., Abdelwahed, W. & Alchab, L. Magnetite nanoparticle co-precipitation synthesis, characterization, and applications: mini review. Bionanosci 13 (2), 853–859. https://doi.org/10.1007/s12668-023-01113-1 (2023).
Malik, S. et al. Core–shell magnetic molecularly imprinted polymer for selective recognition and detection of sunset yellow in aqueous environment and real samples. Environ. Res. 212, 113209. https://doi.org/10.1016/j.envres.2022.113209 (2022).
Foroughirad, S., Haddadi-Asl, V., Khosravi, A. & Salami-Kalajahi, M. Magnetic halloysite-based molecularly imprinted polymer for specific recognition of sunset yellow in dyes mixture. Polym. Adv. Technol. 32 (2), 803–814. https://doi.org/10.1002/pat.5132 (2021).
Marfà, J., Pupin, R. R., Sotomayor, M. P. T. & Pividori, M. I. Magnetic-molecularly imprinted polymers in electrochemical sensors and biosensors. Anal. Bioanal Chem. 413 (24), 6141–6157. https://doi.org/10.1007/s00216-021-03461-x (2021).
Ruiz-Córdova, G. A. et al. D. P. T. Electrochemical sensing using magnetic molecularly imprinted polymer particles previously captured by a magneto-sensor. Talanta 181, 19–23. https://doi.org/10.1016/j.talanta.2017.12.085 (2018).
Malik, S. et al. D. P. T. Biomimetic electrochemical sensors based on core–shell imprinted polymers for targeted sunset yellow Estimation in environmental samples. Biosensors 13 (4), 429. https://doi.org/10.3390/bios13040429 (2023).
Khan, S., Wong, A., Zanoni, M. V. B. & Sotomayor, M. D. P. T. Electrochemical sensors based on biomimetic magnetic molecularly imprinted polymer for selective quantification of Methyl green in environmental samples. Mater. Sci. Eng. C. 103, 109825. https://doi.org/10.1016/j.msec.2019.109825 (2019).
Wu, L. et al. A new ratiometric molecularly imprinted electrochemical sensor for the detection of sunset yellow based on gold nanoparticles. Food Chem. 413, 135600. https://doi.org/10.1016/j.foodchem.2023.135600 (2023).
Abd El-Raheem, H. et al. Eco-friendly features in molecularly imprinted polymers for applications in electrochemical and optical sensing. Microchem J. 113443 https://doi.org/10.1016/j.microc.2025.113443 (2025).
Rahman, S. et al. Molecularly imprinted polymers (MIPs) combined with nanomaterials as electrochemical sensing applications for environmental pollutants. Trends Environ. Anal. Chem. 36, e00176. https://doi.org/10.1016/j.teac.2022.e00176 (2022).
Mostafiz, B. et al. Electrochemical sensors based on green molecularly imprinted polymers. In: Green Imprinted Materials. Elsevier; 387–417. DOI:https://doi.org/10.1016/B978-0-443-15431-7.00009-X. (2024).
Zhang, Z., Niu, D., Li, Y. & Shi, J. Magnetic, core–shell structured and surface molecularly imprinted polymers for the rapid and selective recognition of Salicylic acid from aqueous solutions. Appl. Surf. Sci. 435, 178–186. https://doi.org/10.1016/j.apsusc.2017.11.033 (2018).
Rebelo, P. et al. Molecularly imprinted polymer-based electrochemical sensors for environmental analysis. Biosens. Bioelectron. 172, 112719. https://doi.org/10.1016/j.bios.2020.112719 (2021).
Lamaoui, A., Karrat, A. & Amine, A. Molecularly imprinted polymer integrated into paper-based analytical device for smartphone-based detection: application for sulfamethoxazole. Sens. Actuators B Chem. 368, 132122. https://doi.org/10.1016/j.snb.2022.132122 (2022).
Yang, Y. et al. Magnetic molecularly imprinted electrochemical sensors: A review. Anal. Chim. Acta. 1106, 1–21. https://doi.org/10.1016/j.aca.2020.01.044 (2020).
Gagliani, F. et al. Green synthesis of a molecularly imprinted polymer based on a novel thiophene-derivative for electrochemical sensing. Molecules 29 (7), 1632. https://doi.org/10.3390/molecules29071632 (2024).
Nguyen, V. B. C., Reut, J., Rappich, J., Hinrichs, K. & Syritski, V. Molecularly imprinted polymer-based electrochemical sensor for the detection of azoxystrobin in aqueous media. Polymers 16 (10), 1394. https://doi.org/10.3390/polym16101394 (2024).
Agar, M., Laabei, M., Leese, H. S. & Estrela, P. Multi-template molecularly imprinted polymeric electrochemical biosensors. Chemosensors 13 (1), 11. https://doi.org/10.3390/chemosensors13010011 (2025).
da Gonzaga, C., de Albuquerque Oliveira, M. L., Furtado, M., Alves, C. R. & R. F. & Synthesis and application of poly(methacrylic acid-co-ethylene glycol dimethacrylate) as molecularly imprinted polymer in electrochemical sensor for atrazine detection. J. Solid State Electrochem. 29 (8), 3169–3179. https://doi.org/10.1007/s10008-024-05876-9 (2025).
Ming, W. et al. Magnetic molecularly imprinted polymers for the fluorescent detection of trace 17β-estradiol in environmental water. Sens. Actuators B Chem. 238, 1309–1315. https://doi.org/10.1016/j.snb.2016.09.111 (2017).
Shao, Y. et al. Application of molecularly imprinted electrochemical biomimetic sensors for detecting small molecule food contaminants. Polymers 15 (1), 187. https://doi.org/10.3390/polym15010187 (2022).
Regasa, M. B. & Nyokong, T. Design and fabrication of electrochemical sensor based on molecularly imprinted polymer loaded onto silver nanoparticles for the detection of 17β-estradiol. J. Mol. Recognit. 35 (10), e2978. https://doi.org/10.1002/jmr.2978 (2022).
Abdulsalam, M. A. A., Karcioglu, N., Cetinkaya, A., Caglayan, M. G. & Ozkan, S. A. A highly selective and sensitive detection of scopolamine using a functionalized gold nanoclusters-assisted molecularly imprinted polymer-based electrochemical sensor. Microchem J. 209, 112773. https://doi.org/10.1016/j.microc.2025.112773 (2025).
Liu, R. et al. Advances and challenges in molecularly imprinted electrochemical sensors for application in environmental, biomedicine, and food safety. Crit. Rev. Anal. Chem. 1–19. https://doi.org/10.1080/10408347.2025.2460751 (2025).
Bravo-Yagüe, J. C., Paniagua-González, G., Garcinuño, R. M., García-Mayor, A. & Fernández-Hernando, P. Colorimetric molecularly imprinted polymer-based sensors for rapid detection of organic compounds: A review. Chemosensors 13 (5), 163. https://doi.org/10.3390/chemosensors13050163 (2025).
Garg, D. & Verma, N. Monika. Molecularly imprinted polymer-based electrochemical sensor for rapid and selective detection of hypoxanthine. Biosensors 12 (12), 1157. https://doi.org/10.3390/bios12121157 (2022).
Wang, M. et al. The state-of-the-art of molecularly imprinted polymers based electrochemical sensors and their applications in drug assay. Coord. Chem. Rev. 526, 216384. https://doi.org/10.1016/j.ccr.2024.216384 (2025).
Zhou, T. et al. Selective and sensitive detection of tetrabromobisphenol-A in water samples by molecularly imprinted electrochemical sensor. Sens. Actuators B Chem. 236, 153–162. https://doi.org/10.1016/j.snb.2016.05.153 (2016).
Zhang, Y. et al. Directly assembled electrochemical sensor by combining self-supported CoN nanoarray platform grown on carbon cloth with molecularly imprinted polymers for the detection of Tylosin. J. Hazard. Mater. 398, 122778. https://doi.org/10.1016/j.jhazmat.2020.122778 (2020).
Lahcen, A. A. & Amine, A. Recent advances in electrochemical sensors based on molecularly imprinted polymers and nanomaterials. Electroanalysis 31 (2), 188–201. https://doi.org/10.1002/elan.201800623 (2019).
Wei, Y. et al. Novel electrochemical sensing platform basing on di-functional stimuli-responsive imprinted polymers for simultaneous extraction and determination of metronidazole. Anal. Chim. Acta. 1260, 341219. https://doi.org/10.1016/j.aca.2023.341219 (2023).
Nag, S. et al. A novel molecular imprinted polymethacrylic acid decorated graphite electrochemical sensor for analyzing Metanil yellow adulteration in food. IEEE Sens. J. 23 (18), 20951–20958. https://doi.org/10.1109/JSEN.2023.3300732 (2023).
Kodakat, K. & Girish Kumar, K. Fabrication of a selective and sensitive electro-synthesized molecularly imprinted polymer-based electrochemical sensor for the determination of Xanthine. J. Appl. Electrochem. 53 (11), 2259–2272. https://doi.org/10.1007/s10800-023-01916-w (2023).
Han, Y. et al. Molecularly imprinted polymers as the epitome of excellence in multiple fields. Eur. Polym. J. 179, 111582. https://doi.org/10.1016/j.eurpolymj.2022.111582 (2022).
Zhang, S. et al. Covalent and non-covalent functionalized nanomaterials for environmental restoration. Top. Curr. Chem. 380 (5), 44. https://doi.org/10.1007/s41061-022-00397-3 (2022).
Wang, Y. et al. Application progress of magnetic molecularly imprinted polymer chemical sensors in the detection of biomarkers. Analyst 147 (4), 571–586. https://doi.org/10.1039/D1AN01112J (2022).
Jacinto, C. et al. Using a smartphone-based colorimetric device with molecularly imprinted polymer for the quantification of tartrazine in soda drinks. Biosensors 13 (6), 639. https://doi.org/10.3390/bios13060639 (2023).
Singhal, A. et al. Molecularly imprinted polymers-based nanobiosensors for environmental monitoring and analysis. In: Nanobiosensors for Environmental Monitoring: Fundamentals and Application. Cham: Springer Int. Publ.; 263–278. https://doi.org/10.1007/978-3-031-16106-3_5. (2022).
Cetinkaya, A., Unal, M. A., Çorman, M. E., Uzun, L. & Ozkan, S. A. Dummy imprinted electrochemical sensor for the selective detection of camostat mesylate. Microchim Acta. 192 (8), 498. https://doi.org/10.1007/s00604-025-07342-3 (2025).
Mostafiz, B. et al. Molecularly imprinted polymer–carbon paste electrode (MIP-CPE)-based sensors for the sensitive detection of organic and inorganic environmental pollutants: A review. TrAC Trends Environ. Anal. Chem. 32, e00144. https://doi.org/10.1016/j.teac.2021.e00144 (2021).
Acknowledgment
The authors extend their appreciation to the Deanship of Research and Graduate Studies at King Khalid University for funding this work through the Large Research Project under grant number RGP2/195/46.
Funding
This research was funded by the Deanship of Research and Graduate Studies at King Khalid University under grant number RGP2/195/46.
Author information
Authors and Affiliations
Contributions
S.M. (Writing - Original Draft, Conceptualization, Methodology, Investigation, ); W.A. ( Data Curation, Visualization, Writing - Original Draft); A.K. ( Data Curation, Visualization, Writing - Original Draft); G.R. (Supervision; Conceptualization, Visualization, Writing - Original Draft); S.K. (Writing - Review & Editing); M.D.P.T.S. (Visualization, Writing - Review & Editing); T.M.S.A. (Writing - Review & Editing); M.A.H (Resource, Writing - Review & Editing); A.Y. (Conceptualization, Visualization, Writing - Original Draft); M.I. (Conceptualization, Methodology, Investigation, Validation, Writing - Review & Editing).
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Limitations of the study
The current study did not encounter any significant limitations. All experimental objectives were successfully achieved, and the results are considered robust and reliable within the designed scope of the research.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Malik, S., Ahmad, W., Khan, A. et al. Fabrication of an electrochemical sensor based on magnetic molecularly imprinted polymer for detection of sunset yellow dye. Sci Rep 16, 6369 (2026). https://doi.org/10.1038/s41598-026-38556-x
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-026-38556-x









