Skip to content

A machine learning robustness benchmark for COVID-19 genomic sequence classificationBenchmarking Machine Learning Robustness in Covid-19 Genome Sequence Classification

arXiv· arXiv:2207.08898· Scientific Reports· Sarwan Ali, Bikram Sahoo, Alexander Zelikovskiy, Pin-Yu Chen, Murray PattersonDepartment of Computer Science, Georgia State University; AI Foundations Group, IBM T. J. Watson Research CenterIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors use PBSIM and InSilicoSeq to simulate SARS-CoV-2 genomes with sequencing errors, benchmarking the robustness of 3 embeddings and 7 classifiers, and the authors state there is no consistent winner.

Questions
The volume of SARS-CoV-2 genomic data far exceeds the processing capacity of traditional phylogenetic methods; ML classification methods are mostly validated on consensus sequences that are approximately error-free, whereas sequencing errors may be mistaken for mutations, so a benchmark is needed to evaluate the robustness of ML models to sequences with errors.
Methods
PBSIM (PacBio error model) and InSilicoSeq (Illumina) were used to simulate error-containing sequences from 8220 GISAID sequences, comparing three embeddings — Spike2Vec, PSSM2Vec, and Min2Vec — with 7 traditional classifiers; training on original sequences and testing on error-containing sequences.
Experiments and results
Without errors, Spike2Vec+SVM is best (Accuracy 0.87, Table 1); under PBSIM errors, PSSM2Vec is relatively more stable (Accuracy up to 0.30); under Illumina errors, Spike2Vec/Min2Vec are better (up to 0.73). The authors state that there is no consistent winner under different simulation tools.
Limitations and future work
In the Limitations section, the authors note: only feature-engineering embeddings were used, not neural networks; Illumina was tested only at 5000/10000 reads, and PBSIM only at depth 5/10 (main text). The experiments cover only 41 SARS-CoV-2 variants and 7 traditional classifiers.
Experimental setupSupport Vector Machine (SVM)、Naive Bayes (NB) et al. · GISAID SARS-CoV-2 序列(8220 条、41 个变异株类别)、PBSIM 模拟的 PacBio 误差序列 et al. · Accuracy、Precision et al.
Threat model
The paper models PacBio (PBSIM, read depth 5/10, appendix includes 15/20) and Illumina (InSilicoSeq, 5000/10000 short reads, appendix includes 15000/20000) sequencing errors as adversarial inputs; models are trained on 8220 error-free original sequences and tested on the corresponding 8220 error-containing sequences to examine the drop in classification performance.
Evaluated models
Support Vector Machine (SVM)Naive Bayes (NB)Multi-Layer Perceptron (MLP)K-Nearest Neighbors (KNN)Random Forest (RF)Logistic Regression (LR)Decision Tree (DT)
Benchmarks
GISAID SARS-CoV-2 序列(8220 条、41 个变异株类别)PBSIM 模拟的 PacBio 误差序列InSilicoSeq 模拟的 Illumina 误差序列
Metrics
AccuracyPrecisionRecallF1 (weighted)F1 (Macro)ROC-AUC训练运行时间
AI summaryThe paper proposes a benchmark framework that evaluates the robustness of machine learning models in COVID-19 genomic sequence classification by simulating error-containing SARS-CoV-2 genomic sequences, and the authors call this the first such attempt. The authors introduce multiple perturbation methods to simulate the error characteristics of sequencing platforms such as Illumina and PacBio. Experiments on multiple machine learning models show that, under certain adversarial attacks on input sequences, some simulation methods are more robust and more accurate than others under specific embedding methods.

The paper proposes a benchmark framework that evaluates the robustness of machine learning models in COVID-19 genomic sequence classification by simulating error-containing SARS-CoV-2 genomic sequences, and the authors call this the first such attempt. The authors introduce multiple perturbation methods to simulate the error characteristics of sequencing platforms such as Illumina and PacBio. Experiments on multiple machine learning models show that, under certain adversarial attacks on input sequences, some simulation methods are more robust and more accurate than others under specific embedding methods.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Establish a sequencing-error robustness benchmark for ML models classifying SARS-CoV-2 variants, comparing the performance of three embeddings under simulated errors.

    Core question: How robust are existing SARS-CoV-2 variant classification models to coronavirus inputs with sequencing errors (which the authors call adversarial)?

    • Scenario and motivation: GISAID has accumulated millions of SARS-CoV-2 whole-genome sequences, exceeding the processing capacity of traditional phylogenetic methods such as Nextstrain and IQTREE2 by several orders of magnitude, and ML methods based on clustering and classification have become an alternative.
    • Why it matters: Sequencing errors may be mistaken for mutations in analyses, affecting studies of viral evolution and transmission patterns; GISAID consensus sequences lose information on minority within-host variants.
    • Shortcomings of existing methods (according to the paper): Many ML methods are evaluated under the idealized condition of approximately error-free consensus sequences; some methods rely on k-mer representations or sequence alignment, and alignment is costly, requires a reference genome, and may introduce bias.
    • What the paper proposes: A robustness benchmark framework — using PBSIM and InSilicoSeq to simulate sequences with realistic error profiles, and proposing two embeddings, PSSM2Vec and Min2Vec, which together with Spike2Vec are evaluated for classification on original and error-containing sequences. The authors state that this is, to their knowledge, the first attempt to benchmark the robustness of such models.
    • Error setup: The paper treats sequencing platform errors as the source of adversarial perturbations — PacBio (PBSIM, with a high CLR error rate) controls the amount of error through read depth, and Illumina (InSilicoSeq) through the number of short reads; the victim system is the variant classifier, trained only on error-free sequences and tested only on error-containing sequences.
  2. What related research exists?

    Related work falls into three groups: adversarial robustness benchmarks for molecular data, perturbation sensitivity of protein structure prediction, and kernel methods and embeddings for sequence classification.

    Robustness benchmarks in the molecular/chemistry domain

    • Hendrycks and Dietterich (2019) — a robustness benchmark for common corruptions and perturbations in image classification; the paper cites this to show that adversarial benchmarks are popular in the image domain.
    • Schwalbe-Koda et al. (2021) — a series of uncertainty-based adversarial attack benchmarks on methods that predict chemical properties (molecular conformations, reactions, phase transitions).
    • Jha et al. (2021) — points out that protein-folding neural networks such as AlphaFold and RoseTTAFold are not robust to small, biologically meaningful sequence perturbations and produce very different structures; the paper states that its approach is similar in spirit, but its goal is classification.

    Kernel methods and embeddings for sequence classification

    • Leslie et al. (2003), Farhan et al. (2017), Kuksa et al. (2012) — first obtain a kernel matrix and then feed it into traditional classifiers such as SVM; the paper points out that such methods have high space complexity.
    • Ali and Patterson's Spike2Vec (2021) and Kuzmin et al. (2020) — embedding methods for spike sequence classification and clustering; the paper states that these methods are either not scalable or perform poorly on large datasets. Spike2Vec is also one of the embedding methods used in this paper.

    Sources of the embeddings and tools used in this paper

    • The PSSM/PWM concept comes from Stormo et al. (1982) and the authors' own PWM2Vec (2022); minimizers come from Roberts et al. (2004); PBSIM comes from Ono et al. (2012), and InSilicoSeq from Gourlé et al. (2018).

    Positioning: The authors state that this paper's goal differs from the above work — it does not predict structure or chemical properties, but examines how a small number of mutations simulating NGS technical errors affect downstream classification by different ML/DL methods, and provides a benchmark covering multiple embeddings and classifiers.

  3. How does the paper address this problem?

    Two sequencing simulators are used to generate sequences with errors, three embeddings convert sequences into fixed-length vectors, and seven classifiers are trained on original sequences and tested on error-containing sequences.

    Overall approach: treat the error spectrum of sequencing platforms as the source of perturbation, use simulators to generate SARS-CoV-2 sequences with errors, then use three feature embeddings plus seven traditional classifiers to measure error-free accuracy and robustness under errors separately.

    Generation of sequences with errors

    • PBSIM (PacBio long reads): For each original sequence, simulate reads using the model-based approach and the default PacBio error model, align the reads back to the original sequence, call mutations, and extract a consensus sequence; the amount of error is controlled via the read depth parameter, with depth 5 and 10 used in the main text and 15 and 20 in the appendix.
    • InSilicoSeq (Illumina short reads): Supports substitution, insertion, and deletion errors and can model PHRED scores, with built-in HiSeq, MiSeq, and NovaSeq error models; the amount of error is controlled via the number of reads, with 5000 and 10000 reads used in the main text and 15000 and 20000 in the appendix.
    • Both pipelines generate one error-containing version for each of the 8220 GISAID sequences.

    Three feature embeddings

    • Spike2Vec: Take sliding windows of length k to obtain k-mers, and count frequencies to form a fixed-length vector; k=3 (empirically selected on the validation set), vector length |Σ|^k = 4^3 = 64; this is an alignment-free method.
    • PSSM2Vec: Build a position frequency matrix (PFM) for k=3 k-mers, add a Laplace pseudocount of 0.01 and convert to a position probability matrix, then compute a position weight matrix according to Wc,i = log2 (p(c,i))/(p(c)) (where p(c)=1/4) and flatten it into a vector; this formula measures the log-likelihood of a nucleotide at a position relative to a uniform background.
    • Min2Vec: Based on minimizers—for each k-mer, take the length-m substring (m-mer) that is smallest in forward and reverse lexicographic order (k=9, m=3, empirically selected on the validation set), then generate frequency vectors in the same way as Spike2Vec.

    Classification and evaluation protocol

    • Classifiers: 7 in total: SVM, NB, MLP, KNN, RF, LR, DT.
    • Accuracy strategy: The 8220 original sequences are randomly split 70–30% into training/test, repeated 5 times and averaged, reporting Accuracy, Precision, Recall, F1 (weighted), F1 (Macro), ROC-AUC, and training runtime.
    • Robustness strategy: Train on the 8220 error-free sequences and use the corresponding 8220 error-containing sequences as the test set, reporting the same metrics; the error-containing sequences are not visible during training.
    • Data: 8220 full-length GISAID nucleotide sequences, 41 variant classes (Appendix A Table 4 gives the sample size of each class, with AY.103 the largest at 2271); Appendix B visualizes the three embeddings using t-SNE.
  4. What experiments did the paper conduct?

    Without errors, Spike2Vec+SVM is best (Acc 0.87); under PBSIM errors, PSSM2Vec is relatively the most stable, and under Illumina errors, Spike2Vec/Min2Vec are better.

    Experimental setup

    • Systems under test: 3 embeddings (Spike2Vec, PSSM2Vec, Min2Vec) × 7 classifiers (SVM, NB, MLP, KNN, RF, LR, DT).
    • Data: 8220 GISAID sequences, 41 variant classes; error-containing sequences were generated by PBSIM (depth 5/10, appendix 15/20) and InSilicoSeq (5000/10000 reads, appendix 15000/20000).
    • Protocol: The accuracy experiments use a 70–30% random split, repeated 5 times and averaged; the robustness experiments train on original sequences and test on error-containing sequences.
    • Metrics: Accuracy, Precision, Recall, F1 (weighted), F1 (Macro), ROC-AUC, training runtime; appendix C Table 5 reports the standard deviation over 5 runs.
    • Baselines: The paper sets no independent external baseline method; comparisons are made among the three embeddings; the main text mentions that One-Hot Encoding requires alignment, only as a comparative discussion.
    • Environment: Intel Core i5 (11th gen) 2.40 GHz, 32 GB memory, Windows 10.

    Main results

    Accuracy on error-free original sequences (according to Table 1, average of 5 runs):

    Swipe horizontally to read the table

    EmbeddingSVMNBMLPKNNRFLRDT
    Spike2Vec0.870.030.750.730.820.860.67
    PSSM2Vec0.280.010.340.320.330.280.29
    Min2Vec0.600.050.570.550.750.580.64
    • The authors state that Spike2Vec+SVM outperforms other combinations on all metrics except one, and attribute this to k-mers preserving nucleotide order information in more detail (but the representation is less compact).
    • PSSM2Vec vectors are shorter, and its NB training runtime is the smallest (0.03 seconds, Table 1).

    PBSIM (PacBio errors) robustness

    Accuracy according to Table 2 (training on original sequences, testing on error-containing sequences):

    Embeddingdepth 5 highest (classifier)depth 10 highest (classifier)
    Spike2Vec0.28 (MLP/KNN/RF)0.28 (KNN/RF)
    PSSM2Vec0.27 (multiple classifiers)0.30 (SVM/NB/MLP/RF/LR/DT)
    Min2Vec0.27 (NB, Recall column)0.27 (multiple classifiers)
    • The authors state that PSSM2Vec outperforms the other two embeddings under PBSIM errors, possibly because it captures longer-range information; at depth 10, PSSM2Vec has an Accuracy of 0.30 for most classifiers, while Spike2Vec's SVM/NB/LR/DT drop to 0.01 or 0.00.
    • Exceptions: at depth 5, Spike2Vec's MLP/KNN/RF are 0.28, not lower than PSSM2Vec's 0.27; at depth 10, PSSM2Vec's KNN drops to 0.01.

    Illumina error robustness

    Accuracy according to Table 3:

    Embedding5000 reads highest (classifier)10000 reads highest (classifier)
    Spike2Vec0.73 (KNN)0.73 (SVM/KNN/RF)
    PSSM2Vec0.32 (MLP)0.34 (MLP)
    Min2Vec0.65 (RF)0.68 (RF)
    • The authors state that under Illumina errors, sliding-window-type embeddings (Spike2Vec, Min2Vec) outperform PSSM2Vec, attributing this to sliding windows preserving order information in more detail, at the cost of higher dimensionality.
    • The authors explain that the PacBio error rate (up to 15%) is higher than Illumina's (less than 1%), so PBSIM perturbations have a greater impact on performance.

    Other ablations and analyses

    • Appendix Table 6 (PBSIM depth 15/20): Accuracy for each embedding is mostly between 0.00 and 0.28; at depth 20, Min2Vec+RF is 0.28.
    • Appendix Table 7 (Illumina 15000/20000 reads): Spike2Vec+RF/LR is 0.71, Min2Vec+RF is 0.64, and PSSM2Vec reaches a maximum of 0.28 (SVM/LR).
    • Appendix Table 5: Standard deviation over 5 runs on the original data; most Accuracy standard deviations are between 0.002 and 0.013.
    • Appendix B t-SNE (Figure 3): The authors state that in Spike2Vec, variants such as AY.103 are grouped more clearly, PSSM2Vec's groups are smaller, and Min2Vec's structure is similar to Spike2Vec's; the converted text does not contain the coordinates or cluster positions in the figure, so this cannot be further verified.
  5. What are some points that can be further explored?

    The authors note that no neural networks were used and that there are few error parameter levels; the experiments cover only one virus, 41 variants, and 7 traditional classifiers.

    Limitations and future directions noted by the authors

    • Only feature-engineered embeddings used (Section 7 Limitations): The authors believe that using neural networks could improve accuracy and/or robustness on the benchmark dataset.
    • Limited Illumina read-count levels (Section 7): The main text uses only 5000 and 10000 short reads; the authors believe that larger read counts could improve classifier performance (more level results are in the supplementary material).
    • Limited PBSIM depth levels (Section 7): The main text uses only depth 5 and 10; results for more depths are in the supplementary material.
    • Future directions (Section 8 Conclusion): Use other embedding methods from the literature, apply deep learning models to sequence classification, and extend adversarial attack research to other viruses (e.g., Zika).

    Scope of experimental coverage

    • The subjects under test are 3 embeddings × 7 traditional classifiers (SVM, NB, MLP, KNN, RF, LR, DT), 21 combinations in total (Section 5).
    • The data cover only SARS-CoV-2: 8220 GISAID sequences, 41 variant classes, with imbalanced class sample sizes (AY.103 has 2271, many classes have fewer than 20, Table 4).
    • Error simulation covers only two platforms: PacBio (PBSIM, depth 5/10/15/20) and Illumina (InSilicoSeq, 5000/10000/15000/20000 reads); the paper mentions ONT but does not simulate it.
    • The accuracy experiments are repeated 5 times and report standard deviation (Table 5); the paper does not state the number of repetitions for the robustness experiments (Tables 2, 3, 6, 7).
    • The paper does not report statistical significance tests; robustness conclusions are based on numerical comparisons of Accuracy and other metrics in each table.
  6. Summarize the main content of the paper

    A sequencing-error robustness benchmark for SARS-CoV-2 variant classification: without errors, Spike2Vec is best; under errors, which is better depends on the sequencing platform.

    This is a benchmark/evaluation paper, and the research question is: how robust are existing SARS-CoV-2 variant classification models to inputs with sequencing errors.

    • Problem background: The volume of GISAID data exceeds the capacity of traditional phylogenetic methods, and ML classification methods are mostly validated on approximately error-free sequences, whereas sequencing errors may be mistaken for mutations.
    • Methods: PBSIM (PacBio error model, with read depth controlling errors) and InSilicoSeq (Illumina, with the number of reads controlling errors) were used to generate error-containing versions from 8220 GISAID sequences; three embeddings — Spike2Vec (k-mer), PSSM2Vec (position weight matrix), and Min2Vec (minimizers) — were compared with 7 traditional classifiers; training on original sequences and testing on error-containing sequences.
    • Error-free results: Spike2Vec+SVM has an Accuracy of 0.87, higher than PSSM2Vec (highest 0.34) and Min2Vec (highest 0.75) (Table 1).
    • PBSIM errors: At depth 10, PSSM2Vec has an Accuracy of 0.30 for most classifiers, while several classifiers with Spike2Vec drop to 0.01 (Table 2); the authors state that PSSM2Vec is more robust.
    • Illumina errors: At 10000 reads, Spike2Vec reaches a maximum of 0.73 (KNN/RF/SVM), Min2Vec+RF is 0.68, and PSSM2Vec reaches a maximum of 0.34 (Table 3); the authors state that sliding-window-type embeddings are better.
    • Authors' conclusion: Under different simulation tools, different embeddings each have advantages, and no method wins consistently across all scenarios; the authors believe this framework can help researchers evaluate ML models, and that deep learning can be introduced later and extended to other viruses.
Read originalScientific Reports