Introduction

Malachite green (MG) is a toxic triphenylmethane organic compound that is both dye, bactericidal, and parasite chemical agent. In recent years, it was found that malachite green compounds and their metabolites are highly residual, toxic, and produce carcinogenic, teratogenic, mutagenic, and other side effects [1]. The scientific studies have shown that the longer the residual time in fish and aquatic animals, the more likely it is to cause malformation or even cancer [2]. At the same time, it will bring potential risks for consumers when they eat the products with residues of MG. So, it has been listed as the banned drugs in aquaculture in many countries. As early as May 2002, MG was included in the list of banned veterinary drugs and compounds for edible animals in our country. However, MG has special effects on saprolegniaceae disease of fish and its eggs and there is no specific drug that can cure saprolegniaceae disease in the market for a short time, which is the fundamental reason why malachite green has been repeatedly banned in the aquaculture industry, but there are still many cases of illegal use. It seriously affected the competitiveness and reputation in the international market of Chinese aquatic products. For health reasons, and supervision of the quality of aquatic products, it is very important to establish a fast and simple method for the determination of MG in aqueous samples.

The traditional techniques of MG detection mainly include high-performance liquid chromatography (HPLC) [3,4,5], spectrophotometry [6, 7], and enzyme-linked immunosorbent assay (ELISA) [8, 9]. For routine analyses, these methods are reliable and sensitive, but several disadvantages need to be solved, such as the high cost, the need of well-trained operators, the complex sample preparation, and the impossibility to be moved to on-site detection in case of an emergent pollution incident.

Electrochemical methods [10,11,12,13,14] have been found to be highly sensitive, convenient, with on-site possible detection, and effective tool for the analysis [15,16,17]. However, in general, bare electrodes have the problems of low sensitivity, narrow detection range, and poor selectivity, which need to be improved by modification of electrode surface. Alireza Nezamzadeh-Ejhieh et al. have done a lot of research on modified electrode [18,19,20]; the importance of electrode modification has been proved. Without electrode modification, there is no sensor with high sensitivity and selectivity. Such as the graphene quantum dots and gold nanoparticle–modified glassy carbon electrode (GR-QDS/AuNP/GCE) [11], Au nanoparticle-chitosan/multi-walled carbon nanotube–modified glassy carbon electrode (AuNP-CS/MWNT/GCE) [12], CeO2/Nafion/GCE [13], and MWNT-DHP (dihexadecyl hydrogen phosphate)/GCE [14] were used to detect MG (as shown in Table 1). These modified electrodes have either a low detection limit or a wide detection range. But most of them cannot be reused and need to be modified repeatedly, which is also a difficult problem for the most of composite film–modified electrode to be solved.

Table 1 Comparison of MG determination with different modified electrodes

Electrochemical sensors based on molecularly imprinted polymer (MIP) not only have the good sensitivity and wide detection range, but also can be used repeatedly. To a certain extent, it solves the problem that the composite film–modified electrode cannot be reused. And the determination of MG by molecularly imprinted sensors has not been reported at present.

However, only the MIP film is used as the sensor identification element; usually, there are disadvantages of poor adsorption capacity and low sensitivity. In order to achieve the excellent performance of the molecular imprinting sensor, it is necessary to amplify the current signal, shorten the response time, and completely remove the template molecule and so on [16].

It is reported that gold nanoparticles have excellent electrocatalytic properties; they are biocompatible with other advantages and have been widely used in molecular imprinting electrochemical sensor performance improvement [21,22,23,24]. For example, G. C. Zhao et al. [25] improved the electrochemical signal by 2.6 times after modifying gold nanoparticles with molecularly imprinted electrodes, because the AuNPs were modified on the base electrode and constructed the composite film–modified electrode with MIP. The gold nanoparticles can increase the surface area and recognition unit of the modified electrode, increase the conductivity and electron transport capability of the MIP film, and finally, significantly improve the sensitivity of the molecularly imprinted modified electrode [26]. Therefore, the preparation and application of MG-MIPPy/AuNPs/GCE has been studied in this work.

Preparation of MG-MIPPy/AuNP composite electrochemical sensor was studied in this work. And considering the lower sensitivity of direct response of MG on the composite film of MG-MIPPy/AuNPs/GCE, the potassium ferricyanide (K3Fe(CN)6) was selected as the probe to detect MG indirectly according to the reported literature [27]. It is based on the selective occupation of MG on the adsorption site of MG-MIPPy/AuNPs/GCE, preventing the probe molecules from entering and reducing its peak current. In most modified electrodes, peak current tend to increase in presence of analyte, rarely it decreased, while the decrease of current change was applied in this study to detect MG indirectly, so as Motahare Nosuhi et al. did [28].

There was a linear relationship between the changes of current value (ΔIDPV) and the logarithm value of concentration of MG. Then, a new electrochemical analysis method for determination of MG indirectly was established. The sensor showed high sensitivity, good reproducibility, and stability. Furthermore, this method was successfully applied to detect MG in fish pond water, river, and lake with satisfactory recoveries.

Experimental

Reagents and materials

Malachite green was purchased from Tianjin Tianda Chemical Co., Ltd. Pyrrole (99%) was provided by Shanghai Lirui Biological Technology Co., Ltd. K3Fe(CN)6, HAuCl4·4H2O (Au% ˃ 47%), Na2HPO4·12H2O, NaH2PO4·2H2O, H2SO4, and KCl were obtained from Chengdu Kelong Chemical Reagent Co., Ltd. Ultrapure water (Milli-Q water with 18.2 MΩ cm) used throughout the study and others were analytical grade reagents.

Instrument

An Autolab PGSTAT 302N (Metrohm-Autolab, Metrohm Co., Ltd., China) was used for electrochemical studies connected to a conventional three-electrode system [29]. A saturated calomel electrode (SCE) was used as the reference electrode, while a platinum electrode was the auxiliary electrode, and a GCE (3 mm in diameter, Tianjin Aida, China) or a GCE modified by different methods was used as working electrodes. Nova Nano SEM450/FEI (USA) were used to obtain the scanning electron microscope (SEM) images.

Senor fabrication

The procedure to obtain the imprinted sensor is illustrated in Scheme 1. Firstly, a bare GCE was polished with an alumina slurry of 0.5 μm and then 0.3 μm α-Al2O3 particles on a polishing cloth, and was sequentially sonicated in ethanol and ultrapure water for 3 min. The electrode was then activated in 0.5 M H2SO4 by cycling the potential between − 0.2 and + 0.8 V at a 100 mV/s scanning rate until stable CV was obtained. The electrode was rinsed with ultrapure water and dried under nitrogen at last. All measurements were at room temperature.

Scheme 1
scheme 1

Scheme of preparation and regeneration process of MG-MIPPy/AuNPs/GCE

The pretreated GCE was immersed into a 10-mL small beaker of 10 mM HAuCl4 containing 0.1 M Na2SO4 solution and subjected to a negative potential by applying − 0.2 V (vs. SCE) for 100 s, leading AuNPs electrodeposited onto the surface of the GCE. It was then washed with ultrapure water and blown with nitrogen [30].

The polypyrrole film with MG imprinting/AuNPs/GCE was obtained using cyclic voltammetry scanning in the potential range from − 0.2 to + 1.0 V (vs. SCE) at 50 mV s−1 during 20 cycles in the solution containing 0.05 M pyrrole, 0.05 M MG, and 0.1 M KCl with 0.5 M phosphate buffer solution (PBS, pH = 6.9). After that, the electrode was over oxidized at the constant potential of 1.3 V (vs. SCE) by chronoamperometry for 5 min in a 0.2 M Na2HPO4 solution, and then ultrasonically cleaned in ultrapure water for 3 min to remove template molecules adequately. At last, MG-MIPPy/AuNPs/GCE were washed with ultrapure water and further used after drying under nitrogen. Non-imprinted polymer (NIP) electrode was prepared under the same experimental conditions but without MG in the solution.

Electrochemical measurements

The electrochemical behavior of the molecularly imprinted films were studied by CV in a 0.1 M KCl solution containing 5 mM K3[Fe(CN)6]. The DPV measurements were performed with K3[Fe (CN)6] and MG-MIPPy/AuNPs/GCE at potential from − 0.2 to − 0.6 V, at the scanning rate of 50 mV/s, with a pulse amplitude of 50 mV and a pulse width of 50 ms, after a 10 min incubation time in the containing MG. The MG was indirectly detected by measuring the changes value of peak current (ΔIDPV) of the K3 [Fe(CN)6] probe.

Real sample collection

The polyethylene plastic sampling bottle was soaked with HNO3 (10%) for 3 days and washed with ultrapure water. The four sampling points (Dongfeng canal, Yan Lake, and two fish ponds) were selected, and the bottles were washed with water samples for 3~5 times, taking water samples at about 0.5 and 1 m depth, and then mix each other. 50 mL water sample was taken in 100 mL beaker, respectively, added about 2 mL 0.02 mol/L NaOH solution, then centrifuged, and 5.0 mL of the supernatant was used to adjust pH to about 7 with HCl solution of 0.02 mol/L, and then pH = 6.9 PBS buffer solution was used to dissolve in 10-mL colorimetric tube, respectively. The measurement and the recovery test of the sample solution were carried out according to the experimental method.

Results and discussion

Preparation of MG-MIPPy/AuNP composite electrode

The process of electropolymerization of MG-MIPPy and NIP films by the CV is shown in Fig. 1. The obvious oxidation peak appears at 0.65 V (vs. SCE) in the first scan of electropolymerization of MG-MIP (Fig. 1a), while there is no any peak during electropolymerization of NIP (Fig. 1b). This may be due to the reason that MG can catalyze the electrochemical oxidation of pyrrole. Figure 1a shows the amplitude decreases sharply as long as the potential cycling continues; moreover, there is no reduction wave in any cycle. It indicates the MG-MIPPy thin film was successfully formed on the GCE mainly in the first half-cycle, which blocks the electrode surface; the electrochemical process of pyrrole was completely irreversible, and the anodic peak only appeared in the first cycle, at about 0.65 V (vs. SCE) [31].

Fig. 1
figure 1

The cyclic voltammetry curve of the electropolymerization process [in the solution containing 0.05 M pyrrole, 0.05 M MG, and 0.1 M KCl with 0.5 M phosphate buffer solution (PBS, pH = 6.9)]. a MG-MIPPy/AuNPs/GCE. b NIPPy/AuNPs/GCE

These results are consistent with the sequence of reactions, including the oxidation of –NH– of pyrrole monomers, polymerization, and the deposition of stable MG coatings on the surface of AuNPs/GCE. The MG template molecules are embedded in the polymer matrix by electrodeposition of the conductive polymer, and after the peroxidation treatment, the polymer film loses conductivity and the imprint holes of MG were left after eluting the template molecules. The N in the MG template molecule is able to bond together with the –NH– on the imprinted hole in the form of hydrogen bonds.

SEM morphology of the electrode

The morphology of AuNPs/GCE and MG-MIPPy/AuNP/GCE surfaces was characterized by SEM. Figure 2a shows the smooth surface of the AuNPs/GCE, and many AuNPs with a diameter of ca. 10 nm deposited on the surface of GCE in the shape of metallic clusters. But, when the MG-MIPPy was further polymerized on AuNP/GCE surface by cyclic voltammetry, the AuNPs were evenly distributed in its membrane; obviously, the imprinted film of MG-MIPPy/AuNPs/GCE became rough after removal, shown in Fig. 2b.

Fig. 2
figure 2

SEM images of AuNPs/GCE (a) and MIPPy/AuNPs/GCE (b)

Electrochemical characteristics of the modified electrode

Electrochemical impedance spectroscopy (EIS) was obtained in the solution of 5.0 mM Fe(CN)63−/4– containing 0.1 M KCl by setting frequency range from 10−2 to 105 Hz and the potential to 0.2 V [30]. To study the effect of calcination temperature onto the charge transfer ability of the modified electrodes with modifier, the corresponding Nyquist plots are shown in Fig. 3. The Nyquist curve’s high frequency semicircle part is related to the electron transfer process [15, 29]. As shown in Fig. 3, the curve semicircle radius of the bare electrode is larger than that of modified by AuNPs. It is proved that gold nanoparticle can enhance the conductivity of the electrode. The electron transfer resistance of MG-MIPPy film increased sharply after deposited on AuNPs/GCE by CV; the electron conductivity was reduced due to the formation of the MG-MIPPy. It made [Fe(CN)6]3−/4- unable to reach the electrode surface because of the good insulation properties of the MG-MIPPy film. After the MG template molecule was removed, there were imprinted holes in the MIP film, which makes it easier for K3[Fe(CN)6] to transfer to the electrode surface; it led to the decrease of EIS immediately, which further proves the existence of the molecularly imprinted hole on the composite film of the modified electrode [32]. The holes identified as imprinted holes of malachite green have been demonstrated by interference experiments (Table 2). The corresponding Bodes’ plots were obtained by data fitting using “Nova” software. The corresponding equivalent electrochemical circuit is shown in inset of Fig. 3. As shown, the circuit includes three resistances (solution, Rs, polarization, Rp or Rct, and charging resistances from left to right, respectively) and one capacitor. One of the capacitors has parallel plans; it should be considered as a non-ideal capacitor or constant phase element (CPE) [33]. The Rct value of each electrode is fitted from the equivalent circuit in Fig. 3. The equivalent circuit Rct value of the modified electrodes was as follows: MG-MIPPy/AuNPs/GCE before the template removal (45.3 kΩ) > MG-MIPPy/AuNPs/GCE after the template removal (869 Ω) > GCE (168 Ω) > AuNPs/GCE (85 Ω). On the other hand, the result proved that the modified electrode was prepared successfully.

Fig. 3
figure 3

Electrochemical impendence spectroscopy (EIS) of GCE (a), AuNPs/GCE (b), MG-MIPPy/AuNPs/GCE before the template removal (c), and MG-MIPPy/AuNPs/GCE after the template removal (d) (in the solution of 5.0 mM Fe(CN)63−/4– containing 0.1 M KCl by setting frequency range from 10−2 to 105 Hz and the potential to 0.2 V)

Table 2 Influences of possible interferences for MG (2.74 × 10−7 M)

The cyclic voltammograms of the modified electrodes in 5 mM K3[Fe(CN)6] (Fig. 4) could further evidenced the electrochemical characteristics of the modified electrode [15]. The oxidation and reduction peak current of the modified MIPPy/AuNPs/GCE after the template removal (curve 3) was higher than the current of the MIPPy/GCE after the template removal (curve 4), while the AuNPs/GCE (curve 1) is higher than the bare GCE electrode (curve 2). Therefore, the AuNP–modified electrode can increase the contact area between the electroactive material and the electrode surface, and generate more transmission channels to promote the diffusion and the redox reaction [Fe(CN)6]3−/4- on the electrode surface. The redox peak of the NIP (curve 6) and MG-MIP (curve 5) was hardly observed after the polymerization of the pyrrole, because the MG-MIPPy film is covering the surface of the electrode and blocked the conduction of the electrons. The redox peaks were observed again when the MG template was removed (curve 3), whereas NIPPy did not show significant redox peaks due to the lack of template molecules. It was then proved that MG-MIPPy was formed successfully.

Fig. 4
figure 4

Cyclic voltammograms of different electrodes recorded in 5 mM K3[Fe(CN)6]containing 0.1 M KCl, (1) AuNPs/GCE, (2) GCE, (3) MG-MIPPy/AuNPs/GCE after the template removal, (4) MG-MIPPy/GCE after the template removal, (5) MG-MIPPy/AuNPs/GCE before the template removal, (6) NIPPy/AuNPs/GCE

Optimization of the experimental conditions

Buffer and the ratio of the monomer to template

The peak current in different buffer solutions was evaluated for electropolymerization conditions [34]. It was found that PBS performed best in B-R buffer, PBS buffer, sodium citrate buffer, and NaAc-HAc buffer. The proper proportion of monomer and template molecules has a very important effect on the specificity and selectivity of molecularly imprinted film [35]. When the ratio of the monomer to the template (monomer/template) is small, excessive template will prevent the pyrrole monomer from binding to MG to form an effective adsorption site.

On the contrary, when the amount of monomer is too large, it is easy to polymerize directly between the monomers, making it difficult to form more effective imprinting sites. From Fig. 5a, when the ratio of the monomer to MG template is 1:1, the current change (∆IDPV) before and after MG template elution is the largest [36]. So, the ratio of the monomer to MG template 1:1 was chosen.

Fig. 5
figure 5

Optimization of the experimental conditions about the current changes (∆IDPV) at MIPPy/AuNPs/GCE a monomer to template ratio, b electropolymerization cycle, c elution time, and d incubation time

The polymerization cycles

At the same time, the thickness of the MG-MIPPy film also affects the electron transfer; the thickness of the polymer film can be controlled by the number of polymerization cycles. The effect of numbers of cycles was studied from 12 to 32 on ∆IDPV. As shown in Fig. 5b, ∆IDPV increases with the cycle number from 12 to 20, and reached a maximum value at 20 cycles. As the number of cycles increases until 32, ∆IDPV gradually decreased. Therefore, 20 CV cycles were chosen to prepare the polymer film in optimal condition.

Elution condition

To obtain satisfactory sensitivity and selectivity, it is very important to elute the MG template from MIP film completely. In our work, different solvents to remove the template from MG-MIPPy/AuNPs/GCE were studied, such as water, NaOH, ethanol, and NaH2PO4. The most efficient removal solvent was found to be 0.2 M NaH2PO4 with an ultrasonic cleaning for 3 min to completely elute the template. As shown in Fig. 5c, the elution time on the MG-MIPPy film also has a great impact on the firmness. When the peroxide time is too short, the MG template molecules cannot be removed effectively; on the other hand, if the time is too long, it will lead to the film off and reduce the possibility for the modified electrode to be re-used. Therefore, the elution time was set to 300 s.

Incubation condition

As shown in Fig. 5d, the effect of the incubation time ranging from 2 to 16 min on ∆IDPV was investigated. As the incubation time increased, the current increased rapidly until 10 min to reach a constant value, related to the adsorption equilibrium. Therefore, 10 min was chosen as the appropriate incubation time.

Linear range and limit of detection

Under optimized conditions, the ΔIDPV response of the electrode in 0.1 M KCl containing 5 mM K3[Fe(CN)6] solutions after incubation in PBS (pH = 6.9): MG (V:V = 1:1) was shown in Fig. 6. It can be seen that ΔIDPV decreases gradually with the increase of MG concentration [15]. There was a linear relationship between negative logarithm values of MG concentrations varying from 2.74 × 10−9 M to 2.74 × 10−6 M (Fig. 6). The linear regression equation is ΔI(μA) = 5.1143logC + 15.398 (R = 0.9961). The detection limit was estimated to be 3.57 × 10−11 M (S/N = 3), indicating that the MG-MIPPy/AuNPs/GCE had a fairer sensitivity, a wider linear range, and a lower detection limit. Compared with those of other reported electrochemical sensors, the detection range is wider and the detection limit is lower for MG determination [30] (Table 1).

Fig. 6
figure 6

The current of DPV for the different concentrations of MG at MIP/AuNP/GCE–modified electrode. (a) 2.74 × 10−9 M. (b) 2.74 × 10−8 M. (c) 8.22 × 10−8 M. (d) 2.74 × 10−7 M. (e) 5.48 × 10−7 M. (f) 1.37 × 10−6 M. (g) 1.92 × 10−6 M. (h) 2.74 × 10−6 M

Reproducibility, stability, and selectivity

The relative standard deviation (RSD) was 3.71% with 4 repeated measurements on a single electrode. By comparing the responses of three similar independent electrodes, the variation between electrodes was studied by statistical g-test. Comparison of gexp = 1 with g 0.05,4,3 = 1.135. The results show that the electrode has good reproducibility in the confidence interval of 0.95% [37].

The electrode’s metrological parameters did not significantly deteriorate at least after 16 numbers of samples were determined.

For the investigation of the stability of the senor, the electrode was stored at 4 °C after determined of ∆IDPV. Two weeks later, the current response represents 96.3% of the initial peak current. This showed that the imprinted sensor had a long-term stability [29].

The interference resistance of the sensor was investigated through experiments of coexisting substances. The effects of crystal violet, phenolphthalein, common anions, and cationic added in the water were investigated. As listed in Table 2, among them, Mg2+, Ca2+, and Pb2+ have slight interference; this interference can be eliminated by precipitation separation or complex masking, and other substances have no interfere at all. Especially, crystal violet and phenolphthalein belong to triphenylmethane dyes which have similar structure to malachite green, but there is no interference when their concentration is much greater than that of malachite (548 × 10−7 M and 411 × 10−7 M respectively), which further proves the existence of molecular imprinting of malachite green. Thus, a good selectivity can be achieved with this sensor.

Analysis of real water samples

The feasibility of the modified electrode was evaluated by analyzing real water samples. The samples were collected according to the experimental methods and then added 2 mL 0.02 M NaOH to separate interference ions. Then, the pH was adjusted to 7.

The results showed that the recovery was from 98.82 to 103.38%. It has been proved that MG-MIPPy/AuNPs/GCE is reliable and efficient for the detection of MG in real samples (Table 3).

Table 3 Determination of MG in aqueous environmental samples

Conclusions

In this work, the results confirmed that AuNPs could increase the conductivity of the sensor and significantly increase the response current. The MG-MIPPy/AuNP composite electrode has a specific three-dimensional imprinted cavities with recognition site of the MG; it will be occupied selectively when MG is present in the sample, which prevents the probe molecules from entering the surface of electrode and resulted in the decrease of the peak currents in K3[Fe(CN)6] redox probe [15, 28]. This new method exhibits good selectivity, high sensitivity, and good stability over time.