Sharpness-Aware Minimization (SAM) Improves Classification Accuracy of Bacterial Raman Spectral Data Enabling Portable Diagnostics

arXiv cs.LG Papers

Summary

This paper demonstrates the use of Sharpness-Aware Minimization (SAM) to enhance the generalization of machine learning models for classifying bacterial Raman spectral data, improving accuracy by up to 10.5% and advancing portable diagnostic tools for antimicrobial resistance.

arXiv:2609.19453v1 Announce Type: new Abstract: Antimicrobial resistance is expected to claim 10 million lives per year by 2050, and resource-limited regions are most affected. Raman spectroscopy is a novel pathogen diagnostic approach promising rapid and portable antibiotic resistance testing within a few hours, compared to days when using gold standard methods. However, current algorithms for Raman spectra analysis 1) are unable to generalize well on limited datasets across diverse patient populations and 2) require increased complexity due to the necessity of non-trivial pre-processing steps, such as feature extraction, which are essential to mitigate the low-quality nature of Raman spectral data. In this work, we address these limitations using Sharpness-Aware Minimization (SAM) to enhance model generalization across a diverse array of hyperparameters in clinical bacterial isolate classification tasks. We demonstrate that SAM achieves accuracy improvements of up to 10.5% on a single split, and an increase in average accuracy of 2.7% across all splits in spectral classification tasks over the traditional optimizer, Adam. These results display the capability of SAM to advance the clinical application of AI-powered Raman spectroscopy tools.
Original Article
View Cached Full Text

Cached at: 09/18/26, 08:56 AM

# Sharpness-Aware Minimization (SAM) Improves Classification Accuracy of Bacterial Raman Spectral Data Enabling Portable Diagnostics
Source: [https://arxiv.org/html/2609.19453](https://arxiv.org/html/2609.19453)
Jarett Dewbury\*Loza F\. TadesseAffiliation:Department of Mechanical EngineeringAffiliation:Massachusetts Institute of TechnologyAffiliation:Cambridge, MA 02139, USAEmail:[\{kzareno,jdewbury,lozat\}@mit\.edu](mailto:)Siamak K\. SorooshyariAffiliation:Department of StatisticsAffiliation:Stanford UniversityAffiliation:Palo Alto, CA 94305, USAEmail:[siamak@stanford\.edu](mailto:)Hossein MobahiAffiliation:Google ResearchAffiliation:Mountain View, CA 94043, USAEmail:[hmobahi@google\.com](mailto:)

###### Abstract

Antimicrobial resistance is expected to claim 10 million lives per year by 2050, and resource\-limited regions are most affected\. Raman spectroscopy is a novel pathogen diagnostic approach promising rapid and portable antibiotic resistance testing within a few hours, compared to days when using gold standard methods\. However, current algorithms for Raman spectra analysis 1\) are unable to generalize well on limited datasets across diverse patient populations and 2\) require increased complexity due to the necessity of non\-trivial pre\-processing steps, such as feature extraction, which are essential to mitigate the low\-quality nature of Raman spectral data\. In this work, we address these limitations using Sharpness\-Aware Minimization \(SAM\) to enhance model generalization across a diverse array of hyperparameters in clinical bacterial isolate classification tasks\. We demonstrate that SAM achieves accuracy improvements of up to10\.5%10\.5\\%on a single split, and an increase in average accuracy of2\.7%2\.7\\%across all splits in spectral classification tasks over the traditional optimizer, Adam\. These results display the capability of SAM to advance the clinical application of AI\-powered Raman spectroscopy tools\. Code is available at:[https://github\.com/Tadesse\-Lab/SAM\-Raman\-Diagnostics](https://github.com/Tadesse-Lab/SAM-Raman-Diagnostics)

## 1Introduction

Antimicrobial resistance is the second biggest global health threat and is expected to surpass cancer by 2050\([de Kraker et al\., 2016](https://arxiv.org/html/2609.19453#bib.bib1)\)as the second leading cause of death in the United States\. According to the Centers for Disease Control and Prevention \(CDC\), nearly50%50\\%of all outpatient antibiotic usage is improper, including unnecessary use and inappropriate selection, dosing, and duration of antibiotic treatments\([Centers for Disease Control and Prevention \(CDC\), 2011](https://arxiv.org/html/2609.19453#bib.bib2);[Pichichero, 2002](https://arxiv.org/html/2609.19453#bib.bib4);[Shapiro et al\., 2014](https://arxiv.org/html/2609.19453#bib.bib3)\)\. Altogether, such usage compromises effectiveness and contributes significantly to antimicrobial resistance\. In the context of this escalating challenge, it is crucial to recognize that certain regions, such as developing nations or conflict zones, where access to quality hospital\-level clinical care is limited, are most vulnerable\. Thus, a rapid, reliable, and compact solution for bacterial infection diagnosis is needed to provide timely and accurate treatment\. A promising tool is Raman spectroscopy, an optical technique that captures inelastically scattered light acting as a fingerprint for precise mapping to specific pathogen types\. Within seconds, this method can identify not only the primary pathogen but also its mutated antibiotic resistant variants\([Das and Agrawal, 2011](https://arxiv.org/html/2609.19453#bib.bib5);[Garcia\-Rico et al\., 2018](https://arxiv.org/html/2609.19453#bib.bib7);[Pieczonka and Aroca, 2008](https://arxiv.org/html/2609.19453#bib.bib6)\)\.

In this work, we address the intrinsic data quality challenges of working with Raman spectral data by utilizing Sharpness\-Aware Minimization \(SAM\) as an optimizer for Raman spectral data analysis\. Our main contribution is as follows: we demonstrate that SAM is an effective optimizer for clinical Raman spectroscopy\-based pathogen classification tasks, achieving an increase in accuracy of up to10\.5%10\.5\\%on a single split, and an increase in average accuracy of2\.7%2\.7\\%across all splits when compared to a standard ResNet architecture with Adam\. The results demonstrate accuracy and generalizability in translating rapid on\-device pathogen diagnostics for patients in need\.

## 2Background and Related Work

Although Raman spectroscopy is a promising tool for portable and rapid infectious disease diagnostics, Raman spectral data tends to be complex, high\-dimensional, and noisy\. Due to intrinsic limitations in the quality of Raman spectral data, current ML\-based \(machine learning\) approaches in Raman spectroscopy often encounter 1\) increased complexity due to the necessity of extra enhancing steps, such as feature extraction\([Gautam et al\., 2015](https://arxiv.org/html/2609.19453#bib.bib10);[Pelletier, 2003](https://arxiv.org/html/2609.19453#bib.bib9)\), and 2\) poor generalization due to limited datasets and small sample sizes, which have high variability both within individual patient samples and across patient populations\([Luo et al\., 2022](https://arxiv.org/html/2609.19453#bib.bib11)\)\. These data challenges limit the clinical translation of portable Raman spectroscopy\-based diagnostics\.

Deep learning offers the advantage of extracting non\-linearities in the data without the need for non\-trivial pre\-processing\([Liu et al\., 2017](https://arxiv.org/html/2609.19453#bib.bib12)\), allowing for improved classification and more rapid processing in clinical translation\. 1D convolutional neural networks \(CNNs\) and ResNets are the most commonly applied models in Raman classification tasks, and certain architectures \(Figure[1](https://arxiv.org/html/2609.19453#S3.F1)\) have achieved accuracies of up to99%99\\%in classifying pathogen types and antibiotic resistance using Raman spectra\([Ho et al\., 2019](https://arxiv.org/html/2609.19453#bib.bib8);[Ogunlade et al\., 2023](https://arxiv.org/html/2609.19453#bib.bib13)\)\. However, prior ML classification tasks have required multiple samples to make a majority class prediction, and since sampling is a time\-consuming process, it is less desirable for clinical translation where rapid assessment is needed\.

SAM offers a potential solution to the generalization challenges that come with the application of traditional ML approaches to small datasets\. Unlike previous optimization methods that may develop sharp minima and have poor generalization, SAM is an optimization technique that improves generalization by minimizing both the loss value and loss sharpness simultaneously\([Foret et al\., 2021](https://arxiv.org/html/2609.19453#bib.bib15)\)\. The ability to effectively generalize to unseen data makes SAM a useful tool for addressing the limited data issue commonly encountered in deep learning inference tasks with Raman spectral data\. Despite its success in healthcare\-related tasks\([Song et al\., 2022](https://arxiv.org/html/2609.19453#bib.bib17);[Anand et al\., 2022](https://arxiv.org/html/2609.19453#bib.bib16)\)and its promise towards advancing generalization in tasks with data quality concerns, SAM has not yet been applied to Raman spectral data\. In this work, we address this gap by using SAM to enhance model generalization across a diverse array of hyperparameters in patient\-derived bacterial classification tasks\.

## 3Methods

### 3\.1Sampling Method:

Clinical significance was preserved through subject\-level sampling by excluding complete patient samples from either the train or test set\. This approach ensured that our model had not seen any spectra from the clinical isolates in the test set during training, maintaining the integrity of the simulation on a subject\-level\. We utilized this method in our clinical evaluation pipeline as described below\.

To demonstrate our algorithm’s performance, we used publicly available spectral data from a leading Raman spectroscopy and CNN\-based work by[Ho et al\. \(2019\)](https://arxiv.org/html/2609.19453#bib.bib8)\. We obtained clinical bacterial isolate spectral data spanning the five most common first\-line antibiotic treatment groups\. This data was collected in groups of two distinct biological replicates\. The dataset comprises 50 distinct clinical isolates collected from individual patients, categorized into five bacterial pathogen classes\. It includes an equal distribution of five patient sources per infection type\. To assess the efficacy of SAM with a ResNet architecture for Raman we performed random stratified splitting on this clinical spectral dataset\.

To demonstrate clinically relevant evaluation, we began by randomly assigning one patient per infection type from each of the two biological replicates to the test set \(Figure[A\.1](https://arxiv.org/html/2609.19453#A1.F1)\)\. The remaining four patients in each type were utilized for training where they were split 90/10 into train and validation sets\. We then evaluated each model on the test dataset which contains independent clinical data that has not been seen in the training pipeline\. We repeated this process 10 times, employing randomized splits for each iteration \(Figure[1\(b\)](https://arxiv.org/html/2609.19453#A1.F1.sf2)\)\. This approach was utilized to enhance variation within test sets and introduce a diverse set of data splits\. We report classification results on the test dataset across five trials per split\.

### 3\.2Architecture Configuration and Select Hyperparameters

For our baseline architecture, we utilized the ResNet described in[Ho et al\. \(2019\)](https://arxiv.org/html/2609.19453#bib.bib8)\(Figure[1](https://arxiv.org/html/2609.19453#S3.F1)\) due to the architecture’s proven efficacy in bacterial classification tasks\. Throughout the course of experimentation, this architecture and the associated hyperparameters were modified in order to optimize model performance\. During experimentation, we examined the use of Gaussian Error Linear Unit \(GELU\) activation\([Hendrycks and Gimpel, 2016](https://arxiv.org/html/2609.19453#bib.bib18)\), Rectified Linear Unit \(ReLU\) activation\([Nair and Hinton, 2010](https://arxiv.org/html/2609.19453#bib.bib19)\), and Scaled Exponential Linear Unit \(SELU\) activation\([Klambauer et al\., 2017](https://arxiv.org/html/2609.19453#bib.bib20)\)\. We trained all models on a single host having 1 NVIDIA T4 GPU\.

![Refer to caption](https://arxiv.org/html/2609.19453v1/resnet.png)Figure 1:A CNN trained on clinical Raman spectral data is used for a pathogen classification task\. Publicly available spectral data and CNN architecture are adapted from[Ho et al\. \(2019\)](https://arxiv.org/html/2609.19453#bib.bib8)\. Using a one\-dimensional residual network with 6 residual blocks and 25 total convolutional layers, clinical Raman spectra are classified as one of 5 isolates\.
### 3\.3SAM Improves Generalization by Finding Flat Minima

For our baseline optimizer, we used vanilla Adam\([Kingma and Ba, 2015](https://arxiv.org/html/2609.19453#bib.bib21)\), a common choice in deep learning\. While Adam and similar optimizers focus on finding parameters with low loss values, the loss surface geometry \(particularly its sharpness around optimal solutions\) has been shown to significantly affect model generalization\([Keskar et al\., 2016](https://arxiv.org/html/2609.19453#bib.bib14)\)\. This observation led to the development of Sharpness\-Aware Minimization \(SAM\), which seeks parameters in regions of uniformly low loss[Foret et al\. \(2021\)](https://arxiv.org/html/2609.19453#bib.bib15)\. We utilized SAM as described in[Foret et al\. \(2021\)](https://arxiv.org/html/2609.19453#bib.bib15)to find parameters𝒘\\bm\{w\}within flat loss basins by optimizing the following objective:

min𝒘\\displaystyle\\min\_\{\\bm\{w\}\}L𝒮S​A​M​\(𝒘\)\+λ​‖𝒘‖22\\displaystyle L^\{SAM\}\_\{\\mathcal\{S\}\}\(\\bm\{w\}\)\+\\lambda\\\|\\bm\{w\}\\\|\_\{2\}^\{2\}\(1\)where\\displaystyle\\text\{where\}L𝒮S​A​M​\(𝒘\)=max‖ϵ‖p≤ρ⁡L𝒮​\(𝒘\+ϵ\)\\displaystyle L^\{SAM\}\_\{\\mathcal\{S\}\}\(\\bm\{w\}\)=\\max\_\{\\\|\\bm\{\\epsilon\}\\\|\_\{p\}\\leq\\rho\}L\_\{\\mathcal\{S\}\}\(\\bm\{w\}\+\\bm\{\\epsilon\}\)
To minimizeL𝒮S​A​M​\(𝒘\)L^\{SAM\}\_\{\\mathcal\{S\}\}\(\\bm\{w\}\), the inner maximization was linearized and solved analytically so that the gradient∇𝒘L𝒮S​A​M​\(𝒘\)\\nabla\_\{\\bm\{w\}\}L^\{SAM\}\_\{\\mathcal\{S\}\}\(\\bm\{w\}\)could be effectively approximated as follows:

∇𝒘L𝒮S​A​M​\(𝒘\)≈∇𝒘L𝒮​\(w\)\|𝒘\+ϵ^​\(𝒘\)\\nabla\_\{\\bm\{w\}\}L^\{SAM\}\_\{\\mathcal\{S\}\}\(\\bm\{w\}\)\\approx\{\\nabla\_\{\\bm\{w\}\}L\_\{\\mathcal\{S\}\}\(w\)\|\_\{\\bm\{w\}\+\\hat\{\\bm\{\\epsilon\}\}\(\\bm\{w\}\)\}\}\(2\)
The model is more likely to generalize effectively and resist perturbations as the resulting parameter values which exist in neighborhoods with uniformly low loss result in minimal variation in loss relative to the training objective function\([Keskar et al\., 2016](https://arxiv.org/html/2609.19453#bib.bib14)\)\. Thus, by finding regions of uniformly low loss, SAM’s optimization algorithm was shown to improve model generalization performance\. This makes it ideal for limited, high\-variance Raman spectra derived from clinical samples\. For our experiments, we utilized a PyTorch implementation of SAM111[https://github\.com/davda54/sam](https://github.com/davda54/sam)\.

\(a\)\(b\)
\(c\)
Figure 2:Performance of SAM relative to Adam across splits and hyperparameters\. \(a\) A plot visualizing classification accuracies for each model, averaged across all 10 splits\. We highlight SAM’s performance, indicating higher accuracy and lower variance across hyperparameters\. \(b\) A table reporting the average classification accuracy of each configuration, showing that SAM increases average accuracy relative to Adam across hyperparameters\. SAM with SELU has the best overall performance with an average accuracy of93\.1±4\.8%93\.1\\pm 4\.8\\%\. \(c\) A summary of results for each individual split demonstrates that ResNet configurations with SAM \(blue\) tend to outperform those using Adam \(orange\) across all splits\.

## 4Results and Discussion

Table 1:Testing set performance \(m​e​a​ns​t​dmean\_\{std\}for n=5\) across different splits and hyperparameters trained with Adam and SAM optimizers\. Training with SAM yields higher classification accuracy across most of the splits and hyperparameters when compared to Adam\.Given the implemented ResNet architecture and hyperparameters, we observed that the SAM optimizer increased average accuracy up to3\.0%3\.0\\%when compared to Adam, as shown in Figure[2](https://arxiv.org/html/2609.19453#S3.F2)\. Average performance was determined for each configuration by averaging across all of the 10 splits and 5 trials\. Thus, the results reflect the expected model performance and inherent variances within the test dataset\. Table[1](https://arxiv.org/html/2609.19453#S4.T1)presents a detailed summary of the results across all evaluated splits\. As illustrated in Figure[2](https://arxiv.org/html/2609.19453#S3.F2), individual data splits highlight SAM’s performance; when compared to Adam, SAM demonstrated a maximum increase in performance of10\.5%10\.5\\%on a single split\. SAM consistently outperformed Adam in mean classification accuracy across all splits\. For each split, GELU experienced, on average, an increase in accuracy of3\.0%3\.0\\%with SAM compared to Adam\. Similarly, ReLU and SELU achieved2\.4%2\.4\\%and2\.8%2\.8\\%increases in average accuracy, respectively\. In addition, across all splits, SAM considerably decreased the expected variance in accuracy\. When using GELU, ReLU, and SELU, SAM also demonstrated decreases in variance of79\.1%79\.1\\%,75\.2%75\.2\\%, and84\.3%84\.3\\%on average, respectively, as shown in Table[1](https://arxiv.org/html/2609.19453#S4.T1)\.

\(a\)
\(b\)

Figure 3:Classification accuracy of each technique on the best and worst performing splits across all hyperparameters\. \(a\) ResNet trained with SAM significantly outperforms Adam across all hyperparameters in the best performing split\. \(b\) Training with SAM has lower variance but no significant performance improvement over Adam in the worst performing split\.In addition to looking at the splits as a whole, we observed the best and worst performing splits to better understand how SAM performed at the limits of our test sets \(Figure[3](https://arxiv.org/html/2609.19453#S4.F3)\)\. The best and worst performing splits were determined by observing the mean performance across all splits\. In the best performing split \(Figure[3\(a\)](https://arxiv.org/html/2609.19453#S4.F3.sf1)\), we found that SAM significantly outperformed Adam across all hyperparameters, offering both increased accuracy and decreased performance variance\. In the worst performing split \(Figure[3\(b\)](https://arxiv.org/html/2609.19453#S4.F3.sf2)\), we observed that SAM provided no significant performance improvement compared to Adam\. Figure[A\.2](https://arxiv.org/html/2609.19453#A1.F2)further details the performance of SAM and Adam across the remaining splits\. Although overlapping regions of standard deviations \(Figure[2](https://arxiv.org/html/2609.19453#S3.F2)\) are observed in average performance across all splits, the lower variance and statistically significant improved accuracy performance in the best performing cases suggest that SAM is positioned to be a more promising approach for clinical Raman spectral classification tasks\. The increase in accuracy observed when using SAM as opposed to Adam indicates the promise of SAM for spectral data classification tasks\. Furthermore, in clinical classification tasks, consistency in prediction is as crucial as performance itself\. SAM exhibited a2\.7%2\.7\\%increase in average performance and a79\.5%79\.5\\%reduction in average variance, calculated by assessing the mean performance and percent variance per split between each setup using SAM and Adam\. This improvement in performance and decreased variance suggest a more stable model to provide greater reliability in prediction for classification tasks where the ability to validate results is limited\.

## 5Conclusion

In this work, we developed solutions for addressing limitations associated with limited datasets in novel Raman spectroscopy\-based rapid infection diagnostics and antibiotic susceptibility testing tools\. Compared to the standard utilization of the Adam optimizer for Raman spectral analysis, training with SAM demonstrated an increase in accuracy of up to10\.5%10\.5\\%on a single split, an average accuracy improvement of2\.7%2\.7\\%across all splits, and considerable reduction in variance across the chosen hyperparameters\. Performance with SAM was consistent across 10 distinct splits, showcasing its robustness in processing a variety of patient\-derived spectral data\. Furthermore, the results indicate a potential to better classify diverse bacterial profiles, suggesting that SAM may provide a more reliable approach for clinical single\-spectrum bacterial classification\. Our work contributes to the translation of portable Raman spectroscopy\-based diagnostics towards the fight against the global health threat of antibiotic resistance\.

Limitations\.We recognize that further exploration is required to determine the viability of SAM across different datasets and architectures\. Furthermore, we acknowledge that the clinical dataset employed in this study may not comprehensively represent patient demographics and may not account for the variance encountered when collecting spectra samples from different Raman instruments\.

### Acknowledgments

We acknowledge support from the MIT\-Google Program for Computing Innovation\.

## References

- Anandet al\.\(2022\)D\. Anand, R\. Patil, U\. Agrawal, R\. V, H\. Ravishankar, and P\. SudhakarTowards generalization of medical imaging ai models: sharpness\-aware minimizers and beyond\.In2022 IEEE 19th International Symposium on Biomedical Imaging \(ISBI\),Vol\.,pp\. 1–5\.External Links:[Document](https://dx.doi.org/10.1109/ISBI52829.2022.9761677)Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p3.1)\.
- Centers for Disease Control and Prevention \(CDC\) \(2011\)Centers for Disease Control and Prevention \(CDC\)Office\-related antibiotic prescribing for persons aged≤\\leq14 years–united states, 1993\-1994 to 2007\-2008\.MMWR Morb\. Mortal\. Wkly\. Rep\.60\(34\),pp\. 1153–1156\(en\)\.Cited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- Das and Agrawal \(2011\)R\. S\. Das and Y\.K\. AgrawalRaman spectroscopy: recent advancements, techniques and applications\.Vibrational Spectroscopy57\(2\),pp\. 163–176\.External Links:ISSN 0924\-2031Cited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- de Krakeret al\.\(2016\)M\. E\. de Kraker, A\. J\. Stewardson, and S\. HarbarthWill 10 million people die a year due to antimicrobial resistance by 2050?\.PLOS Medicine13\(11\),pp\. e1002184\.External Links:ISSN 1549\-1676Cited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- Foretet al\.\(2021\)P\. Foret, A\. Kleiner, H\. Mobahi, and B\. NeyshaburSharpness\-aware minimization for efficiently improving generalization\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=6Tm1mposlrM)Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p3.1),[§3\.3](https://arxiv.org/html/2609.19453#S3.SS3.p1.1)\.
- Garcia\-Ricoet al\.\(2018\)E\. Garcia\-Rico, R\. A\. Alvarez\-Puebla, and L\. GuerriniDirect surface\-enhanced raman scattering \(SERS\) spectroscopy of nucleic acids: from fundamental studies to real\-life applications\.Chem\. Soc\. Rev\.47\(13\),pp\. 4909–4923\.Cited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- Gautamet al\.\(2015\)R\. Gautam, S\. Vanga, F\. Ariese, and S\. UmapathyReview of multidimensional data processing approaches for raman and infrared spectroscopy\.EPJ Tech\. Instrum\.2\(1\) \(en\)\.Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p1.1)\.
- Hendrycks and Gimpel \(2016\)D\. Hendrycks and K\. GimpelBridging nonlinearities and stochastic regularizers with gaussian error linear units\.CoRRabs/1606\.08415\.External Links:[Link](http://arxiv.org/abs/1606.08415),1606\.08415Cited by:[§3\.2](https://arxiv.org/html/2609.19453#S3.SS2.p1.1)\.
- Hoet al\.\(2019\)C\. Ho, N\. Jean, C\. A\. Hogan, L\. Blackmon, S\. S\. Jeffrey, M\. Holodniy, N\. Banaei, A\. A\. E\. Saleh, S\. Ermon, and J\. DionneRapid identification of pathogenic bacteria using raman spectroscopy and deep learning\.Nat\. Commun\.10\(1\),pp\. 4927\(en\)\.Cited by:[Figure A\.1](https://arxiv.org/html/2609.19453#A1.F1),[§2](https://arxiv.org/html/2609.19453#S2.p2.1),[Figure 1](https://arxiv.org/html/2609.19453#S3.F1),[§3\.1](https://arxiv.org/html/2609.19453#S3.SS1.p2.1),[§3\.2](https://arxiv.org/html/2609.19453#S3.SS2.p1.1)\.
- Keskaret al\.\(2016\)N\. S\. Keskar, D\. Mudigere, J\. Nocedal, M\. Smelyanskiy, and P\. T\. P\. TangOn large\-batch training for deep learning: generalization gap and sharp minima\.CoRRabs/1609\.04836\.External Links:[Link](http://arxiv.org/abs/1609.04836),1609\.04836Cited by:[§3\.3](https://arxiv.org/html/2609.19453#S3.SS3.p1.1),[§3\.3](https://arxiv.org/html/2609.19453#S3.SS3.p5.1)\.
- Kingma and Ba \(2015\)D\. P\. Kingma and J\. BaAdam: a method for stochastic optimization\.\.InICLR \(Poster\),Y\. Bengio and Y\. LeCun \(Eds\.\),External Links:[Link](http://dblp.uni-trier.de/db/conf/iclr/iclr2015.html#KingmaB14)Cited by:[§3\.3](https://arxiv.org/html/2609.19453#S3.SS3.p1.1)\.
- Klambaueret al\.\(2017\)G\. Klambauer, T\. Unterthiner, A\. Mayr, and S\. HochreiterSelf\-normalizing neural networks\.CoRRabs/1706\.02515\.External Links:[Link](http://arxiv.org/abs/1706.02515),1706\.02515Cited by:[§3\.2](https://arxiv.org/html/2609.19453#S3.SS2.p1.1)\.
- Liuet al\.\(2017\)J\. Liu, M\. Osadchy, L\. Ashton, M\. Foster, C\. J\. Solomon, and S\. J\. GibsonDeep convolutional neural networks for raman spectrum recognition: a unified solution\.Analyst142\(21\),pp\. 4067–4074\.Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p2.1)\.
- Luoet al\.\(2022\)R\. Luo, J\. Popp, and T\. BocklitzDeep learning for raman spectroscopy: a review\.Analytica3\(3\),pp\. 287–301\.External Links:[Link](https://www.mdpi.com/2673-4532/3/3/20),ISSN 2673\-4532,[Document](https://dx.doi.org/10.3390/analytica3030020)Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p1.1)\.
- Nair and Hinton \(2010\)V\. Nair and G\. E\. HintonRectified linear units improve restricted boltzmann machines\.InInternational Conference on Machine Learning,External Links:[Link](https://api.semanticscholar.org/CorpusID:15539264)Cited by:[§3\.2](https://arxiv.org/html/2609.19453#S3.SS2.p1.1)\.
- Ogunladeet al\.\(2023\)B\. Ogunlade, L\. F\. Tadesse, H\. Li, N\. Vu, N\. Banaei, A\. K\. Barczak, A\. A\. E\. Saleh, M\. Prakash, and J\. A\. DionnePredicting tuberculosis drug resistance with machine learning\-assisted raman spectroscopy\.arXivarXiv:2306\.05653v1\.External Links:2306\.05653,[Link](http://arxiv.org/abs/2306.05653v1)Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p2.1)\.
- Pelletier \(2003\)M\. J\. PelletierQuantitative analysis using raman spectrometry\.Appl\. Spectrosc\.57\(1\),pp\. 20A–42A\(en\)\.External Links:[Document](https://dx.doi.org/10.1366/000370203321165133)Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p1.1)\.
- Pichichero \(2002\)M\. E\. PichicheroDynamics of Antibiotic Prescribing for Children\.JAMA287\(23\),pp\. 3133–3135\.External Links:ISSN 0098\-7484,[Document](https://dx.doi.org/10.1001/jama.287.23.3133),[Link](https://doi.org/10.1001/jama.287.23.3133),https://jamanetwork\.com/journals/jama/articlepdf/195024/jed20029\.pdfCited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- Pieczonka and Aroca \(2008\)N\. P\. W\. Pieczonka and R\. F\. ArocaSingle molecule analysis by surfaced\-enhanced raman scattering\.Chem\. Soc\. Rev\.37,pp\. 946–954\.External Links:[Document](https://dx.doi.org/10.1039/B709739P),[Link](http://dx.doi.org/10.1039/B709739P)Cited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- Shapiroet al\.\(2014\)D\. J\. Shapiro, L\. A\. Hicks, A\. T\. Pavia, and A\. L\. HershAntibiotic prescribing for adults in ambulatory care in the USA, 2007\-09\.J\. Antimicrob\. Chemother\.69\(1\),pp\. 234–240\(en\)\.Cited by:[§1](https://arxiv.org/html/2609.19453#S1.p1.1)\.
- Songet al\.\(2022\)Y\. Song, J\. Yi, Y\. Noh, H\. Jang, S\. W\. Seo, D\. L\. Na, and J\. SeongOn the reliability of deep learning\-based classification for alzheimer’s disease: multi\-cohorts, multi\-vendors, multi\-protocols, and head\-to\-head validation\.Front\. Neurosci\.16,pp\. 851871\(en\)\.Cited by:[§2](https://arxiv.org/html/2609.19453#S2.p3.1)\.

## Appendix AAppendix

### A\.1Experimental Methodologies and Results

\(a\)![Refer to caption](https://arxiv.org/html/2609.19453v1/patient_sampling.png)
\(b\)![Refer to caption](https://arxiv.org/html/2609.19453v1/sample_spectra.png)

Figure A\.1:A CNN trained on clinical Raman spectral data is utilized for a pathogen classification task\. Publicly available spectral data and CNN architecture are adapted from[Ho et al\. \(2019\)](https://arxiv.org/html/2609.19453#bib.bib8)\. \(a\) Two datasets of 5 patients per infection type and 5 species of bacterial infections are merged to create a single dataset of 5 species of bacterial infection and 10 patients per infection type\. Each patient is classified into one of the 5 treatment classes where each species corresponds to a different treatment class\. Average species identification accuracy using SAM shows an improvement from89\.7±4\.9%89\.7\\pm 4\.9\\%to92\.9±4\.4%92\.9\\pm 4\.4\\%\. \(b\) Noisy spectra and the intrinsic qualities of Raman spectral data can make it difficult to distinguish between species, highlighting the need for deep learning and SAM to enable rapid analysis of Raman spectral data\.\(a\)Split 1\(b\)Split 3\(c\)Split 4\(d\)Split 5\(e\)Split 6\(f\)Split 8\(g\)Split 9\(h\)Split 10
Figure A\.2:Individual plots showing classification performancem​e​a​ns​t​dmean\_\{std\}\(n=5\) for evaluation metrics on the testing set across the reported random splits\.

Similar Articles