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
. 2024 May 23;9(22):23241-23251.
doi: 10.1021/acsomega.3c09247. eCollection 2024 Jun 4.

RamanFormer: A Transformer-Based Quantification Approach for Raman Mixture Components

Affiliations

RamanFormer: A Transformer-Based Quantification Approach for Raman Mixture Components

Onur Can Koyun et al. ACS Omega. .

Abstract

Raman spectroscopy is a noninvasive technique to identify materials by their unique molecular vibrational fingerprints. However, distinguishing and quantifying components in mixtures present challenges due to overlapping spectra, especially when components share similar features. This study presents "RamanFormer", a transformer-based model designed to enhance the analysis of Raman spectroscopy data. By effectively managing sequential data and integrating self-attention mechanisms, RamanFormer identifies and quantifies components in chemical mixtures with high precision, achieving a mean absolute error of 1.4% and a root mean squared error of 1.6%, significantly outperforming traditional methods such as least squares, MLP, VGG11, and ResNet50. Tested extensively on binary and ternary mixtures under varying conditions, including noise levels with a signal-to-noise ratio of up to 10 dB, RamanFormer proves to be a robust tool, improving the reliability of material identification and broadening the application of Raman spectroscopy in fields, such as material science, forensics, and biomedical diagnostics.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing financial interest.

Figures

Figure 1
Figure 1
Diagram illustrates the sequential composition of layers in the proposed model for robust spectral analysis and precise component ratio prediction. Here, N stands for the number of samples (eq 5).
Figure 2
Figure 2
Raman spectra presented here showcase a specific ternary mixture and its individual components: (a) methanol (M), (b) isopropyl alcohol (IPA), and (c) ethanolamine (E) and (d) Raman spectrum of a ternary mixture composed of M, IPA, and E. The respective ratios of these components in the mixture are methanol at 78.75%, isopropyl alcohol at 8.75%, and ethanolamine at 12.50%.
Figure 3
Figure 3
Prediction errors of methanol (M), isopropyl alcohol (IPA), and ethanolamine (E) in the mixtures of (a) isopropyl alcohol and ethanolamine, (b) methanol and ethanolamine, and (c) methanol and isopropyl alcohol. Actual mixture percentages of M, IPA, and E are specified under each bar plot, respectively.
Figure 4
Figure 4
Prediction errors of methanol (M), isopropyl alcohol (IPA), and ethanolamine (E) in the ternary mixtures. Actual mixture percentages of M, IPA, and E are specified under each bar plot, respectively.
Figure 5
Figure 5
Prediction errors of methanol (M), isopropyl alcohol (IPA), and ethanolamine (E) in the binary mixtures of challenging scenarios, where one chemical is dominant and the other chemical is present in very low amounts.
Figure 6
Figure 6
Demonstration that when exposed to a noisy training set characterized by diverse signal-to-noise ratio (SNR) values, the model exhibits the capability to achieve convergence even with a signal-to-noise ratio (SNR) of 0 dB, though with a somewhat higher error. Training instances are augmented with additive Gaussian noise as in eq 6, while evaluation of the error is conducted on the clean, untouched test data.
Figure 7
Figure 7
Evaluation of the RamanFormer model’s performance across different levels of additive noise, as measured by varying signal-to-noise ratios (SNR), showcasing its durability against noise in test data. Notably, RamanFormer remains effective against noise up to a 10 dB SNR threshold, after which error rates start to increase gradually.

References

    1. Sigle M.; Rohlfing A.-K.; Kenny M.; Scheuermann S.; Sun N.; Graeßner U.; Haug V.; Sudmann J.; Seitz C. M.; Heinzmann D.; et al. Translating genomic tools to Raman spectroscopy analysis enables high-dimensional tissue characterization on molecular resolution. Nat. Commun. 2023, 14, 5799.10.1038/s41467-023-41417-0. - DOI - PMC - PubMed
    1. Neng J.; Zhang Q.; Sun P. Application of surface-enhanced Raman spectroscopy in fast detection of toxic and harmful substances in food. Biosens. Bioelectron. 2020, 167, 11248010.1016/j.bios.2020.112480. - DOI - PubMed
    1. Ryzhikova E.; Ralbovsky N. M.; Sikirzhytski V.; Kazakov O.; Halamkova L.; Quinn J.; Zimmerman E. A.; Lednev I. K. Raman spectroscopy and machine learning for biomedical applications: Alzheimer’s disease diagnosis based on the analysis of cerebrospinal fluid. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy 2021, 248, 11918810.1016/j.saa.2020.119188. - DOI - PubMed
    1. Boonsit S.; Kalasuwan P.; van Dommelen P.; Daengngam C. Rapid material identification via low-resolution Raman spectroscopy and deep convolutional neural network. Journal of Physics: Conference Series. 2021, 1719, 01208110.1088/1742-6596/1719/1/012081. - DOI
    1. de Oliveira Penido C. A. F.; Pacheco M. T. T.; Lednev I. K.; Silveira L. Jr Raman spectroscopy in forensic analysis: identification of cocaine and other illegal drugs of abuse. J. Raman Spectrosc. 2016, 47, 28–38. 10.1002/jrs.4864. - DOI

LinkOut - more resources