Introduction

Photonic Crystal Fiber (PCF), also known as a microstructure optical fiber, is a particular type of optical fiber with a periodic arrangement of air holes running along its length, forming a photonic crystal structure [1, 2]. Based on their internal structure, PCFs can also be divided into types, solid-core and hollow-core PCFs [3,4,5,6]. In solid-core fibers, light is confined to the core by total internal reflection, and in hollow-core fibers, the light is confined by the photonic bandgap of the cladding material [7, 8]. Photonic crystal fibers (PCFs) have excellent performance, including endless single-mode transmission, chromatic dispersion, controllable birefringence, and high nonlinearity, and have been widely applied and become a recent focus in the field of optical devices [9, 10].

Optical sensors have garnered significant attention due to their ability to detect biochemical molecules, external environmental conditions, refractive index (RI), temperature, magnetic fields, pressure, and various ambient properties in real time. The evanescent field coupling technique has emerged to enhance sensitivity toward the surrounding medium. Building upon this concept, researchers have proposed using surface plasmon resonance (SPR)-based photonic crystal fibers (PCFs) [11,12,13,14].

Due to its sensitivity to the permittivity of the environment, surface plasmon resonance (SPR) is regarded as an excellent method for detecting minor refractive index (RI) variations. SPR sensors are often used in chemical and physical senses due to their increased sensitivity and real-time detection [15,16,17,18]. Numerous SPR-based PCF refractive index sensors have been investigated over the last years for further advancement of PCF sensing technology. Surface plasmon waves are short-lived waves made when electrons and photons resonate at the same frequency on the surface of a metal. During the transmission process, this type of wave is sensitive to the environment outside [19,20,21,22]. PCF-SPR sensors can be divided into two groups: internally nanometal-coated and externally nanometal-coated PCF sensors [23, 24].

A relatively effective plasmonic material is thought to be gold nanomaterial. Moreover, it is believed to be chemically stable and unaffected by the immediate oxidation issue [25,26,27,28]. Due to the quantum confinement effect, gold nanoparticles have more negative Fermi potentials and a larger absorption band than other materials. Given that Au-NPs have a higher refractive index than silica optical fiber, the guided light would couple into Au-NPs waveguides [29, 30]. Due to their unique optical properties, silver nanoparticles are often used as plasmon resonance material in Surface Plasmon Resonance (SPR) sensors [31, 32]. When light interacts with metal nanoparticles, such as silver nanoparticles, the collective oscillation of conduction electrons leads to the generation of a surface plasmon wave, known as surface plasmon resonance (SPR). SPR can occur in various metal nanoparticles, including silver and gold. The resonance in SPR refers to the condition where the incident light matches the frequency at which the surface plasmon wave is most efficiently excited. This results in strong absorption and scattering of light, which is highly sensitive to changes in the surrounding environment. Silver shows a sharper resonance peak compared to the other plasmonic materials [33,34,35,36]. Researchers are now very interested in designing unique structures and enhancing the performance characteristics of SPR-based PCF sensors because they can be used in a variety of fields, such as medical diagnostics, bio-sensing, gas detection, water testing, glucose monitoring, bio-imaging [37, 38], virus detection [39, 40], drug testing [41, 42], biotechnology, and chemical sensing [43, 44].

Theory

When an electromagnetic wave interacts with a metal–dielectric interface, maximum optical energy is transferred to surface electronic oscillations on the metal, creating surface plasmons at resonance conditions. By introducing the right wavelength of the electromagnetic wave into a suitably oriented photonic crystal fiber (PCF) waveguide, surface plasmon waves (SPWs) can be generated and propagating forward along the interface. The propagation constant βSPR of SPR expresses as [45,46,47,48]:

$$ \beta_{{\text{SPR }}} = \frac{\omega }{c }\left( {\sqrt {\frac{{\varepsilon_{m} \varepsilon_{s} }}{{\varepsilon_{m} + \varepsilon_{s} }}} } \right) $$
(1)

where c is the speed of light in vacuum, ω is the angular frequency of the light, εm and εs are the relative permittivity of the metal film and the surrounding material adjacent to the metal interface where the surface plasmon polariton (SPP)is located, respectively. The V-number and the Numerical Aperture (NA) are crucial optical parameters for optical fibers. The V-number of a PCF can be calculated by the following formula [49,50,51,52]:

$$ V_{{{\text{PCF}}}} = \frac{2\pi \Lambda }{{\lambda }}\sqrt {n^{2}_{{\text{core }}} \left( \lambda \right) - n^{2}_{{\text{neff }}} \left( \lambda \right)} $$
(2)

Equation (2) reveals that achieving single-mode operation endlessly in a photonic crystal fiber (PCF) depends on both its geometry parameter and the propagated wavelength, where λ represents the pitch of the PCF. The single-mode cutoff criterion for a PCF is VPCF < π, where neff represents the effective refractive index of the PCF's guided mode and ncore represents the refractive index of its core [53, 54]. The numerical aperture means the light-gathering possibility of an optical fiber. Large NA indicates more light-gathering capability of a thread. For PCF, NA can be calculated using the following formula [55, 56]:

$$ {\text{NA}} = \sqrt {n^{2}_{{\text{core }}} \left( \lambda \right) - n^{2}_{{\text{neff }}} \left( \lambda \right)} $$
(3)

The wavelength sensitivity applying wavelength integration (WI) method can be determined by the accompanying equation as follows [57, 58]:

$$ S_{\lambda } = \frac{{\Delta \lambda_{{\text{peak }}} }}{{\Delta n_{a} }}\left( {{\text{nm}}/{\text{RI}}} \right) $$
(4)

where ∆λ peak and ∆na is the difference of wavelength peak shifts and analyte RI variation, respectively.

There are some interesting PCF sensor parameters such as the figure of merit (FOM), signal-to-noise ratio (SNR), and detection limit (n) closely related to the full width at half maxima (FWHM) of the loss spectra and can be calculated using the following equations [59, 60]:

$$ {\text{FOM}} = \frac{{S_{\lambda } }}{{{\text{FWHM}}}} $$
(5)
$$ {\text{SNR}} = \frac{{\Delta \lambda_{{\text{peak }}} }}{{{\text{FWHM}}}} $$
(6)

where FWHM is the transmittance spectrum's full width at half-maximum.

The ability to identify the smallest change in the RI of the analyte is called the resolution, and then the following relation can be used [61, 62]:

$$ R = \Delta n_{a} \frac{{\Delta \lambda_{\min } }}{{\Delta \lambda_{{{\text{peak}}}} }}\left( {{\text{RIU}}^{ - 1} } \right) $$
(7)

where ∆λmin is the minimum spectral resolution, assumed to be 0.1.

PCF-based SPR sensors' working principle is based on the evanescent wave. An electromagnetic wave would partially penetrate the cladding region by propagating a beam of photons through the core. In PCF-SPR sensors, an evanescent wave extends to the cladding area, interacting with the plasma metal surface, excited free electrons on the surface. When the frequencies of the evanescent wave align with those of free electrons on the surface, the resonance occurs, generating a surface plasma wave. This wave propagation is along the interface between metal and dielectric surfaces. This phenomenon, referred to as the resonance condition, gives rise to a distinctive narrow-band loss peak highly responsive to the properties of the adjacent dielectric medium adjoining the metal layer. The resonance is achieved when the real part of the effective refractive index (neff) of the core mode overlaps with the values of the (SPR). The maximum energy is transferred from the core to SPR mode during the resonance [63, 64]. Due to the change of refractive index of the dielectric medium (sample), neff of SPP changes results in the reducing resonance peak and shift in resonance wavelength. This indicates that the phase-matching wavelength is altered depending on the refractive index of the sample/analyte (glucose solution). The concentration of a sample can be detected by observing the variation of loss in peak due to the change of the analyte's refractive index. The following equation describes the principle of the red or blue shift [65, 66]:

$$ d_{p} = \frac{1}{k\beta } = \frac{\lambda }{{2{\uppi }\beta }}{ } $$
(8)

In this context, the dp symbol denotes the depth of penetration that the evanescent wave produces. Furthermore, the symbols β and k refer to the decay constant and wave number, respectively. Based on the equation, it may be inferred that the incident wavelength exhibits direct proportionality with dp. Therefore, it can be observed that longer wavelengths result in higher values of dp, whereas shorter wavelengths correspond to lower values of dp. High coupling is evident when the core-guided and plasmonic modes exhibit a significant interaction, particularly at longer wavelengths. This interaction leads to a relatively higher level of damping for the evanescent wave. Hence, the occurrence of the red shift phenomenon can be observed. Conversely, the blue shift can occur for the opposite reason. By changing the refractive index of the environmental bio-targets surrounding the PCF, the unknown analytes can be detected by analyzing the output loss spectrum of the computer [67, 68].

This paper proposes a more realistic and practical PCF-SPR biosensor for refractive index sensing. The reported RI sensor was used for glucose concentration detection, where the analyte refractive index changes with the glucose concentration within the studied RI range. Gold and silver nanolayers are used in PCF-SPR sensors due to their unique optical properties, which are chemically stable and show the large resonance peak that makes them work better. The nanolayer and the sensing layer are put on the outside of the fiber structure to avoid problems with liquid getting in and metal coating. The analyte can flow through or drip on the nanolayer's outer surface thanks to the external sensing layer. The proposed sensor introduces a new technique to increase the sensitivity of PCF based on nanoparticles. Finally, the sensitivity of the gold-coated PCF-SPR sensor is compared to the silver-coated PCF sensor [69, 70].

Experimental methodology

The experimental setup for the proposed glucose sensor is shown in Fig. 1, which includes using two SMFs, each 10 cm long, joined with two ends of PCF 5 cm long. This PCF has a 12-µm core diameter, an outed clad diameter of 125 µm, and a diameter of 250 outer coatings. The central region of PCF was partially removed by 0.5 cm long. After that, this region was coated with a 50 nm layer of nanomaterials to create the sensor region. Surface plasma resonance (SPR) occurs within this sensor area when interacting with certain analytes. A laser source is used with a 1550 to 1600 nm wavelength to propagate light through fiber optics. The laser beam is propagated through the SMF-PCF sensor. It is modulated by the external environmental solutions in the sensing region when the sensor is immersed in a glucose solution. The SPR phenomenon varies the characteristics of the light signal, which is later analyzed using an optical spectrum analyzer (OSA). After that, received data are processed on a computer, allowing for real-time observation and analysis of any changes in the signal. These changes refer to changes in the refractive index within the sensor area, which provides useful information about the concentration of the analyte. Accurate detection of highly sensitive materials can be achieved, making this approach particularly valuable in different applications, including chemical analysis and environmental monitoring [71, 72].

Fig. 1
figure 1

The Experimental setup of PCF biosensor based on nanomaterial structure

The PCF sensor preparation procedure

Two equal-length single-mode optical fibers (SMF-28) were adopted. The SMFs used had a mode field diameter (MFD) of approximately 10 μm and a core diameter of 8.4 μm at 1550 nm and a numerical aperture of 10.4 μm at 1550 nm. The single-mode cutoff is at ≈ 1260 nm. The most important component was a photonic crystal fiber (ESM-12B) made by NKT Photonics that has always been an endless single-mode fiber with 12 ± 0.5 μm core diameter, coating diameter 245 ± 10 µm, and 125 ± 5 μm outer diameter, 7.8 µm pitch constant and 3.1 μm air hole diameter. The optical properties of (PCF) are integral to their performance. The mode field diameter is 10 ± 1 μm at a wavelength of 1550 nm. These parameters determine the spatial distribution of the guided mode within the fibers. The numerical aperture (NA) measured at 1550 nm is 0.1 ± 0.05, providing insight into the fibers' ability to collect and focus light. Additionally, the attenuation levels at various wavelengths are noteworthy at 1550 nm, and the attenuation loss is less than 1 dB/km, indicating a minimum loss of signal across distance. PCF design contributes significantly to its sensitivity to the changes in the refractive index and its suitability for glucose sensing. This sensitivity is due to its microscopic structure, allowing light confinement and interaction with the surrounding environment. PCF also supports multiple optical conditions and changes in the refractive index allowing for the detection of accurate differences in solution concentration. The length of the resonance wave can also be adjusted to improve the sensor's response to certain analyses. In short, the design properties of PCF make it quite appropriate for glucose sensing and analysis applications [73, 74].

In this study, the PCF piece was etched by immersion in an aqueous hydrofluoric acid (HF) with a concentration of around 48%. The PCF piece appeared in the cylindrical quartz material, which was employed to encapsulate the etching solution acid. Fujikura (FSM-70 s) fusion splicing machine was used to splice the fibers. The parameters of the fusion splicer machine were carefully adjusted to maintain optimal splicing conditions. To measure the length of the air holes collapsed region Fig. 2, an optical microscope OLYMPUS BX60M supported with a high-resolution digital camera was used. Figure 2 illustrates the optical microscope image of PCF etched and spliced with SMF. Figure 3a shows a scanning electron microscope (SEM) image of a fabricated (ESM-12) PCF with a pitch constant of 7.8 µm and an air hole diameter of 3.2 µm [75, 76].

Fig. 2
figure 2

Microscopic image of the splice regions between PCF (ESM-12 B) & SMF- 28 a the collapsed length is ~ 191.02 µm, and b collapsed length is ~ 162.68 µm

Fig. 3
figure 3

a The cross-sectional SEM image for the employed PCF (ESM-12B) b the geometry design of PCF

Outside coating of the PCF has been suggested to overcome the inner metal coating and liquid-analyte infiltration into the air holes. The sensing mechanism is more convenient because of the metal nanolayer placement and the sensing medium outside the fiber structure. The central surface of the fiber is coated with a gold, silver of (50 nm) layer thickness using a Sputtering coater device model (Quorum Q150R ES, UK). It can accommodate many gold or silver targets. Used (Au and Ag) with 99.99% purity, 5.6 cm diameter, and 0.5 mm thick as target material, it has a 165 mm sample chamber. The distance between the PCF and the target was 10 cm, while the coating process within the chamber was performed under pressure of 3 × 10–3 tor. The optical PCF sensor was positioned within the sputter-coated chamber and securely aligned parallel to the chosen target (either gold or silver). A nanolayer of 50 nm thickness coated the center surface of the PCF to make the PCF sensor. The gold and silver thickness was examined and selected throughout the adopted research [56, 57]. This value was also tested by COMSOL software, where the best result was obtained at a thickness of 50 nm. Figure 3b illustrates a schematic of the proposed PCF-SPR sensor, created using the Finite Element method (FEM).

Results and discussion

Figure 4 shows the electric field distributions of the fundamental and surface plasmon resonance (SPR) modes obtained using COMSOL software. The parameters for the used fiber, the wavelength, and the selection of the nanolayer thickness within 50 nm were entered. After obtaining the theoretical results, these parameters were used on the practical side to get the best results as realistically as possible. The sensor's performance is estimated by immersing the coated region of PCF surface in the Glucose dissolved in water and blood solution to examine change in the solutions' refractive indices. Several solutions were prepared, and their refractive indices were measured and considered as a reference for the sensing process. Glucose concentrations were tested in water and blood samples to evaluate the performance and sensitivity of a PCF-based glucose sensor. Water samples had glucose concentrations ranging from 80 mg/dL to 600 mg/dL, while blood samples had concentrations ranging from 89 mg/dL to 611 mg/dL. These ranges were chosen to cover a wide spectrum of glucose levels in clinical and physiological contexts. The lower limit represents normal fasting blood glucose levels, while the upper limit accounts for elevated glucose concentrations, often seen in individuals with diabetes or during post-meal periods. The chosen concentration ranges aim to assess the sensor's accuracy, sensitivity, and reliability in detecting glucose concentrations relevant to healthy individuals and those with glucose metabolism disorders. This comprehensive evaluation ensures the sensor's potential application in diabetes management and healthcare monitoring. The linear relationship between RI and solution concentration is depicted in Fig. 5.

Fig. 4
figure 4

The electric field distributions a Core mode and b Plasmonic mode

Fig. 5
figure 5

The RI for a glucose dissolved in water solutions and b glucose dissolved in blood as a function of the concentration

The sensing process was conducted using a PCF sensor of 0.5 cm length, the thickness of the coated metal nanolayer was 50 nm, and RI values in the range (1.333–1.3342) for glucose dissolved in water and (1.3473 -1.3502) for glucose dissolved in blood serum. The spectra were plotted by recording the transmission light curves (T) through the optical fiber. When the incident photon energy is transferred to the nanometal's electrons, it is observed that the transmittance intensity decreases with reflected light.

The λres increases as the RI of the sensor medium increase. It is generated from the resonance between the SPR wave and the incident light. Moreover, as the energy level declines, sharp dip in the λres shifts to longer wavelength (red shift). Figure 6a and b shows that the resonance wavelength of the PCF sensor coated with gold nanolayer shifts to the higher wavelength when the concentration of glucose dissolved in water and blood serum is increased.

Fig. 6
figure 6

SPR curves of different concentration of glucose dissolved in a water and b in blood at the PCF coating by gold nanolayer

Figure 7a and b shows that the resonance wavelength of the PCF sensor coating by silver nanolayer also shifts to the higher wavelength when glucose concentration is increased.

Fig. 7
figure 7

SPR curves of different concentration of glucose dissolved in a water and b blood at the PCF coating silver nanolayer

Fig. 8a, b shows that the glucose dissolved in water and blood solubility sensitivity of the sensor can reach 1943.72 nm/RIU and 1114.16 nm/RIU for PCF coated with gold nanolayer, respectively.

Fig. 8
figure 8

Variation of SPR resonance wavelength of different refractive index for glucose dissolved in a water and b in blood, for the PCF coating by gold nanolayer

Figure 9a, b shows that the glucose dissolved in water and blood sensitivity of the sensor can reach 1892.18 nm/RIU and 1012.36 nm/RIU for PCF coated with silver through the linear fitting. To evaluate the overall performance of a sensor, FOM is defined as the ratio of sensitivity to the (FWHM). The FOM should be as high as possible to achieve a high-performance sensor, which can be obtained when the sensitivity increases and FWHM decreases.

Fig. 9
figure 9

Variation of SPR resonance wavelength of different refractive index for glucose dissolved a in water and b in blood, of the PCF coating by silver nanolayer

Figure 10a, b depicts the changing of FOM and SNR values with analyte refractive index. The sensor displays highest value of FOM (644 RIU−1) for the gold-based sensor and (629 RIU−1) for the silver-based sensor. Also, the FOM for the glucose sensor shows a downward behavior with highest value of FOM for blood glucose for gold and silver-based sensor are (321 RIU−1) and (299 RIU−1), respectively, as shown in Fig. 10a, b. The second important parameter is SNR, which is calculated using Eq. 6. The maximum SNR values for glucose in water is 0.13, and 0.06 for glucose in blood for gold-coated PCF, respectively, Fig. 10a, b. In contrast, the values of SNR for and glucose dissolved in water and blood at silver sensors are 0.108 and 0.16, respectively Fig. 11a, b. An essential parameter for determining a sensor's detection limit is the sensor resolution.

Fig. 10
figure 10

FOM and SNR for different analyte refractive index a glucose dissolved in water and b glucose dissolved in the blood, at PCF coating by gold nanolayer

Fig. 11
figure 11

FOM and SNR for different analyte refractive index a glucose dissolved in water and b glucose dissolved in blood, for PCF coating by silver nanolayer

Figures 12 and 13 show the variation of resolution values with analyte refractive index. An optimum resolution of 3.3 × 10−5 RIU was obtained for the glucose dissolved in water when gold-based sensor was used. while 3.31 × 10 −5 RIU for the glucose dissolved in water for silver-based PCF sensor and 3.34 × 10 −5 RIU,3.3 × 10–5 for glucose blood gold and silver-based sensor are obtained when \(\Delta \lambda \) min = 0.1 nm is considered. Therefore, this PCF-based plasmonic sensor has a good resolution for sensing the dissolved Glucose that has ever been achieved. The resolution of this PCF sensor can detect a tiny change in RI on the order of 10–5.

Fig. 12
figure 12

The resolution for different analyte refractive index a glucose dissolved in water b glucose dissolved in blood, of the PCF coating with gold nanolayer

Fig. 13
figure 13

The resolution for different analyte refractive index a glucose dissolved in water b glucose dissolved in blood, of the PCF coating with silver nanolayer

Although the photonic crystal fiber (PCF) sensor system is highly sensitive and accurate, it is subject to different sources of error and uncertainty. Temperature fluctuations, changes in humidity and pressure, and fluctuations in the wavelength of the light source can lead to measurement errors in addition, the efficiency of combining light within and outside PCF, signal noise, sample characteristics, calibration errors, and optical loss could contribute more to uncertainty.

Reducing these potential sources of error and uncertainty requires careful attention to experimental design, calibration, quality control, and data analysis to ensure the reliability and accuracy of PCF sensor measurements. Minimizing potential sources of error and uncertainty has received particular attention. Correct glucose measurements are essential for medical and scientific applications. To achieve this, we have prioritized rigorous calibration for the PCF-based sensor system, providing frequent and comprehensive tests of the device's accuracy. Environmental factors, such as temperature and humidity, were carefully controlled during our experiments to minimize their effect on measurements.

In addition, our study includes repeated experiments to verify the reliability of our sensor performance through multiple experiments. By implementing these measures, we aim to provide reliable results of glucose measurement that enhance glucose sensing and are helpful for medical diagnosis and treatment control.

The sensor detects glucose through specific chemical reactions, offering potential medical applications, environmental control, food safety, and biotechnology applications. By modifying its design, it can detect vital indicators, chemicals, pollutants, toxins, and dangerous chemicals, enabling disease diagnosis and prevention. However, challenges like sensitivity, quality, and calibration methods may arise.

The sensor faces limitations in glucose concentrations, miniaturization, and operational integration. Miniaturization affects accuracy and manufacturing, while practical integration challenges like energy consumption and user interface design impact wearable devices and medical equipment. Continuous research and development efforts aim to expand the sensor's capabilities and address constraints. This extended work provides transparency about the sensor's capabilities and highlights areas for improvement.

The proposed PCB-SPR glucose sensor offers distinct advantages compared to present glucose sensing techniques. In addition to its unique optical properties, its exceptional sensitivity to changes in glucose concentration allows accurate measurements to be made even at low glucose levels. This sensitivity exceeds what is possible with conventional enzymatic methods and some emerging optical sensors. The PCF-based sensor has excellent accuracy and can detect minor changes in refractive index due to glucose concentration variance. This high accuracy is helpful for real-time observation of glucose fluctuations, an essential aspect of managing diabetes. In comparison, conventional methods, such as test strips, often have limited resolution.

The PCF-based glucose sensor provides intense sensitivity, accuracy, and non-interference, making it a promising alternative to traditional and apparent glucose sensing techniques. However, their cost, complexity, environmental vulnerability, and calibration requirements may pose challenges in particular applications. Therefore, the choice between this sensor and current techniques must consider the patient's needs or application requirements, considering trade-offs between performance and practical application.

We conducted a series of experiments under controlled conditions to evaluate the potential for repetition of our sensor. The results were analyzed for consistency. To evaluate our sensor's stability, we subjected it to various environmental conditions, including temperature fluctuations and humidity changes. The sensor's performance was continuously monitored during these tests. We realize that differences in manufacturing can affect sensor performance. These differences may include material characteristics, assembly procedures, or calibration processes. We have identified potential sources of variation and their potential effects on sensitivity and accuracy. Differences in the assembly process were found to introduce minor differences in the calibration of sensors, leading to differences in sensitivity.

To show the competitiveness of our design, we compare the proposed structure with others', which included experimental work and simulation, as shown in Table 1. Our sensor has advantages due to its high sensitivity of 1943 nm/RIU.

Table 1 Performance Comparison previously reported and proposed PCF-SPR Sensor

Conclusions

The development and evaluation of a solid-core Photonic Crystal Fiber (PCF)-based sensor based on gold and silver nanoparticles for Surface Plasmon Resonance (SPR) applications were the main goals of the study. The research offers important findings, with a maximum sensitivity of 1943.43 nm/RIU and 1892.18 nm/RIU for glucose dissolved in water, respectively. The effect of the coating layer on the sensor's performance was a major aspect of our study. By comparing the gold and silver layers, it is clear that the gold layer has resulted in significantly higher sensitivity when compared with the silver layer. Furthermore, it was noted that the resonance wavelength exhibited a red shift as the concentration of glucose increased. These results show the sensor's important to detect glucose accurately and sensitively in both glucoses dissolved in the blood and water. The red shift in resonance frequency demonstrates the sensor's capability to monitor glucose levels, which can be used to detect variations in glucose concentration.

This study advances the field of glucose sensing and lays the way for creating glucose sensors based on solid-core PCF nanoparticles. These sensors have promising uses in biomedicine and healthcare because they are enabling to monitor of glucose levels effectively.