MSANet-Assisted Ex Vivo Raman Spectroscopic Classification of Skin Tissues
DOI:
https://doi.org/10.66535/dmdnsx61Keywords:
Raman spectroscopy, Ex vivo classification, MSANet; skin lesionsAbstract
The accurate classification of skin lesions, such as melanocytic nevus and seborrheic keratosis, traditionally relies on time-consuming histopathological examination. Handheld Raman spectroscopy offers a rapid alternative, but extracting robust diagnostic features from complex spectral data remains a challenge. In this study, we propose a novel multi-scale sequential attention network (MSANet) for the automated classification of skin tissues (normal skin, melanocytic nevus, and seborrheic keratosis) using handheld Raman spectroscopy. Following a rigorous pathological procedure to establish gold-standard diagnoses, raw Raman spectra were preprocessed to effectively eliminate strong autofluorescence backgrounds, highlighting distinct biochemical variations in the fingerprint region (500-1800 cm-1). To accurately model these spectral features, the proposed architecture is organized as a three-stage pipeline consistent with Figure 5: (I) a learnable split module constructs five parallel spectral branches with complementary kernel ranges (k = 3/5, 7/9, 11/13, 15/17, and 19/21), and each branch is interpolated to a fixed length of 600 before attention-weighted feature fusion and Wave Attention; (II) positional encoding is added to the fused sequence, which is then processed by two Transformer encoder layers composed of multi-head attention, residual Add & Norm blocks, feed-forward layers, and a final LayerNorm; and (III) a deep classification head based on Conv1d-BatchNorm-GELU-Dropout blocks, adaptive max pooling, and fully connected layers outputs the three-class logits. Experimental evaluations demonstrate the exceptional discriminative capability of the proposed model. The confusion matrix on the test set achieved 100% accuracy, with zero misclassifications among the three tissue categories. Furthermore, t-SNE 2D visualization of the extracted features revealed that samples from the same category clustered tightly together, forming clear and non-overlapping decision boundaries between different pathological states. The high feature separability and perfect classification results prove that MSANet effectively learns highly discriminative deep semantic features from Raman spectra. This approach provides a highly accurate, efficient, and reliable method for skin lesion classification, demonstrating significant potential for clinical diagnostic assistance.
References
1.Nampalle, K.B., et al., Towards improved U-Net for efficient skin lesion segmentation. Multimedia Tools and Applications, 2024. 83(28): p. 71665-71682.
2.Scard, C., et al., Risk of melanoma in congenital melanocytic nevi of all sizes: A systematic review. J Eur Acad Dermatol Venereol, 2023. 37(1): p. 32-39.
3.Ayadh, M., et al., AI-assisted identification of nonmelanoma skin cancer structures based on combined line-field confocal optical coherence tomography and confocal Raman microspectroscopy. J Biomed Opt, 2025. 30(7): p. 076008.
4.Ferreira Lima, A.M., et al., Discrimination of non-melanoma skin cancer and keratosis from normal skin tissue in vivo and ex vivo by Raman spectroscopy. Vibrational Spectroscopy, 2019. 100: p. 131-141.
5.Damsky, W.E. and M. Bosenberg, Melanocytic nevi and melanoma: unraveling a complex relationship. Oncogene, 2017. 36(42): p. 5771-5792.
6.Tannous, Z.S., et al., Congenital melanocytic nevi: clinical and histopathologic features, risk of melanoma, and clinical management. J Am Acad Dermatol, 2005. 52(2): p. 197-203.
7.Sun, M.D. and A.C. Halpern, Advances in the Etiology, Detection, and Clinical Management of Seborrheic Keratoses. Dermatology, 2022. 238(2): p. 205-217.
8.Luo, W., et al., Histopathological Subtypes and Clinical Presentation of Seborrheic Keratosis: A 15-Year Retrospective Analysis of 1,169 Cases in Hainan, China. Clin Cosmet Investig Dermatol, 2025. 18: p. 721-727.
9.Wu, D., et al., In vivo Raman spectroscopic study of suspected melanoma skin lesions and healthy skin, in Translational Biophotonics: Diagnostics and Therapeutics III. 2023.
10.10. Wu, M., B. Gao, and X. Wei, Recent advances in Raman spectroscopy for skin diagnosis. Journal of Innovative Optical Health Sciences, 2023. 16(03).
11.Dinish, U.S., et al., Non-invasive biochemical analysis and comparison of atopic dermatitis and psoriasis skin using handheld confocal Raman spectroscopy. J Biophotonics, 2023. 16(12): p. e202300191.
12.Qi, Y., et al., Applications of Raman spectroscopy in clinical medicine. Food Frontiers, 2024. 5(2): p. 392-419.
13.Wang, Y., et al., Current Trends of Raman Spectroscopy in Clinic Settings: Opportunities and Challenges. Adv Sci (Weinh), 2024. 11(7): p. e2300668.
14.14. Cai, Y., D. Xu, and H. Shi, Rapid identification of ore minerals using multi-scale dilated convolutional attention network associated with portable Raman spectroscopy. Spectrochim Acta A Mol Biomol Spectrosc, 2022. 267(Pt 2): p. 120607.
15.Kumar, A., et al., Skin Disease Diagnosis System Using Machine and Deep Learning Algorithms, in 2024 2nd International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES). 2024. p. 1-5.
16.Kim, J.H., D. Yang, and S. Park, Raman Spectroscopy in Cellular and Tissue Aging Research. Aging Cell, 2025. 24(2): p. e14494.
17.Dong, W., et al., Deep learning-assisted Raman spectroscopy for automated identification of specific minerals. Spectrochim Acta A Mol Biomol Spectrosc, 2025. 333: p. 125843.
18.Khurdamoje, P., et al., Dermatological Cancer Classification, in 2025 International Conference on Emerging Trends in Industry 4.0 Technologies (ICETI4T). 2025. p. 1-6.
19.Bratchenko, I.A. and L.A. Bratchenko, Comment on "Finding reduced Raman spectroscopy fingerprint of skin samples for melanoma diagnosis through machine learning". Artif Intell Med, 2022. 125: p. 102252.
20.Samantaray, R., et al., Skin Cancer Detection Using CNN and Ensemble Learning, in 2024 IEEE 1st International Conference on Advances in Signal Processing, Power, Communication, and Computing (ASPCC). 2024. p. 247-252.
21.Zhao, J., et al., Improving skin cancer detection by Raman spectroscopy using convolutional neural networks and data augmentation. Front Oncol, 2024. 14: p. 1320220.
22.Chin, C.L., C.E. Chang, and L. Chao, Interpretable Multiscale Convolutional Neural Network for Classification and Feature Visualization of Weak Raman Spectra of Biomolecules at Cell Membranes. ACS Sens, 2025. 10(4): p. 2652-2666.
23.Delrue, C., et al., From Vibrations to Visions: Raman Spectroscopy's Impact on Skin Cancer Diagnostics. J Clin Med, 2023. 12(23).
24.Wu, D., et al., In vivo Raman spectroscopic and fluorescence study of suspected melanocytic lesions and surrounding healthy skin. J Biophotonics, 2024. 17(8): p. e202400050.
25.Bratchenko, I.A., et al., In vivo diagnosis of skin cancer with a portable Raman spectroscopic device. Exp Dermatol, 2021. 30(5): p. 652-663.
26.Wu, D., et al., In Vivo Differentiation of Cutaneous Melanoma From Benign Nevi With Dual-Modal System of Optical Coherence Tomography and Raman Spectroscopy. J Biophotonics, 2025. 18(9): p. e70040.
27.Shatar, L., et al., Enhancement in surface-enhanced Raman spectroscopy (SERS) substrates and the potential for diseases detection. Applied Spectroscopy Reviews, 2025: p. 1-48.
28.Wei, Y., et al., Multi-scale sequential feature selection for disease classification using Raman spectroscopy data. Comput Biol Med, 2023. 162: p. 107053.
29.Yang, Y., et al., Multi-scale representation of surface-enhanced Raman spectroscopy data for deep learning-based liver cancer detection. Spectrochim Acta A Mol Biomol Spectrosc, 2024. 308: p. 123764.
30.Li, Q., et al., An interpretable multi-scale convolutional attention residual neural network for glioma grading with Raman spectroscopy. Anal Methods, 2025. 17(4): p. 677-687.
31.Sun, Y., et al., A transformer and 3D CNN-based feature fusion network with interpretable ability for Raman spectra analysis: improving the diagnosis of thyroid cancer. Spectrochim Acta A Mol Biomol Spectrosc, 2026. 354: p. 127623.