1 Introduction

As a representative physical parameter, refractive index (RI) measurement has important applications in industrial production, medical testing, biochemical sample analysis, food safety, and other fields [1]. Therefore, it is especially significant to measure the RI of a substance quickly and accurately. In recent years, RI sensor based on optical fiber technology has attracted great attentions, since their advantages of small volume, fast response, flexible structure design resist to electromagnetic interference, anti-corrosion, the potential of remote sensing, and so on [2, 3].

In general, the optical fiber RI sensors can be classified into fiber-grating sensors [4, 5], surface plasmon resonance sensors [6,7,8], Fabry–Perot sensors [9], and Mach–Zehnder interferometer (MZI) sensors based on thin core fiber [10], photonic crystal fiber (PCF) [11], few mode fiber [12], and tapered fiber [13, 14], and so on. Among them, the PCF-based MZI sensors are widely used in sensing applications due to its great flexibility in structural design and low-temperature sensitivity [15, 16]. Besides, it is much easier to excite high-order mode in PCF when compared to SMF, which is benefit for realizing high-sensitive RI sensing. In 2014, Zhao et al. demonstrated an MZI RI sensor using a tapered PCF structure, whose sensitivity was 51.902 nm/RIU [17]; in 2015, Tan et al. presented an exploratory demonstration of an optical fiber MZI RI sensor by coating graphene on the PCF surface, and the RI sensitivity of the sensor in the range of 1.33–1.38 and 1.38–1.43 reached 9.4 dB/RIU and 17.5 dB/RIU, respectively [18]; in 2017, Zhao et al. proposed another MZI RI sensor based on PCF with half-taper collapse regions, and the sensitivity was improved to 181.96 nm/RIU [19]. Although these results have demonstrated the possibility of PCF-based MZI for the measurement of RI, there also exist some problems such as low sensitivity, low repeatability, poor stability, and easy to break.

In this paper, we propose an all-fiber MZI RI sensor based on a dual-waist photonic crystal fiber (DWPCF). Through theoretical analysis and experimental demonstration, a highly sensitive RI sensor is verified. Besides, the proposed sensor behaves good stability, robust structure, and can be prepared by simple fusion splicing method.

2 Structure design and principle analysis

Figure 1 shows the schematic structure of the all-fiber MZI RI sensor. It consists of an ASE broadband source, a dual-waist PCF-sensing head, and a BaySpec demodulation module. The PCF-sensing head (see the inset of Fig. 1) was fabricated by welding a PCF with two single-mode fibers (SMFs) and performing the fusion-tapering process of PCF.

Fig. 1
figure 1

Schematic structure of sensing system

As shown in Fig. 2, a broadband light emitted from the ASE source first entered and transmitted through the core of an SMF, and would partially couple to cladding of the PCF at the melting point of SMF and PCF, while the rest light propagated in the fiber core. Then, at the first waist position, more cladding modes will be excited and interacted with measured medium. These excited cladding modes would finally couple back into the fiber core of the PCF at the second waist position and the second melting point of SMF and PCF, where the modal interferences between the core mode and cladding modes were generated due to that their transmission optical paths were different. After then, this interference signal entered into another SMF and received by the BaySpec spectrum analyzer, from which we can observe the resonant wavelength of the interference spectrum.

Fig. 2
figure 2

Transmission path of light in SMF–TWPCF–SMF-sensing head

In the above process, the principle of double-beam MZI can be used as an example to analyze the interference light intensity and interference wavelength, which can be given as [20]

$$ I = I_{1} + I_{2} + 2\sqrt {I_{1} I_{2} } \cos \varphi , $$
(1)
$$ \lambda_{m} = \frac{{\Delta n_{\text{eff}} L}}{m}, $$
(2)

where \( I_{1} \) and \( I_{2} \) represent the light intensities of core mode and cladding mode of the PCF, respectively; \( I \) is the total output light intensity; \( \varphi \) is the phase difference; \( \lambda_{m} \) represents the m-order resonance wavelength; \( L \) is the interference length, which equals to the distance between the two fusion points; and \( \Delta n_{\begin{subarray}{l} {\text{eff}} \\ \end{subarray} } \) is the effective RI difference between the core mode and cladding mode.

When the RI of the external environment changes, the effective RI of the cladding mode changes, while the RI of the core mode remains unchanged. Therefore, the wavelength shift caused by the external RI variation can be expressed as

$$ \Delta \lambda_{m} = \frac{\Delta nL}{m}, $$
(3)

where \( \Delta \lambda_{m} \) is the shift of mth-order interference wavelength and \( \Delta n \) is the change in the RI difference between the core and cladding modes that caused by the change in the RI of the external environment. It can be seen from Eq. (3) that the amount of wavelength drift is affected by variation in RI difference \( \Delta n \). When the interference length is constant, the shift of the resonance wavelength of the interference fringe changes linearly with the variation of \( \Delta n \). It should be mentioned that there exists more than one cladding mode in the PCF, and any two of them will generate an interference pattern. The final interference spectrum of the proposed sensor is the combination of all double-beam interference spectrum. However, the spectrum shifts on any one of the double-beam interferences will induce the shift of the final interference spectrum. Therefore, the RI of the external medium can be measured by monitoring the shift of the final interference spectrum.

3 Fabrication and building of sensing system

The PCF used in the experiment has five layers of air holes, with fiber diameter of 125.2 μm, air-hole spacing of 7.67 μm, air-hole diameter of 4.88 μm, and core diameter of 8.89 μm. The end face of the PCF is shown in the inset of Fig. 3. During the preparation of the sensor, the SMFs and PCF were welded by a German BAGGER S80A optical fiber fusion splitter using manual mode. The discharge current was 114 mA, the pre-discharge time was 50 ms, and the discharge time was 2 s. The whole length of the PCF was 29 mm. After the left and right ends of the PCF were, respectively, welded to the SMFs, the PCF was tapered by a fire-breathing device. The structural parameters (diameter and length) of the waist can be controlled by adjusting the pulling speed of the PCF on the fire-breathing device. The images of the two waist regions under an electron microscope are shown in Fig. 3. The left-waist length was 3009.79 μm with a waist diameter of 74.91 μm, while the right-waist length was 4842.69 μm with a waist diameter of 55.47 μm.

Fig. 3
figure 3

Images of different sections of PCF in sensing head

During the experiment, the fabricated SMF–TWPCF–SMF-sensing head would be fixed by two magnetic platen fiber clamps on two 3D adjusting platforms and placed in a microfluidic control device, which has a groove and a U-shaped groove extending transversely through the groove. As shown in Fig. 4, the electron microscope was used to observe the structural parameters of the sensing head, and the position of the sensing head could be adjusted using the two 3D adjusting platforms. Then, the fiber was placed in the U-shaped groove (as shown in Fig. 4b), and the TWPCF was in the groove and could be completely immersed in the liquid in the groove. A liquid inlet and a liquid outlet are provided in front of the groove for injecting liquid and discharging liquid. Finally, the sensing head was linked to an ASE-C broadband light source with wavelength range of 1525–1568 nm and a BaySpec’s FBGA-F-1525-1605-FA spectral demodulation module.

Fig. 4
figure 4

Experimental devices of RI sensor

4 Experiment measurement and discussion

To find the relationship between the wavelength shift of the interference spectrum and the RI change, this paper uses different concentrations of NaCl solution as the test solution, which is cheap, easy to obtain, and easy to precisely adjust the concentration (refractive index). Besides, the Abbe refractometer is used to calibrate the relationship between the NaCl concentration and the RI, as shown in Table 1. The whole experiment was carried out at 24 °C. The prepared NaCl solutions of different concentrations were sequentially injected into the microfluidic control device to observe and record the data of the respective interference spectra. After each set of experiment, the microfluidic control mechanism and the sensing probe should be cleaned by distilled water.

Table 1 Relationship between concentration of NaCl solution and RI

Under different concentrations of NaCl, the interference spectra are shown in Fig. 5. From the data collected by the spectrometer, the relationship between the wavelength value at the resonance valley and the concentration C could be obtained, as shown in Fig. 6. It could be seen that the resonant valley was red shift with the increase of C, whose sensitivity was 0.4586 nm/%, and the linear fit was 0.981. Then, the relationship between the wavelength value at the resonance valley and the RI could also be obtained, as shown in Fig. 7. The RI sensitivity could be 263.5 nm/RIU with high linear fit of 0.971. Compared with the performances of some published optical fiber RI sensors based on MZI [17, 19, 21,22,23,24], the measurement sensitivity of this RI sensor is larger than most of the reported results. Besides, the proposed sensor is low cost, simple in fabrication, and robust.

Fig. 5
figure 5

Interference spectrum under different concentrations of NaCl solution

Fig. 6
figure 6

Relationship between the wavelength of the resonant valley and the concentration of NaCl solution

Fig. 7
figure 7

Relationship between wavelength of resonant valley and RI

5 Conclusion

A novel MZI RI sensor based on SMF–TWPCF–SMF structure was proposed in this work. The RI measurement experiment was done in a microfluidic control device. Experimental results demonstrated that the resonance valley wavelength shifted with the increase of the RI of the external NaCl solution. The sensitivity was 263.5 nm/RIU in the range of 1.3374–1.3477, and it had a good linearity. The proposed sensor behaved the advantages of small volume, good stability, high sensitivity, easy preparation, and robust, which were beneficial for practical applications.