RamanLens Raman & SERS spectral machine-learning workbench

Load spectra

Drop CSV, TXT, TSV or Excel files. A file can hold one spectrum or hundreds, arranged in columns or in rows; RamanLens detects the layout, and you set the class label and patient/sample ID before adding them.

Drop spectrum files hereor
Supported file layouts
  • Spectra in columns: first column is Raman shift (cm⁻¹), every further column is one spectrum. An optional header row gives spectrum names.
  • Spectra in rows: the header row holds the Raman shifts; each row is one spectrum. Leading text columns such as ID, Patient or Label are recognised as name, sample ID and class.
  • Two-column files (shift, intensity) are read as one spectrum each, so a folder of instrument exports can be dropped at once.
  • Wavenumber axes may differ between files and need not be evenly spaced; everything is interpolated to one common axis in step 2.

Preprocessing pipeline

Each step applies to every spectrum independently, so nothing leaks between training and test folds. The preview updates as you change a setting.

Class means after preprocessing

Explore the data

Look before you train: where do the classes differ, do they separate without supervision, and are there spectra that do not belong?

Train & validate

Compare models under the same cross-validation. With replicate spectra per patient, use patient-level folds so the same person never sits in both training and test sets.

Explain the model

Which Raman bands drive the decision? Attributions are matched against a band library to suggest a biochemical assignment, and any band can be excluded and the model retrained in one click.

Predict new spectra

Classify unlabelled spectra with the final model. Each prediction carries a confidence and an out-of-distribution check, so a spectrum unlike anything in training is flagged instead of forced into a class.

Report

A reproducible record of this analysis: data, every preprocessing parameter, validation design and results. Copy it into a lab notebook or manuscript methods section.

Service design

How the original desktop tool maps onto this web service, what was added, and how the browser prototype grows into a multi-user platform.

For research use only. RamanLens is not a medical device and must not be used for clinical diagnosis or treatment decisions. All computation runs in your browser; spectra you load are not uploaded anywhere.