Simple SummaryThe correct diagnosis of different salivary gland carcinomas is important for a prognosis. This diagnosis is imprecise if it is based only on clinical symptoms and histological methods. Mass spectrometry imaging can provide information about the molecular composition of sample tissues. Using a deep-learning method, we analyzed the mass spectrometry imaging data of 25 patients. Using this workflow we could accurately predict the tumor type in each patient sample.Salivary gland carcinomas (SGC) are a heterogeneous group of tumors. The prognosis varies strongly according to its type, and even the distinction between benign and malign tumor is challenging. Adenoid cystic carcinoma (AdCy) is one subgroup of SGCs that is prone to late metastasis. This makes accurate tumor subtyping an important task. Matrix-assisted laser desorption/ionization (MALDI) imaging is a label-free technique capable of providing spatially resolved information about the abundance of biomolecules according to their mass-to-charge ratio. We analyzed tissue micro arrays (TMAs) of 25 patients (including six different SGC subtypes and a healthy control group of six patients) with high mass resolution MALDI imaging using a 12-Tesla magnetic resonance mass spectrometer. The high mass resolution allowed us to accurately detect single masses, with strong contributions to each class prediction. To address the added complexity created by the high mass resolution and multiple classes, we propose a deep-learning model. We showed that our deep-learning model provides a per-class classification accuracy of greater than 80% with little preprocessing. Based on this classification, we employed methods of explainable artificial intelligence (AI) to gain further insights into the spectrometric features of AdCys.