Introduction

Tryptophan (Trp) is one of the essential amino acids for humans that must be supplied in diet [1]. Its catabolism is a well-studied process in cancer that plays a significant impact on immune system modulation. It can be metabolized by two pathways. The determining enzymes for the first pathway are tryptophan hydroxylase which leads to the synthesis of neurotransmitter serotonin and neurohormone melatonin [1, 2]. So Trp has a role in mood-related disorders such as depression [2, 3]. The other pathway is the kynurenine pathway that is the main pathway for its metabolism which produces kynurenines, which are immunomodulatory, neuroprotective, and neurotoxic intermediates.

The enzyme indoleamine 2,3–dioxygenase 1 (IDO1) initiates this metabolic pathway by converting Trp to formylkynurenine (NFK), which is then converted to kynurenine (Kyn, the first stable metabolite of the kynurenine pathway) [1]. Trp is very important for human health and any change in its plasma levels (around 31–83 µmol L−1) may be related to a number of disorders such as pellagra, chronic kidney diseases, Parkinson’s disease, and metabolic, mental, and sleep disorders [4, 5].

Breast glandular tissue contains cells called epithelium that line the ducts (85%) and lobules (15%), where breast cancer can start [6]. Breast cancer remains the most commonly diagnosed cancer in the world, with over 7.8 million women who have received a diagnosis within the past 5 years still alive [6]. The possibility of improving the prognosis of breast cancer by detecting it early has led to a growing need for global research on biomarkers at various stages of the disease’s development [7]. Among those biomarkers are the aromatic amino acids especially Trp [7, 8]. Several studies have demonstrated a correlation [9,10,11,12,13,14,15] between cancer development and Trp plasma or serum levels that suggest increased catabolism of Trp in cancer patients [9,10,11,12,13,14]. This leads to a decrease in Trp levels and an increased Kyn/Trp ratio, which may contribute to the immunosuppression of cancer patients by promoting the differentiation of T-regulatory cells with potential immunosuppressive effects.

There are several analytical methods for Trp quantitative determination such as spectrophotometric methods [15, 16], spectrofluorimetric [17,18,19], high-performance liquid chromatography (HPLC) [20,21,22,23,24,25], and electrophoretic [26] and electrochemical methods [27,28,29,30,31,32,33]. The utility of electrochemical techniques becomes highly trending due to their high accuracy, high sensitivity, and simplicity [33,34,35]. Recently, pencil graphite electrodes are widely used as they are cheap and available and have remarkable physical and chemical properties [36,37,38].

Carbon dots have emerged as a novel form of carbon-based nanomaterials and earned significant attention in recent years due to their exceptional qualities, including high stability, low-cost fabrication, eco-friendliness, excellent photoluminescence properties, high surface area, and high electrical conductivity. These dots also have numerous functional groups such as carboxyl, hydroxyl, and amino groups, which could enhance redox response and make them a promising source for many research studies [39,40,41].

Polypyrrole (PPy) is a compelling polymer due to its biocompatibility, high stability, sensitivity, malleability, and high electrical conductivity, making it an attractive prospect for various applications. Furthermore, it can operate under neutral pH conditions, as reported in studies before [42,43,44,45,46]. The inclusion of such a conductive polymer raises the proposed method’s conductivity and sensitivity levels. Overoxidation of polypyrrole (Ov-Ox PPy) enriches the resulting film with electron-rich oxygen-based groups, such as carbonyl and carboxyl groups, which enhance the accumulative effect of the Ov-Ox PPy film. The addition of high conductivity and accumulative effects of Ov-OX PPy film on the large surface area derived from synthesized carbon dots nanotubes results in a highly applicable and sensitive method for determining Trp and using it as a biological marker in cancer patients.

Therefore, we aim in this work to develop a novel electrochemical sensor for the biological determination of Trp in serum samples of both healthy and breast cancer–suffering females. We fabricate a new pencil graphite electrode modified with overoxidized polypyrrole/deposited carbon dot film (Ov-Ox PPy/CDs film). This film provides a porous coating surface with molecular sieve properties. This film increases the selectivity and sensitivity of the method for the determination of Trp in serum samples. The method is proposed for the determination of Trp as an essential biomarker in healthy and breast cancer women and to determine if there is a significant difference between Trp serum levels in both cases.

Experimental

Chemicals and materials

All chemicals used in this work were of analytical grade and were used without further purification. Trp, pyrrole, phosphoric acid, boric acid, and sodium hydroxide were purchased from Sigma-Aldrich (Steinheim, Germany). Potassium ferricyanide and sulfuric acid were obtained from Fluka, Buchs, Switzerland. Hydrochloric acid, glacial acetic acid, and citric acid were purchased from El-Nasr, Egypt. The supporting electrolyte used in the electrochemical detection of Trp was 0.04 M Britton Robinson buffer (B.R.) and the pH was adjusted by 0.2 M NaOH. All solutions were prepared using double distilled water.

Instrumentation

The electrochemical work was done using a Princeton VersaSTAT MC (VersaSTAT 3, Model RE-1, Princeton Applied Research, AMETEK, USA). A three-electrode system was used that consists of a bare/modified PGE, Ag/AgCl (saturated KCl), and a platinum wire as the working, reference, and auxiliary electrodes, respectively. The surface morphologies of the bare and modified electrodes were studied by scanning electron microscopy (SEM; JEOL JSM-7500F instrument; Oxford, USA). The prepared carbon dots were investigated using transmission electron microscopy (TEM) (TECNAI G2spirit TWIN microscope, operating at 120 kV and conducted by VELETA camera). Specimens for TEM are prepared by ultrasonic dispersion of the carbon dot solution and putting a droplet of the solution on a copper microscope grid covered with carbon.

A Nicolet 6700 FT-IR advanced gold spectrometer, supported with OMNIC 8 software (Thermo Electron Scientific Instruments Corp., WI, USA), was used for data processing. The spectrophotometric measurements were carried out using a double‐beam UV-VIS spectrophotometer (Shimadzu, Kyoto, Japan) model UV‐1601 PC connected to an IBM‐compatible computer, with UVPC personal spectroscopy software version 3.7. The spectrofluorimetric spectrum was measured using a Shimadzu RF-5301 spectrofluorometer (Kyoto, Japan). A pH meter (Hanna Instruments, Sao Paulo, Brazil) was utilized for recording the pH values of the buffer solutions. All the measurements were conducted at room temperature.

Experimental procedures

Synthesis of carbon dots (CDs)

The method of carbon dot synthesis is based on the thermal decomposition procedures previously reported in the literature [47]. Briefly, 2.0 g of citric acid (as the carbon source) was pyrolyzed on the hot plate at 200 °C for 30 min and then neutralized with a solution of 0.2 N NaOH. The synthesized carbon dots were examined using a transmission electron microscope (TEM) to determine their shape and particle size.

Preparation of the different modified electrodes

Pencil graphite electrode bare (PGE bare) was first immersed overnight in the prepared solution of carbon dots. The modified CDs/PGE electrode was dipped into a 10-mL cell containing 0.05 M pyrrole solution (dissolved in 0.1 M KClO4) and then cyclic voltammetry was carried out in a potential range from  − 0.9 to 1.0 V at a scan rate of 0.1 V/s for 10 cycles.

Subsequently, after electropolymerization of pyrrole, the modified polypyrrole/carbon dots/PGE (PPy/CDs/PGE) electrode was washed carefully with distilled water; then, the overoxidation process for the prepared polypyrrole film was performed by cyclic voltammetry in 0.05 N NaOH solution in the potential range  − 0.9 to 1.0 V with a scan rate at 0.1 V/s for succussive 10 cycles. The modified overoxidized PPy/CDs/PGE was washed thoroughly with distilled water; then, it became ready for measuring Trp in Britton Robinson buffer at pH 2.7.

Electrochemical procedures

The modified electrode (Ov-Ox PPy/CDs/PGE) was used in square wave voltammetry to measure Trp at a pH of 2.7 in B.R. buffer, with an accumulation potential of 0.2 V, frequency of 250 Hz, step height of 9 mV, pulse height of 10 mV, and deposition time of 90 s. In this study, the reference electrode used for measuring all potentials was an Ag/AgCl electrode.

Electrochemical impedance spectroscopy (EIS)

The electron transfer at the electrode-solution boundary was investigated using electrochemical impedance spectroscopy (EIS) study. EIS for the prepared electrodes was studied in 1.0 mmol L−1 of K3[Fe(CN)6] solution in 0.5 mol L−1 KCl, which was adjusted by 1.0 mol L−1 HCl to pH 2.5 at the open circuit potential over the range 1.0 Hz to 100 kHz. The Nyquist plots to compare the unmodified and modified electrodes are used to illustrate the EIS results. The diameter of the semi-circular portion used to study the electron transfer limited process was equal to the charge transfer resistance (Rct).

Sample collection and preparation

Samples were obtained from fourteen healthy control women (20–55 years) and 17 breast cancer women patients (aged 30–60 years) from the Assiut University Hospital. The healthy control volunteers had at least 2 weeks before the trial without experiencing any physical illness. The study protocol was approved by the Medical Ethics Committee of Assiut University (IRB approval number is 17300799). Human blood serum samples were collected from both healthy female volunteers and breast cancer females by collecting the venous blood following overnight fasting. The tubes were allowed to stand for about 30 min followed by centrifugation at 3000 rpm for 15 min. 0.5 mL of the obtained separated serum samples was first diluted 20 times with BRP (0.04 M, pH 2.75) then moved to the electrochemical cell for the analysis. After that, the electrochemical procedure was performed as discussed before in “Electrochemical procedures.”

Results and discussion

Characterization of the synthesized carbon dots

Because of its great resolution, a transmission electron microscope (TEM) can be used to identify the ultrastructure of samples. This technique can be used to investigate the morphology of the prepared carbon dots in order to learn more about their shape, size, and dispersion. In the captured images, the synthesized carbon dots appeared as a round or spherical shape with a particle size from  ~ 10 to  ~ 50 nm as shown in Fig. 1A. To verify the particle size and their distribution, ImageJ (a popular image analysis software) was used to measure the particle size of carbon dots (CDs) in transmission electron microscopy (TEM) images. The software allows users to analyze digital images and quantify various properties, including particle size, shape, and distribution.

Fig. 1
figure 1

A Typical TEM picture of CDs prepared using 2.0 g of citric acid (CA). Inset: high magnification TEM picture demonstrated the morphology of the nanoparticles prepared and carbon dot size distribution determined with ImageJ software. B Typical FT-IR spectra of citric acid (CA) and the synthetic carbon dots (CDs). C UV spectrum of the synthetic carbon dots and citric acid. Inset: photographs under white light (brown color) and UV lamp 365 nm (blue color) and D emission spectra of the synthesized carbon dots with different excitation wavelengths (300–400 nm)

To verify the surface functional groups of the manufactured C-dots, FT-IR spectra were used. According to Fig. 1B, there are clear changes between the FT-IR spectra of citric acid and the synthesized CDs. A broadening of O-H stretching at 3292 cm−1, C = O stretching at 1749 and 1701 cm−1, and C-OH stretching at 1164 cm−1 was detected in citric acid (precursor). While the synthetic carbon dots exhibit peaks at 1591 and 1398 cm−1 that are thought to be caused by the stretching vibrations of the carboxylate group in symmetric and asymmetric patterns, respectively [48, 49]. Furthermore, the broad intense peak at 3429 cm−1 can be ascribed to the O-H stretching vibration of the carbon dots [50, 51].

The optical properties of the synthesized carbon dots with citric acid as a starting material were investigated and explained using optical spectra. The absorption maxima of the CDs can be observed in the UV-visible absorption spectra (Fig. 1C) at 238 nm and 365 nm, respectively. The first peak at 238 nm can be attributed to π–π* transitions while the broad peak at 365 nm can be attributed to the n–π* transitions of the carbonyl bond (C = O) [52, 53]. The spectrum of citric acid shows a complete conversion of the citric acid to CDs. This suggests that the synthesis process was successful in producing CDs from citric acid. The manufactured CDs also have strong fluorescent characteristics. The maximum excitation wavelength for the manufactured CDs is 360 nm, and the maximum emission wavelength is 460 nm. The excitation-dependent emission phenomena were demonstrated when excited between 300 and 400 nm as shown in Fig. 1D. It’s possible that this is related to how the different sizes and surface states are distributed. The fluorescence intensity changed with changes in excitation wavelength reaching a maximum intensity at λex = 360 nm after that the fluorescence intensity decreased. The change in excitation wavelength did not affect the position of emission wavelength at 460 nm. This may be attributed to the monodisperse nature of the particles synthesized [54].

SEM characterization of the modified electrodes

By comparing the different electrodes (bare PGE, CDs/PGE, PPy/PGE, and Ov-Ox PPy/CDs/PGE) under the electron microscope, it was found that bare PGE has large pores, grooves, and cavities and staked flakes at different sizes as shown in Fig. 2A. As compared to bare PGE, the CDs/PGE electrode indicated that the deposited CDs appeared as small aggregations on the surface of PGE (Fig. 2B), enhancing the electrode’s surface area. While the surface of PPy/PGE developed enormous flakes or scales that covered the whole surface of the electrode after pyrrole polymerization on the surface of PGE. This could have a significant impact on the surface area and conductivity of the electrode (Fig. 2C). The Ov Ox-PPy/CDs/PGE combined the advantages of the two electrodes. The electrode surface is covered with polypyrrole scales with scattered tiny, protruding carbon dot particles inside of it, as shown in Fig. 2D. The electrode’s exposed surface area increased noticeably as a result.

Fig. 2
figure 2

SEM pictures of A bare PGE. Inset: high magnification SEM picture indicating the grooves and the craves at the surface. B Carbon dot–modified PGE (CDs/PGE). Inset: high magnification SEM picture indicating the small aggregations at the electrode surface. C Polypyrrole-modified PGE (PPy/PGE), and D PGE modified with carbon dots and overoxidized polypyrrole polymer (Ov-Ox PPy/CDs/PGE). Inset: high magnification SEM picture indicating the scales scattered within the CD aggregations. E Square wave voltammograms of 4.0 × 10−5 mol L−1 Trp solution at bare PGE, CDs/PGE, PPy/PGE, PPy/CDs/PGE, and Ov-Ox PPy/CDs/PGE. F Nyquist plot that indicates the impedance of the bare and different modified electrodes. Inset: high magnification of the first part of the EIS spectra

Electrochemical behavior of the bare and different modified electrodes

SWV diagrams for 4.0 × 10−5 mol L−1 Trp in 0.04 M BRP (pH 5.0) on both the unmodified and different modified electrodes are shown in Fig. 2E. It can be demonstrated that on utilizing the bare electrode, a very small and broad peak attributed to the electrooxidation of Trp appeared. While, on utilizing the other electrodes (CDs/PGE, PPy/PGE, and PPy/CDs/PGE without overoxidizing polypyrrole), the peak current of Trp gradually increased. While the overoxidized PPy/CDs/PGE exhibits a synergistic impact of both modifiers, including the benefits of polypyrrole overoxidation and the addition of more functional groups to the electrode’s surface, which improves peak shape and intensity.

Electrochemical impedance spectroscopy (EIS) is a powerful analytical technique used to study the electrical properties of electrochemical systems, including bare and modified electrodes. By applying an alternating current (AC) signal to the electrode and measuring the resulting potential response, EIS can provide information about the resistance and capacitance of the electrode-electrolyte interface, as well as the kinetics of charge transfer reactions. When comparing the behavior of bare electrodes and modified electrodes using EIS, several parameters can be examined. For example, the impedance or resistance of the electrode-electrolyte interface can be measured, which can provide insights into the effectiveness of surface modifications in increasing or decreasing the electrode’s reactivity. The charge transfer resistance is inversely proportional to the rate of electron transfer at the electrode surface. In other words, a higher charge transfer resistance indicates a slower rate of electron transfer, while a lower charge transfer resistance indicates a faster rate of electron transfer.

The different behaviors of the bare electrodes and different modified electrodes were compared also using the electrochemical impedance spectroscopy (EIS). Figure 2F shows Nyquist plots for PGE bare, CDs/PGE, PPy/PGE, PPy/CDs/PGE, and Ov-Ox PPy/CDs/PGE. The semi-circular model was more noticeable in the Ov-Ox PPy/CDs/PGE other than the other electrodes, whereas the linear model was more prominent in the CDs/PGE, PPy/PGE, and PPy/CDs/PGE electrode especially at higher frequencies values. Ov-Ox PPy/CDs/PGE was observed to have the lowest value after the circle fitting of the curves to determine the values of charge transfer resistance [55, 56]. For PGE bare, CDs/PGE, PPy/PGE, PPy/CDs/PGE, and Ov-Ox PPy/CDs/PGE, the fitted values of Rct were found to be 8241, 4734, 2617,1267and 616 ohm. The results indicated that the polypyrrole polymer and carbon dots adsorbed on the PGE surface enhance electron transfer and reduce resistance at the electrode-solution interface. Therefore, the use of surface modifications using carbon dots and polypyrrole polymer film can be an effective strategy for improving the performance of electrochemical systems, particularly in applications where efficient electron transfer is critical.

Electrochemical characterization of the bare and different modified electrodes

The electrochemical activities of the unmodified and modified electrodes were examined in a solution of 1.0 mmol L−1 K3Fe(CN)6 in 0.5 mol L−1 KCl. Figure 1S (A–D) shows the CV of the various electrodes at different scan rates. When compared to the other electrodes, it could be demonstrated that the redox peaks at the Ov-Ox PPy/CDs/PGE electrode increased significantly. It was also observed that the peak current of K3Fe(CN)6 increased linearly with scan rates squared. Randles–Sevcik equation could be used for the reversible process as follows:

$${I}_{\mathrm{p}}=2.69\times {10}^{5} {\mathrm{An}}^{3/2}{\mathrm{Dr}}^{3/2}{C_0\upsilon }^{1/2}$$

where C0 is the reactant concentration (1 mM K3Fe(CN)6), Ip is the peak current, A is the surface area of the electrode, n is the number of electrons included (n = 1) in the K3Fe (CN)6 redox system), DR is the K3Fe(CN)6 diffusion coefficient (7.6 × 10−6 cm2 s−1), and υ1/2 is the square root of the scan rate.

The surface area A for each electrode can be determined using the Randles–Sevcik equation using the slope obtained from the plot of Ip versus υ1/2 at the various scan rates for the four prepared electrodes; the surface area A for each electrode can be calculated using the Randles–Sevcik equation. It was clear that A values were 8.78, 12.78, 18.19, and 20.96 mm2 for bare PGE, CDs/PGE, PPy/PGE, and Ov-Ox PPy/CDs/PGE respectively.

According to the results, when compared to the other produced electrodes, Ov-Ox PPy/CDs/PGE had the highest surface area. This increase in peak current could be correlated with the improvement in effective surface area.

Optimization of the experimental conditions

Carbon dot deposition on the surface of the bare electrode

To establish the optimal time for the deposition of a carbon dot layer on the electrode surface, PGE was dipped in the CD solution for various periods of time, including 10, 15, 30, 60, and overnight. It was found that overnight immersion of the PGE produced the highest and most repeatable current intensity for the peak of Trp oxidation. As stated in “Electrochemical behavior of the bare and different modified electrodes,” CDs’ high surface area and high surface-to-volume ratio provide a high degree of contact with Trp molecules. This behavior is attributed to electrostatic interactions and hydrogen bonding that occurred at the electrode surface. The deposited CDs can be rich in functional groups such as carbonyl (C = O) and hydroxyl (-OH) groups that increase the surface area and encourage the electrostatic interactions at the surface of the modified electrode (CDs/PGE) [57].

Factors affecting the electropolymerization of pyrrole

The amount and performance of the polymer films produced as a result of this sophisticated electrochemical process used to prepare these conducting polymers are influenced by a number of variables. The kind and amount of the monomer, the cell environment, the solvent, the applied voltage, and the pH are among the variables that significantly affect the electrooxidation reaction and the film’s quality [58]. Therefore, optimizing these parameters in a single experiment is difficult.

Several polymerization conditions of pyrrole were studied to indicate its influence on Trp oxidation such as polymerization medium, concentration of pyrrole, deposition potential, and the number of cycles as shown in Fig. 2S (A, B, and C). Trp concentration used in all experiments was 4.0 × 10−5 mol L−1 at pH 3.0 of 0.04 mol L−1 B.R. buffer.

Pyrrole polymerization was tested in water and buffer solutions with a pH range from 2.7 to 7.0 that contained 0.04 mol L−1 B.R. buffer. It was found that the best results were obtained using water as the medium for polymerization.

Different pyrrole concentrations were investigated also to obtain the optimum concentration that gives the best results. As seen in Fig. 2SA, a range of concentrations from 0.01 to 0.08 mol L−1 were tried to be polymerized on the electrode’s surface. The oxidation peak current of Trp was shown to increase with pyrrole concentration, reaching a maximum at 0.05 mol L−1 of pyrrole. Above this concentration, the current intensity was reduced because the electrode surface was blocked.

The effect of polypyrrole deposition potential was also investigated using different potentials ranging from  − 1.0 to 0.0 V to reach the best value suitable for its deposition. Taking the Trp oxidation peak as a guide, it was found that the best Trp oxidation current and peak shape were obtained at  − 0.9 V, which was selected as the optimal potential to be used for the remainder of the investigation as shown in Fig. 2SB.

The number of polymerization cycles has a significant impact on the thickness of the polypyrrole layer that is deposited on the electrode surface. As shown in Fig. 2SC, the Trp oxidation current response increased as the number of cycles increased, reaching a maximum value at 10 cycles. The oxidation sites on the electrode surface are blocked when the number of cycles increases over 10, which results in a reduction in the current responsiveness.

Polymerization and overoxidation mechanism

Unique characteristics of conducting polypyrrole film (PPy) are its simplicity in synthesis (one-step procedure), environmental stability, and high electrical conductivity [59]. The monomer units of pyrrole are primarily bonded at α-α positions to form the polymer as shown in Fig. 3. Because of the alternating single and double bonds, which generate some delocalization of the electron density within the molecule, PPy is conductive [60]. The main benefit and advantage of the electrochemical polymerization of pyrrole on the surface of the electrode is the ability to control the thickness of the film deposited. This can be done by optimization of the possible affecting factors during its synthesis such as monomer concentration, pH of the medium, deposition potential, and number of cycles used for polymerization. All these factors are optimized to reach to the best conditions used for polymerization that give the highest oxidation peak current for Trp. After deposition of PPy polymer film, overoxidation is applied. Overoxidation is one of the irreversible reactions that are applied on PPy molecule. High-density carbonyl groups (C = O) generated at the electrode surface as a result of anodic overoxidation that carried out in an alkaline media, as shown in Fig. 3. This behavior (ion exchange equilibrium mechanism) promoted the accumulation of cationic species on the electrode’s surface (like Trp in an acidic medium). The preferential interaction between the investigated molecule and the overoxidized polymer is caused by the presence of these carbonyl groups (Trp).

Fig. 3
figure 3

Electropolymerization of pyrrole and overoxidation of the polymer on the surface of the electrode

Scan rate effect on the electrooxidation of Trp using the modified Ov-Ox PPy/CDs/PGE

Generally, the electrooxidation of Trp exhibits only one anodic peak. Although one small reduction (Ep = 0.28 V) and two weak oxidation peaks (Ep = 0.35 and 0.6 V) were observed as shown in Fig. 4A. In this study, we have focused on the main peak (Ep = 0.9 V) that corresponds to the oxidation of Trp and increased with increasing its concentration. While the other small peaks are explained before by Sakthivel et al. [61] and Oikawa and Yonemitsu [62]. They reported that these peaks are attributed to the selective oxidation of the side chain at C-3 indole. The influence of the scan rate on the oxidation of Trp on the surface of Ov-Ox PPy/CDs/PGE was investigated by CV. Utilizing the Ov-Ox PPy/CDs/PGE, several scan rates between 0.02 and 0.10 Vs−1 were used to determine how they affected the oxidation peak current of Trp (1.0 × 10−4 mol L−1) in B.R. buffer (pH = 2.75) as shown in Fig. 4A. It is critical to establish whether adsorption or diffusion is controlling the reaction on the surface of the modified electrode. The following equation shows a linear relationship between the oxidation peak current (Ip) μA and the square root of the scan rate (ν1/2) (Vs−1)1/2:

Fig. 4
figure 4

A Cyclic voltammograms to investigate the effect of different scan rates (0.02 to 0.10 V s−1) on the electrochemical response of 1.0 × 10−4 mol L−1 Trp solution. B Correlation between log scan rate (log ν) and log peak current (log I) or potential (V). C 3D square wave voltammograms for the influence of different pHs on the oxidation peak of 4.0 × 10−5 mol L−1 Trp solution ranged from 7.0 to 2.75. D Effects of pH on the peak potential and current of 4.0 × 10−5 mol L−1 Trp solution at PPy/CDs/PGE. Deposition time, 90 s; step height, 9 mV; pulse height, 10 mV; deposition potential, 0.2 V; and frequency, 250 Hz

$$(\mathrm{Ip}_{\mathrm{Trp}})(\mu \mathrm{A}) = 365.79 \;\mathrm{v} ^{1/2} (\mathrm{Vs}^{-1})^{1/2} -33.66 \qquad (\mathrm{r} = 0.9930)$$

To support the mechanism on the surface of the modified electrode, the correlation between the logarithms of the scan rate and the oxidation Ip (log ν, log Ip) was investigated. The adsorption diffusion-controlled mechanism is confirmed by the linear relationship between them (Fig. 4B), with a slope of 0.888, which is shown in the following equation:

$$(\log \,\mathrm{IPT}_{\mathrm{rp}})(\mu \mathrm{A}) = 0.89 \log \mathrm{v} \; (\mathrm{Vs}^{-1}) + 2.82 \qquad (\mathrm{r} = 0.9888)$$

Additionally, it was found that Ep and log ν have a linear relationship, and that as applied scan rates are increased, peak potential values change to greater values (Fig. 4B).

This change demonstrated that Trp oxidation on the changed electrode surface is irreversible.

A range of scan rates (0.02 to 0.10 Vs−1) were used. The following equation shows the linear relationship:

$$\mathrm{Ep}(\mathrm{V}) = 0.08 \log \mathrm{v} (\mathrm{Vs}^{-1}) + 0.96\; (r = 0.9968)$$

According to the Lavarion theory [63], the following equation can be used to determine how many electrons are involved in the Trp oxidation process for the entirely irreversible electrode process:

$$\mathrm{Slope}=2.303\mathrm{RT}/\mathrm{\alpha nF}$$

where n is the number of electrons participating in the rate-determining step during the oxidation, R is the universal gas constant (8.314 J mol−1 K−1), T is the absolute temperature (298 K), α is the transfer coefficient, and F is the Faraday constant (96,480 C mol−1). The number of electrons (n) was calculated using the slope of the correlation between Ep and log ν. The slope’s value is 0.077, and the correlated αn value is 0.76. At α = 0.5, it was assumed that n would be 1.52, which may be rounded to two electrons and agrees with earlier reports [61, 64, 65].

Effect of pH and supporting electrolytes

The electrochemical behavior of the modified electrode can be influenced by a number of factors, including the pH of the solution. Changes in pH can affect the redox properties of the analyte or the modified electrode surface, which can in turn influence the electrochemical signals obtained. In Fig. 3D, it appears that the oxidation peak current of Trp on the modified electrode increases with decreasing pH, from pH 7.0 to pH 2.75. This suggests that the electrochemical response of the modified electrode is sensitive to changes in pH. To further understand the effect of pH on the electrochemical signals obtained from the modified electrode, it would be important to consider the redox properties of Trp and the modified electrode surface under different pH conditions. For example, changes in pH could affect the protonation state of the Trp molecule, which could in turn influence its electrochemical behavior. Alternatively, changes in pH could affect the charge density or surface chemistry of the modified electrode, which could influence the electrostatic interactions between the electrode surface and the analyte.

As illustrated in Fig. 4C and D, it was observed that the oxidation peak current of 4.0 × 10−5 mol L−1 Trp solution is high in the acidic medium with the maximum response at pH 2.75. Upon making a correlation between oxidation peak potential Ep and pH, it was found that shifting the solution pH from 2.75 to 7.0 caused the peak potential of Trp oxidation to shift to the negative portion according to the following equation:

$$\begin{array}{cc}\mathrm{Ep}\left(\mathrm{V}\right)=1.04-0.43\; \mathrm{pH}& \left(\mathrm{n}=6, \mathrm{r}=0.9813\right)\end{array}$$

As can be seen, the slope’s absolute value (0.043) was approximately close to the predicted value (0.059 V/pH at 298 K), suggesting that there were an equal number of protons and electrons involved in the electrochemical reaction. Different other acidic media were investigated such as 0.1, 0.01 M HCl and 0.1, 0.01 M H2SO4, and the best response of the oxidation current of Trp was obtained using the B.R. buffer (pH 2.75), so it was chosen for the subsequent experiments in this study.

The influence of anions in various supporting electrolytes on the oxidation current of Trp was also investigated. Different salts were examined such as KNO3, KCl, and KCLO4 in an equal concentration of 0.1 M, and the Trp oxidation current was monitored. It was found that the best current response was observed in the supporting electrolyte solution of 0.04 M B.R. buffer (pH 2.75) containing KNO3. Different concentrations of KNO3 (from 0.01 to 0.1 M) were studied to optimize the optimum concentration required to obtain the best result. It was found that a concentration of 0.05 is the optimum one with the highest peak current for Trp.

Effect of voltammetric parameters

Effect of accumulation potential and time

The accumulating potential of Trp was investigated in the range of  − 0.5 to + 0.4 V, as shown in Fig. 3SA. Trp’s accumulation potential was increased, causing an increase in peak current that reached a maximum at  + 0.2 V and subsequently decreased. This is why  + 0.2 V was chosen for further investigation. For accumulation time, as it is indicated in Fig. 3SB, when increasing the accumulation time, there was an increase in peak current response reaching the maximum at 90 s. Then, a decrease in the current response was monitored that may indicate the saturation of the electrode surface.

Effect of frequency, pulse height, and step height

Additionally, the 5–30 mV pulse height, 3–20 mV step height, and 10–250 Hz frequency of SWV variables were examined. It was discovered that the ideal combination for achieving the highest sensitivity and best peak shape was a pulse height of 10 mV, step height of 9 mV, and frequency of 250 Hz. Optimizing these parameters is important for achieving accurate and precise measurements in SWV-based analytical methods. The pulse height determines the amplitude of the voltammetric signal, while the step height determines the resolution of the measurement. The frequency of the SWV signal affects the sensitivity and noise level of the measurement.

Oxidation mechanism

According to the previous literature [66, 67], Trp on the electrode surface undergoes an irreversible oxidation pathway. The achieved value of αn during the scan rate study demonstrated that two electrons were involved in the oxidation of Trp on the modified electrode, as previously mentioned in “Scan rate effect on the electrooxidation of Trp using the modified Ov-Ox PPy/CDs/PGE.” A slope of 42 mV per pH unit, which is near the theoretical value of 59 mV per pH unit. This slope indicates that the oxidation pathway of tryptophan on the modified electrode involves an equal number of protons and electrons, as shown in Fig. 5. Understanding the electrochemical behavior of tryptophan on the modified electrode is important for optimizing the electrode for use in analytical applications, such as the determination of tryptophan in biological samples.

Fig. 5
figure 5

The reported mechanism of tryptophan oxidation

Analytical performance

SWV was used to carry out the quantitative analysis of Trp. Under the optimal conditions, the Trp concentration was proportional to the oxidation peak current of Trp within two concentration ranges of 0.01 to 0.09 µmol L−1 and 0.5 to 9.0 µmol L−1, respectively, and with a linear strong correlation (r = 0.9996 and 0.9979 for the two calibration ranges). Table 1 and Fig. 6A and B show these results, and the regression equations are shown as follows:

Table 1 Regression equations parameters for quantitative determination of Trp in their standard solutions (n = 6)
Fig. 6
figure 6

A Representative square wave voltammograms and B the corresponding calibration curves at PPy/CDs/PGE in B.R. buffer at pH 2.75 for two linear ranges (0.01 to 0.09 µmol L−1 and 0.5 to 9.0 µmol L−1) Deposition potential, 0.2 V; deposition time, 90 s; step height, 9 mV; frequency, 250 Hz; and pulse height, 10 mV

$$\begin{array}{cc}{I}_{\mathrm{p}}\;\left(\mathrm{\mu A}\right)=2.97+190.31\; \mathrm{C }\;\left(\mathrm{\mu mol }{\mathrm{L}}^{-1}\right)& \left(r=0.9966\right)\left(\mathrm{for}\; 1\mathrm{st}\; \mathrm{range}\right)\end{array}$$
$$\begin{array}{cc}{I}_{\mathrm{p}}\;\left(\mathrm{\mu A}\right)=22.35+8.66\; \mathrm{C }\;\left(\mathrm{\mu \;mol\; }{\mathrm{L}}^{-1}\right)& \left(r=0.9979\right)\left(\mathrm{for} \;2\mathrm{nd} \;\mathrm{range}\right)\end{array}$$

LOD and LOQ are essential factors to consider while estimating the method. The results of the first linearity range were used to estimate the detection limit (3.3σ/S), which was determined to be 0.003 µmol L−1, and the quantitation limit (10σ/S), which was determined to be 0.009 µmol L−1, where the standard deviation of intercept is represented by σ, and the slope is represented by S. These results showed that the electrode could detect Trp in biological fluids even at very low concentrations.

By analyzing six samples (for intra-day study) and 18 samples at three successive days (for inter-day study) for a concentration of 7.0 μmol L−1, the proposed method’s intra-day and inter-day precision study is evaluated. The intra-day precision and inter-day precision % RSD values for the peak current of Trp were 2.09 and 3.33, respectively. The results demonstrate that the procedure can be regarded as accurate and reliable.

The robustness was also evaluated for the proposed method by estimation of the effect of little variations in the variables of the experiment on the recovery of the compound used (Trp). The robustness of the method indicates its ability to withstand these minor changes. Different parameters were studied (using 4.0 × 10−5 mol L−1 of Trp solution) such as medium pH (2.75 ± 0.25), accumulation potential (0.2 ± 0.01 V), and accumulation time (90 ± 2 s). Percentage recoveries in all experiments were ranged from 98.34 to 102.04 indicating that small changes in the method parameters have no impact on how well the proposed approach is performed in determining Trp and whether it can be used to analyze cancer patients’ serum in the future.

Clinical applications

Based on recent studies, it was indicated that Trp metabolism is affected in breast cancer patients. This phenomenon is based on that catabolism of Trp increased through the kynurenine pathway leading to increased Kyn/Trp ratio [4, 9, 11,12,13,14, 68]. This information promotes the use of Trp as a biomarker for breast cancer females. Through our proposed method, we were able to estimate serum Trp concentrations in control and breast cancer females. Through these data, the Trp metabolic pathway may be a suitable target for monitoring the prognosis of breast cancer in females. Our proposed method was able to measure Trp in serum after dilution 20 times with B.R. buffer pH 2.75 without the need for any other sample treatment. Samples from healthy volunteers and breast cancer patients were analyzed to explore if there were significant differences in the level of Trp between the two groups.

As is shown in Fig. 7A and B, compared with healthy volunteers, serum levels of total Trp in cancer patients decreased significantly. Table 2 shows that there was a significant difference between the results in healthy control subjects (n = 14) and cancer patients (n = 17) (p value = ˂ 0.05). The data were analyzed by ANOVA test and statistical comparisons between the group of diseased individuals (cancer patients) and the group of healthy individuals (control group) were performed using F-test and t-test. The F-test is used to compare the variances of the two groups while the t-test provides a useful tool for evaluating the differences in means between groups. It was found that the calculated F-value is greater than the critical F-value and it can be concluded that the variances are significantly different. It was found also that the calculated t-value is greater than the critical t-value and it can be concluded that the variances are significantly different. This confirms that the presence of cancerous cells is associated with increased variability in Trp serum level; therefore, it can be used as a biomarker in breast cancer cases. These results suggest the possibility of Trp as a biomarker and the modified Ov-Ox PPy/CDs/PGE as a biosensor for Trp in human blood serum.

Fig. 7
figure 7

A Bar graphs for tryptophan serum concentrations in normal controls and diseased individuals. B Radar chart of tryptophan serum concentrations. The orange-colored section represents normal control while the blue-colored represents the diseased individuals

Table 2 Statistical comparisons between control subjects and cancer patients

Selectivity and interference study

Selectivity study for the voltammetric determination of tryptophan in serum should aim to evaluate the ability of the method to accurately detect tryptophan in the presence of other potentially interfering substances that may be present in serum. We tested the ability of the proposed method to accurately and specifically evaluate Trp under the optimum conditions of the proposed method in the presence of potentially interfering substances such as other amino acids (glycine, alanine, phenylalanine, and tyrosine) or other small molecules such as ascorbic acid (AA) and uric acid (UA). This can be done by analyzing serum samples spiked with known concentrations of Trp and interfering substances at various ratios. It was found that 100-fold concentrations of glycine, alanine, phenylalanine, and 50-fold concentrations of (AA) and (UA) had no effect on Trp oxidation (signal change  ≤  ± 5.0%, high tolerance limit). However, tyrosine has an oxidation peak very close to Trp (0.70 V). The study found that even a fivefold concentration of tyrosine did not have a significant effect on the determination of Trp, which suggests that the method may still be suitable for the analysis of serum samples that contain low concentrations of tyrosine.

Comparison of the proposed method with previously published methods

Compared to other analytical methods, such as chromatography, voltammetric techniques offer several advantages, including high sensitivity, selectivity, speed, cost-effectiveness, and minimal sample preparation. However, the choice of analytical method ultimately depends on the specific requirements of the application and the properties of the analyte being analyzed. The comparison of the newly proposed method and the previously published chromatographic (HPLC) methods is presented in Table 3. Overall, when compared with voltammetric methods, HPLC has several disadvantages for the analysis of biological samples, including extensive sample preparation (including extraction, filtration, and purification, to remove interfering substances from the sample), lack of selectivity, high cost, slow analysis time (depending on the complexity of the sample matrix and the separation method used), and limited sensitivity.

Table 3 Comparison of the proposed methods with some reported HPLC methods

When comparing the newly developed method with previous voltammetric studies, there are several factors to consider, including the sensitivity, selectivity, speed, cost-effectiveness, and ease of use of the new method compared with the previous methods. The newly developed method offers higher sensitivity than the other voltammetric studies, possibly due to the synergistic effect of carbon dots and polypyrrole film as indicated in Table 4. This may allow for more accurate detection of analytes at lower concentrations, which could be useful in applications if the high sensitivity is critical. The newly developed method also offers lower cost compared with previous voltammetric studies, possibly due to the use of simpler instrumentation or less expensive materials such as carbon dots that are easily prepared without high cost. This may make the method more accessible to researchers or clinicians who have limited resources.

Table 4 Comparison of the proposed methods with other voltammetric methods

Conclusion

For the sensitive assessment of tryptophan in human serum in a short period of time (10 min), a new nanocomposite was developed by combining overoxidized polypyrrole polymer with nano-carbon dots on the surface of a pencil graphite electrode. The findings showed that the Ov-Ox PPy/CDs/PGE biosensor improved not only the electron transfer on the electrode’s surface but also the electrical conductivity and enhanced sensitivity of the electrochemical detection of tryptophan in samples of human serum.

The high porosity of the deposited layer and the ion exchange equilibrium that the ppy film brought are attributed to triggering this property. With all these benefits, the developed biosensor is ideal for the sensitive determination of Trp in serum from both healthy participants and female breast cancer patients. It can be considered as a simple, non-invasive, and non-sophisticated method for the detection of a certain type of disease, cancer as an example; we can one day get rid of the need for biopsies to detect cancer; however further studies are needed.