<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>Tumor Type Classification from Somatic Mutations Using a Transformer-Based Model</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Sanaei</surname><given-names>Saeid</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Javanmard Alitappeh</surname><given-names>Reza</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<aff id="aff1">Faculty of Electrical and Computer Engineering, Mazandaran University of Science and Technology, Behshahr, Iran.</aff>
</contrib-group>
<abstract><p>Somatic mutation profiles are sparse and variable in length, which makes tumor-type classification difficult with standard fixed-vector inputs. We propose a transformer-based model that represents each The Cancer Genome Atlas (TCGA) sample as a sequence of mutation tokens combining gene, genomic-position, substitution, sequence-context, variant-type, Variant Allele Fraction (VAF), read-depth, hotspot, and consequence features. Categorical fields were encoded by stable hashing, and numerical fields were normalized using only the training split of each fold. After filtering tumor types with at least 180 samples, 8,910 samples from 20 classes were evaluated. In stratified eight-fold cross-validation, the model achieved 64.4% accuracy, 65.4% weighted accuracy, 95.8% one-vs-rest ROC-AUC, 86.7% Top-3 accuracy, and 93.1% Top-5 accuracy. These results support sequence-based mutation modeling for ranked tumor-type prediction.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Tumor type classification</kwd><kwd>Somatic mutations</kwd><kwd>Transformer model</kwd><kwd>Deep learning</kwd><kwd>TCGA</kwd><kwd>Precision</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1">
<p>oncology.</p>
</sec>
<sec id="sec-2"><label>1</label><title>Introduction</title>
<p>Sequencing-based cancer studies routinely produce mutation annotation files that describe many somatic variants for each sample. These records contain useful clues about tumor type, but they are not naturally organized as a fixed-length feature vector. One patient may have only a small number of reported variants, while another may have hundreds. In addition, most individual variants occur rarely across the cohort. The modeling problem is therefore to summarize a variable-length mutation profile into a sample-level representation while preserving the information carried by individual mutation records <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
<p>Previous work has shown that tumor type can be inferred not only from well-known driver genes but also from broader passenger mutation patterns <xref ref-type="bibr" rid="ref-3">[3]</xref>. This finding is useful because it implies that tissue-of-origin information is distributed across the mutation profile. At the same time, mutation profiles can be affected by cohort composition, sequencing depth, preprocessing choices, and class imbalance. For this reason, a reliable evaluation must avoid leakage between training and validation data and should report more than a single accuracy value.</p>
<p>Deep learning methods have been used to address the weak and distributed nature of mutation-derived signals. Mutation-Attention (MuAt) learns representations of mutation contexts and aggregates them for tumor typing and subtyping <xref ref-type="bibr" rid="ref-2">[2]</xref>. Multiple-instance learning is another natural choice for this setting, because the label is assigned to the sample, whereas the observations are individual mutations <xref ref-type="bibr" rid="ref-1">[1]</xref>. In both cases, the model must learn how mutation-level information should be pooled into a patient-level prediction.</p>
<p>Other studies have used vector-space representations of genomic alterations with classical machine-learning models <xref ref-type="bibr" rid="ref-4">[4]</xref>, reduced neural networks for lung cancer histology <xref ref-type="bibr" rid="ref-5">[5]</xref>, mutational signatures for primary-metastatic discrimination <xref ref-type="bibr" rid="ref-6">[6]</xref>, and genome-wide mutation features for cancer of unknown primary <xref ref-type="bibr" rid="ref-7">[7]</xref>, <xref ref-type="bibr" rid="ref-8">[8]</xref>. These studies support the general idea that mutation-derived features are informative, while also showing that no single representation is sufficient for all clinical and pan-cancer settings.</p>
<p>The clinical motivation is clearest when the tissue of origin is uncertain or when molecular profiling is the main available evidence. Related approaches have used targeted sequencing, nationwide genomic profiling, sparse liquid-biopsy mutation profiles, cfDNA methylation, and transcriptome-based assays to prioritize candidate tissues of origin <xref ref-type="bibr" rid="ref-7">[7–13]</xref>. Mutation-based models are a practical part of this broader effort because somatic variants are already produced by many cancer sequencing workflows.</p>
<p>Mutation profiles are also used for related prediction tasks. Microsatellite instability has been predicted from NGS data using multiple-instance learning and tabular methods such as NGBoost-based models <xref ref-type="bibr" rid="ref-14">[14]</xref>, <xref ref-type="bibr" rid="ref-15">[15]</xref>. These tasks share several technical issues with tumor typing: Variable input length, high-dimensional categorical fields, class imbalance, and the risk that preprocessing statistics leak information from the validation set.</p>
<p>In this study, tumor-type classification from The Cancer Genome Atlas (TCGA) somatic mutations is formulated as a sequence modeling problem. Each mutation is converted into a token containing categorical and numerical descriptors, and a transformer encoder is used to model relations among the tokens within the same sample. A learnable (CLS) token is used to obtain the sample-level representation for 20-class tumor-type prediction.</p>
<p>The work makes three practical contributions. First, it keeps the mutation-level structure of the data instead of immediately reducing each sample to a handcrafted vector. Second, it uses stable hashed encoding for categorical variables and fold-specific normalization for numerical variables to reduce avoidable leakage. Third, it reports cross-validated accuracy, weighted accuracy, Top-k accuracy, ROC-AUC, and confusion-matrix behavior in a consistent experimental setting.</p>
</sec>
<sec id="sec-3"><label>2</label><title>Materials and Methods</title>
<sec id="sec-4"><label>2.1</label><title>Data Source and Study Design</title>
<p>The data were obtained from TCGA. For each sample, the tumor label is defined at the sample level, while the input information consists of a set of somatic mutation records. This structure differs from ordinary tabular classification, because both the number of mutations and the content of the mutation list vary from sample to sample <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
<p>Mutation records followed a Mutation Annotation Format (MAF)-like structure. The fields used in this work included gene symbol, chromosome, genomic position, reference and alternate alleles, substitution type, local sequence context, variant consequence class, hotspot indicator, and allele read counts when available. These fields form the mutation-level input summarized in <xref ref-type="fig" rid="fig1">Fig. 1</xref>.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>Mutation-level input features used in the proposed model: (a) Gene symbol cue, (b) Genomic position, (c) Local sequence context, (d) Variant consequence class, (e) Variant Allele Fraction (VAF), (f) Hotspot indicator, and (g) Substitution type.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,487.5,537.1,778.9"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-5"><label>2.2</label><title>Preprocessing and Class Definition</title>
<p>Sample identifiers were aligned with mutation records so that each mutation belonged to one sample only. Obvious duplicates and inconsistent records were removed. Tumor labels were derived from TCGA cancer-type codes. Rectal cancer samples were merged with colon cancer samples to obtain a single colorectal class, because the two groups are closely related and separating them would produce smaller classes.</p>
<p>Tumor types with fewer than 180 samples were excluded. After this filtering step, the dataset contained 8,910 samples from 20 tumor classes. The retained classes included BLCA, CESC, COAD, LUAD, LUSC, and other TCGA cancer types. Labels were represented as one-hot vectors during training and evaluation. When tumor reference and alternate read counts were available, Variant Allele Fraction (VAF) was calculated and used as a numerical feature. VAF is a simple normalized measure of the fraction of reads supporting the alternate allele:</p>
<p>alt_count</p>
<p>VAF = . (1)</p>
<p>ref_count+alt_count</p>
<p>In Eq. (1), alt_count denotes the number of reads supporting the alternate allele and ref_count denotes the number of reads supporting the reference allele in the tumor sample. This value ranges from 0 to 1 and was used as a numerical feature together with the other mutation-level features.</p>
</sec>
<sec id="sec-6"><label>2.3</label><title>Mutation-Token Construction</title>
<p>Each sample was represented as a sequence of mutation tokens. A token stores the descriptors of one mutation, and the full sequence represents the mutation profile of the sample. This design leaves the aggregation step to the model rather than imposing a fixed handcrafted summary at the beginning of the pipeline.</p>
<p>Since mutation counts differ between samples, all input sequences were brought to a fixed maximum length. Let Mi be the raw number of mutations observed in sample i. The effective length Li was defined as:</p>
<p>Li = min(Mi, 512). (2)</p>
<p>Samples with more than 512 mutations were truncated using a fixed and reproducible ordering. Samples with fewer than 512 mutations were padded with neutral values. A binary mask was used to separate observed mutation tokens from padding positions:</p>
<p>1, t ≤ Li,</p>
<p>mi,t = { (3)</p>
<p>0, t &gt; Li.</p>
<p>The mask was applied during self-attention so that padded positions did not contribute to contextual token interactions. This is important because differences in mutation count should not be confused with artificial patterns introduced by padding.</p>
</sec>
<sec id="sec-7"><label>2.4</label><title>Feature Encoding and Leakage Control</title>
<p>Each token combined categorical and numerical descriptors. The categorical descriptors included gene identifier, chromosome, substitution type, sequence context, variant type, and variant consequence group. The numerical descriptors included VAF, read depth, genomic position, and hotspot indicator. High-cardinality categorical fields were mapped into fixed buckets using stable hashing, which avoided building a vocabulary from the full dataset.</p>
<p>Numerical features were normalized inside each cross-validation fold. For every fold, the normalization parameters were estimated from the training split and then applied to the held-out split. This step was used to prevent validation data from influencing preprocessing statistics.</p>
<p>After encoding, categorical features were passed through learnable embedding layers and numerical features were projected into the same dimensional space. The final mutation-token representation was computed as</p>
<p>xi,t = Projnum(ri,t) + Embcat(zi,t). (4)</p>
<p>In Eq. (4), xi,t is the token representation of mutation t in sample i. The vector zi,t contains the categorical identifiers, Embcat denotes the categorical embedding operation, ri,t contains the numerical features, and Projnum maps numerical inputs to the token dimension. This stage produces an input tensor of size N x 512 x d and a mask of size N x 512, where N is the number of samples and d is the token dimension.</p>
<p>Categorical embeddings and numerical projections were combined by additive fusion, followed by layer normalization and dropout. The overall workflow from mutation records to tumor-type probabilities is</p>
<fig id="fig2"><label>Figure 2</label><caption><p>Overall workflow of the proposed MutationTokenFormer model.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:3:65.7,88.6,537.1,262.8"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-8"><label>2.5</label><title>Transformer Encoder and Classification Head</title>
<p>The overall workflow in <xref ref-type="fig" rid="fig2">Fig. 2</xref> summarizes the complete processing path, while <xref ref-type="fig" rid="fig3">Fig. 3</xref> provides a closer view of the sequence assembly and input-encoding steps. In each sample, mutation records are converted into a fixed-length sequence, an attention mask is created, categorical and numerical features are fused, and a (CLS) token is added before transformer encoding.</p>
<fig id="fig3"><label>Figure 3</label><caption><p>Detailed sequence assembly and input encoding in MutationTokenFormer.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:4:66,443.1,537.1,685.1"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>The encoded sequence was then passed to the transformer encoder. The attention mask was used in self-attention to ignore padded positions, while the (CLS)] token summarized mutation-level interactions for sample-level classification.</p>
<p>After the transformer layers, the contextualized (CLS) token was used as the sample-level representation:</p>
<p>hi = zi,CLS. (5)</p>
<p>In Eq. (5), zi,CLS denotes the transformer output corresponding to the (CLS) token for sample i, and hᵢ is the final sample-level representation. A multilayer perceptron then produced one logit for each of the 20 tumor classes, and class probabilities were obtained using the softmax function.</p>
</sec>
<sec id="sec-9"><label>2.6</label><title>Evaluation Protocol</title>
<p>Performance was estimated with stratified eight-fold cross-validation. In each fold, all preprocessing steps that depended on data statistics were fitted on the training split only. Predictions for the held-out split were saved, and the out-of-fold predictions from all folds were pooled for the final analysis.</p>
<p>The main metrics were overall accuracy, weighted accuracy, and one-vs-rest ROC-AUC. Top-1, Top-3, and Top-5 accuracies were also reported to evaluate whether the correct tumor type was ranked among the most likely candidate classes. ROC curves and a row-normalized confusion matrix were used for class-level inspection.</p>
</sec>
</sec>
<sec id="sec-10"><label>3</label><title>Results</title>
<sec id="sec-11"><label>3.1</label><title>Input-Sequence Characteristics</title>
<p>The retained cohort contained 8,910 samples across 20 tumor types. Mutation-token counts were highly right-skewed: The median number of mutation tokens per sample was 101.0, whereas the mean was 349.2. Overall, 88.8% of samples contained fewer than the fixed sequence length of 512 tokens and therefore required padding, while 11.2% exceeded this length and were truncated.</p>
<p><xref ref-type="fig" rid="fig4">Fig. 4</xref> summarizes mutation-token counts and the fraction of samples affected by the 512 token limit across tumor types. The largest percentages of truncated samples were observed for SKCM and UCEC, whereas THCA and KIRP were entirely below the 512 token limit.</p>
<fig id="fig4"><label>Figure 4</label><caption><p>Input-sequence characteristics across tumor types.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:66,346.3,537.1,607.7"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-12"><label>3.2</label><title>Overall Classification Performance</title>
<p>Out-of-fold predictions from stratified eight-fold cross-validation were pooled before calculating the final metrics. As shown in <xref ref-type="table" rid="tab1">Table 1</xref>, the proposed model achieved 64.4% accuracy, 65.4% weighted accuracy, and 95.8% one-vs-rest ROC-AUC.</p>
<p>Compared with the ATGC reference result, the proposed model improved both accuracy and weighted accuracy while maintaining a high ROC-AUC. This indicates that the mutation-token representation improved the final class assignment without reducing the ranking quality of the model.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Performance comparison between the proposed method and ATGC.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:66,125.9,537.1,177.5"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-13"><label>3.3</label><title>Top-k Classification Performance</title>
<p>Top-k metrics were used to evaluate whether the correct tumor type appeared among the highest-probability candidate classes. The proposed model achieved 64.4% Top-1 accuracy, 86.7% Top-3 accuracy, and 93.1% Top-5 accuracy, as shown in <xref ref-type="table" rid="tab2">Table 2</xref>.</p>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Top-k performance comparison with MuAt and DNN.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,615.6,537.1,681.4"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>Among the 3,168 samples that were incorrect at Top-1, 62.6% were recovered within the Top-3 predictions and 80.5% were recovered within the Top-5 predictions (<xref ref-type="table" rid="tab3">Table 3</xref>). This supports the use of ranked candidate lists rather than a single forced label in mutation-only tumor typing.</p>
<table-wrap id="tab3"><label>Table 3</label><caption><p>Recovery of Top-1 errors within Top-3 and Top-5 predictions.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,460.8,537.1,540.7"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-14"><label>3.4</label><title>ROC Analysis</title>
<p>Multi-class ROC curves were computed in a one-vs-rest setting. <xref ref-type="fig" rid="fig5">Fig. 5</xref> shows the micro-average and macro-average ROC curves. The micro-average ROC-AUC was 0.959 and the macro-average ROC-AUC was 0.958. The closeness of the micro- and macro-average AUC values suggests that discrimination was not driven only by the largest tumor classes. ROC-AUC also captures ranking quality, whereas accuracy depends on the final</p>
<fig id="fig5"><label>Figure 5</label><caption><p>Multi-class one-vs-rest ROC curves for tumor-type prediction.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:65.7,117.4,537.1,360.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-15"><label>3.5</label><title>Class-Wise Performance Analysis</title>
<p>Class-wise precision, recall, and F1-score were calculated from the pooled out-of-fold predictions. <xref ref-type="table" rid="tab4">Table 4</xref> shows that performance varied across tumor types. The highest F1-score was obtained for SKCM (90.2%), while lower values were observed for HNSC (46.8%) and PRAD (49.4%).</p>
<table-wrap id="tab4"><label>Table 4</label><caption><p>Class-wise performance of the proposed model.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:66,369.8,537.1,681.4"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>The ranked F1-score profile in <xref ref-type="fig" rid="fig6">Fig. 6</xref> provides a compact visual summary of this class-level variation. The results show that the model separated several tumor types reliably, but mutation-only information remained less distinctive for some classes.</p>
<fig id="fig6"><label>Figure 6</label><caption><p>Class-wise F1-score across tumor types.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:7:66,69,537.1,308.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-16"><label>3.6</label><title>Confusion-Matrix and Error-Pattern Analysis</title>
<p>A row-normalized confusion matrix was used to inspect error patterns. As shown in <xref ref-type="fig" rid="fig7">Fig. 7</xref>, most classes had visible diagonal dominance, but off-diagonal errors were concentrated in specific tumor-type pairs rather than being uniformly distributed.</p>
<fig id="fig7"><label>Figure 7</label><caption><p>Row-normalized confusion matrix of tumor-type predictions.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,358.1,537.1,699.2"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>The most frequent confusion pairs are listed in <xref ref-type="table" rid="tab5">Table 5</xref>. LUAD-to-LUSC and LUSC-to-LUAD were the two largest error patterns, followed by HNSC-to-BLCA and BRCA-to-OV. These patterns are useful for identifying tumor groups that may require additional molecular features or a hierarchical decision strategy.</p>
<table-wrap id="tab5"><label>Table 5</label><caption><p>Most frequent tumor-type confusions.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:8:66,73.4,537.1,264.1"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
</sec>
<sec id="sec-17"><label>4</label><title>Discussion</title>
<p>The results show that keeping mutation records as tokens is a reasonable strategy for TCGA tumor-type classification. Instead of compressing all variants into a fixed handcrafted vector before modeling, the transformer receives a structured list of mutation-level observations and learns how to combine them at the sample level through a contextualized (CLS) representation.</p>
<p>The input-sequence analysis clarifies why padding, truncation, and masking were needed. The cohort had a median of 101 mutation tokens per sample, but the mean was 349.2 because a smaller subset of highly mutated samples created a long right tail. Most samples required padding, while 11.2% exceeded the 512 token limit and were truncated. This shows that the model had to handle both sparse and highly mutated profiles within the same evaluation setting.</p>
<p>The improvement over ATGC in both accuracy and weighted accuracy suggests that the token-based representation captured information that was useful for final class assignment. The high Top-3 and Top-5 values are also important. In practice, a ranked list of candidate tumor types may be more useful than a single forced label, especially when mutation profiles are incomplete or when biologically related tumors share similar alterations.</p>
<p>The class-wise analysis showed substantial variation among tumor types. SKCM achieved the strongest F1- score, whereas HNSC and PRAD were more difficult. These differences are consistent with the idea that mutation-only signals are not equally distinctive across all cancer types. Some classes may require additional information, such as copy-number alteration, methylation, expression, mutational signatures, or clinical variables, to improve separation.</p>
<p>The confusion matrix and the ranked confusion table provide a more detailed view of the remaining errors. The largest error patterns occurred between LUAD and LUSC and between several biologically or clinically related tumor groups. Such overlap is expected in a pan-cancer mutation-only setting and may be reduced by using hierarchical classifiers or multimodal molecular inputs.</p>
<p>The preprocessing choices were selected to keep the evaluation conservative. Stable hashing reduced the need for a vocabulary built from all samples, and fold-specific normalization ensured that validation statistics were not used during training. These details are important in mutation-profile studies, where leakage can easily inflate performance estimates.</p>
<p>The findings are consistent with previous mutation-based tumor-typing studies. Multiple-instance learning treats each sample as a bag of mutation instances <xref ref-type="bibr" rid="ref-1">[1]</xref>, while MuAt and related attention-based models learn representations from mutation context <xref ref-type="bibr" rid="ref-2">[2]</xref>. Other studies based on targeted sequencing, vector-space transformations, and large genomic profiling cohorts also show that mutation-derived features can support tumor classification <xref ref-type="bibr" rid="ref-4">[4]</xref>, <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<p>The study has limitations. First, the evaluation was limited to TCGA and did not include an independent external cohort. TCGA is useful for method development, but it does not cover all sequencing platforms, sample qualities, or clinical populations. Second, the maximum sequence length was fixed at 512 mutations, which may truncate information in highly mutated tumors. Third, the model used mutation-derived features only and did not integrate other molecular or clinical information.</p>
<p>A further limitation is the absence of a detailed ablation study. Future experiments should measure the separate contribution of gene identity, sequence context, variant type, consequence class, VAF, read depth, hotspot status, sequence ordering, (CLS)-based sequence summarization, and class-imbalance handling. Such analysis would show which parts of the token representation are most responsible for performance.</p>
<p>Future work should also test the model on independent multi-center data and evaluate calibration if the outputs are used as probabilities. A hierarchical design could first predict broad tissue groups and then distinguish closely related subtypes. Combining mutation tokens with other omics layers may reduce the remaining confusion among biologically similar cancers.</p>
</sec>
<sec id="sec-18"><label>5</label><title>Conclusion</title>
<p>This work presented a transformer-based model for tumor-type classification from somatic mutations. Each sample was represented as a sequence of mutation tokens, and a contextualized (CLS) token was used as the sample-level representation for classification. The evaluation used TCGA data after retaining tumor classes with at least 180 samples, resulting in 8,910 samples and 20 classes.</p>
<p>The model achieved 64.4% overall accuracy, 65.4% weighted accuracy, and 95.8% one-vs-rest ROC-AUC. It also achieved 86.7% Top-3 accuracy and 93.1% Top-5 accuracy. Class-wise and confusion-matrix analyses showed that the model performed strongly for several tumor types but still confused some related classes. Future work should focus on external validation, ablation studies, calibration, and integration of additional molecular features.</p>
</sec>
<sec id="sec-19"><title>Author&apos;s Contributions</title>
<p>Conceptualization, S.S. and R.J.A.T.; methodology, S.S.; software, S.S.; validation, S.S. and R.J.A.T.; formal analysis, S.S.; investigation, S.S.; data curation, S.S.; writing-original draft, S.S.; writing-review and editing, S.S. and R.J.A.T.; visualization, S.S.; supervision, R.J.A.T. All authors have read and agreed to the final version of the manuscript.</p>
</sec>
<sec id="sec-20"><title>Funding</title>
<p>The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.</p>
</sec>
<sec id="sec-21"><title>Data Availability</title>
<p>In this study, publicly available datasets were analyzed. These data can be found in TCGA through the Genomic Data Commons (GDC) Data Portal. Processed data tables and analysis scripts are available from the corresponding author upon reasonable request.</p>
</sec>
<sec id="sec-22"><title>Conflicts of Interest</title>
<p>The authors declare no conflict of interest. Funders played no role in the design of the study, in the collection, analysis, or interpretation of data, in the writing of the manuscript, or in the decision to publish the results.</p>
</sec>
<sec id="sec-23"><title>Ethics Approval and Consent to Participate</title>
<p>This study used publicly available, de-identified genomic data and did not involve new recruitment of human participants or new collection of biospecimens. Therefore, no additional institutional ethics approval was required for the analyses reported here.</p>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Anaya, J., Sidhom, J. W., Mahmood, F., &amp; Baras, A. S. (2024). Multiple-instance learning of somatic mutations for the classification of tumour type and the prediction of microsatellite status. Nature Biomedical Engineering, 8(1), 57–67. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41551-023-01120-3">https://doi.org/10.1038/s41551-023-01120-3</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Sanjaya, P., Maljanen, K., Katainen, R., Waszak, S. M., Ambrose, J. C., Arumugam, P., … ., &amp; Consortium, G. E. R. (2023). Mutation-Attention (MuAt): Deep representation learning of somatic mutations for tumour typing and subtyping. Genome Medicine, 15(1), 47. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/s13073-023-01204-4">https://doi.org/10.1186/s13073-023-01204-4</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Jiao, W., Atwal, G., Polak, P., Karlic, R., Cuppen, E., Al-Shahrour, F., … ., &amp; Consortium, P. (2020). A deep learning system accurately classifies primary and metastatic cancers using passenger mutation patterns. Nature Communications, 11(1), 728. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41467-019-13825-8">https://doi.org/10.1038/s41467-019-13825-8</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Zelli, V., Manno, A., Compagnoni, C., Ibraheem, R. O., Zazzeroni, F., Alesse, E., … ., &amp; Tessitore, A. (2023). Classification of tumor types using XGBoost machine learning model: A vector space transformation of genomic alterations. Journal of Translational Medicine, 21(1), 836. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/s12967-023-04720-4">https://doi.org/10.1186/s12967-023-04720-4</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Kobayashi, K., Bolatkan, A., Shiina, S., &amp; Hamamoto, R. (2020). Fully-connected neural networks with reduced parameterization for predicting histological types of lung cancer from somatic mutations. Biomolecules, 10(9), 1–16. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/biom10091249">https://doi.org/10.3390/biom10091249</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Zheng, W., Pu, M., Li, X., Du, Z., Jin, S., Li, X., … ., &amp; Zhang, Y. (2023). Deep learning model accurately classifies metastatic tumors from primary tumors based on mutational signatures. Scientific Reports, 13(1), 8752. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41598-023-35842-w">https://doi.org/10.1038/s41598-023-35842-w</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Nguyen, L., Van Hoeck, A., &amp; Cuppen, E. (2022). Machine learning-based tissue of origin classification for cancer of unknown primary diagnostics using genome-wide mutation features. Nature communications, 13(1), 4013. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41467-022-31666-w">https://doi.org/10.1038/s41467-022-31666-w</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Moon, I., LoPiccolo, J., Baca, S. C., Sholl, L. M., Kehl, K. L., Hassett, M. J., … ., &amp; Gusev, A. (2023). Machine learning for genetics-based classification and treatment response prediction in cancer of unknown primary. Nature Medicine, 29(8), 2057–2067. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41591-023-02482-6">https://doi.org/10.1038/s41591-023-02482-6</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Darmofal, M., Suman, S., Atwal, G., Toomey, M., Chen, J. F., Chang, J. C., … ., &amp; Morris, Q. (2024). Deep-learning model for tumor-type prediction using targeted clinical genomic sequencing data. Cancer Discovery, 14(6), 1064–1081. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1158/2159-8290.CD-23-0996">https://doi.org/10.1158/2159-8290.CD-23-0996</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>Huang, Y., Pfeiffer, S. M., &amp; Zhang, Q. (2023). Primary tumor type prediction based on US nationwide genomic profiling data in 13,522 patients. Computational and Structural Biotechnology Journal, 21, 3865–3874. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.csbj.2023.07.036">https://doi.org/10.1016/j.csbj.2023.07.036</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Danyi, A., Jager, M., &amp; de Ridder, J. (2021). Cancer type classification in liquid biopsies based on sparse mutational profiles enabled through data augmentation and integration. Life, 12(1), 1. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/life12010001">https://doi.org/10.3390/life12010001</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Conway, A. M., Pearce, S. P., Clipson, A., Hill, S. M., Chemi, F., Slane-Tan, D., … ., &amp; Rothwell, D. G. (2024). A cfDNA methylation-based tissue-of-origin classifier for cancers of unknown primary. Nature Communications, 15(1), 3292. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41467-024-47195-7">https://doi.org/10.1038/s41467-024-47195-7</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Michuda, J., Breschi, A., Kapilivsky, J., Manghnani, K., McCarter, C., Hockenberry, A. J., … ., &amp; Taxter, T. (2023). Validation of a transcriptome-based assay for classifying cancers of unknown primary origin. Molecular Diagnosis &amp; Therapy, 27(4), 499–511. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s40291-023-00650-5">https://doi.org/10.1007/s40291-023-00650-5</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>Ziegler, J., Hechtman, J. F., Rana, S., Ptashkin, R. N., Jayakumaran, G., Middha, S., … ., &amp; Zehir, A. (2025). A deep multiple instance learning framework improves microsatellite instability detection from tumor next generation sequencing. Nature Communications, 16(1), 136. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41467-024-54970-z">https://doi.org/10.1038/s41467-024-54970-z</ext-link></mixed-citation></ref>
<ref id="ref-15"><label>15</label><mixed-citation>Chen, J., Wang, M., Zhao, D., Li, F., Wu, H., Liu, Q., &amp; Li, S. (2023). MSINGB: A novel computational method based on NGBoost for identifying microsatellite instability status from tumor mutation annotation data. Interdisciplinary Sciences: Computational Life Sciences, 15(1), 100–110. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s12539-022-00544-w">https://doi.org/10.1007/s12539-022-00544-w</ext-link></mixed-citation></ref>
</ref-list></back>
</article>