Open Access Article
Iram Gul Chandioa,
Jameel Ahmed Baig
*b,
Imam Bakhsh Solangi*c,
Huma Shaikh
a,
Latif Ullah Khand,
Sajjad Hussaine,
Saima Perveen
a,
Faisal K. Algathami
b and
Nadeem Razab
aNational Centre of Excellence in Analytical Chemistry, University of Sindh, Jamshoro 76080, Pakistan
bDepartment of Chemistry, College of Science, Imam Mohammad Ibn Saud Islamic University (IMSIU), P.O. Box 90950, Riyadh 11623, Saudi Arabia. E-mail: JAMughal@imamu.edu.sa
cDr M. A. Kazi Institute of Chemistry, University of Sindh, Jamshoro 76080, Pakistan. E-mail: imambux.solangi@usindh.edu.pk
dSynchrotron-light for Experimental Science and Applications in the Middle East (SESAME), P.O. Box 7, Allan, 19252, Jordan
eDepartment of Natural Sciences, The Begum Nusrat Bhutto Women University, Sukkur, Pakistan
First published on 9th April 2026
The current study aimed to synthesize and characterize magnesium oxide–bimetallic nickel cobalt ferrite nanohybrid (MgO/NiCoFe2O4-NH) for its application in the simultaneous electrochemical detection of ascorbic acid (AA) and levofloxacin (LEV). The NiCoFe2O4-NPs were synthesized using the sol–gel green method and fabricated with MgO. The synthesized materials were characterized using advanced analytical techniques. XRD confirmed single-phase spinel and cubic structures of NiCoFe2O4-NPs and MgO/NiCoFe2O4-NH with an average crystallite size of 6.5 nm and 11.4 nm, respectively. SEM and AFM revealed spherical/semi-spherical morphologies and extremely rough surfaces of MgO/NiCoFe2O4-NH, respectively. The average zeta potential and hydrodynamic size of MgO/NiCoFe2O4-NH were −32.5 mV and 33.6 nm respectively. XAFS demonstrate that the MgO/NiCoFe2O4-NH possesses a highly ordered spinel-like structure with strong M–O and M–M interactions. Further, MgO/NiCoFe2O4-NH/GCE was fabricated by drop-casting method and tested for the electrochemical detection of AA and LEV using differential pulse voltammetry (DPV) in a 0.1 M Britton–Robinson buffer (pH 7). The calibration plot was drawn for AA and LEV in the concentration range of 0.05–400 µM (R2 = 0.996) and 0.1–450 µM (R2 = 0.995), respectively. The LODs/LOQs of AA and LEV were determined to be 0.013/0.043 and 0.0091/0.03, respectively. The developed MgO/NiCoFe2O4-NH/GCE represents a stable and reliable electrochemical platform with strong potential for simultaneous detection of AA and LEV in real samples.
Besides this, pharmaceutical residues in food products, particularly milk, have attracted more attention due to the extensive use of antibiotics as therapeutic and prophylactic drugs in dairy animals. Milk from cows, buffalo, and cattle is one of the most commonly consumed foods worldwide, as it is the source of essential nutrients such as lipids, minerals, proteins, and vitamins.5 Among these nutrients, ascorbic acid (AA), also known as vitamin C, is naturally present in small amounts in milk and plays a crucial role as an antioxidant, protecting both the milk components and human health.6 On the other hand, pharmaceutical residues such as antibiotics, including levofloxacin (LEV), may also be present in milk due to their therapeutic and prophylactic use in dairy animals.7,8 The occurrence of such drug residues in milk is a matter of concern because it not only affects consumer health but also expands antimicrobial resistance.9 Therefore, simultaneous monitoring of beneficial biomolecules and hazardous pharmaceutical residues in both environmental and food matrices is crucial for integrated public health protection.
The low quantities of these residues, structural variety, and interference from other co-existing molecules make it difficult to identify pharmaceutical and healthcare items in complex matrices like water. Unfortunately, conventional water treatment systems are not specifically made to eliminate such micropollutants that result in their constant release into aquatic systems. Traditional analytical techniques, such as spectrometry and chromatography, are useful but impractical for on-site applications because they need costly reagents, complex equipment, and time-consuming sample preparation.10,11 Fortunately, the electrochemical sensing has found an emergent alternative for real-time monitoring applications due to its high sensitivity, low cost, portability, and rapid response.
The electrochemical performance of sensors intensely relies on the composition of the electrode surface. Studies showed that the spinel nickel cobalt ferrite nanoparticles (NiCoFe2O4-NPs) have attracted greater attention because they possess efficient magnetic properties, high redox, as well as catalytic activities.12 However, in one previous study, it was reported that NiCoFe2O4-based electrochemical sensors frequently undergo nanoparticle agglomeration, possess limited electroactive surface area, and moderate electron-transfer kinetics, which restricts the applications of NiCoFe2O4-NPs in simultaneous multi-analyte detection effectively.13
To overcome these restrictions, a heterostructure can be developed by integrating any metal oxide (MO) to NiCoFe2O4-NPs to form MO/NiCoFe2O4 nanohybrid. The integration of MO to NiCoFe2O4-NPs increases adsorption capability and surface basicity toward electroactive species. This integration also results in interfacial heterojunctions, which enable faster electron-transfer kinetics.14 Furthermore, MOs act as a structural spacer which improves electroactive surface area, decreases agglomeration of nanoparticles, increases accessibility of catalytic site, and provides long-term stability compared to NiCoFe2O4-based sensors.
Nanotechnology enables the development of multifunctional nanohybrids with tailored physicochemical properties.15 Additionally, green synthesis using plant extracts provides an environmentally gentle approach, which evades harmful reducing agents and improves biocompatibility and particle dispersion. Despite the numerous advantages of MO-integrated NiCoFe2O4 nanohybrid, only a single study has been reported for the detection of heavy metals.16 However, the MO-integrated NiCoFe2O4 nanohybrid has not been systematically investigated for the simultaneous electrochemical sensing of AA and LEV in complex biological and environmental samples.
Therefore, the current study aims to design magnesium oxide functionalized nickel cobalt ferrite nanohybrid (MgO/NiCoFe2O4-NH) to overcome the limitations of previously reported single-component MgO or NiCoFe2O4-NPs electrochemical sensors. The integration of MgO with spinel NiCoFe2O4-NPs can create a synergistic heterostructure that facilitates faster electron-transfer kinetics, increases the electroactive surface area, and offers more accessible catalytic sites.
In this work, MgO/NiCoFeO4-NH was synthesized via a green method and deposited onto a bare GCE to form MgO/NiCoFe2O4-NH/GCE. The integration of MgO with NiCoFe2O4 improves stability, redox behavior, and reactivity, which make it advantageous for simultaneous detection. The synthesized MgO/NiCoFe2O4-NH was characterized by several analytical techniques to reveal its structure, size, and morphology. The MgO/NiCoFe2O4-NH/GCE-based differential pulse voltammetry (MgO/NiCoFe2O4-NH/GCE/DPV) method was applied to detect AA and LEV simultaneously in blood, dairy milk, and wastewater samples. The proposed MgO/NiCoFe2O4-NH/GCE/DPV-based heterostructured platform demonstrates enhanced analytical performance compared to previously reported single-component MgO or NiCoFe2O4-based sensors, highlighting its potential for integrated environmental and food safety monitoring.
Nickel, cobalt, and iron nitrates were mixed in a molar ratio of 0.5
:
0.5
:
2 to preserve the stoichiometry of the spinel NiCoFe2O4 structure. 200 mL of extract was added to the nitrate mixture. The resulting solution was stirred at 80 °C while maintaining a pH of 7 to 9. The phytochemicals present in the extract acted as capping and reducing agents, facilitating the formation of NiCoFe2O4-NPs and controlling their growth. After the reaction was complete, the product (NiCoFe2O4-NPs) was washed, dried, and stored for electrochemical studies. Reproducibility was tested through triplicate synthesis batches.17,18
![]() | ||
| Fig. 1 SEM image of (a) NiCoFe2O4-NPs and (b) MgO/NiCoFe2O4-NH, (c) EDX spectrum of MgO/NiCoFe2O4-NH, and (d) XRD spectra of NiCoFe2O4-NPs and MgO/NiCoFe2O4-NH. | ||
The elemental composition of synthesized MgO/NiCoFe2O4-NH was studied by EDX, and the results are provided in Fig. 1c. The obtained spectrum showed the presence of Mg, O, Ni, Co, and Fe, which confirmed the successful synthesis of MgO/NiCoFe2O4-NH.
The XRD data is used to determine the crystal structure and to estimate the crystalline size of the NiCoFe2O4-NPs and MgO/NiCoFe2O4-NH (Fig. 1d). The XRD pattern of the synthesized NiCoFe2O4 nanoparticles showed characteristic diffraction peaks at 2θ values corresponding to the Miller indices: (440), (220), (311), (400), and (511). The obtained diffraction patterns of synthesized materials matched well with the single-phase spinel structure with space group Fd3m (227) (JCPDS File No. 19-0629).22 After fabrication with MgO, the XRD pattern of the MgO/NiCoFe2O4-NH exhibited additional peaks at: (111), (200), and (222). This suggests the successful incorporation or coating of MgO, which typically exhibits a cubic crystal structure. The presence of both spinel ferrite and cubic MgO confirms the formation of a nanohybrid (MgO/NiCoFe2O4-NH) system. Furthermore, the sharp, well-defined peaks indicate good crystallinity of the synthesized NiCoFe2O4-NPs. The % crystallinity of the synthesized nanoparticles was 82%, and that of the MgO/NiCoFe2O4-NH was 86%.15 The Debye–Scherrer equation was applied to determine the average crystalite size of synthesized NiCoFe2O4-NPs and MgO/NiCoFe2O4-NH, and the average crystallite size was found to be 6.5 and 11.4 nm.23
Further, the AFM method was used to analyze the topography and surface particle size distribution of MgO/NiCoFe2O4-NH (Fig. 2a), and the resultant data showed the extremely rough surfaces.24 The results showed that the average surface particle size of MgO/NiCoFe2O4-NH was 3.5 nm, with a range of 1.2 to 4.01 nm (Fig. 2b). Additionally, the stable nature of the synthesized MgO/NiCoFe2O4-NH is supported by its surface charge and limited hydrodynamic diameter in dispersion. The surface charge of synthesized MgO/NiCoFe2O4-NH was analyzed by a zeta potential analyzer, and the average surface charge of synthesized MgO/NiCoFe2O4-NH was −32.5 mV (Fig. 2c). The size of synthesized MgO/NiCoFe2O4-NH was analyzed, and the average zeta size (hydrodynamic diameter in dispersion) was 33.6 nm (Fig. 2d).
![]() | ||
| Fig. 2 (a) 3D topography, (b) AFM bar graph, (c) zeta potential, and (d) zeta size analysis of MgO/NiCoFe2O4-NH. | ||
Further, it was noted that the obtained particle size differs across techniques. The apparent discrepancy in particle size between XRD (11.4 nm), AFM (3.5 nm), and zeta size (33.6 nm) arises from the different physical principles underlying these techniques. XRD provides the crystalline domain size, AFM measures particle height on a substrate (which may be underestimated due to tip effects and surface deformation), and zeta size reports the hydrodynamic diameter in suspension, including solvation layers and possible aggregation.
The X-ray Absorption Fine Structure (XAFS) analysis was employed to investigate the local atomic structure and oxidation states of the transition metals in the MgO/NiCoFe2O4-NH. In Fig. 3a, the XANES spectrum at the Co K-edge shows a distinct absorption edge at 7730 eV, which aligns closely with the edge position of a cobalt foil, suggesting that Co is present predominantly in oxidized states (Co2+/Co3+), consistent with the NiCoFe2O4 spinel structure. Fig. 3(b top), presents the corresponding EXAFS spectrum as a function of the wave vector k, plotted as k2χ(k). The spectrum shows clear oscillatory behavior and good linearity, indicating a well-ordered local structure around the cobalt atoms. Fig. 3(b bottom), displays the Fourier-transformed EXAFS data, with the x-axis representing the radial distance (R, Å). A prominent peak at approximately 1.5 Å corresponds to Co–O bonding, indicating metal–oxygen coordination in the first coordination shell. A second peak at approximately 2.8 Å is assigned to Co–Fe/Co–Ni interactions, supporting the formation of a mixed-metal spinel lattice.
![]() | ||
| Fig. 3 XANES spectra of MgO/NiCoFe2O4-NH containing (a) Co K-edge, (b) its data, (c) Fe K-edge, and (d) comparative analysis of the EXAFS radial distribution functions. | ||
In Fig. 3c, the Fe K-edge XANES spectrum reveals an absorption edge at approximately 7130 eV for the NH, which is close to that of the Fe foil, again indicating a relatively low oxidation state of iron in the NH. The XANES spectra at the Co and Fe K-edges were reinterpreted in light of standard spinel ferrite chemistry. Although the absorption edge positions appear close to metal foils, the entire spectral features and EXAFS fitting confirm that Co and Fe exist predominantly in oxidized states (Co2+/Co3+ and Fe3+) within the NiCoFe2O4 spinel lattice rather than in metallic form. This study aligns the XAFS analysis with the expected crystal chemistry of spinel ferrites and relevant literature. This confirms the successful incorporation of Fe into the spinel structure without significant oxidation. Fig. 3d provides a comparative analysis of the EXAFS radial distribution functions at the K-edges of Fe, Ni, and Co, plotted as k2χ(k) versus R. All three metal edges show strong M–O peaks around 1.5 Å, which indicates consistent oxygen coordination for all metal centres. It was noted that the Ni K-edge exhibits the highest k2χ(k) amplitude, suggesting a more pronounced local order or stronger backscattering at the Ni site. Peaks corresponding to M–M interactions are observed at approximately 2.5 Å, consistent with the spinel framework and confirming the presence of Fe–Ni, Fe–Co, and Co–Ni bonds in the second coordination shell. The XAFS data collectively demonstrate that the MgO/NiCoFe2O4 NH holds a highly ordered spinel-like structure with strong M–O and M–M interactions, thereby confirming the successful synthesis and structural integrity of the MgO/NiCoFe2O4-NH.25
![]() | ||
| Fig. 4 (a) Redox behaviour, (b) scan rate, and (c) linear relationship analysis of MgO/NiCoFe2O4-NH/GCE. | ||
![]() | ||
| Fig. 5 Optimization study of (a) electrodes, (b) electrolyte, (c) pH and (d) its linear relationship in 250 µM AA and LEV using developed method. | ||
The optimization of electrolytes was carried out by analyzing 250 µM AA and LEV in Britton–Robinson (pH 7), acetate (pH 5), and phosphate (pH 7) solutions using the developed MgO/NiCoFe2O4-NH/GCE/DPV method. The study outcomes, as shown in Fig. 5b, indicated maximum current response was observed in the BR electrolyte. So, BR electrolyte is selected as the optimal electrolyte for the detection of AA and LEV using the developed MgO/NiCoFe2O4-NH/GCE/DPV method.
The pH of the solution plays a significant role in the electrocatalytic properties of sensors.26 The pH was optimized from 4.0 to 8.0 of the BR electrolyte for the detection of AA and LEV using the developed MgO/NiCoFe2O4-NH/GCE/DPV method. The outcomes of the study showed that the maximum current response was observed at pH 7 (Fig. 5c). These variations in the peak currents appear to be connected to the pKa values of LEV, which are 5.8 and 8.0.27,28 Therefore, the LEV will adopt a positive charge under acidic conditions, exist as a zwitterion at pH values between 5.8 and 8.0, and become negatively charged at pH values higher than 8.0. The peak current for the negatively charged LEV is significantly lower, and this may be related to the negative surface of MgO/NiCoFe2O4-NH, as observed in zeta potential studies. Similarly, AA, a weak acid with a pKa of around 4.1, is predominantly present in its deprotonated, anionic form at physiological pH. At lower pH, the protonated form of AA may interact more favorably with the electrode surface, whereas the optimal response at pH 7 suggests a balance between the ionization state of AA and the surface charge of the nanohybrid-modified electrode, thereby enabling efficient electron transfer. Thus, pH 7 provides optimal conditions for the simultaneous electrochemical detection of both analytes. Therefore, pH 7 of 0.1 M BR electrolyte was selected for further experiments. Moreover, a linear relationship was observed between varying pH and peak potential and the plot (Fig. 5d) gives a linear regression equation which is Ep = −0.0431x +0.2215 (R2 = 0.988) and Ep = −0.045x + 1.18 (R2 = 0.985) for AA and LEV respectively. The linear shift of peak potential with pH for AA is Ep = −0.0431 pH + 0.2215 (R2 = 0.988) and for LEV is Ep = −0.045 pH + 1.18 (R2 = 0.985). The negative shift of peak potential with increasing pH confirms the participation of protons in the electrode process. According to the Nernst equation, a slope of 59 mV pH−1 at 25 °C corresponds to an equal number of protons and electrons involved in the redox process. The experimentally obtained slopes (∼43–45 mV pH−1) are close to the theoretical value, indicating that the oxidation/reduction processes of AA and LEV involve coupled proton–electron transfer reactions.29 For AA, the electrochemical reaction is attributed to the oxidation of the enediol moiety to dehydroascorbic acid via a two-electron/two-proton process, as widely reported in literature. For LEV, oxidation likely occurs at the piperazine nitrogen, leading to N-oxide formation via a proton-coupled electron transfer mechanism. The pH dependence and electrochemical behavior are consistent with previously reported oxidation pathways of fluoroquinolone antibiotics.30,31 Further, on this basis, the proposed mechanism for AA and LEV is shown in Scheme 1.32,33 The proposed mechanisms shown in Scheme 1 are consistent with the observed pH dependence and reported literature.34
![]() | ||
| Fig. 6 (a) Calibration, (b) linear relationship of current vs. concentration and (c) stability analysis using MgO/NiCoFe2O4-NH/GCE-DPV. | ||
The reduction and oxidation peak currents (n = 12) of 250 µM AA and 250 µM LEV were measured using DPV to study the stability of MgO/NiCoFe2O4-NH/GCE. The results in Fig. 6c indicated the highly stable nature of MgO/NiCoFe2O4-NH/GCE with % RSD < 2.0 between the peak currents for the electrochemical detection of AA and LEV. Additionally, long-term stability tests were performed by storing the MgO/NiCoFe2O4-NH/GCE at 4 °C for 30 days and measuring 250 µM AA and LEV every 5 days. The peak current retention rate was ∼95%, which represents tolerable stability for potential long-term applications.
To assess the reproducibility of MgO/NiCoFe2O4-NH/GCE fabrication, three independently prepared MgO/NiCoFe2O4-NH/GCEs were examined for the detection of 250 µM AA and LEV. The obtained current responses were equivalent, with % RSD < 5.0, which demonstrates good reproducibility of the procedure for MgO/NiCoFe2O4-NH/GCE fabrication.
| Material | Technique | Dynamic range (µM) | LOD (µM) | References | ||
|---|---|---|---|---|---|---|
| LEV | AA | LEV | AA | |||
| GCE/SnO2/MWCNT | DPV | — | 1.0–9.9 | 0.2 | — | 35 |
| GCE/poly(PGR) | LSV | — | 0.5–15 | 0.097 | — | 32 |
| GCE/AgNPs-CB-PEDOT:PSS | SWV | — | 0.67–12 | 0.014 | — | 36 |
| GCE/Gr/Cu | CV | — | 0.03–40 | 0.012 | — | 28 |
| PAY/MWCNTs/GCE | Amperometry | 1–56 | — | — | 0.2 | 23 |
| GONR(200 W)/GCE | Amperometry | 1.1–8.5 | — | — | 0.06 | 37 |
| MgO/NiCoFe2O4-NH/GCE | DPV | 0.1–450 | 0.05–400 | 0.0091 | 0.013 | Current study |
Therefore, the proposed sensor not only improves sensitivity and dynamic range but also provides a reliable and efficient platform for the simultaneous electrochemical determination of AA and LEV, outperforming previously reported methods.
| Interfering species | Recovery (%) | Relative standard deviation (%) |
|---|---|---|
| Casein | 96.5 | 0.99 |
| Lactose | 95.13 | 1.71 |
| Dopamine | 97.83 | 1.67 |
| Glucose | 96.7 | 1.65 |
| Paracetamol | 98.6 | 0.94 |
| Uric acid | 97.82 | 0.92 |
| Ciprofloxacin | 95.87 | 1.78 |
| Pb2+ | 97.54 | 1.69 |
| Ca2+ | 97.69 | 1.72 |
| Mg2+ | 97.26 | 1.65 |
| Sample | Added (µM) | Conc. (µM) | Recovery (%) | RSD (%) |
|---|---|---|---|---|
| Ascorbic acid | ||||
| Blood | 0 | BDL | — | — |
| 20 | 19.7 ± 0.22 | 97.6–99.8 | 1.14 | |
| 50 | 49.8 ± 0.28 | 99.0–100.2 | 0.56 | |
| 100 | 99.9 ± 0.42 | 99.5–100.3 | 0.42 | |
| Dairy milk | 0 | BDL | — | — |
| 10 | 9.79 ± 0.25 | 95.4–100.4 | 2.55 | |
| 20 | 19.9 ± 0.34 | 97.8–101.2 | 1.71 | |
| 30 | 29.9 ± 0.39 | 98.5–101.1 | 1.30 | |
| Waste water | 0 | BDL | — | — |
| 10 | 9.8 ± 0.12 | 96.8–99.2 | 1.22 | |
| 20 | 19.4 ± 0.25 | 95.7–98.2 | 1.28 | |
| 30 | 29.87 ± 0.4 | 98.2–100.9 | 1.34 | |
![]() |
||||
| Levofloxacin | ||||
| Blood | 0 | BDL | — | — |
| 20 | 19.85 ± 0.18 | 98.4–100.2 | 0.90 | |
| 50 | 49.86 ± 0.26 | 99.2–100.24 | 0.52 | |
| 100 | 99.94 ± 0.38 | 99.6–100.3 | 0.38 | |
| Dairy milk | 0 | BDL | — | — |
| 10 | 9.73 ± 0.22 | 95.1–99.5 | 2.26 | |
| 20 | 19.8 ± 0.24 | 97.9–100.3 | 1.21 | |
| 30 | 29.89 ± 0.32 | 98.6–100.7 | 1.07 | |
| Waste water | 0 | BDL | — | — |
| 10 | 9.68 ± 0.18 | 95.0–98.6 | 1.85 | |
| 20 | 19.74 ± 0.23 | 97.45–99.95 | 1.13 | |
| 30 | 29.83 ± 0.38 | 98.16–100.7 | 1.27 | |
Further, the prepared dairy milk samples were analyzed by spiking known concentrations of AA and LEV (10, 20 and 30 µM), and the obtained amounts were calculated. The concentration of AA ranged from 95.4–101.2% with a RSD of less than 2.6%, and the concentration of LEV ranged from 95.1–100.7% with a RSD of less than 2.3% by applying the standard addition method. The satisfactory recoveries in milk samples demonstrate acceptable matrix compatibility despite the presence of proteins, fats, and other organic constituents.
Moreover, the results indicated that 0.097 and 0.043 µM of AA and LEV were found in industrial effluents, respectively. The detection of measurable concentrations in industrial effluent samples indicates potential environmental relevance of the developed method. The AA and LEV were found below the detection limit (BDL) in tap water samples. This may reflect effective water treatment processes or concentrations lower than the detection capability of the current analytical system.
The tap water and industrial effluents were analyzed by spiking known concentrations of AA and LEV (10, 20, and 30 µM), and the obtained amounts were calculated. The concentration of AA and LEV ranged from 96.3–103.1% and a percentage RSD of less than 2.0% by applying the standard addition method. These results primarily validate the analytical accuracy and robustness of the method in complex aqueous matrices rather than indicating widespread contamination.
These results indicate the high reliability and accuracy of the MgO/NiCoFe2O4-NH/GCE-based electroanalytical method for determining AA and LEV in wastewater samples. However, broader environmental monitoring studies and evaluation under mixed-interferent conditions would further strengthen the demonstration of field applicability.
Supplementary information (SI) is available. See DOI: https://doi.org/10.1039/d6ra00424e.
| This journal is © The Royal Society of Chemistry 2026 |