Vidatox

Deep learning mitigates batch effects in Raman spectroscopy

Deep learning mitigates batch effects in Raman spectroscopy

Ion Petre ORCID: orcid.org/0000-0002-5014-55291 Scientific Reports volume 16, Article number: 34019 (2026) Cite this article Raman spectroscopy is widely used for its ability to provide rich molecular-level information from biological samples. However, the high sensitivity of Raman spectra can also unintentionally encode extraneous information, such as patient identity, instrument-specific signatures, environmental conditions, and sample handling protocols.

This hidden structure, referred to as the batch effect, poses increasing challenges in machine learning applications, where it can lead to model overfitting, poor generalization, and even privacy risks when datasets are shared. In this work, we investigate the presence and impact of the batch effect in a Raman spectroscopy dataset derived from glioma tumor samples. We show that deep learning can accurately predict patient identity from individual spectra, revealing strong bias patterns in the data.

To mitigate this issue, we explore several approaches and introduce an algorithmic framework based on adversarial deep learning. Our method effectively reduces the influence of confounding sample-specific signals while preserving information relevant to tumor classification. These findings highlight the need for careful bias control in Raman-based AI pipelines and provide tools to support more robust applications in biomedical spectroscopy.

Computational biology and bioinformatics Utilizing machine learning (ML) to perform highly advanced analyzes and to aid experts in formalizing patient diagnoses continues to be one of the many promising aspects of utilizing artificial intelligence (AI) within the medical field. This frontier continues to expand at a rapid pace, in no small part due to the expansion of openly available datasets through resources such as The Cancer Genome Atlas (TCGA) and so-called Kaggle competitions.

Due to the maintained interest in deep learning, many different avenues have opened up for highly complex deep learning models applied to large datasets of various cohorts1,2,3. The increase in available datasets has led researchers to develop models on combinations of these datasets.

However, recent studies have shown how models trained on combinations of different datasets develop a type of bias, allowing the models to learn patterns correlated with the original experimental designs rather than the research-specific patterns they were intended for4,5,6,7,8,9. This is often referred to as the batch effect, a form of sample-specific bias. The batch effect is not caused by a lack of proper acquisition strategies or sample preparation protocols.

Rather, the issue is caused by the high sensitivity of the instruments, particularly Raman spectrometers, which may include systematic, non-biological differences that are not trivially noticeable.

This may be caused by the specifics of the instrument and its setup, by the experimental conditions (including day-to-day drift in Raman measurements, laser power fluctuations, and light intensity in the experimental room), by sample preparation protocols (thickness of the sample, cell culture or sample preservation conditions, and storage medium), or by subtle changes between operators or labs (in Raman experiments, variation in focusing, calibration, denoising, and baseline correction).

Our investigation shows that this effect is not exclusive to data from different acquisition sites; it is also reflected in Raman data from the same lab, extracted at different times. We view the batch effect as yet another artifact, similar to noise, baseline signals, and cosmic ray spikes in Raman data, that must be acknowledged, rectified, and accounted for in the computational design.

Raman spectroscopy is a non-destructive analytical technique used to probe molecular vibrations within materials, producing spectra that serve as distinctive molecular fingerprints of the sample. The high informational content of Raman spectra aligns naturally with modern computational approaches, including statistical analysis, machine learning, and deep learning methods10,11,12.

In recent years, the integration of Raman spectroscopy with artificial intelligence has enabled a range of impactful applications in oncology. These include label-free molecular profiling13, intra-operative tumor margin assessment14,15, tumor classification and molecular sub-typing16,17,18, and monitoring of treatment response19,20,21. Our computational pipeline to reduce the batch effect on Raman spectroscopy data. We adopt an adversarial learning approach based on two model components.

The first one is a feature importance layer, whose objective is to optimize the feature set to be processed by the rest of the model. The second component is a classifier working on the optimized feature set to maximize the accuracy of the biological question under study. The model is trained in an adversarial fashion. With the classifier locked, we train the feature importance layer to minimize the batch effect, while maximizing the biological accuracy.

The adversarial step locks the feature importance layer and it evaluates its batch effect by training the classifier to maximize both the batch effect, and the biological accuracy. The two update steps are iterated until convergence. Pseudocode describing this process along with the preprocessing methods are available in the Supplementary material, Algorithm 1. In this study, we investigate the batch effect in Raman spectra acquired from glioma tumors.

Our analysis is based on the APOLLO dataset16, which contains Raman measurements from 59 glioma samples representing various tumor subtypes collected from 46 unique patient-sample ids. We demonstrate that Raman spectroscopy data is so rich and sensitive that a machine learning model can accurately predict patient identity solely from the spectral signatures. This highlights a significant batch effect in the data.

To address this, we evaluate several strategies aimed at reducing this bias while preserving the ability to accurately classify the tumor type. Specifically, we assess whether the predictability of patient identity decreases after debiasing without compromising performance in identifying the glioma subtype. Our approaches include classical spectral correction techniques (such as baseline correction, cosmic ray removal, and denoising) as well as deep learning-based methods.

In the latter, we design encoder-based and binary-headed deep neural network models trained in an adversarial fashion (Fig. 1). The encoder is optimized to retain features predictive of IDH mutation status while suppressing those informative for patient identity, thereby eliminating sample-specific patterns responsible for identity recognition. We quantitatively evaluate the effectiveness of these methods in reducing bias while maintaining clinically relevant classification performance.

We provide an example of how to approach batch effect reduction in Raman spectroscopy datasets. This can be done by first identifying classification tasks that prove the presence of biased data patterns in the project. Then, the biased labels are utilized to train a model containing our feature importance layer to dynamically curate the input signal. Our results show that this can reduce the bias within feature-rich Raman spectroscopy data of glioma tumors.

Our contribution to this ongoing effort is in the strategy for leveraging adversarial training to discover relevant features with respect to biological classification while removing features relevant for biased patterns responsible for the batch effect. The cause of the batch effect originates from heterogeneous data distributions, which result from differing experimental setups22,23.

This has raised concerns regarding the use of deep learning methods applied to larger datasets7,24,25, and the topic continues to be studied in various contexts using statistical methods26 and machine learning methods27,28,29. Research focused on removing the batch effect has expanded in the context of RNA-sequencing data. The review in30 applied six standard methods for batch effect mitigation on two simulated datasets, separated by the severity of the batch effect.

Their results showed that the so called ComBat method23, utilizing the empirical Bayes algorithm, outperformed other methods in reducing the batch effect. The BBKNN method31 has seen successful applications in reducing the batch effect for sequence data by forming graphs in the principal component analysis reduced space among multiple batches of data.

To better track the mitigation process performed by these models, the BEER method32 was introduced with the aim of providing explanations for how the batch effect was reduced while improving the performance of BBKNN. The use of deep learning methods for addressing the batch effect in data is a more recent direction.

Kheiri et al.33 showed that whole slide images of two different cancers, taken from two differing acquisition sites, could be used to train a neural network model for predicting cancer type and acquisition site in tandem. They proved that the color staining, used differently at each acquisition site, partially caused the batch effect and retrained their model using gray-scale images with added noise.

The accuracy of acquisition sites diminished after processing the data, while cancer type accuracy was maintained, showcasing a reduced impact of the batch effect in their dataset. Their results indicate the need for intuitive deduction in identifying possible causes of the batch effect. The recent work by Fung et al.34 utilized the LassoNet35 deep learning model to reduce the batch effect in a microbes dataset. Their approach builds on the observation of Kheiri et al.

that the batch effect can be quantified through learning biased data patterns. Their results showed a promising avenue for improving classification accuracy on omics data while reducing batch effect patterns through an autoencoder architecture. Their work measured the batch effect occurring by combining the data from 5 different studies. We used the dataset from16, consisting of Raman spectra extracted from 46 unique patient tumors. All the samples were provided by Dr. Houtan Noushmehr.

Полезные ссылки

Покупка и условия заказа Vidatox

Если после новости вы хотите перейти к покупке, цене или доставке Vidatox 30CH, используйте нужный раздел ниже.

купить видатоксцена Vidatoxдоставка Vidatoxоплата и заказ

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts