Cell misuse and cross-contamination pose a significant threat to the accuracy of cell research outcomes, often leading to the wasteful expenditure of time, manpower, and material resources. Consequently, the accurate identification of cell lines is paramount. However, traditional identification methods, which often involve staining and culturing procedures, are not only time-consuming but also laborious. This underscores the need for a novel approach that enables rapid and automated cell line identification, thereby enhancing research efficiency and accuracy. Raman spectroscopy, renowned for its label-free, rapid, and noninvasive nature, offers invaluable molecular insights into samples, making it a widely utilized technique in the biological field. In this study, the identification of one normal and five cancer cell lines was achieved using a sparrow search algorithm-convolutional neural networks (SSA-CNN), considering both the full spectra and fingerprint region perspectives. The SSA-CNN model demonstrated exceptional performance, not just in binary classification, but also in accurately distinguishing among six cell lines. It achieved the highest accuracy (around 95 %), and the lowest standard error (≤3%), for both the full spectra and fingerprint region. Based on the highly accurate SSA-CNN model, proposed the application of gradient-weighted class activation mapping (Grad-CAM) to visualize the Raman feature peaks. Upon comparing the visualized Raman features with reported biomarkers, found that not only were common biomolecules such as glucose, proteins, and liquids visualized, but specific feature peaks also aligned with reported biomarkers. The aforementioned results clearly demonstrated that the proposed strategy not only classifies cancer cell lines with remarkable accuracy but also served as a valuable tool for the discovery of novel biomarkers.