1 Introduction

Optical refractive index biosensor is considered one of the fastest developing fields of research. These devices are developed such as surface plasmon resonance (SPR) (Homola et al. 1999; Liedberg et al. 1993), one, two- and three-dimensional photonic crystal (Lee and Fauchet 2007; El Beheiry et al. 2010; Guo et al. 2010), Bragg reflectors (Lin et al. 1997) and long-period fiber grating (Rindorf et al. 2006; Mortensen et al. 2008). Defected photonic crystals PC as sensors depend on resonant wavelength shift which have very sensitivity to the operative refractive index of the cavity defect (Zhao et al. 2015).

There are an estimated 18.1 million new cancer cases (17.0 million excluding nonmelanoma skin cancer) and 9.6 million cancer deaths (9.5 million excluding nonmelanoma skin cancer) (Bray et al. 2018). Thus, it is necessary to improve biosensors to detect such diseases early on.

Depending on refractive indices contrast between cancer and normal cells, photonic crystals are developed to act as a very sensitive and compact size biosensors. 1D-PC sensor which has the structure [(SiO2/air)n/CDC/(SiO2/air)n] able to detect the cancer cells. Where the nanocomposite layers increase the sensitivity to reach to 43 nm/RIU (Ramanujam et al. 2019a). In addition, the photonic crystals may be used as the high sensitivity sensors, refractometric and optoelectronic devices (Shaban et al. 2020; Taya 2018; Ramanujam et al. 2019b). The ternary PC [Si/polymer/SiO2] are used as temperature sensor (El-Amassi et al. 2018), where the presence of the polymer layer increases the sensitivity.

The used structure is 1D photonic crystal which are composed of air/(SiO2/PbS)N/Dd/(SiO2/PbS)N/SiO2. Where N is the number of periodic dielectric materials (SiO2/PbS) which is considered (N = 3). The thickness and refractive indices of these materials are (d1, d2, n1, and n2) respectively. The defected layer between identical periodic layers was filled with different cancerous cells with thickness Dd = 2dp, 6dp, 7dp and 8dp where dp is represents the thickness of period. As shown in Fig. 1 the whole structure is surrounded by a SiO2 substrate from one side and air from another side.

Fig. 1
figure 1

Schematic simplified representation for 1D defected photonic crystal

When a defect layer is immersed in the 1D-PC, a transmission resonant peak appears inside the PBG, and its position is a function of the refractive index of the defect layer (Aly et al. 2018). There are various applications on 1D-PC as a sensor whatever in environmental, biological or industrial fields (Sreekanth et al. 2013; Bouzidi et al. 2017; Nair and Vijaya 2010; Abd El-Ghany 2019).

Recently, the sensitivity of 428 nm/RIU for the PC cavity sensor has been experimentally demonstrated by immerging the PC cavity sensor into NaCl solution with different mass concentrations (Zhang et al. 2015). Sensitivity is equal 1100 nm/RIU which is achieved from one-dimensional with a blood sugar layer as a defect layer (Aly et al. 2020). Moreover, a sensitivity of 2200 nm/RIU is obtained by defected 1D-PC of dielectric layers (SiO2/GaAs) (Aly and Zaky 2019).

In this study, the defected 1D-PC is designed as a biosensor for the brain cancer cells. The normal cells and cancer cells are infiltrated into the PC cavity. As a result, the wavelength shifts of the resonant defect peak in the transmission spectra are computed by the transfer matrix method (TMM).

2 Theoretical treatment

In Fig. 1, the constituent dielectric materials of designed 1D-PC are the first layer (SiO2) with thickness d1 = 0.06 μm and refractive index n1 = 1.46 and the second layer (PbS) with thickness d2 = 0.15 μm and refractive index n2 = 4.2. The theoretical study of 1D-PC (SiO2/PbS) was reported previously in the published paper (Sharma et al. 2015). Here the same constituent dielectric materials are used with defected layer is considered brain cancer cells with different refractive indices as shown in the Table 1. When electromagnetic waves incident on the photonic crystal some photons can propagate through the crystal and other photons are expected to be subjected to the total reflection. Thus, the PC acted like the high reflectance reflector for the incident frequencies (Revathy et al. 2019). The forbidden photons with certain frequencies lead to appearance of the photonic band gap (PBG). To realize the PBG through transmission spectra the transfer matrix method was used. In this method, each layer has own matrix with assigning the dielectric parameters and the total transfer matrix of the whole structure is calculated by multiplying the all single layering transfer matrices (Ramanujam et al. 2018). For every layer the transfer matrix method is shown by the following equation:

$$c_{\text{K}} = \left( {\begin{array}{*{20}c} {\cos \beta_{\text{K}} } & {\frac{ - i}{{n_{\text{K}} }}\sin \beta_{\text{K}} } \\ { - in_{\text{K}} \sin \beta_{\text{K}} } & {\cos \beta_{\text{K}} } \\ \end{array} } \right)$$
(1)

where K represents the layers of SiO2, Pbs or cancerous cells.

Table 1 Various brain tissues with their refractive indices (Biwas and Gupta 2002)

The phase angle \(\beta_{\text{K}}\) is listed below:

$$\beta_{\text{K}} = k_{\text{K}} d_{\text{K}} = \frac{{2\pi d_{\text{K}} }}{\lambda }n_{\text{K}} .$$
(2)

where \(n_{\text{K}}\), \(d_{\text{K}}\) and \(k_{\text{K}}\) are the index of refraction, the thickness of each layer and the wave vector of structure layers.

The single-period matrix which shown in the following equation.

$$C\left( b \right) = \left( {\begin{array}{*{20}c} {C_{11} } & {C_{12} } \\ {C_{21} } & {C_{22} } \\ \end{array} } \right) = \left( {\begin{array}{*{20}c} {\cos \beta_{{{\text{K}}1}} } & {\frac{ - j}{{n_{{{\text{K}}1}} }}\sin \beta_{{{\text{K}}1}} } \\ { - {\text{j}}n_{{{\text{K}}1}} \sin \beta_{{{\text{K}}1}} } & {\cos \beta_{{{\text{K}}1}} } \\ \end{array} } \right) \times \left( {\begin{array}{*{20}c} {\cos \beta_{{{\text{K}}2}} } & {\frac{ - j}{{n_{{{\text{K}}2}} }}\sin \beta_{{{\text{K}}2}} } \\ { - {\text{j}}n_{{{\text{K}}2}} \sin \beta_{{{\text{K}}2}} } & {\cos \beta_{{{\text{K}}2}} } \\ \end{array} } \right).$$
(3)

Since b = (d1 + d2) is the lattice constant. And,

$$c_{11} = \cos \beta_{{{\text{K}}1}} \cos \beta_{{{\text{K}}2}} - \frac{{r_{1} }}{{r_{2} }}\sin \beta_{{{\text{K}}1}} \sin \beta_{{{\text{K}}2}} .$$
(4a)
$$c_{12} = \frac{ - i}{{r_{1} }}\sin \beta_{{{\text{K}}1}} \cos \beta_{{{\text{K}}2}} - \frac{i}{{r_{2} }}\cos \beta_{{{\text{K}}1}} \sin \beta_{{{\text{K}}2}} .$$
(4b)
$$c_{21} = - ir_{1} \sin \beta_{{{\text{K}}1}} \cos \beta_{{{\text{K}}2}} - ir_{2} \cos \beta_{{{\text{K}}1}} \sin \beta_{{{\text{K}}2}}$$
(4c)
$$c_{22} = \cos \beta_{{{\text{K}}1}} \cos \beta_{{{\text{K}}2}} - \frac{{r_{1} }}{{r_{2} }}\sin \beta_{{{\text{K}}1}} \sin \beta_{{{\text{K}}2}} .$$
(4d)

and;

$$r_{1} = n_{{{\text{K}}1}} \cos \theta_{{{\text{K}}1}} ,\quad r_{2} = n_{{{\text{K}}2}} \cos \theta_{{{\text{K}}2}}$$

For TE wave, whereas

$$r_{1} = \frac{{\cos \theta_{{{\text{K}}1}} }}{{n_{{{\text{K}}1}} }},\quad r_{2} = \frac{{\cos \theta_{{{\text{K}}2}} }}{{n_{{{\text{K}}2}} }}$$

For TM wave.

For the whole structure of N periods and by using Chebyshev polynomials (Mason and Handscomb 2003), the total characteristic transfer matrix M can be obtained by:

$$M\left( {Nb} \right) = \left( {M_{A} M_{B} } \right)^{N} \left( {M_{D} } \right)\left( {M_{A} M_{B} } \right)^{N} = \left( {\begin{array}{*{20}c} {M_{11} } & {M_{12} } \\ {M_{21} } & {M_{22} } \\ \end{array} } \right).$$
(5)

where A, B and D are the SiO2 layer, Pbs layer and defected layer of cancerous cells, respectively. And N is the no. of periodic layers.

Finally, the transmittance of the whole structure is given by:

$$T = \frac{{p_{f} }}{{p_{0} }} \left| {t^{2} } \right|.$$
(6)

where,

$$p_{0} = \sqrt {\frac{{\varepsilon_{0} }}{{\mu_{0} }}} n_{fo} \cos \theta_{o} .$$
(7)
$$p_{f} = \sqrt {\frac{{\varepsilon_{0} }}{{\mu_{0} }}} n_{f} \cos \theta_{f} .$$
(8)

and \(t\) is the transmission coefficient which h is given by

$$t = \frac{{2p_{0} }}{{\left( {\left( {M_{11} + p_{f} M_{12} p_{0} } \right) + M_{21} + p_{f} M _{22} } \right)}}.$$
(9)

3 Results and discussions

One of the most significant biophysical parameters is the index of refraction for cells. Refractive indices of normal and abnormal cells were measured and correlated to values of diseases such as cancer, malaria, anemia, bacterial infection, etc. (Liu et al. 2016). Brain tumors are expected to be deadly and crucially effect on the quality of patient life. In the United States, almost 700,000 people who live with a primary brain tumor. In 2019, nearly 86,970 people are diagnosed as primary brain (www.braintumor.org). When brain lesions have refractive indices less than 1.395 such as multiple sclerosis (1.3425) or solid brain abscess near the wall (1.341) are considered as benign. Otherwise, brain lesions which have a refractive index (RI) greater than 1.412 were expected to be malignant. This means that, the malignancy degree is directly proportional to the RI of lesions (Biswas and Luu 2009).

RI of a solution with 100% distilled water is 1.333 which is considered as an external reference and is compared to CSF as an internal reference. According to Gladstone–Dale law (Effron 2002) the refractive index of brain lesions is directly proportional to physical density (gm/cm3) of protein/lipid contents and versus to water content in the tissues (Biwas and Gupta 2002; Biswas et al. 2017).

We have used the wavelength range from 1.5 to 4.5 μm which is matched to infrared. When the defected layer is filled with CSF tissues, the photonic band gap is formed from 1.766 to 3.76 μm and with the width is 1.994 μm but in the case of metastasis tissues, the PBG is red shifted with the width is 1.872 μm and formed in the range from 1.887 to 3.759 μm. The large width of PBG appears due to the high contrast in refractive indices between SiO2 and Pbs layers. Also, the resonant peak through the PBG is red shifted as the refractive index of cancerous cells increases. The resonant peak is shifted to eliminate changes in the effective refractive index of the structure to keep the optical path difference be constant and the resonant condition of the standing wave is unchanged. The changes in the thickness of the defected layer affect the resonant peak shift and thus affect the sensor sensitivity. In the current calculations, the defected layer thickness is allowed with the following values 0.42, 1.26, 147 and 1.68 μm at normal incident light as shown in Table 2. At Dd = 0.42 μm, the resulted transmission spectrum from the PC sensor for different types of brain lesions is shown in Fig. 2a, b. The wavelength of resonant peak is shifted to the longest wavelength with increasing Dd as shown in Fig. 3. At the higher value of Dd than 1.68 μm, we found that the shift in the resonant peak is decreased. As shown in Table 2, at Dd = 1.68 μm, there is the longest shift in the wavelength. The resonant peak for CSF appears at 2.977 μm in Fig. 4a, b with shifting to 3.265 μm for metastasis as shown in Fig. 4b.

Table 2 Peak wavelength (μm) for different brain cell cancerous at various values of defected layer thickness (μm)
Fig. 2
figure 2

Transmittance when the defected layer filled with different types of brain cancerous cells at Dd = 0.42 μm

Fig. 3
figure 3

Illustrates the shift in the peak position which is caused by the different defected layer thickness Dd

Fig. 4
figure 4

The resonant peaks for brain lesions when the thickness of defected layer is Dd = 1.68 μm at θ = 0°

A significant factor demonstrates the efficiency of sensor is called the sensitivity. The sensitivity of refractive index sensor is considered that the value of wavelength shift divided by the changed RI of defected layer as in the following equation (Biswas and Luu 2009; Mariotto 2011) (Table 3).

$$S = \frac{\Delta \lambda }{\Delta n}.$$
(10)

where ∆λ is the wavelength shift of peak resonance caused by the changing of ∆n. By considering the wavelength of resonant peak and RI of normal cell as a reference, we found that \(\Delta \lambda = \left( {\lambda_{cancerous cell} - \lambda_{normal cell} } \right)\)\(\Delta n = \left( {n_{cancerous cell } - n_{normal cell} } \right)\). Table 4 shows the effect of the defected layer thickness on the sensitivity average of the sensor. The high sensitivity appears when the thickness of defected layer is 1.68 μm at a normal incident as shown in Fig. 5. For the same defected layer thickness, the sensitivity for different brain lesions is increases once and decreases again. Since the sensitivity is a ratio between two variables at once the numerator (∆λ) increases and again the denominator (∆n) increases.

Table 3 The sensitivity (nm/RIU) of different brain cells cancerous at different values of defected layer thickness (μm) and θ = 0°
Table 4 The average of sensitivity (nm/RIU) at different thickness of defected layer (Dd)
Fig. 5
figure 5

Illustrates the effect of the different values of defected layer thickness on the sensitivity

The impact of the different light incident angles on the resonant defect peak is noted to obtain a high sensitivity sensor. In the current work, the incident angles have the following values 10°, 20°, 30°, 40°, 50°, 60°, 70° and 80° while keeping the defected layer thickness remains fixed as 1.68 μm. As shown in Fig. 6, the high sensitivity is obtained when θ = 80°. So, the designed PC sensor is [Air/(SiO2/PbS)3/Dd/(SiO2/PbS)3/SiO2] with the defected layer thickness is 1.68 μm at incident angle 80°.

Fig. 6
figure 6

The sensitivity of 1D-PC with the defected layer thickness Dd = 1.68 μm when incident angle θ = 10°, 20°, 30°, 40°, 50°, 60°, 70° and 80°

Table 5 shows the important parameters of RI sensor which are used in the detection of the sample characteristics. The detection limit (DL) able to characterize the smallest change in RI for a sample. DL is calculated by division the sensor resolution (R) by the sensor sensitivity (S) (Biswas and Luu 2009).

$$DL = \frac{R}{S}.$$
(11)

where R is the smallest spectral shift, which can be measured:

$$R = \frac{{\Delta \lambda_{1/2} }}{{1.5*\left( {SNR} \right)^{1/4} }}.$$
(12)

Δλ1/2 is the spectral half width of the transmission dip. SNR is the signal to noise ratio which is shown by (Effron 2002).

$$SNR = \frac{{\Delta \lambda_{res} }}{{\Delta \lambda_{1/2} }}.$$
(13)

where, \(\Delta \lambda_{res}\) is the wavelength shift of resonant peak. The figure of merits (FOM) is the ability of sensor to detect any variations in the peak of the resonance which is defined as:

Table 5 Sensitivity parameter S, FOM, SNR, R and DL for designed 1D-PC sensor for various cancerous cells
$$FOM = \frac{S}{{\Delta \lambda_{1/2} }}.$$
(14)

The transmission spectrum of the proposed designed device shows that the wavelength of resonant peak is increase with increasing RI of cancerous cell. This relation is represented by Fig. 7 and the following equation:

$$\lambda_{d} = 2904.4 \times \left( {n_{d} } \right)^{2} - 1807$$
(15)
$$R^{2} = 0.9998.$$
(16)

where \(\uplambda_{\text{d}}\) is the resonant wavelength (nm) which related to index of refraction \(n_{d}\). R2 value is between the fitting and the theoretical calculations. When \({\text{R}}^{2}\) is equal to 1, this mean that the sensitivity of biosensor is very high.

Fig. 7
figure 7

The relation between refractive index of cancerous cells and the wavelength of resonant peaks

4 The detection of multiple sclerosis and Glioblastoma in brain lesions

By the magnetic resonance (MR) scanner, the relaxation map T2 is prepared for a normal persons and patients with different grades of multiple sclerosis and glioblastoma (Mason and Handscomb 2003). The value of T2 for brain lesions tissues is directly proportion to its water content and given by the following equation:

$$Y = 0.0765 \times T_{2} + 68.481 .$$
(17)

where Y denotes a fraction of accumulated water. T2 is a spin-spin relaxation time that through its transverse magnetization decay (Biwas and Gupta 2002; Biswas et al. 2017). From refractive index mapping of brain (Ramanujam et al. 2018; Mason and Handscomb 2003; Liu et al. 2016), the index of refraction for tissues is related to the proportion of solid component and its content of water. There is inverse relationship between RI value and T2 value of tissue as shown in the following equation:

$$n = \left( {\frac{4.338}{{T_{2} }}} \right) + 1.3338.$$
(18)

where \(n\) is the RI for tissues. In the brain lesions such as glioblastoma and metastasis, T2 values still low due to the little water content and increased the solid components. And therefore, RI of these lesions is high because of increased removal lipids that appears from the tissue necrosis and membrane collapse (Ito et al. 2002). Diagnosis or discrimination can be determined from RI values that have higher accuracy more than other parameters (White and Fan 2008). By using different values of RI for the same brain lesions as Glioblastoma and Multiple sclerosis lesions in the defected layer of biosensor. We can obtain the red shift in the resonant peaks with an increase in RI, as shown in Figs. 8 and 9.

Fig. 8
figure 8

The resonant peaks for 1D-PC with the defected layer Dd = 1.68 μm at incident angle θ = 80° for different glioblastoma cells

Fig. 9
figure 9

The resonant peaks for 1D-PC with the defected layer Dd = 1.68 μm at incident angle θ = 80° for multiple sclerosis (MS) cells

5 Conclusion

Here we have theoretically designed defected 1D-PC as RI sensor for the brain lesions. We studied the transmission spectrum of 1D-PC sensor based on the transfer matrix method. At Dd = 1.68 μm and θ = 80°, the structure of PC sensor [Air/(SiO2/PbS)3/D/(SiO2/PbS)3/SiO2] appears a high sensitivity. The resulted transmission spectrum for the designed sensor shows that the resonant defect peak is red shifted from 2.063 to 2.497 as the brain lesions replace from CSF with n = 1.3333 to metastasis with n = 1.4833. The sensitivity of designed sensor is ranged from low value (2893.333) nm/RIU for metastasis cell to a high value (3080.808) nm/RIU for oligodendroglioma. Therefore, DL of this sensor is very low which in order 10−9 (RIU). The high value of FOM is reaches to 6.16 * 107 (1/RIU) which means that the high sensing ability to detect a change in the resonant peak. Glioblastoma and Multiple sclerosis tissues with different densities could be detected by our PC sensor. Through the transmission spectrum, the resonant peak is red shifted when the RI changed from (1.4512 to 1.4611) and (1.3421 to 1.3641) for glioblastoma and multiple sclerosis tissues, respectively.