Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan 21;10(1):e0105824.
doi: 10.1128/msystems.01058-24. Epub 2024 Dec 10.

Rapid diagnosis of bacterial vaginosis using machine-learning-assisted surface-enhanced Raman spectroscopy of human vaginal fluids

Affiliations

Rapid diagnosis of bacterial vaginosis using machine-learning-assisted surface-enhanced Raman spectroscopy of human vaginal fluids

Xin-Ru Wen et al. mSystems. .

Abstract

Bacterial vaginosis (BV) is an abnormal gynecological condition caused by the overgrowth of specific bacteria in the vagina. This study aims to develop a novel method for BV detection by integrating surface-enhanced Raman scattering (SERS) with machine learning (ML) algorithms. Vaginal fluid samples were classified as BV positive or BV negative using the BVBlue Test and clinical microscopy, followed by SERS spectral acquisition to construct the data set. Preliminary SERS spectral analysis revealed notable disparities in characteristic peak features. Multiple ML models were constructed and optimized, with the convolutional neural network (CNN) model achieving the highest prediction accuracy at 99%. Gradient-weighted class activation mapping (Grad-CAM) was used to highlight important regions in the images for prediction. Moreover, the CNN model was blindly tested on SERS spectra of vaginal fluid samples collected from 40 participants with unknown BV infection status, achieving a prediction accuracy of 90.75% compared with the results of the BVBlue Test combined with clinical microscopy. This novel technique is simple, cheap, and rapid in accurately diagnosing bacterial vaginosis, potentially complementing current diagnostic methods in clinical laboratories.

Importance: The accurate and rapid diagnosis of bacterial vaginosis (BV) is crucial due to its high prevalence and association with serious health complications, including increased risk of sexually transmitted infections and adverse pregnancy outcomes. Although widely used, traditional diagnostic methods have significant limitations in subjectivity, complexity, and cost. The development of a novel diagnostic approach that integrates SERS with ML offers a promising solution. The CNN model's high prediction accuracy, cost-effectiveness, and extraordinary rapidity underscore its significant potential to enhance the diagnosis of BV in clinical settings. This method not only addresses the limitations of current diagnostic tools but also provides a more accessible and reliable option for healthcare providers, ultimately enhancing patient care and health outcomes.

Keywords: SERS; bacterial vaginosis; deep learning; machine learning; rapid identification.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Fig 1
Fig 1
Structure and properties of silver nanoparticles. (A) TEM image of AgNPs. (B) The absorption spectrum of AgNPs; the characteristic absorption peak is located at 428 nm. (C) Histogram of the diameter distribution of silver nanoparticles. The red bars in the figure represent the number distribution of particles with different diameters, and the covered black curve is the Gaussian fit of the distribution, with an SD of 26.37 nm, used to describe the width of the particle size distribution. (D) SERS spectral curves of different solutions. Each curve represents the Raman scattering intensity as a function of Raman shift for a specific compound.
Fig 2
Fig 2
SERS and PCA analysis. (A and B) SERS fingerprints of BV-positive and BV-negative samples. (C and D) Deconvolution spectra of positive and negative SERS signals. (E and F) Loading plots for positive and negative SERS signals.
Fig 3
Fig 3
Comparison of OPLS-DA performance between the raw and normalized SERS data. (A) Raw and (B) normalized BV-positive and BV-negative scatter plots. R2X and R2Y represent the percentage of input matrix information that the model can explain respectively. Q2 is used to evaluate the predictive ability of the model. The range of three metrics is (0, 1), and the larger the value, the better the prediction performance of the model.
Fig 4
Fig 4
Performance evaluation of ML models. (A) ROC curves of seven algorithms and ROC curves of different colors have been quantified with AUC values. (B) Confusion matrix of CNN. TPR, true positive rate; FPR, false positive rate.
Fig 5
Fig 5
CNN architecture and classification activation mapping. (A) Heatmaps generated by Grad-CAM technology. (B) Structure diagram of CNN.
Fig 6
Fig 6
Blind sample testing of CNN models. (A) BV-positive prediction distribution. (B) BV-negative prediction distribution.

Similar articles

Cited by

References

    1. van de Wijgert J, Borgdorff H, Verhelst R, Crucitti T, Francis S, Verstraelen H, Jespers V. 2014. The vaginal microbiota: what have we learned after a decade of molecular characterization? PLoS ONE 9:e105998. doi:10.1371/journal.pone.0105998 - DOI - PMC - PubMed
    1. Chen X, Lu Y, Chen T, Li R. 2021. The female vaginal microbiome in health and bacterial vaginosis. Front Cell Infect Microbiol 11:631972. doi:10.3389/fcimb.2021.631972 - DOI - PMC - PubMed
    1. Sha BE, Chen HY, Wang QJ, Zariffard MR, Cohen MH, Spear GT. 2005. Utility of amsel criteria, Nugent score, and quantitative PCR for Gardnerella vaginalis, Mycoplasma hominis, and Lactobacillus spp. for diagnosis of bacterial vaginosis in human immunodeficiency virus-infected women. J Clin Microbiol 43:4607–4612. doi:10.1128/JCM.43.9.4607-4612.2005 - DOI - PMC - PubMed
    1. Nugent RP, Krohn MA, Hillier SL. 1991. Reliability of diagnosing bacterial vaginosis is improved by a standardized method of gram stain interpretation. J Clin Microbiol 29:297–301. doi:10.1128/jcm.29.2.297-301.1991 - DOI - PMC - PubMed
    1. Coleman JS, Gaydos CA. 2018. Molecular diagnosis of bacterial vaginosis: an update. J Clin Microbiol 56:00342–18. doi:10.1128/JCM.00342-18 - DOI - PMC - PubMed

LinkOut - more resources