Introduction

Ciprofloxacin (CIP) is an antibiotic in the fluoroquinolones (FQs) groups. They have been used in livestock and humans for the treatment of various infectious diseases such as respiratory, urinary tract, gastroenteritis, ocular and skin infections [1,2,3]. CIP can be residual in animal-derived foodstuffs and results in various undesirable effects to the consumers including hypersensitive, immunotoxicity, carcinogenicity, genotoxicity and endocrine disruptors [4]. The European Union (EU) established the maximum residue limit (MRL) of CIP in combination with its active metabolite, enrofloxacin, at 100 μg kg−1 for animal products [5, 6]. Based on the low MRL of CIP, various sensitive and effective methods have been developed for CIP determination including UV–Vis spectrophotometry [7, 8], fluorescence spectroscopy [9, 10] and high-performance liquid chromatography [11, 12].

Another popular method utilizes electrochemical sensors. These are simple, cost-effective, fast response time and are relatively user friendly [13, 14]. Many electrodes have been successfully used for CIP detection. These include glassy carbon electrode (GCE) [15, 16], graphite electrode (GE) [17], boron-doped diamond printed electrode (BDDP) [18], and screen-printed electrode (SPE) [19]. As the electrode is the critical aspect for the method performance, modification of the electrode surface has attracted increasing attention [20]. Various carbon nanomaterials have been extensively applied to modify the surface of electrode for the CIP detection such as carbon nanotubes (CNTs) [21, 22] and graphene oxide (GO) [15, 16]. They have good properties for electroanalysis including high conductivity, large surface-to-volume ratio and high electron mobility at room temperature [14]. Activated carbon (AC) is one such carbon material and it has been recognized as an efficient material for various applications. AC can be prepared from bio-wastes which makes the preparation process simple, eco-friendly and cost-effective. It has been widely used in supercapacitor applications because of its excellent electrical conductivity, high surface area and thermal stability [23,24,25]. Recently, metal nanoparticles such as silver nanoparticles (AgNPs) and gold nanoparticles (AuNPs) have been increasingly employed in biosensor, chemisensor and electrocatalyst fields. These types of nanoparticles have magnetic, electronic, optical and catalytic properties which facilitate electron transfer of redox reactions [26]. There are many reports using carbon nanomaterials combined with metal nanoparticles to enhance the electrochemical response for the detection of FQs. Examples of these include gold–palladium nanoparticles/GO [27], AuNPs/GO/MWCNT [28], AgNPs/carbon black [29], AuNPs/GO [30] and CuNPs/graphene [31].

Other promising substances used to improve electrochemical sensitivity are surfactants. They not only increase reaction rates and the kinetics of electron transfer reactions, but also control the solubilization of organic compounds for electroanalysis in water [32]. Various surfactants have been employed such as sodium dodecyl sulfate (SDS) for detection of nicotine [33, 34], tetrabutylammonium bromide (TBABr) for L-tryptophan detection [20], and cetyltrimethylammonium bromide (CTAB) for the determination of gatifloxacin and pefloxacin [31]. More recent, supramolecular solvents (SUPRASs) have been of extreme interest due to their green characteristics, i.e., non-volatile and non-flammable. SUPRASs are nanostructured liquids obtained from self-assembly of amphiphiles and include surfactants under coacervation conditions such as temperature, pH or electrolyte [35]. One of the attractive properties of SUPRASs is tunability of polarity; thus, many interactions with target compounds can be achieved such as hydrogen bonding, π–π, π–cation, hydrophobic and electrostatic interactions [36]. To the best of our knowledge, the application of SUPRAS in electrochemical sensors has been rarely reported, making it a challenge to investigate for enhancement of the electrochemical sensitivity. Our previous research presented supramolecular electrochemical sensor for the detection of dopamine using AuNPs/GO/GCE. Mixed surfactants containing cationic surfactant (TBABr) and anionic surfactant (SDS) were used to increase the interface property between the surface of electrode and the target analyte. This sensor has excellent electrocatalytic activity toward the dopamine oxidation and successfully applied for human serum [37].

Herein, this is the first report for the detection of ciprofloxacin (CIP) using glassy carbon electrode (GCE) modified with gold nanoparticles deposited activated carbon (AuNPs/AC) combined with SUPRAS. In this study, AC was synthesized from waste coffee grounds, while the SUPRAS were prepared from cationic surfactants namely didodecyldimethylammonium bromide (DDAB) and dodecyltrimethylammonium bromide (DTAB) in the presence of NaCl as a coacervating agent. The electrochemical sensors of CIP detection are mostly based on the increasing of its peak current [15,16,17,18,19]. This work proposed an indirect sensor for CIP determination by detection the decreasing of AuNPs cathodic current in the presence of CIP. The modification of GCE with AC, AuNPs and SUPRAS provided the electrochemical sensitivity and selectivity for CIP detection. All experimental parameters including the modification of electrode surfaces and electrochemical behavior of CIP were thoroughly investigated. The proposed electrochemical sensor was then successfully applied to determine CIP in milk and pharmaceutical samples.

Experimental

Materials and chemicals

All of chemicals were analytical reagent grade and obtained from various suppliers including ciprofloxacin (CIP), enrofloxacin (ENR), norfloxacin (NOR), ofloxacin (OFL), tetracycline hydrochloride (TC), oxytetracycline hydrochloride (OTC) and amoxicillin (AMX) from Sigma–Aldrich (USA and China). Didodecyldimethylammonium bromide (DDAB) and dodecyltrimethylammonium bromide (DTAB) were acquired from Fluka (Denmark) and Sigma–Aldrich (India), respectively. Gold(III) chloride trihydrate (HAuCl4‧3H2O) and potassium hexacyanoferrate(III) (K3Fe(CN)6) were obtained from Sigma–Aldrich (USA and Spain). Sodium chloride (NaCl), potassium chloride (KCl), potassium hydroxide (KOH) and sodium dihydrogen phosphate dihydrate (NaH2PO4‧2H2O) from Ajax finechem (New Zealand), sodium hydroxide (NaOH) from Carlo Erba (France) and 95–97% sulfuric acid (H2SO4) from Merck (Germany) were used. Disodium hydrogen phosphate (Na2HPO4), 85% phosphoric acid (H3PO4), 85% formic acid (HCOOH) and N,N–dimethylformamide (DMF) were obtained from QRëC (New Zealand). HPLC–grade methanol (MeOH) and acetonitrile (ACN) were acquired from LiChrosolv (China). Deionized water produced from RiOs™ Type I Simplicity 185 (Millipore water, USA) with a specific resistivity of 18.2 MΩ cm, was used throughout.

The stock solution (1000 mg L−1) and the working standard solution of CIP were prepared by dissolving an appropriate amount in 0.1 M NaOH and daily stepwise dilution of the stock solution with deionized water, respectively. The stock solution of DTAB (50 mM) and DDAB (25 mM) was prepared in deionized water. Phosphate buffers with various pH were prepared by mixing 0.1 M Na2HPO4 and 0.1 M NaH2PO4‧2H2O at different ratios, and adjusted by adding 0.1 M H3PO4 or 0.1 M NaOH.

Instrumentation

All electrochemical experiments including cyclic voltammetry (CV), differential pulse voltammetry (DPV) and electrochemical impedance spectroscopy (EIS) were performed on an AutoLab PGSTAT302N (Utrecht, Switzerland) at room temperature. A three-electrode system was used including 5-mm glassy carbon electrode (GCE; CorrTest, Hebei, China) modified with activated carbon (AC), prepared from waste coffee grounds, and then deposited AuNPs (AuNPs/AC/GCE) was used as working electrodes, a platinum wire as counter electrode (CorrTest, Hebei, China), and Ag/AgCl (3 M KCl) as reference electrode (CorrTest, Hebei, China). The surface morphology and composition of the modified electrodes were conducted by focused ion beam scanning electron microscopy (FIBSEM) and energy-dispersive X-ray spectroscopy (EDS) analysis (Helios NanoLab G3 CX, FEI, USA). X-ray photoelectron spectroscopy (XPS; AXIS Ultra DLD, UK) was employed to analyze the structure of AC. Dynamic light scattering (DLS) (Zetasizer Nano ZS, UK) was used to determine zeta potential of SUPRAS and CIP–SUPRAS. Moreover, high-performance liquid chromatography (HPLC) was used to detect CIP in real samples for comparison with the fabricated electrochemical sensor. The HPLC system composed of an Agilent 1220 LC system VL, a binary pump, a manual injector with a sample loop of 20 μL, and an Agilent 1260 Infinity II multiple wavelength detector (MWD). Data acquirement and processing were accomplished using OpenLAB CDS Chemstation software. The chromatographic separation of CIP was completed within 4 min using an ACE Excel5 C18–AR (150 mm × 4.6 mm i.d., 5.0 mm) column (Advanced Chromatography Technologies) with isocratic elution using a mixture of ACN and 0.1% HCOOH at ratio of 20/80 (v/v), at a flow rate of 1.0 mL min−1 and detection at 280 nm.

Preparation of the AuNPs/AC/GCE

Activated carbon (AC) was synthesized from waste coffee grounds using protocols from previous research with some modifications to the procedure [38]. The waste coffee grounds were prepared from coffee beans and filled in a coffee machine. The waste coffee powder was cleaned by 0.5 M KOH to remove the interferences and dried in an oven for 2 h at 80 °C. The waste coffee ground precursor was then obtained and placed in the hydrothermal autoclave with 60 mL of 1 M KOH to produce the porous carbons. The autoclave was heated at temperature 150 °C by the in-house high power microwave furnace for 30 min and the homogeneous AC product was obtained. The AC (5 mg) was dissolved in DMF (1 mL) and the homogenous suspension was acquired after sonication for 30 min. Glassy carbon electrode (GCE) was polished using 0.3 and 0.05 μm alumina slurry and cleaned ultrasonically in methanol first for 10 min and then in water for another 10 min. After that, 3 μL of AC dispersion (Fig. S1, see Supplementary) was dropped on the top of the polished GCE, allowing the solvent to evaporate at room temperature. The AC/GCE electrode was thus obtained.

To prepare AuNPs/AC/GCE, the AC/GCE electrode was immersed in 0.05 M H2SO4 containing 5.0 mM HAuCl4‧3H2O. The electrodeposition of AuNPs was conducted for 30 s at −1.0 V (Fig. S2, Supplementary). Finally, the AuNPs/AC/GCE electrode was cleaned by applying a potential scan of −1.0 V to +1.2 V with a scan rate of 100 mV/s in phosphate buffer (pH 6.0) until a steady voltammogram was achieved.

Preparation of cationic SUPRAS

The cationic SUPRAS was prepared according to our previous report [39]. Briefly, 1 mL of 25 mM DDAB and 1 mL of 50 mM DTAB were placed in a centrifuge tube and adjusted to 10 mL with deionized water. The cloudy solution was formed after adding NaCl (1.5 g) and completely dissolved NaCl solution by manual shaking. It was then vortexed for 5 s and centrifuged at 3000 rpm for 1 min. Finally, the SUPRAS was found in the upper phase, collected by a syringe and kept in a vial until use.

Milk sample preparation

Milk samples including raw milk, UHT milk and 0% fat milk were purchased from a supermarket in Khon Kaen, Thailand. Two milliliter of milk was deproteinized and defatted using 100 μL of SUPRAS. After that, the solution was mixed by a vortex stirrer at 1800 rpm for 1 min and then centrifuged at 6000 rpm for 5 min. The supernatant was filtered through a 0.45-μm membrane filter (VertiClean™ NYLON) and then mixed with phosphate buffer (pH 10.0) at the ratio of 1/4 (v/v) before the analysis by the proposed electrochemical sensor.

Tablet sample preparation

Two 500-mg CIP tablet samples of Siam Cifloxin® and Farmaline Ciproxyl® were used. They are white tablet and ellipse shape which their masses are 0.7796 ± 0.0081 and 0.8278 ± 0.0084 g per tablet, respectively. The tablet was ground and weighted 50 mg. After that, it was dissolved with deionized water until complete dissolution, except its cover-layer. The obtained solution was filtered through a Whatman® (No. 42) filter paper and then it was adjusted to an appropriate volume with deionized water before the analysis by the proposed electrochemical sensor.

Electrochemical analysis of ciprofloxacin

A 5mL- standard CIP or sample solution in phosphate buffer (pH 10.0) was detected by differential pulse voltammetry (DPV). The prepared cationic SUPRAS (100 μL; Fig. S3, Supplementary) was added into the solution and then stirred for 20 s prior to electrochemical analysis using the AuNPs/AC/GCE. DPV measurements were performed from +1.2 to +0.2 V with the parameters of deposition potential: 0.6 V, deposition time: 10 s, pulse amplitude: 0.05 V, pulse time: 0.05 s and step potential: −0.005 V.

Results and discussion

Choice of materials

Ideal materials for good electrochemical performance are those having high surface area, excellent electrical conductivity, and chemical stability [20]. To obtain high sensitive and selective sensor, three materials including AC, AuNPs and SUPRAS were chosen for modification of GCE. AC synthesized from waste coffee grounds was selected because of its high surface area and good electrical conductivity. Similar to other metal oxides and metal nanoparticles, AuNPs was employed as its high capability to facilitate the electron transfer [40]. In addition, SUPRAS was used to increase sensitivity of the sensor from the enhancement of electron transfer and the enrichment of CIP toward the electrode surface. The schematic illustration of the AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE sensors for CIP detection is depicted in Fig. 1.

Fig. 1
figure 1

The schematic diagram of the AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE sensors for the detection of CIP

Characterization of the modified electrode

The chemical composition of synthesized AC was studied by X-ray photoelectron spectroscopy (XPS) analysis as the result shown in Fig. 2. The XPS survey spectrum (Fig. 2A) indicated that the synthesized AC composed of carbon and oxygen atoms at 285.0 and 532.0 eV, respectively. The high-resolution C1s spectra (Fig. 2B) revealed that the C1s peak at binding energies of 285.0, 286.1, 286.9, and 288.0 eV corresponds to C=C and C–C, C–O, C=O and O–C=O, respectively [41, 42]. It was confirmed that AC has sp2-hybridized carbon atoms; thus, good electrical conductivity is expected [43].

Fig. 2
figure 2

(A) XPS survey spectrum of AC, (B) XPS high-resolution spectra of the C1S region of AC, SEM images of (C) AC, (D) AuNPs/AC and (E) SUPRAS–AuNPs/AC

The surface morphology and composition of AC/GCE, AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE were characterized by scanning electron microscopy (SEM) and energy-dispersive X-ray spectroscopy (EDS). Figure 2C illustrates the surface morphology of the AC which shows the irregular shapes with the diameter of ⁓ 2 ± 0.22 μm (n = 20). After the deposition of AuNPs, the roughly spherical shape of AuNPs (particle size of ⁓ 70 ± 6.68 nm; n = 20) was observed as can be seen as light dots in Fig. 2D, confirmed that the AuNPs was deposited on AC. Moreover, EDS and elemental mapping analysis (Figs. S4 and S5) showed that the synthesized AC consisted of only carbon atoms, while AuNPs/AC/GCE not only found carbon (C) atoms but also gold (Au) atoms indicating the existence of AuNPs. For SUPRAS–AuNPs/AC/GCE, Fig. 2E displays the well dispersion of AuNPs on AC in the presence of SUPRAS which covered AuNPs resulted the larger particle size of ⁓ 125 ± 7.33 nm (n = 20). The EDS and elemental mapping results (Fig. S6) revealed the existence of bromine (Br) and chlorine (Cl) atoms in SUPRAS which these elements are well dispersion; hence, it can be confirmed the complete fabrication of the proposed electrode.

The electrochemical performance of the modified electrode was studied by cyclic voltammetry (CV) using 5 mM [Fe(CN)6]3−/4− containing 0.1 M KCl. As the results displayed in Fig. 3A, the response current of [Fe(CN)6]3−/4− at bare GCE was the lowest value with the peak separation (∆E) of 0.40 V obtained from anodic peak at 0.56 V and cathodic peak at −0.16 V because of small surface area (0.0468 cm2) and weak conductivity. After the modification with either AuNPs or AC (AuNPs/GCE and AC/GCE), the peak currents were clearly increased and the peak potentials were shifted to negative value of anodic peaks at 0.28 V and positive value of cathodic peaks at 0.19 and 0.20 V, provided ∆E of 0.09 and 0.08 V for AuNPs/GCE and AC/GCE, respectively. It revealed that AuNPs and AC can increase the surface area and conductivity, thus accelerate electron transfer between [Fe(CN)6]3−/4− and electrode [28, 44]. Consequently, when the two materials were combined (i.e., AuNPs/AC/GCE), the highest electrochemical response was achieved which arisen from a synergistic effect of AuNPs and AC. The anodic peak of 0.26 V and cathodic peak of 0.19 V with ∆E of 0.07 V were obtained on AuNPs/AC/GCE, indicated that electron transfer was facilitated. According to the Randles–Sevcik equation [45], the electroactive surface area was also calculated by:

$$ {I}_p=2.69\times {10}^5{n}^{3/2}A{D}^{1/2}{\nu}^{1/2}{C}_p $$
(1)

where Ip is the peak current (A), n is the number of electrons transferred in the reaction, A is the active surface area (cm2), D is the diffusion coefficient (7.6 × 10−6 cm2 s−1 for 5.0 mM [Fe(CN)6]3−/4− containing 0.1 M KCl), ν is the scan rates (V s−1) and Cp is the concentration of the redox species (mol cm−3). The electroactive surface area of bare GCE, AuNPs/GCE, AC/GCE and AuNPs/AC/GCE was found to be 0.0468, 0.1722, 0.1603 and 0.2630 cm2, respectively.

Fig. 3
figure 3

(A) Cyclic voltammograms of 5 mM [Fe(CN)6]3−/4− in 0.1 M KCl at bare GCE, AuNPs/GCE, AC/GCE and AuNPs/AC/GCE with scan rate of 50 mV s−1 and potential of −1.0 V to +1.0 V. (B) Nyquist plots of 5 mM [Fe(CN)6]3−/4− in 0.1 M KCl at bare GCE, AuNPs/GCE, AC/GCE and AuNPs/AC/GCE, Inset: Nyquist plots at AC/GCE and AuNPs/AC/GCE with the frequency range of 0.001–100 kHz

Furthermore, the change of impedance of the modified electrode surface was proven by electrochemical impedance spectroscopy (EIS). The impedance data was obtained by fitting the Randles’s circuit (Fig. 3B inset) which the semicircle parameters correspond to the charge transfer resistance (Rct) and the diffusion impedance (ZW) were both in parallel with the interface capacitance (Cdl). Figure 3B displays Nyquist plots of [Fe(CN)6]3−/4− at bare GCE, AuNPs/GCE, AC/GCE and AuNPs/AC/GCE. The value of Rct was found to be 110, 40, 22 and 15 Ω for bare GCE, AuNPs/GCE, AC/GCE and AuNPs/AC/GCE, respectively. The results indicated that the AuNPs/AC/GCE provided the lowest Rct implying the highest electroconductivity [27, 28]. Therefore, from all characterization results, the surface modification of GCE electrode with AuNPs and AC was successful.

Electrochemical behavior of CIP on AuNPs/AC/GCE

In this work, the electrochemical behavior of CIP on AuNPs/AC/GCE was studied by CV. It was found that the voltammogram of the phosphate buffer system (the black line in Fig. S7) exhibited an oxidation peak at 0.92 V and reduction peak at 0.59 V which were the peaks of AuNPs (Au(III) to Au(0)) [46, 47]. In the presence of CIP, the peak current of AuNPs was obviously decreased due to adsorption of CIP on the surface of electrode. The nitrogen atom of the CIP piperazine group could interact with AuNPs, thus decreasing the intensity of AuNPs [48, 49]. Therefore, in this study, the experimental results were evaluated using the change of AuNPs current (∆I) under conditions with and without CIP. Although CIP affected both oxidation and reduction peaks of AuNPs, only the reduction peak (cathodic current) of AuNPs was employed because of its easier to interpret as displayed in Fig. S7.

The electrochemical reaction of CIP based on different pH solution was studied in the pH range from 4.0 to 8.0 using AuNPs/AC/GCE. CIP possesses positively charged at pH < 5.86, zwitterion at 5.86 < pH < 8.24, and negatively charged at pH > 8.24 [50, 51]. Figure 4A and S8 display the influence of pH on the peak current and ∆I of AuNPs in the presence of CIP, respectively. It was found that the peak intensity and ∆I were enhanced with the increasing of pH until pH 6.0 and thereafter significantly decreased. Moreover, the voltammograms showed that when pH decreased, the anodic and cathodic peak potentials of AuNPs were more positive potential suggesting the involvement of protons with oxidation of CIP. At pH 6.0, the zwitterion CIP was easily oxidized and the maximum peak current of AuNPs was achieved [50, 52]. According to Nernst equation [45], the relationship between Ep and pH is described as following equation:

$$ {E}_p=\frac{0.0592m}{n} pH+b $$
(2)

where Ep is the peak potential (V), m and n are the number of protons and electrons in the electrochemical reaction, respectively, and b is the intercept of equation. The plot of peak potential (Ep) and pH (Fig. 4B) reveals that the linear relationship expressed as follows: Ep = −0.0678pH + 1.0011 (r2 = 0.9927). It is clearly seen that the linear slope of 67.8 mV pH−1 is closed to the theoretical value 59.2 mV pH−1, implying that the number of protons and electrons transferred in the reaction of CIP was equal [53].

Fig. 4
figure 4

(A) Cyclic voltammograms of AuNPs with 0.5 μM CIP in 0.1 M phosphate buffer at AuNPs/AC/GCE at various pH (4.0–8.0). The scan rate and potential were 50 mV s−1 and + 0.1 V to +1.2 V, respectively. (B) Linear relationship between the peak potential and pH of 0.5 μM CIP in 0.1 M phosphate buffer at AuNPs/AC/GCE

In order to study the electrochemical mechanism, the effect of scan rate (ν) on the peak current and potential at AuNPs/AC/GCE was investigated using CV. The CVs of AuNPs (Fig. 5) in the presence of 0.5 μM CIP were recorded at different scan rates from 10 to 100 mV s−1, which the potential shifted with increasing the scan rate, confirms the irreversible system. The relationship between ∆I and ν was linear with a regression equation of ∆I = 0.5607ν + 5.0010 (r2 = 0.9910) as shown in Fig. S9, indicating an adsorption-controlled process [54]. In addition, a linear relation was obtained between potential and lnν (Fig. 5 inset): Ep = −0.0211lnν + 0.6771 (r2 = 0.9961). According to Laviron theory [55], the number of electrons involved in CIP oxidation for the irreversible reaction can be calculated following equation:

$$ {E}_p(V)={E}^o-\frac{RT}{\alpha nF}\mathit{\ln}\frac{RT{k}_s}{\alpha nF}+\frac{RT}{\alpha nF} ln\nu $$
(3)

where Eo is the formal peak potential (V), α is the electron transfer coefficient, n is the number of electrons, F is the Faraday’s constant (96,500 C mol−1), R is the gas constant (8.314 J mol−1 K−1), T is the temperature (298.15 K) and ks is the standard heterogeneous reaction rate constant. From the slope of Ep versus lnν, the calculated value of αn of 1.22 was achieved which α was assumed to be 0.5 for the irreversible progress [19]. Therefore, the number of electrons in the CIP oxidation reaction was evaluated to be 2 being consistent with previous reports [16, 19]. The reaction of CIP at AuNPs/AC/GCE is demonstrated in Scheme S1.

Fig. 5
figure 5

Cyclic voltammograms of AuNPs in the presence of 0.5 μM CIP in 0.1 M phosphate buffer (pH 6.0) at different scan rates (10–100 mV s−1) and potential of +0.1 V to +1.2 V at AuNPs/AC/GCE, Inset: linear relationship between the peak potential and natural logarithm of scan rate

Enhancement of sensitivity for CIP detection using SUPRAS

Surfactants have been reported that can improve electrochemical sensitivity by accelerating the diffusion of compounds toward the surface of electrode [32]. Moreover, they act as a stabilizer that assist AuNPs dispersion and result in the enhancement of the AuNPs signal [56]. This work used SUPRAS prepared from 5 mM DTAB and 2.5 mM DDAB in the presence of NaCl, to improve AuNPs signal and enrich CIP on the surface of electrode. The process for CIP detection at SUPRAS–AuNPs/AC/GCE is illustrated in Fig. S10. All the parameters in the SUPRAS system were optimized using DPV in the presence of 20 nM CIP in 0.1 M phosphate buffer at SUPRAS–AuNPs/AC/GCE. Figure S11 displays the DPV voltammograms of AuNPs in 0.1 M phosphate buffer without the addition of CIP. It was found that the peak current of AuNPs at SUPRAS–AuNPs/AC/GCE was higher than AuNPs/AC/GCE with a slightly negative shift of peak potential indicated SUPRAS can enhance the AuNPs signal.

Effect of types of surfactant

Two individual surfactants (5 mM DTAB and 2.5 mM DDAB) and SUPRAS were tested. The results (Fig. S12A) reveal that ∆I slightly increased ca. 1.7 times with the individual surfactants compared with phosphate buffer system (without surfactant). Meanwhile, the SUPRAS significantly enhanced the sensitivity of CIP which the ∆I was increased ca. 8.3 times, resulted from the increase of electron transfer rate [32, 33]. Hence, the SUPRAS was used throughout.

Furthermore, the concentrations of both surfactants were varied in the range of 1.2–7.4 mM (fixed molar ratio of DDAB:DTAB at 1:2 which is the optimum ratio to form SUPRAS [39]). It was found that (Fig. S12B) the ∆I increased with the increasing DDAB:DTAB concentration up to 2.5:5.0 mM and then it was decreased, this may be due to high concentration of SUPRAS covered the surface electrode. Therefore, the SUPRAS prepared from DDAB and DTAB at 2.5 and 5.0 mM, respectively, was selected for further studies.

Effect of pH

The influence of pH was studied in the range of 4.0–11.0 at AuNPs/AC/GCE using 0.1 M phosphate buffer with the addition of SUPRAS. The results (Fig. S12C) showed that the ∆I increased until pH 10.0 and then sharply decreased. At pH < 8.24, CIP has the positive charge and zwitterion which interact poorly with the cationic SUPRAS. While at pH > 8.24, it is deprotonated; thus, the sensitivity of CIP was increased via electrostatic interaction between the anionic CIP and the cationic SUPRAS. Hence, pH 10.0 of phosphate buffer was chosen for further experiments.

The possible mechanism between CIP and SUPRAS was proved by zeta potential analysis. It was found that the prepared SUPRAS has a positive charge with the potential of ⁓20 ± 2.08 mV (n = 3). After the addition of SUPRAS into CIP solution, the positive potential of ⁓12 ± 0.76 mV (n = 3) of CIP–SUPRAS was observed. The result indicated that the decreasing of potential for CIP and SUPRAS system was obtained due to the negative charge of CIP interacted with the positive charged of SUPRAS via electrostatic attraction.

Analytical performance

The analytical performance of two fabricated sensors, namely AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE, was evaluated using DPV under their optimal conditions. The analytical features studied are linearity, detection limit (LOD) and quantification limit (LOQ). Figure 6 displays the voltammograms of AuNPs at a potential range from +0.4 V to +0.9 V in the presence of different CIP concentrations using both electrochemical sensors. The current of AuNPs decreased with increasing CIP concentration from 0 to 1000 nM and 0 to 25 nM for AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE, respectively. As summarized in Table 1, the linearity obtained from AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE was ranged from 20 to 1000 nM and 0.5 to 25 nM with a determination coefficient (r2) of 0.9935 and 0.9908, respectively. The LOD and LOQ were calculated according to the equations: LOD = 3σ/S and LOQ = 10σ/S, where σ is the standard deviation of blank (n = 7) and S is the slope of the calibration plot. The obtained LODs by AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE were found to be 10 nM and 0.20 nM, and LOQs were 30 nM and 0.67 nM, respectively. The electrochemical sensitivity of 12.12 and 3962.64 μA μM−1 cm−2 for AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE was achieved. The results indicated that SUPRAS–AuNPs/AC/GCE exhibited higher sensitivity for CIP detection than AuNPs/AC/GCE. In addition, the performance of SUPRAS–AuNPs/AC/GCE sensor was compared with the previous reports as summarized in Table 2. It can be seen that the linear range of the fabricated sensor was comparable to the others. This method was more sensitive than most of the reports which provided low LOD comparable to SSB–Apt/SPGE [57]; however, the proposed sensor (SUPRAS–AuNPs/AC/GCE) was simpler and more cost-effective than SSB–Apt/SPGE.

Fig. 6
figure 6

Differential pulse voltammograms of AuNPs in the presence of different concentration of CIP in 0.1 M phosphate buffer (A) pH 6.0 at AuNPs/AC/GCE and (B) pH 10.0 at SUPRAS–AuNPs/AC/GCE, Inset: calibration plot of AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE sensors obtained from DPV measurement with potential of +1.2 to +0.2 V

Table 1 Analytical parameters of the fabricated electrochemical sensors
Table 2 Comparison of the proposed sensor (SUPRAS–AuNPs/AC/GCE) with other sensors for CIP detection

Interferences, reproducibility and stability

The effect of potential interferences from other antibiotics such as amoxicillin (AMX), tetracycline (TC), oxytetracycline (OTC), enrofloxacin (ENR), ofloxacin (OFL) and norfloxacin (NOR) was studied by DPV using AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE. The concentration of all tested antibiotics was 20 nM. As can be seen in Fig. 7, AMX, TC and OTC did not significantly affect to AuNPs signal. While ENR, OFL, and NOR had an effect on the DPV signal, may due to these compounds are in the same group with CIP, especially NOR having piperazine group in its structure. However, CIP gave the highest sensitivity under the studied conditions for the fabricated electrochemical sensor.

Fig. 7
figure 7

Selectivity of AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE with various antibiotics (20 nM of each) in 0.1 M phosphate buffer (pH 6.0 for AuNPs/AC/GCE and pH 10.0 for SUPRAS–AuNPs/AC/GCE)

The reproducibility of the AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE sensors was investigated by DPV detection of 100 nM CIP in 0.1 M phosphate buffer (pH 6.0) and 1 nM CIP in 0.1 M phosphate buffer (pH 10.0), respectively. Under the optimized conditions, the precision of two fabricated sensors, in terms of relative standard deviation (RSD, n = 5), was found to be less than 3.8% and 8.6% in a day (intra-day) and 3 consecutive days (inter-day), respectively, as summarized in Table 1. Furthermore, the stability of the sensors was also evaluated at 20 nM CIP using one electrode. The results (Fig. S13) indicated that the signals in terms of percent relative were decreased and the signal in terms of ∆I increased ca. 10% after 13 cycles and 6 cycles usage of AuNPs/AC/GCE and SUPRAS–AuNPs/AC/GCE, respectively. It can be concluded that the fabricated sensors had not only good selectivity but also good reproducibility and stability for the detection of CIP.

Sample analysis

The applicability of the SUPRAS–AuNPs/AC/GCE sensor was examined for the detection of CIP in milk samples including raw milk, UHT milk and 0% fat milk. In this study, to reduce the using of organic solvents, SUPRAS was used instead to deproteinize and defat of milk sample. Milk proteins, such as casein and lactoglobulin, and fat were removed through electrostatic interaction between the ionic head group of surfactant and ionic groups of milk proteins, and hydrophobic interaction between alkyl chains of surfactant and hydrophobic part of milk proteins [58, 59]. All milk samples were spiked with three concentration levels of CIP (0.5, 5 and 20 nM) and the detection was performed in triplicate. The recovery of CIP was achieved in the range of 78.6–110.2% with RSDs less than 8.4% as shown in Table 3. The results from the fabricated sensor at 20 nM CIP were compared with HPLC which they are in good agreement. Moreover, the proposed sensor was used to determine CIP in pharmaceutical formulations. Two tablet samples were dissolved and diluted in water at an appropriate volume ratio. It was found that the obtained CIP amount was 496.04 and 492.82 mg (Table 4) which close to a labeled value (500 mg/tablet), indicating that the fabricated sensor (SUPRAS–AuNPs/AC/GCE) is effective and accurate for the determination of CIP in real samples.

Table 3 Recovery studies of spiked CIP in milk samples (n = 3)
Table 4 The determination of CIP in pharmaceutical formulations (n = 3)

Conclusion

A novel and sensitive electrochemical sensor using GCE modified with AC and AuNPs in the presence of SUPRAS (SUPRAS–AuNPs/AC/GCE) was fabricated to determine CIP. The sensitivity of the electrochemical sensor was attributed to greatly increased electroactive area and conductivity resulting from AC and AuNPs. Moreover, the sensitivity was further increased through SUPRAS, which facilitating electron transfer of AuNPs and enrich CIP on the electrode surface. Besides the ease and low-cost fabrication, this proposed innovative sensor can be considered as eco-friendly sensor from the usage of green solvent (SUPRAS) and the recycle of biomass waste (waste coffee ground) for AC precursor. The proposed method is interfered by NOR at high concentration. SUPRAS–AuNPs/AC/GCE was successfully applied for the detection of CIP in milk and pharmaceutical samples.