Next Article in Journal
A Bluetooth-Enabled Electrochemical Platform Based on Saccharomyces cerevisiae Yeast Cells for Copper Detection
Previous Article in Journal
In Vivo Study on the Safe Use of a Novel Intraoperative Sensing Tool for Tissue Stiffness Assessment in Endoscopic Surgery
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Accuracy Enhancement in Refractive Index Sensing via Full-Spectrum Machine Learning Modeling

by
Majid Aalizadeh
1,2,3,4,
Chinmay Raut
5,
Morteza Azmoudeh Afshar
6,
Ali Tabartehfarahani
1,3,4 and
Xudong Fan
1,3,4,*
1
Department of Biomedical Engineering, University of Michigan, Ann Arbor, MI 48109, USA
2
Department of Electrical Engineering and Computer Science, University of Michigan, Ann Arbor, MI 48109, USA
3
Center for Wireless Integrated MicroSensing and Systems (WIMS2), University of Michigan, Ann Arbor, MI 48109, USA
4
Max Harry Weil Institute for Critical Care Research and Innovation, University of Michigan, Ann Arbor, MI 48109, USA
5
Department of Computational Medicine and Bioinformatics, University of Michigan, Ann Arbor, MI 48109, USA
6
Informatics Institute, Istanbul Technical University, Istanbul 34485, Turkey
*
Author to whom correspondence should be addressed.
Biosensors 2025, 15(9), 582; https://doi.org/10.3390/bios15090582
Submission received: 4 July 2025 / Revised: 27 August 2025 / Accepted: 3 September 2025 / Published: 5 September 2025
(This article belongs to the Section Optical and Photonic Biosensors)

Abstract

We present a full-spectrum machine learning framework for refractive index sensing using simulated absorption spectra from meta-grating structures composed of titanium or silicon nanorods under TE and TM polarizations. Linear regression was applied to 80 principal components extracted from each spectrum, and model performance was assessed using five-fold cross-validation, simulating real-world biosensing scenarios where unknown patient samples are predicted based on standard calibration data. Titanium-based structures, dominated by broadband intensity changes, yielded the lowest mean squared errors and the highest accuracy improvements—up to an 8128-fold reduction compared to the best single-feature model. In contrast, silicon-based structures, governed by narrow resonances, showed more modest gains due to spectral nonlinearity that limits the effectiveness of global linear models. We also show that even the best single-wavelength predictor is identified through data-driven analysis, not visual selection, highlighting the value of automated feature preselection. These findings demonstrate that spectral shape plays a key role in modeling performance and that full-spectrum linear approaches are especially effective for intensity-modulated index sensors.

1. Introduction

Resonant nanophotonic structures are widely used in optical biosensing, where changes in the surrounding refractive index produce measurable shifts in the optical spectrum [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]. These spectral changes are typically monitored using one of two sensing modalities: (1) tracking the wavelength shift in narrow resonance peaks [19,20,21,22,23,24,25,26,27,28], or (2) monitoring the intensity change at fixed wavelengths [29,30,31,32,33]. Most existing methods apply simplified one-dimensional fitting routines that rely on a visually selected spectral feature from one of these modalities. While practical, these approaches often overlook rich spectral information distributed across the full wavelength range, which can be potentially used for enhanced accuracy in sensing.
Machine learning has been increasingly used across scientific domains, including biosensing, to uncover patterns in complex data and enhance predictive performance [34,35,36,37,38,39,40,41]. Recent studies have shown that machine learning can significantly enhance biosensor performance, such as in wearable photonic wristbands for cardiorespiratory monitoring and biometric identification [42], and in bioreceptor-free biosensors where ML improves detection accuracy and specificity [39]. In our prior work [43], we introduced a machine learning approach that used multiple pre-selected resonance peak shifts as inputs for ridge regression. That method significantly reduced mean squared error in refractive index prediction, outperforming conventional single-feature techniques by orders of magnitude. However, it still required manual feature selection and was limited to spectra with well-defined peaks.
In parallel, the advancement of optical sensing hardware has been accelerated by the development of metamaterials. These are artificially structured materials engineered to manipulate electromagnetic waves beyond the capabilities of naturally occurring media [44]. Metasurfaces represent the two-dimensional class of metamaterials and offer powerful control over phase, amplitude, and polarization [45,46,47,48,49]. Among them, meta-gratings are periodic metasurfaces with a wide range of applications and are highly suited for biosensing applications due to their strong spectral sensitivity and tunability [50,51,52].
In this work, we explore whether full-spectrum machine learning, without manual feature selection or peak tracking, can improve prediction accuracy across both sensing modalities. We simulate a meta-grating structure consisting of triangular nanorods on a gold reflector, using either titanium (Ti) or silicon (Si) as the rod material. Ti produces broadband intensity modulation representative of fixed-wavelength sensing, while Si supports narrow Mie-type resonances with wavelength shifts. To account for the anisotropic response of the structure, we simulate both TE and TM polarizations. Cross-validation is used to evaluate generalization across unknown index values, mimicking practical biosensing scenarios.
To evaluate generalization, we apply five-fold cross-validation by holding out different refractive index values during training. This mimics experimental biosensing scenarios, where standard samples form a calibration curve and unknown analytes are predicted. Traditional methods rely on one-dimensional fitting at a visually selected wavelength, but our results show that even the best single predictor is identified through machine learning rather than visual inspection. Full-spectrum modeling with principal component analysis (PCA) and linear regression consistently improves accuracy, with up to a 6000-fold mean squared error (MSE) reduction in Ti-based structures due to their smooth, intensity-driven spectra. These findings underscore the critical role of spectral shape and highlight the advantage of full-spectrum approaches, particularly for meta-gratings governed by broadband intensity modulation.

2. Proposed Structure

Figure 1 illustrates the meta-grating structure used as the bulk index sensing platform in this study. The geometry consists of a one-dimensional periodic array of triangular cross-sectioned nanorods positioned on an optically thick gold (Au) reflector. The simulations have revealed that other metals can be used as the back reflector as well, given that they are optically thick to block the transmission. Each nanorod has a base (period) and height of 3 μm, forming an isosceles triangular cross-section. The material of the nanorods is set to either Ti or Si, allowing for the exploration of different resonance behaviors. Ti supports broadband intensity-modulated spectra, while Si enables narrowband Mie-type resonances with distinct peak shifts. This design serves as a unified geometry for comparing different spectral modalities within the same structural platform.
In practice, achieving flat sidewalls in triangular nanorods requires precise fabrication. This can be accomplished either through etching, which often involves optimization of etch parameters, or through nanoimprint lithography, where the fabrication of the initial mold requires high precision. Such fabrication tolerances may influence the resulting optical response compared to the idealized simulations.

3. Simulation Results

Figure 2 presents the absorption spectra of the meta-grating for different material and polarization combinations, with the refractive index of the environment fixed at 1. Figure 2a,b correspond to the Ti-based meta-grating under TM and TE polarizations, respectively. Both configurations display smooth, broadband absorption profiles with low spectral feature density. The spectra lack sharp resonances and instead show gradual intensity variations across the wavelength range. This behavior is characteristic of lossy metallic nanostructures and suggests that the optical response is dominated by broadband absorption rather than discrete resonance effects.
Figure 2c,d show the Si-based meta-grating under TM and TE polarizations, respectively. In these cases, the spectra exhibit a series of narrow, well-resolved resonances, indicative of Mie-type modes supported by high-index dielectric materials [43]. The spectral profiles show greater feature density and sharper variations compared to the Ti cases, and the position and spacing of the resonances differ slightly between TE and TM modes due to the anisotropic response of the structure. These differences in spectral shape across materials and polarizations set the foundation for evaluating how spectral modality influences modeling strategies in subsequent analyses.
Figure 3 shows how the absorption spectra change with variations in the refractive index of the surrounding environment, ranging from 1.3 to 1.5. The meta-grating is simulated under TM and TE polarizations for both Ti and Si nanorods. Figure 3a,b correspond to the Ti-based structures, where the overall spectral shape remains consistent across different refractive indices. The dominant change is in the intensity of absorption at specific regions, rather than shifts in spectral position. This is more evident by the only resonance almost not shifting at all by varying the index. A few wavelengths that appear to exhibit relatively strong monotonic intensity changes are marked on the plots. These points represent wavelengths with the most prominent index-dependent intensity changes and are typically chosen in intensity-modulation–based biosensing approaches.
Figure 3c,d show the Si-based spectra under TM and TE polarizations. Unlike the Ti cases, the spectra here contain dense, sharp resonances that shift in wavelength as the refractive index varies. These features reflect Mie-type behavior typical of high-index dielectric nanostructures. The field analysis representing the physical phenomena underlying such resonances is thoroughly discussed in our prior work [43]. Because the peak shifts are narrow and localized, the intensity at most fixed wavelengths remains relatively constant unless a resonance aligns with that location. This creates a more complex spectral behavior that is less compatible with simple linear modeling. By contrast, the Ti spectra display smoother and more predictable global changes in intensity, which are better suited for linear regression. These observations establish the foundation for comparing full-spectrum machine learning performance across different structural and spectral regimes.
Figure 4 provides magnified views of the selected spectral regions from the Ti-based meta-grating, focusing on wavelengths with high variations in intensity across refractive indices. Figure 4a–d show the spectral response at four different wavelengths, chosen based on visually identifiable intensity changes across refractive indices. These wavelengths were selected because they appear to vary in a monotonic and relatively consistent manner, which aligns with the assumptions of linear modeling. Figure 4a,c show TM polarization results, while Figure 4b,d correspond to TE polarization. Each of these points is used to assess how well a single-wavelength intensity value can serve as a predictor for refractive index using conventional regression.
Figure 4e,f present the same Ti-based spectra, zoomed in around the single spectral peak in TM and TE polarizations, respectively. These plots demonstrate that, unlike the Si-based structures, the single peak position does not shift noticeably with changes in refractive index. The spectral shape remains fixed, and the only observable variation is in the amplitude of absorption. This highlights a key distinction in the sensing behavior of the Ti structure. While the intensity-based features allow for straightforward linear modeling, there is no resonant wavelength tracking involved. These observations confirm that intensity modulation is the dominant mechanism for index detection in Ti-based configurations.
Figure 5 presents a series of zoomed-in absorption spectra for the Si-based meta-grating under TM and TE polarizations, illustrating sharp resonances that shift significantly as the bulk refractive index changes from 1.3 to 1.5. Each subpanel highlights one or more narrow Mie-type resonances and their red-shift across the index increase. The TM mode spectra are shown in the left panel, or Figure 5a,c,e,g, while TE mode results are given in the right panel, or Figure 5b,d,f,h. The selected peaks exhibit high spectral sensitivity and sharpness, with shifts that span tens of nanometers or more for a 0.1 variation in the bulk index. This results in nm/RIU in the order of tens. These shifts often vary in slope and symmetry depending on the peak’s location and the surrounding spectral context.
These peak shifts, which occur consistently across a range of wavelengths, form the foundation of traditional biosensing approaches that rely on tracking the movement of a single resonance. Figure 6 further quantifies this behavior by plotting the wavelength shifts in selected resonances in the Si-based meta-grating as a function of bulk refractive index, revealing strong linearity for individual peaks. The TM polarization results are displayed in Figure 6a, and TE results are shown in Figure 6b. For both polarizations, the tracked peaks exhibit consistent redshifts as the refractive index increases from 1.30 to 1.40, confirming their suitability for refractive index sensing based on spectral displacement. The shift trends appear approximately linear over the simulated range for most peaks, although the magnitude of sensitivity varies substantially across resonance locations. Notably, the 8209 nm peak in the TM configuration shows both the largest and most linear shift, which, as will be discussed later, results in the lowest mean squared error among all single-predictor models in our regression analysis. This observation reinforces the strong link between linearity of spectral displacement and predictive performance in linear modeling frameworks.
When the peak tracing behavior is similar to the one shown in Figure 6, the 1-dimensional linear fitting for a selected peak is the traditional approach for the estimation of the unknown bulk index. In our previous work, we demonstrated that this linear response enables effective modeling through linear or ridge regression when multiple peak shifts are used as inputs, resulting in substantial accuracy improvements over single-feature methods. However, while these isolated peaks behave linearly with respect to index, the full spectrum, comprising many sharp, nonlinear resonances, does not. This fundamental mismatch between spectral shape and linear model assumptions limits the benefit of applying full-spectrum linear regression in the Si-based cases. As we will observe in later sections, unlike our prior study where linear models could leverage the additive effects of multiple linearly shifting features, the current full-spectrum approach yields modest enhancements in silicon structures due to the global nonlinearity embedded in their resonant response.
Table 1 summarizes the one-dimensional linear regression performance for selected peaks shown in Figure 6, based on their index-dependent shifts. For each peak, the MSE mean and MSE standard deviation for the hold-out sets across five-fold cross-validation are reported. The peaks are chosen from both TM and TE polarization modes of the Si-based structure. Notably, the 8209 nm peak under TM polarization demonstrates the lowest MSE (0.0294 ± 0.0068), indicating a highly linear relationship with refractive index (see Figure 6a). In contrast, some TE-polarized peaks, particularly at shorter wavelengths, exhibit higher MSE values, highlighting their limited utility for accurate linear modeling. These results reinforce the importance of feature selection when using single-variable models and provide a benchmark for evaluating data-driven multivariate approaches.

4. Machine Learning Based Full Spectrum Modeling for Precision Enhancement

Figure 7 summarizes the modeling performance across the four datasets by comparing (a) the mean squared error (MSE) of the full-spectrum linear regression model using up to 80 principal components, (b) the corresponding fold enhancement in MSE relative to the best-performing single-feature linear fit, and (c) the MSE values for those best single predictors. The best single predictors were identified via exhaustive search; further details are described in the Supplementary Materials. These comparisons are made in light of the distinct spectral profiles observed in earlier figures. We also decided to use all 80 principal components during our model comparisons to ensure that we would be testing the effectiveness of incorporating all data provided by the spectrum and to ensure that between model variability is representative of differences in dataset and not model parameters such as how many and which principal components were included (Supplementary Table S3). When we tested the model performance using reduced numbers of principal components, we observed a rapidly decreasing benefit of incorporating additional principal components (Supplementary Figure S1 and Supplementary Materials).
In Figure 7a, Ti-based structures (Ti–TM and Ti–TE) exhibit extremely low MSEs of 5.49 × 10−5 and 9.53 × 10−5, respectively, when using full-spectrum modeling with up to 80 PCA components. These values are orders of magnitude lower than those of the Si-based structures: 0.101 for Si–TM and 0.0247 for Si–TE. This performance discrepancy directly reflects the underlying spectral behavior that Ti spectra exhibit smooth, broadband intensity variations with minimal resonant structure, allowing PCA-based linear regression to effectively capture the index-dependent variation. In contrast, Si spectra are dominated by sharp Mie-type resonances that make the intensity shift nonlinearly with index, making them less compatible with global linear modeling.
Figure 7b illustrates the fold enhancement in MSE obtained by transitioning from the best single-feature linear model to full-spectrum PCA-based regression. The Ti–TM dataset shows an 8128-fold reduction in error, followed by Ti–TE with a 684.3-fold improvement. For the Si–TE datasets, the enhancement is more modest (22.76) and for Si–TM dataset, the MSE has gotten worse compared to best 1D peak tracing case. This reflects the fact that much of the predictive information in resonance-dominated spectra is already concentrated in a small number of well-aligned peak features.
Figure 7c shows the baseline MSEs of the best individual peak predictors: 0.446 for Ti–TM, 0.0652 for Ti–TE, 0.0294 for Si–TM, and 0.5629 for Si–TE (see Table 1). Notably, while Si–TM yields the lowest single-feature error among the four, its full-spectrum model improves only marginally. This suggests that, despite spectral richness, the nonlinear behavior of its intensity variation limits the effectiveness of linear PCA-based modeling. In contrast, Ti-based datasets benefit substantially from this approach due to their linear and distributed spectral response.
To validate the use of linear regression, a comparison was performed using multiple machine learning algorithms, including Lasso, support vector regression, random forest, and gradient boosting, on the Ti–TE dataset. Linear regression achieved the lowest MSE and was therefore selected for all four datasets to ensure consistency and interpretability. Although the comparison was limited to a representative dataset, the spectral behavior and resulting trends across configurations confirm the appropriateness of the chosen model.
Figure 8 presents the residual plots of the full-spectrum principal component regression (PCR) model across all four datasets, plotted as the difference between the predicted and true target variables against the true target values (index samples from 1.3 to 1.4 with 0.01 steps mapped onto 1 to 101 with 1 seps). These visualizations offer a direct interpretation of prediction error distributions and provide further insight into the compatibility between spectral behavior and linear modeling.
Figure 8a,b, corresponding to Ti–TM and Ti–TE datasets, respectively, reveal extremely tight clustering of residuals around zero, with minimal dispersion and no noticeable bias or systematic trend across the index range. This strongly supports the earlier findings of exceptionally low MSE in these configurations and reinforces that broadband, smooth intensity modulations in Ti-based spectra align well with linear PCA modeling. The residuals appear nearly uniform and homoscedastic, indicating high model fidelity throughout the entire sensing range.
In contrast, Figure 8c,d, associated with Si–TM and Si–TE datasets, show broader distributions of residuals, with Si–TE in particular displaying a visibly higher variance. This pattern is consistent with the elevated MSEs observed in Figure 7a and is attributed to the nonlinear intensity-shift behavior inherent to Mie-resonant metasurfaces. The increased variability reflects the challenge of approximating such nonlinearity using a limited number of principal components and a linear regression framework.
Together, these residual plots validate the earlier conclusion: the efficacy of linear modeling is heavily influenced by the underlying spectral transformation mechanism. For Ti metasurfaces with gradual, linear intensity shifts, PCR with up to 80 components offers precise, unbiased predictions. For Si metasurfaces, we also tested a series of nonlinear models (Supplementary Table S4). We observed that for the all the nonlinear models, the default hyperparameters resulted in larger mean MSE for the hold-out set in 5-fold cross-validation; however, with careful hyperparameter tuning it was possible for the Support Vector Regressor (SVR) with radial basis function to achieve similar performance to the linear regression for the Si metasurfaces.
It is also noteworthy that while laboratory systems can readily control TE or TM polarization, integrated or portable devices may benefit from designs that are less polarization sensitive. In future work, combining measurements from multiple polarizations, beyond the two principal TE and TM cases, could provide higher data density and improved precision depending on the application.

5. Conclusions

This study investigated the performance of full-spectrum machine learning models, specifically principal component analysis followed by linear regression, in predicting refractive index changes from simulated absorption spectra of metasurface-based biosensors. By comparing four datasets representing different material (Si, Ti) and polarization (TE, TM) configurations, we demonstrated that the predictive accuracy of linear models is strongly influenced by the nature of the underlying spectral changes. Ti-based meta-gratings, characterized by broadband intensity modulation with minimal spectral peak shifts, yielded exceptionally low mean squared errors (MSEs) and tightly clustered residuals. In contrast, Si-based structures with sharp nonlinear Mie resonances showed limited enhancement in performance when modeled using the same linear framework.
The results emphasize the importance of spectral shape in determining the compatibility of linear models with optical sensing data. While PCA-based regression is highly effective for intensity-modulated spectra, its performance is comparatively limited for spectra dominated by resonance shifts. Additionally, the large fold enhancements, exceeding 6000 times for the Ti-based structure and TM polarization, underscore the value of utilizing the entire spectral information rather than relying solely on isolated peak positions. These findings support the use of data-driven feature selection, even in traditional one-dimensional fitting approaches, and suggest that future work incorporating nonlinear modeling could further improve the interpretability and accuracy for complex resonance-based systems. While our results are based on simulated spectra, experimental implementations may face additional challenges such as random noise, temperature drift, and spectrometer resolution. These effects could influence the generalizability of full-spectrum models. Future studies may therefore benefit from incorporating noise reduction techniques, robust regression models, or improved hardware optimization to maintain prediction accuracy in real-world conditions.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/bios15090582/s1, Figure S1: Contribution of additional principal components to the hold-out MSE across 5-fold cross validation; Table S1: Training and test split statistics across 5-fold cross-validation for all datasets, including p-values for independence tests between splits. Table S2: Exhaustive single-wavelength predictor search results (10,000 features) with cross-validated hold-out MSE values for each dataset. Table S3: Contribution of additional principal components on hold-out MSE across the four datasets, showing optimal PC counts for each case. Table S4: Non-linear model performance (default and optimized hyperparameters) compared to linear regression across all datasets.

Author Contributions

Conceptualization, M.A., A.T. and X.F.; methodology, M.A., C.R. and M.A.A.; software, M.A., C.R. and M.A.A.; validation, M.A., C.R. and M.A.A.; formal analysis, M.A., C.R., M.A.A. and X.F.; investigation, M.A., C.R. and M.A.A.; resources, X.F.; data curation, M.A., C.R. and M.A.A.; writing—original draft preparation, M.A., C.R., M.A.A. and X.F.; writing—review and editing, M.A., C.R., M.A.A., A.T. and X.F.; visualization, M.A., C.R., M.A.A. and X.F.; supervision, X.F.; project administration, M.A. and X.F.; funding acquisition, X.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science Foundation through grant number 2225568.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Fan, X.; White, I.M.; Shopova, S.I.; Zhu, H.; Suter, J.D.; Sun, Y. Sensitive optical biosensors for unlabeled targets: A review. Anal. Chim. Acta 2008, 620, 8–26. [Google Scholar] [CrossRef]
  2. Akkilic, N.; Geschwindner, S.; Höök, F. Single-molecule biosensors: Recent advances and applications. Biosens. Bioelectron. 2020, 151, 111944. [Google Scholar] [CrossRef]
  3. Chen, C.; Wang, J. Optical biosensors: An exhaustive and comprehensive review. Analyst 2020, 145, 1605–1628. [Google Scholar] [CrossRef] [PubMed]
  4. Haque, E.; Hossain, A.; Namihira, Y.; Ahmed, F. Microchannel-based plasmonic refractive index sensor for low refractive index detection. Appl. Opt. 2019, 58, 1547–1554. [Google Scholar] [CrossRef] [PubMed]
  5. Homola, J. Present and future of surface plasmon resonance biosensors. Anal. Bioanal. Chem. 2003, 377, 528–539. [Google Scholar] [CrossRef] [PubMed]
  6. Jágerská, J.; Zhang, H.; Diao, Z.; Le Thomas, N.; Houdré, R. Refractive index sensing with an air-slot photonic crystal nanocavity. Opt. Lett. 2010, 35, 2523–2525. [Google Scholar] [CrossRef]
  7. Jakšić, Z.; Vuković, S.; Matovic, J.; Tanasković, D. Negative Refractive Index Metasurfaces for Enhanced Biosensing. Materials 2010, 4, 1–36. [Google Scholar] [CrossRef]
  8. Kaur, B.; Kumar, S.; Kaushik, B.K. Recent advancements in optical biosensors for cancer detection. Biosens. Bioelectron. 2022, 197, 113805. [Google Scholar] [CrossRef]
  9. Konopsky, V.N.; Alieva, E.V. A biosensor based on photonic crystal surface waves with an independent registration of the liquid refractive index. Biosens. Bioelectron. 2010, 25, 1212–1216. [Google Scholar] [CrossRef]
  10. Lavín, Á.; Vicente, J.; Holgado, M.; Laguna, M.; Casquel, R.; Santamaría, B.; Maigler, M.; Hernández, A.; Ramírez, Y.; Lavín, Á.; et al. On the Determination of Uncertainty and Limit of Detection in Label-Free Biosensors. Sensors 2018, 18, 2038. [Google Scholar] [CrossRef]
  11. Liu, Y.; Zhou, W.; Sun, Y. Optical Refractive Index Sensing Based on High-Q Bound States in the Continuum in Free-Space Coupled Photonic Crystal Slabs. Sensors 2017, 17, 1861. [Google Scholar] [CrossRef] [PubMed]
  12. Lodewijks, K.; Van Roy, W.; Borghs, G.; Lagae, L.; Van Dorpe, P. Boosting the Figure-Of-Merit of LSPR-Based Refractive Index Sensing by Phase-Sensitive Measurements. Nano Lett. 2012, 12, 1655–1659. [Google Scholar] [CrossRef] [PubMed]
  13. Maksimov, D.N.; Gerasimov, V.S.; Romano, S.; Polyutov, S.P. Refractive index sensing with optical bound states in the continuum. Opt. Express 2020, 28, 38907–38916. [Google Scholar] [CrossRef] [PubMed]
  14. Perera, C.; Vernon, K.; Cheng, E.; Sathian, J.; Jaatinen, E.; Davis, T. Highly compact refractive index sensor based on stripe waveguides for lab-on-a-chip sensing applications. Beilstein J. Nanotechnol. 2016, 7, 751–757. [Google Scholar] [CrossRef]
  15. Shangguan, Q.; Chen, Z.; Yang, H.; Cheng, S.; Yang, W.; Yi, Z.; Wu, X.; Wang, S.; Yi, Y.; Wu, P. Design of Ultra-Narrow Band Graphene Refractive Index Sensor. Sensors 2022, 22, 6483. [Google Scholar] [CrossRef]
  16. Wang, Q.; Ren, Z.-H.; Zhao, W.-M.; Wang, L.; Yan, X.; Zhu, A.-S.; Qiu, F.-M.; Zhang, K.-K. Research advances on surface plasmon resonance biosensors. Nanoscale 2021, 14, 564–591. [Google Scholar] [CrossRef]
  17. White, I.M.; Fan, X. On the performance quantification of resonant refractive index sensors. Opt. Express 2008, 16, 1020–1028. [Google Scholar] [CrossRef]
  18. Yan, Z.; Yan, S.; Xu, Z.; Chen, C.; Cao, Y.; Yan, X.; Wang, C.; Wu, T. Multi-Structure-Based Refractive Index Sensor and Its Application in Temperature Sensing. Sensors 2025, 25, 412. [Google Scholar] [CrossRef]
  19. Ahn, J.-Y.; Lee, K.-A.; Lee, M.-J.; Sekhon, S.S.; Rhee, S.-K.; Cho, S.-J.; Ko, J.H.; Lee, L.; Han, J.; Kim, S.Y.; et al. Surface Plasmon Resonance Aptamer Biosensor for Discriminating Pathogenic Bacteria Vibrio parahaemolyticus. J. Nanosci. Nanotechnol. 2018, 18, 1599–1605. [Google Scholar] [CrossRef]
  20. Cao, S.; Shao, Y.; Wang, Y.; Wu, T.; Zhang, L.; Huang, Y.; Zhang, F.; Liao, C.; He, J.; Wang, Y. Highly sensitive surface plasmon resonance biosensor based on a low-index polymer optical fiber. Opt. Express 2018, 26, 3988–3994. [Google Scholar] [CrossRef]
  21. Castiello, F.R.; Tabrizian, M. Multiplex Surface Plasmon Resonance Imaging-Based Biosensor for Human Pancreatic Islets Hormones Quantification. Anal. Chem. 2018, 90, 3132–3139. [Google Scholar] [CrossRef]
  22. Culver, H.R.; Wechsler, M.E.; Peppas, N.A. Label-Free Detection of Tear Biomarkers Using Hydrogel-Coated Gold Nanoshells in a Localized Surface Plasmon Resonance-Based Biosensor. ACS Nano 2018, 12, 9342–9354. [Google Scholar] [CrossRef]
  23. Zhu, J.; Gan, S.; Ruan, B.; Wu, L.; Cai, H.; Dai, X.; Xiang, Y. Fano Resonance in Waveguide Coupled Surface Exciton Polaritons: Theory and Application in Biosensor. Sensors 2018, 18, 4437. [Google Scholar] [CrossRef] [PubMed]
  24. Cennamo, N.; Bencivenga, D.; Annunziata, M.; Arcadio, F.; Stampone, E.; Piccirillo, A.; Della Ragione, F.; Zeni, L.; Guida, L.; Borriello, A. Plasmon resonance biosensor for interleukin-1β point-of-care determination: A tool for early periodontitis diagnosis. iScience 2023, 27, 108741. [Google Scholar] [CrossRef] [PubMed]
  25. Chiang, C.C.; Tseng, W.-C.; Tsai, W.-T.; Huang, C.-S. Handheld Biosensor System Based on a Gradient Grating Period Guided-Mode Resonance Device. Biosensors 2023, 14, 21. [Google Scholar] [CrossRef]
  26. Matveeva, E.G.; Stoddard, A.K.; Zeng, H.-H.; Franke, G.; Bourne, L.; Fierke, C.A.; Thompson, R.B. Ratiometric Zinc Biosensor Based on Bioluminescence Resonance Energy Transfer: Trace Metal Ion Determination with Tunable Response. Int. J. Mol. Sci. 2022, 23, 14936. [Google Scholar] [CrossRef]
  27. Mousavi, S.M.; Hashemi, S.A.; Kalashgrani, M.Y.; Rahmanian, V.; Gholami, A.; Chiang, W.-H.; Lai, C.W. Biomedical Applications of an Ultra-Sensitive Surface Plasmon Resonance Biosensor Based on Smart MXene Quantum Dots (SMQDs). Biosensors 2022, 12, 743. [Google Scholar] [CrossRef]
  28. Qi, M.; Lv, D.; Zhang, Y.; Wang, D.; Chen, X.; Zhu, Z.; Hong, Z.; Chai, Y.; Zhang, H.; Cao, Y. Development of a surface plasmon resonance biosensor for accurate and sensitive quantitation of small molecules in blood samples. J. Pharm. Anal. 2022, 12, 929–936. [Google Scholar] [CrossRef]
  29. Wu, T.-H.; Chang, C.-C.; Vaillant, J.; Bruyant, A.; Lin, C.-W. DNA biosensor combining single-wavelength colorimetry and a digital lock-in amplifier within a smartphone. Lab Chip 2016, 16, 4527–4533. [Google Scholar] [CrossRef]
  30. Toma, M.; Namihara, S.; Kajikawa, K. Direct detection of neuron-specific enolase using a spectrometer-free colorimetric plasmonic biosensor. Anal. Methods 2023, 15, 2755–2760. [Google Scholar] [CrossRef]
  31. Fan, Y.; Cui, M.; Liu, Y.; Jin, M.; Zhao, H. Selection and characterization of DNA aptamers for constructing colorimetric biosensor for detection of PBP2a. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2020, 228, 117735. [Google Scholar] [CrossRef] [PubMed]
  32. Kishnani, V.; Kumari, S.; Gupta, A. A Chemometric-Assisted Colorimetric-Based Inexpensive Paper Biosensor for Glucose Detection. Biosensors 2022, 12, 1008. [Google Scholar] [CrossRef] [PubMed]
  33. Gu, Y.; Jiao, L.; Cao, F.; Liu, X.; Zhou, Y.; Yang, C.; Gao, Z.; Zhang, M.; Lin, P.; Han, Y.; et al. A Real-Time Detection Method of Hg2+ in Drinking Water via Portable Biosensor: Using a Smartphone as a Low-Cost Micro-Spectrometer to Read the Colorimetric Signals. Biosensors 2022, 12, 1017. [Google Scholar] [CrossRef] [PubMed]
  34. Banerjee, A.; Maity, S.; Mastrangelo, C.H. Nanostructures for Biosensing, with a Brief Overview on Cancer Detection, IoT, and the Role of Machine Learning in Smart Biosensors. Sensors 2021, 21, 1253. [Google Scholar] [CrossRef]
  35. Hassan, M.; Xu, Y.; Sayada, J.; Zareef, M.; Shoaib, M.; Chen, X.; Li, H.; Chen, Q. Progress of machine learning-based biosensors for the monitoring of food safety: A review. Biosens. Bioelectron. 2024, 267, 116782. [Google Scholar] [CrossRef]
  36. Khanal, B.; Pokhrel, P.; Khanal, B.; Giri, B. Machine-Learning-Assisted Analysis of Colorimetric Assays on Paper Analytical Devices. ACS Omega 2021, 6, 33837–33845. [Google Scholar] [CrossRef]
  37. Kokabi, M.; Tahir, M.N.; Singh, D.; Javanmard, M. Advancing Healthcare: Synergizing Biosensors and Machine Learning for Early Cancer Diagnosis. Biosensors 2023, 13, 884. [Google Scholar] [CrossRef]
  38. Pan, X.; Zhang, Z.; Yun, Y.; Zhang, X.; Sun, Y.; Zhang, Z.; Wang, H.; Yang, X.; Tan, Z.; Yang, Y.; et al. Machine Learning-Assisted High-Throughput Identification and Quantification of Protein Biomarkers with Printed Heterochains. J. Am. Chem. Soc. 2024, 146, 19239–19248. [Google Scholar] [CrossRef]
  39. Schackart, K.E.; Yoon, J.-Y. Machine Learning Enhances the Performance of Bioreceptor-Free Biosensors. Sensors 2021, 21, 5519. [Google Scholar] [CrossRef]
  40. Zhang, K.; Wang, J.; Liu, T.; Luo, Y.; Loh, X.J.; Chen, X. Machine Learning-Reinforced Noninvasive Biosensors for Healthcare. Adv. Healthc. Mater. 2021, 10, 2100734. [Google Scholar] [CrossRef]
  41. Ajala, S.; Jalajamony, H.M.; Nair, M.; Marimuthu, P.; Fernandez, R.E. Comparing machine learning and deep learning regression frameworks for accurate prediction of dielectrophoretic force. Sci. Rep. 2022, 12, 11971. [Google Scholar] [CrossRef]
  42. Li, W.; Long, Y.; Yan, Y.; Xiao, K.; Wang, Z.; Zheng, D.; Leal-Junior, A.; Kumar, S.; Ortega, B.; Marques, C.; et al. Wearable photonic smart wristband for cardiorespiratory function assessment and biometric identification. Opto-Electron. Adv. 2025, 8, 240254. [Google Scholar] [CrossRef]
  43. Aalizadeh, M.; Afshar, M.A.; Fan, X. Machine Learning Enabled Multidimensional Data Utilization Through Multi-Resonance Architecture: A Pathway to Enhanced Accuracy in Biosensing. ACS Omega 2025, 10, 20713–20722. [Google Scholar] [CrossRef] [PubMed]
  44. Richter, F.U.; Sinev, I.; Zhou, S.; Leitis, A.; Oh, S.; Tseng, M.L.; Kivshar, Y.; Altug, H. Gradient High-Q Dielectric Metasurfaces for Broadband Sensing and Control of Vibrational Light-Matter Coupling. Adv. Mater. 2024, 36, 2314279. [Google Scholar] [CrossRef] [PubMed]
  45. Rodrigo, D.; Tittl, A.; Ait-Bouziad, N.; John-Herpin, A.; Limaj, O.; Kelly, C.; Yoo, D.; Wittenberg, N.J.; Oh, S.-H.; Lashuel, H.A.; et al. Resolving molecule-specific information in dynamic lipid membrane processes with multi-resonant infrared metasurfaces. Nat. Commun. 2018, 9, 2160. [Google Scholar] [CrossRef]
  46. Shen, Z.; Du, M. High-performance refractive index sensing system based on multiple Fano resonances in polarization-insensitive metasurface with nanorings. Opt. Express 2021, 29, 28287–28296. [Google Scholar] [CrossRef]
  47. Tittl, A.; John-Herpin, A.; Leitis, A.; Arvelo, E.R.; Altug, H. Metasurface-Based Molecular Biosensing Aided by Artificial Intelligence. Angew. Chem. Int. Ed. Engl. 2019, 58, 14810–14822. [Google Scholar] [CrossRef]
  48. Zhang, C.; Xue, T.; Zhang, J.; Liu, L.; Xie, J.; Wang, G.; Yao, J.; Zhu, W.; Ye, X. Terahertz toroidal metasurface biosensor for sensitive distinction of lung cancer cells. Nanophotonics 2021, 11, 101–109. [Google Scholar] [CrossRef]
  49. Zhang, Z.; Yang, M.; Yan, X.; Guo, X.; Li, J.; Yang, Y.; Wei, D.; Liu, L.; Xie, J.; Liu, Y.; et al. The Antibody-Free Recognition of Cancer Cells Using Plasmonic Biosensor Platforms with the Anisotropic Resonant Metasurfaces. ACS Appl. Mater. Interfaces 2020, 12, 11388–11396. [Google Scholar] [CrossRef]
  50. Aalizadeh, M.; Serebryannikov, A.E.; Ozbay, E.; Vandenbosch, G.A.E. A simple Mie-resonator based meta-array with diverse deflection scenarios enabling multifunctional operation at near-infrared. Nanophotonics 2020, 9, 4589–4600. [Google Scholar] [CrossRef]
  51. Wang, Z.; Dai, C.; Li, Z.; Li, Z. Free-Space Optical Merging via Meta-Grating Inverse-Design. Nano Lett. 2022, 22, 2059–2064. [Google Scholar] [CrossRef]
  52. Wang, X.; Tian, Z.; Pei, S.; Xu, C.; Sun, Q.; Zhang, J.; Wei, J.; Li, F.; Yun, F. Highly Efficient and Linearly Polarized Light Emission of Micro-LED Integrated with Double-Functional Meta-Grating. Nano Lett. 2024, 25, 236–243. [Google Scholar] [CrossRef]
Figure 1. (a) Schematic and (b) cross-sectional side view of the meta-grating refractive index sensor consisting of triangular periodic nanorods on a gold back reflector. Both Si and Ti nanorods were simulated. The geometry serves as a unified platform to compare intensity-modulated (Ti) and resonance-shift (Si) spectral responses under TE and TM polarizations.
Figure 1. (a) Schematic and (b) cross-sectional side view of the meta-grating refractive index sensor consisting of triangular periodic nanorods on a gold back reflector. Both Si and Ti nanorods were simulated. The geometry serves as a unified platform to compare intensity-modulated (Ti) and resonance-shift (Si) spectral responses under TE and TM polarizations.
Biosensors 15 00582 g001
Figure 2. Absorption spectra of the structure at the environment refractive index of 1, using (a) Ti with TM (b) Ti with TE, (c) Si with TM, and (d) Si with TE polarization.
Figure 2. Absorption spectra of the structure at the environment refractive index of 1, using (a) Ti with TM (b) Ti with TE, (c) Si with TM, and (d) Si with TE polarization.
Biosensors 15 00582 g002
Figure 3. Absorption spectra of the structure at the environment with varying refractive indices of 1.3, 1.4, and 1.5 using (a) Ti with TM, (b) Ti with TE, (c) Si with TM, and (d) Si with TE polarization.
Figure 3. Absorption spectra of the structure at the environment with varying refractive indices of 1.3, 1.4, and 1.5 using (a) Ti with TM, (b) Ti with TE, (c) Si with TM, and (d) Si with TE polarization.
Biosensors 15 00582 g003
Figure 4. Localized absorption intensity variation in Ti-based meta-grating structures under TM (left) and TE (right) polarizations for refractive index values of 1.3, 1.4, and 1.5. (ad) Spectra at selected fixed wavelengths showing clear intensity variation with refractive index. (e,f) Resonant regions illustrating nearly no spectral peak shift despite index variation, consistent with intensity-based modulation in Ti-based structures.
Figure 4. Localized absorption intensity variation in Ti-based meta-grating structures under TM (left) and TE (right) polarizations for refractive index values of 1.3, 1.4, and 1.5. (ad) Spectra at selected fixed wavelengths showing clear intensity variation with refractive index. (e,f) Resonant regions illustrating nearly no spectral peak shift despite index variation, consistent with intensity-based modulation in Ti-based structures.
Biosensors 15 00582 g004
Figure 5. Localized resonance shifts in Si-based meta-grating structures under TM (left) and TE (right) polarizations for refractive index values of 1.3, 1.4, and 1.5 (ah) Zoomed-in spectra at different wavelength ranges showing index-dependent peak shifts for TM (a,c,e,g) and TE (b,d,f,h) polarizations.
Figure 5. Localized resonance shifts in Si-based meta-grating structures under TM (left) and TE (right) polarizations for refractive index values of 1.3, 1.4, and 1.5 (ah) Zoomed-in spectra at different wavelength ranges showing index-dependent peak shifts for TM (a,c,e,g) and TE (b,d,f,h) polarizations.
Biosensors 15 00582 g005
Figure 6. Peak location shift vs. bulk index in Si-based meta-grating under (a) TM, and (b) TE polarizarions. Linear behavior is evident while the 8209 nm peak in (a) demonstrates the most linear behavior and the least MSE. Our prior work showed that combining the peaks results in accuracy improvement up to 3 orders of magnitude.
Figure 6. Peak location shift vs. bulk index in Si-based meta-grating under (a) TM, and (b) TE polarizarions. Linear behavior is evident while the 8209 nm peak in (a) demonstrates the most linear behavior and the least MSE. Our prior work showed that combining the peaks results in accuracy improvement up to 3 orders of magnitude.
Biosensors 15 00582 g006
Figure 7. Modeling performance across datasets: (a) Full-spectrum MSE using up to 80 PCA components, (b) fold improvement over best single-feature fit, and (c) MSE of best single-feature model (peak shifts for Si). Error bars indicate standard deviation from five-fold cross-validation.
Figure 7. Modeling performance across datasets: (a) Full-spectrum MSE using up to 80 PCA components, (b) fold improvement over best single-feature fit, and (c) MSE of best single-feature model (peak shifts for Si). Error bars indicate standard deviation from five-fold cross-validation.
Biosensors 15 00582 g007
Figure 8. Residual plots from five-fold cross-validated full-spectrum linear regression. Titanium-based datasets (a,b) show minimal error, while silicon-based cases (c,d) exhibit larger, more scattered residuals.
Figure 8. Residual plots from five-fold cross-validated full-spectrum linear regression. Titanium-based datasets (a,b) show minimal error, while silicon-based cases (c,d) exhibit larger, more scattered residuals.
Biosensors 15 00582 g008
Table 1. Linear regression 1-dimensional fitting metrics for the peak shifts in Figure 6.
Table 1. Linear regression 1-dimensional fitting metrics for the peak shifts in Figure 6.
TM_SiTE_Si
Peak Location (nm) 1MSEPeak Location (nm)MSE
Meanstd Meanstd
29440.791980.16526213210.0350071.84389
45655.897531.0770623581.8228540.59077
57340.755890.1094325022.9071570.63826
82090.029440.0068326450.5628970.07325
Note 1: The peak locations (in nm) mentioned in the table refer to their locations at the bulk index of 1.3.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Aalizadeh, M.; Raut, C.; Azmoudeh Afshar, M.; Tabartehfarahani, A.; Fan, X. Accuracy Enhancement in Refractive Index Sensing via Full-Spectrum Machine Learning Modeling. Biosensors 2025, 15, 582. https://doi.org/10.3390/bios15090582

AMA Style

Aalizadeh M, Raut C, Azmoudeh Afshar M, Tabartehfarahani A, Fan X. Accuracy Enhancement in Refractive Index Sensing via Full-Spectrum Machine Learning Modeling. Biosensors. 2025; 15(9):582. https://doi.org/10.3390/bios15090582

Chicago/Turabian Style

Aalizadeh, Majid, Chinmay Raut, Morteza Azmoudeh Afshar, Ali Tabartehfarahani, and Xudong Fan. 2025. "Accuracy Enhancement in Refractive Index Sensing via Full-Spectrum Machine Learning Modeling" Biosensors 15, no. 9: 582. https://doi.org/10.3390/bios15090582

APA Style

Aalizadeh, M., Raut, C., Azmoudeh Afshar, M., Tabartehfarahani, A., & Fan, X. (2025). Accuracy Enhancement in Refractive Index Sensing via Full-Spectrum Machine Learning Modeling. Biosensors, 15(9), 582. https://doi.org/10.3390/bios15090582

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop