Introduction

Caffeic acid (3,4-dihydroxycinnamic acid) is an antioxidant, antineoplastic, and anti-inflammatory compound that widely occurs in various vegetables and fruits. Therefore, CA is commonly added in multiple alcoholic and non-alcoholic beverage products. Monitoring and quantification of CA is a vital interest in food industries during food processing and production of various beverage products and nutraceutical and dietary supplements. Several recent studies have reported CA's toxicity at high dose exposure, especially, CA causes oxidative damage of lymphocytes in the human body. Also, CA shows toxicity linked with radiation and chemotherapy (Prasad et al. 2009). Therefore, it is vital to determine the CA concentration in food products as a quality control procedure in food industries.

Several analytical techniques have been demonstrated to analyze and monitor the CA, including spectroscopic and chromatographic methods (Wang et al. 2004), and electrochemical techniques (Fan et al. 2017; Leite, Santos and Kubota 2014). Compared with other analytical methods, the voltammetry techniques provide rapid and sensitive results without using any sample pretreatment and preparation steps. It is also easy to operate the instrument, and even on-site sample analysis is possible. Notably, there are no reports for highly sensitive sensors for the analysis of CA in food samples. Therefore, it is essential to develop a sensitive sensor to monitor CA in different food samples.

Recently, semiconducting nanomaterials such as transition metal oxides, boron nitrides, and graphitic carbon nitrides (g-C3N4) exhibit different morphologies, including nanosheets, nanohybrids, and nanotubes that have captivated enormous attention among electrochemical researchers due to exemplary catalytic, optical, and electrical properties (Lee et al. 2007; Li et al. 2019; Zhang et al. 2016). These nanomaterials are potentially applied in various applications such as gas sensing (. Han et al. 2019a, b), optical sensors (Sikarwar & Yadav 2015), and other sensing devices (Ding et al. 2018; Karthick Kannan et al. 2019). The g-C3N4 is a semiconducting (two-dimensional, 2D) nanomaterial that has been synthesized via several preparation methods, including hydrothermal, pyrolysis, and chemical vapor deposition methods. The bulk g-C3N4 has a stack layered flaky structure and it has considerable electrical and an optical properties that have been reported recently (Chen et al. 2019; Safaei et al. 2018a, b; Zhang et al. 2019; Zhao et al. 2019). The nitrogen-rich g-C3N4 nanosheets possess a durable mechanical property, an excellent electrical nature, and thermal and chemical stabilities (Lu et al. 2015). g-C3N4 is utilized for various electrochemical purposes such as a metal-free electrocatalyst for different reduction and oxidation reactions (Cheng 2019; Samanta 2019), organic catalysis, and photochemical reactions (Ghafuri 2019; Luo et al. 2019). The primary purpose of using the g-C3N4 nanosheets is to enhance the transport charge and combine the charge carriers' feasibility. Hence, these materials are used as a potential electrocatalyst for different electrochemical reactions (Han et al. 2019a, b). Thus, the g-C3N4 nanosheets are widely used in catalysis and energy storage devices and are excellent suitable materials in the area of electrochemical sensing platforms (Safaei et al.2018a, b).

Recently, Fan et al. have reported the ZnO coated exfoliated graphitic carbon nitride nanosheets composite to enhance the adsorption and detection of hydrogen peroxide (Tian 2017) due to the synergetic effect of conductivity and catalytic activity. Liu et al. reported a flower-like Co3O4/g-C3N4 nanocomposite as an efficient electrocatalyst towards hydrazine sensing (Dai et al. 2017). Lu et al. presented the poly(di-allyl-di-methyl-ammonium chloride)/g-C3N4/ionic liquid composite to detect tetrabromobisphenol A (Zhao et al. 2017). Wang et al. reported that g-C3N4/ɑ-Fe2O3 nanocomposite could be used for energy storage and as a glucose sensor (Liu 2016). Zhao et al. reported 3D g-C3N4/MWCNTs for high, efficient electrochemical simultaneous sensing of dopamine, uric acid, and tryptophan ( Wang et al. 2016). Kim et al. reported cylindrical spongy polypyrrole doped protonated g-C3N4 nanocomposite to analyze cholesterol (Shrestha 2017).

In this work, gold nanoparticles (AuNPs) decorated ultrathin graphitic carbon nitride nanosheet (g-C3N4) composite material was developed using a simple sonochemical technique. The as-prepared g-C3N4/AuNPs composite was utilized to fabricate a modified screen-printed carbon electrode (SPE) for the sensitive electrochemical analysis of CA in various food samples. Different experimental parameters affecting the electrochemical detection of CA were thoroughly optimized and applied to the analysis of the real samples.

Experimental methods

Chemicals and reagents

Auric chloride (99.9% of HAuCl4, A.R grade) and caffeic acid (CA, 99.5%, HPLC grade) were obtained from Sigma Aldrich chemicals (USA). AR grade melamine, sodium acetate, acetic acid, disodium hydrogen phosphate, dihydrogen sodium phosphate, and potassium chloride were purchased from Xilong Scientific Co. Ltd., (Shanghai, China). K4[Fe(CN)6], and K3[Fe(CN)6] were purchased from Showa chemicals Co. Ltd., (Japan). Sulphuric acid was purchased from Fisher scientific company (UK). CA stock solution (5 × 10–5 M) was prepared using ultrapure water (18.2 MΩ cm−1) (Uniss ultrapure water system, Taiwan). Singledisk (5 mm electrode surface) carbon screen-printed electrode (SPE) was obtained from Zensor Corporation (Taiwan).

Instrumentation

All the electrochemical experiments were carried out using the electrochemical workstation (CHI 210D, CH Instruments, USA). A three-electrode system was utilized for the entire analysis (Ag/AgCl electrode as a reference electrode, platinum wire electrode as an auxiliary electrode and SPE was used as a working electrode). The pH of the solutions was analyzed using a SP-2100 Suntex pH meter (Taiwan). Field-emission scanning electron microscopic (FE-SEM) images were observed using Jeol FE-SEM (JSM 6500F, Japan). Powder X-ray diffraction (XRD) analysis was carried out using Bruker D8 XRD advanced model (Germany).

Synthesis of ultrathin g-C3N4

5 g of melamine was placed in a crucible and heated at 550 °C for 2 h in a muffle furnace under a nitrogen atmosphere. The obtained yellow color solid residue was transferred into a beaker to attain room temperature. Later the yellow solid substance was transferred into 200 mL of 5% HCl solution. Then, the mixture solution was ultrasonicated for 3 h at room temperature (Ramalingam et al. 2019). The well-dispersed mixture was centrifuged at 5000 rpm for 10 min, and the obtained residue product was dried in a hot-air oven at 60 °C for 24 h to achieve dull-white colored ultrathin g-C3N4 nanosheet powder, and the obtained material was used for further studies.

Synthesis of gold nanoparticles

Gold nanoparticles (AuNPs) were prepared based on the earlier report (Prabhu 2011) with minor modifications. 38.8 mM of sodium citrate solution was added dropwise into 0.01% of HAuCl4 solution under stirring at 105 °C. Then, the mixture was boiled for 15 min under stirring to achieve citrate-capped AuNPs.

Ultrasonication-assisted preparation of g-C3N4/AuNPs composite

10 mg of ultrathin g-C3N4 nanosheets was added into 2.7 mL of ethanol and ultrasonicated for 30 min followed by the subsequent addition of 300 µL of the as-prepared citrate-capped AuNPs into the above suspension under ultrasonication for 3 h to obtain the AuNPs decorated on the ultrathin g-C3N4 composite material.

Fabrication of ultrathin g-C3N4/AuNPs/SPE sensor

SPE was washed using ultrapure water and ethanol, and the cleaned SPE was dried at room temperature for 30 min. Then, 3 µL of ultrathin g-C3N4/AuNPs nanocomposite was drop casted on SPE and dried under a nitrogen atmosphere at an ambient temperature. The as-prepared nanocomposite modified electrode (g-C3N4/AuNPs/SPE) was evaluated towards electrochemical sensing of CA in different food samples.

Results and discussion

Structural characterization

The structural morphology of the synthesized bulk g-C3N4 was investigated using FE-SEM analysis. FE-SEM image (Fig. 1a) shows a layered type of sheets-shaped g-C3N4. Further, ultrasonication-assisted acid-treated treated g-C3N4 was prepared, and the morphology was investigated using TEM. Figure 1b shows the TEM image of ultrathin g-C3N4, which confirmed the thin nanosheet-like structure. Figure 1c indicates the spherical-shaped morphology of citrate-capped AuNPs. Figure 1d and e show the TEM images of the ultrathin g-C3N4/AuNPs composite that exhibited the uniform distribution/decoration of spherical-shaped AuNPs on the ultrathin g-C3N4 nanosheets. Moreover, carbon, nitrogen, and AuNPs of the as-prepared nanocomposite were also confirmed with EDS analysis, and the results are shown in Fig. 1f.

Fig. 1
figure 1

A FE-SEM images of bulk g-C3N4, B TEM images of g-C3N4 nanosheets, C TEM images of AuNPs, D & E ultra-thin g-C3N4/AuNPs nanocomposite, and F corresponding EDS spectrum of g-C3N4/AuNPs nanocomposite

Figure 2 illustrates the XRD pattern of the as-prepared bulk g-C3N4 and ultrathin g-C3N4/AuNPs nanocomposite. The characteristic diffraction peak at 2θ of 27.5° corresponded to 002 planes of bulk g-C3N4, indicating the interlayer arrangements of aromatic rings of g-C3N4 (Ramalingam et al. 2019). Two characteristic diffraction peaks were observed at 38.2° and 44.3°, corresponding to the Au (111, 200) planes (Lv 2018) of the AuNPs/g-C3N4 nanosheets composite. Therefore, XRD results indicated that the AuNPs were successfully decorated on the ultrathin g-C3N4 nanosheets.

Fig. 2
figure 2

XRD of g-C3N4 and g-C3N4/AuNPs nanocomposite

Electrochemical study

The electrocatalytic nature of the as-prepared g-C3N4/AuNPs coated SPE sensor was evaluated using the cyclic voltammetry technique. Figure 3a indicates cyclic voltammograms recorded at 5 mM of [Fe(CN)6]3−/4− containing 0.1 M KCl (as supporting electrolyte) solution. From the cyclic voltammetric behavior, it was observed that g-C3N4/AuNPs/SPE exhibited higher redox peak currents with lower potential values and the peak-to-peak separation (ΔEp) of 0.13 mV. In contrast, the ΔEp of bare and g-C3N4 were found at 0.40 and 0.24 mV, respectively. The fast electron-transfer kinetics of Fe(CN)6]3−/4−, higher redox peak currents, and the lowest Δep of g-C3N4/AuNPs/SPE were used for further electrochemical experiments.

Fig. 3
figure 3

A Cyclic voltammetric response of different electrodes in 5 mM of [Fe(CN)6]3−/4− in 0.1 M KCl as supporting electrolyte and B EIS response of different electrodes

Electrochemical impedance spectroscopy (EIS) is an important technique to study the interfacial behavior between the electrolyte solution and the developed electrode surface. EIS analysis of bare SPE, g-C3N4/SPE, and g-C3N4/AuNPs/SPE was done in 5 mM of [Fe(CN)6]3−/4− containing 0.1 M KCl supporting electrolyte with the applied frequencies ranging from 0.1 Hz to 100 kHz and the obtained Nyquist form of the results is shown in Fig. 3b. From the EIS data, the half-circular diameter was similar to the charge-transfer resistance (Rct) that belonged to the kinetics' behavior of electron transfer at the electrode surface/electrolyte interface (Hollaender 1997). The Rct of the bare SPE, g-C3N4/SPE, and g-C3N4/AuNPs/SPE were 3358 Ω, 2155 Ω, and 672 Ω, respectively. The bulk g-C3N4 showed a low value of Rct when compared with the AuNPs decorated g-C3N4 nanosheets composite. Thus, the obtained EIS results also ensured that the AuNPs were firmly attached to the ultrathin g-C3N4 nanosheets.

Electrocatalytic studies of g-C3N4/AuNPs/SPE towards detection of CA

The fabricated g-C3N4/AuNPs/SPE sensor was applied to detect CA by the cyclic voltammetric method. Figure 4a shows the cyclic voltammetric response of 60 µM of CA in 0.1 M phosphate buffer (PBS, pH 7.0) with modified electrodes. Bare SPE showed a very low anodic peak current ( – 3.01 µA) and a higher anodic peak potential (0.16 V) due to poor electron-transfer behavior. The g-C3N4/SPE indicated CA oxidation peak current at -6.67 µA at a potential of 0.14 V. The g-C3N4/AuNPs/SPE exhibited the highest peak current at  – 19.62 µA and the lowest potential of 0.10 V due to the g-C3N4 nanosheets being decorated with AuNPs that helped the fast electron-transfer towards CA oxidation. Further, the g-C3N4/AuNPs/SPE sensor was examined at various CA concentrations in 0.1 M PBS (pH7.0) supporting electrolyte by adding various concentrations of CA from 5 to 50 µM (Fig. 4b), indicating a linear increase in the anodic peak current without any surface poisoning effect.

Fig. 4
figure 4

A Cyclic voltammetric response of different modified electrodes in 60 µM of CA in 0.1 M PBS (pH 7) and B Cyclic voltammetric response of g-C3N4/AuNPs/SPE with different concentrations of CA in 0.1 M PBS pH-7.0 at a scan rate of 50 mVs−1

Effect of pH and scan rate towards detection of CA

The influence of the supporting electrolyte pH towards detecting 60 µM of CA was investigated in different pH ranges from 4.0 to 9.0 using the g-C3N4/AuNPs/SPE sensor and the corresponding anodic peak potential, and the current response of the cyclic voltammograms is shown in Fig. 5. From the cyclic voltammetric response, while increasing the pH condition, the anodic peak potential of CA moved towards the negative direction (Thangavelu et al. 2017) exhibited the protons involved in the electrode reaction. However, increasing the pH stimulated the deprotonation of the CA oxidation process. Figure 5b indicates the anodic peak potentials of CA at various pH conditions. A linear regression equation of Epa (V) =  – 0.158pH + 0.4596y with R2 value of 0.9889 was obtained from the linear plot with 0.579 mV/pH as the slope value. However, the highest anodic peak current has been achieved at pH 7.0 (PBS) (Fig. 5a). Therefore, pH 7.0 was selected as the supporting electrolyte for subsequent electrochemical studies.

Fig. 5
figure 5

Cyclic voltammogram of 60 µM of CA in different pH conditions in the range from 4.0 to 9.0 and the inset figure (a) relationship between pH vs. Ipa (b) pH vs. Epa

The effects of the scan rate of g-C3N4/AuNPs/SPE were tested using cyclic voltammetry to understand the charge-transfer behavior of the as-prepared electrode towards the detection of CA in 0.1 M PBS (pH 7.0) at various scan rates, and the results are exhibited in Fig. 6a. The redox peak current of CA showed a gradual increase while increasing the scan rate from 40 to 200 mVs−1, and the redox peak potential was shifted towards the negative direction. However, the anodic peak current was correlated with the square root of scan rate (Fig. 6b), and the linear regression equation was Ipa (µA) = 29.9235(ʋ) + 7.2857 (R2 – 0.9940) and Ipc (µA) = 31.7166(ʋ) + 9.8237 (R2 – 0.9958) for anodic and cathodic peak currents, respectively. The obtained correlation coefficient (R2) value concluded that the entire electrochemical reaction of CA at g-C3N4/AuNPs/SPE was a diffusion-controlled process (Sakthinathan et al. 2017).

Fig. 6
figure 6

A Cyclic voltammogram of different scan rate from 40 to 200 mV s−1 in the presence of 60 µM of CA in 0.1 M PBS (pH 7) B Relationship between the square root of scan rate (ʋ) vs. Ipa and Ipc

Analytical performance

Differential pulse voltammetry (DPV) is a common electroanalytical method to study the different modified electrodes' electrochemical response compared with other cyclic voltammetric techniques. DPV technique is also a beneficial tool to estimate the analytical parameters, including linear range, detection limit, and sensitivity of the target analyte. Figure 7 indicates the DPV response of the as-prepared g-C3N4/AuNPs/SPE at various concentrations of CA from 0.5 to 155 nM (oxidation potential of 0.29 V) in 0.1 M PBS (pH 7.0) as the supporting electrolyte. The obtained anodic peak currents were plotted against the various concentrations of CA, and a linear regression equation (Ipa (µA) = 3.708x + 0.801y) was obtained with the R2 value of 0.9988. The detection limit (LOD) was calculated by 3σ/S = LOD (where, σ- DPV response of blank signals of standard deviation and S-the slope value from the calibration equation) and the LOD of CA was 0.3 nM, and the sensitivity of 152.24 µA/µM cm−2 has been found from the proposed method.

Fig. 7
figure 7

DPV response of different concentrations of CA in 0.1 M PBS (pH7) as supporting electrolyte and CA determination in the range from 0.5 to 155 nM and corresponding calibration plot

Further, the modified g-C3N4/AuNPs/SPE sensor was tested for the detection of CA under dynamic conditions using the amperometric (i–t) technique with 0.2 V as the applied potential and 50 mV s−1 as the scan rate. Figure 8a shows the amperomograms; a stable and speedy electrocatalytic current response was obtained for each addition of CA, which indicated good electrocatalytic behavior of g-C3N4/AuNPs/SPE. The electrocatalytic current response was measured within 4 s during the addition of CA, and ~ 98% of the steady-state anodic current responses were observed. Figure 8b indicates the calibration plot of the relationship between the CA concentrations and their corresponding catalytic currents. The analytical parameters, including linear range, detection limit, and sensitivity, were calculated from the calibration plot and excellent linearity was achieved in the concentration range from 2.5 nM to 1025 nM with the detection limit of 0.53 nM and sensitivity of 138.02 µA/µM cm−2 for CA. The excellent electrocatalytic behavior of the developed g-C3N4/AuNPs/SPE sensor was achieved because of the high surface area of ultrathin g-C3N4 nanosheets and the superior catalytic activity of AuNPs. Further, the analytical performance of the presented work was also compared with other previously reported analytical sensing methods of CA and are tabulated in Table 1.

Fig. 8
figure 8

A Amperometrici-t response of g-C3N4/AuNPs/SPE modified electrode with different concentrations of CA (2.5 to 1025 nM) in 0.1 M PBS pH-7.0 at an applied potential of 0.2 V and B The relationship between the concentration of CA and corresponding anodic peak current response

Table 1 Analytical performance different modified electrode towards CA determination

Interference studies

The fabricated g-C3N4/AuNPs/SPE was tested with various interferences using the amperometric i–t technique in the presence of 50 fold excess quantity of other electroactive analytes, including uric acid (UA), gallic acid (GA), ascorbic acid (AA), catechol (CC), hydroquinone (HQ), epinephrine (EP), folic acid (FA), L-dopa (LD) and dopamine (DA) and the experimental data are exhibited in Fig. 9a. All the abovementioned analytes have not interfered, and the anodic peak current of CA did not show any apparent changes, and only about < 7% of anodic peak current variation of CA was measured because of the addition of different interfering species, the corresponding standard error bar diagram was plotted, and the results are shown in Fig. 9b. The g-C3N4 nanosheets decorated AuNPs nanocomposite showed excellent electrocatalytic behavior in the electrochemical oxidation and detection of CA due to the adsorption of CA on the g-C3N4/AuNPs/SPE surface that facilitated higher charge-transfer for the CA oxidation process. Moreover, the formation of hydrogen bonding interaction between the carboxylic acid functional group present in CA and aromatic triazine in the g-C3N4 also increased the charge-transfer reaction. Therefore, the general interfering analyte species were not involved in the electrocatalytic oxidation of CA even at higher concentrations in sample matrices. Hence, the developed g-C3N4/AuNPs/SPE sensor was highly selective towards the sensing of CA.

Fig. 9
figure 9

A amperometric i-t response of g-C3N4/AuNPs/SPE electrode at different concentration of CA in the presence of 50 fold excess of different interfering species, B Interference study error bar diagram, C Stability study of the modified electrode over 90 days in the presence of 50 µM of CA in 0.1 M PBS (pH 7.0) and D Reproducibility test bar diagram of various g-C3N4/AuNPs/SPE modified electrode towards detection of 50 µM CA in 0.1 M PBS pH-7.0

Stability and reproducibility

Studying the stability of the g-C3N4/AuNPs/SPE is vital to evaluate the sensor’s performance. The stability of the proposed sensor was tested by performing over 90 days using the cyclic voltammetry technique in the presence of 50 µM of CA in 0.1 M PBS (pH 7.0) with a scan rate of 50 mV s−1, and the obtained results are exhibited in Fig. 9c. The g-C3N4/AuNPs/SPE has shown high, long-term stability towards the detection of CA. Further, the reproducibility of the modified electrodes was tested by using five different g-C3N4/AuNPs/SPE and the corresponding cyclic voltammetric current values are shown in Fig. 9d. From the reproducibility results, the relative standard deviation (RSD) was calculated, and the RSD was 2.3%. Hence, the g-C3N4/AuNPs/SPE exhibited good reproducibility towards the detection of CA.

Practical applicability of the g-C3N4/AuNPs/SPE sensor

To study the practical ability of the proposed ultrathin g-C3N4/AuNPs/SPE sensor, the developed electrode was applied to estimate CA in various real samples (food and wine samples) using the DPV technique under optimized experimental conditions. 20 mL of freshly prepared strawberry fruit juice, thyme leaf juice, black fruit juice, and red wine samples were chosen as real samples to determine the CA. 50 mL of fresh juice samples was taken and diluted to 250 mL using the buffer solution (PBS, pH 7.0). 50 mL of the spiked buffered sample solution (5 mM of standard CA solution was used for spiking) was taken for the electrochemical analysis using the standard addition method under the DPV technique. The corresponding DPV response is shown in Fig. 10. The analytical parameter results such as recovery range, RSD values are tabulated and displayed in Table 2. The proposed method for CA analysis was attested with excellent results compared with the earlier reported analytical methods. The average recovery range was found from 98.0% to 100.65% and the RSD was < 3%. Hence, the proposed g-C3N4/AuNPs/SPE would be a suitable sensing material for the practical utility of CA detection.

Fig. 10
figure 10

DPV response for the determination CA in different real samples A Strawberry fruit juice, B Red wine samples, C Thyme leaves and D black fruit juice samples

Table 2 Determination of CA in different food samples using g-C3N4/AuNPs/SPE

Conclusion

AuNPs decorated ultrathin g-C3N4 nanosheet composite material was successfully prepared via a simple sonochemical method. The developed ultrathin g-C3N4/AuNPs/SPE sensor showed an excellent electrochemical behavior towards detecting CA at the neutral pH environment (PBS, pH 7.0). The developed sensor showed excellent electrochemical current signals (lower oxidation potential with higher anodic peak current) with high stability and indicated high suitability for practical application towards the determination of CA in real samples. The g-C3N4/AuNPs/SPE sensor was successfully applied in various food samples to quantify CA, and the achieved results were satisfactory and promising over conventional and recently reported methods. Hence, the proposed sensor can be utilized in routine food analysis and food quality control laboratories for quick, selective, and sensitive quantification of CA in foods.