Photonics Research, Volume. 13, Issue 8, 2202(2025)

Deep learning assisted real-time and portable refractometer using a π-phase-shifted tilted fiber Bragg grating sensor

Ziqi Liu1, Chang Liu1, Tuan Guo2,3, Zhaohui Li1,3, and Zhengyong Liu1,3、*
Author Affiliations
  • 1School of Electronics and Information Technology, Guangdong Provincial Key Laboratory of Optoelectronic Information Processing Chips and Systems, Sun Yat-sen University, Guangzhou 510006, China
  • 2Guangdong Key Laboratory of Optical Fiber Sensing and Communications, Institute of Photonics Technology, Jinan University, Guangzhou 511443, China
  • 3Southern Marine Science and Engineering Guangdong Laboratory (Zhuhai), Zhuhai 519082, China
  • show less
    Figures & Tables(13)
    (a) Structure of the TFBG and (b) transmission spectrum and local amplification of TFBG with a tilted angle of 16°; (c) structure of the π-PSTFBG and (d) transmission spectrum and local amplification of PSTFBG with a tilted angle of 16°; (e) schematic illustration of the fiber grating inscription setup based on two-beam interferometry; (f) introduction of π-phase shift during grating inscription based on two-beam interferometry method.
    Experimentally measured transmission spectrum of π-PSTFBG with tilted angles of (a) 6°, (b) 8°, (c) 10°, and (d) 16°.
    (a) Schematic setup to acquire transmission spectral data of 16° π-PSTFBG under the conditions of various SRIs, while a conventional 16°-TFBG is employed as control group for comparison; transmission spectra collected under different RIs of (b) TFBG and (c) π-PSTFBG.
    (a) Schematic diagram of the proposed demodulation algorithm based on deep learning for analyzing the full spectrum of the π-PSTFBG sensor; two-dimensional distribution of the intermediate features via t-SNE visualization for (b) the input data and (c) the output data after the DenseBlock_2 layer.
    Prediction results of π-PSTFBG RI sensor based on the well-trained models of (a) convolutional neural network (CNN) and (b) densely connected CNN (D-CNN) in comparison with labeled truth values.
    Histogram of the mean absolute error of prediction results based on machine learning model in three noise scenarios.
    Predicted RI results by the well-trained D-CNN model with respect to the labeled truth values: (a) TFBG, (b) SPR-TFBG. (c) Measured transmission spectra at different RIs using SPR-TFBG.
    The compositions of (a) the real-time demodulation system and (b) the spectrometer unit; (c) the prototype of the real-time demodulation system for π-PSTFBG-based RI sensor.
    (a) Measured transmission spectra of π-PSTFBG collected by a low-resolution spectrometer at different RIs; (b) predicted RI results by well-trained D-CNN model based on the original spectral data of π-PSTFBG obtained via low-resolution interrogator.
    (a)–(g) 7-day continuous measurement using the developed prototype of real-time demodulation assisted by D-CNN model for the NaCl solutions with RIs of 1.3480, 1.3562, 1.3647, and 1.3730. (h) Predicted RIs in a longer duration individually for each solution of 1.3462, 1.3579, 1.3679, and 1.3717. (i) Average predicted RIs with respect to the labeled truth values. (j) Predicted value change curve of real-time demodulation system when a NaCl solution with high RI drops into a NaCl solution with low RI.
    • Table 1. Configured Parameters in Each Layer of CNN and D-CNN Models

      View table
      View in Article

      Table 1. Configured Parameters in Each Layer of CNN and D-CNN Models

      CNND-CNN
      Layer NameParametersLayer NameParameters
      InputInput
      Conv1D96Conv1D128
      Batch normalization32Batch normalization64
      MaxPool1D0MaxPool1D0
      Conv1D3616Conv1D5152
      MaxPool1D0MaxPool1D0
      Conv1D14,400DenseBlock11380
      MaxPool1D0DenseBlock21780
      Conv1D20,544Conv1D2628
      MaxPool1D0AvgPool1D0
      Conv1D20,544DenseBlock31460
      MaxPool1D0AvgPool1D0
      Conv1D12,352Flatten0
      AvgPool1D0Linear18,593
      Flatten0
      Linear5185
    • Table 2. Spectral Demodulation Results of π-PSTFBG Based on Machine Learning Algorithm

      View table
      View in Article

      Table 2. Spectral Demodulation Results of π-PSTFBG Based on Machine Learning Algorithm

      ML AlgorithmR2MSEMAE
      DTR84.77%2.261×1052.24×103
      RFR98.84%1.633×1068.94×104
      GBR98.21%2.522×1061.08×103
      LR99.13%1.253×1065.29×104
      MLP99.14%1.442×1066.64×104
      CNN98.36%2.742×1061.02×103
      D-CNN99.67%5.083×1075.99×104
    • Table 3. Comparison of the Test Results Using the Same Well-Trained D-CNN Model for TFBG-, SPR-TFBG-, and π-PSTFBG-Based Sensors

      View table
      View in Article

      Table 3. Comparison of the Test Results Using the Same Well-Trained D-CNN Model for TFBG-, SPR-TFBG-, and π-PSTFBG-Based Sensors

      SensorR2MSEMAE
      TFBG99.17%1.2902×1068.796×104
      SPR-TFBG99.26%1.1340×1068.15×104
      π-PSTFBG99.67%5.0829×1075.99×104
    Tools

    Get Citation

    Copy Citation Text

    Ziqi Liu, Chang Liu, Tuan Guo, Zhaohui Li, Zhengyong Liu, "Deep learning assisted real-time and portable refractometer using a π-phase-shifted tilted fiber Bragg grating sensor," Photonics Res. 13, 2202 (2025)

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Optical Devices

    Received: Mar. 4, 2025

    Accepted: May. 9, 2025

    Published Online: Jul. 25, 2025

    The Author Email: Zhengyong Liu (liuzhengy@mail.sysu.edu.cn)

    DOI:10.1364/PRJ.561101

    CSTR:32188.14.PRJ.561101

    Topics