← Lab /AI/ML

Logistic Regression runs in microseconds with only 1% lower accuracy than Random Forest

Logistic Regression achieves microsecond-level inference with a 1% accuracy drop compared to Random Forest

AI/ML arXiv 4 Jun 2026 Measurement Prototype evidence

Published as “TinyML-Driven Cybersecurity for Autonomous Spacecraft: Latency-Accuracy Analysis for SPARTA RF and Cyber Threat Detection”

Why it matters

Logistic Regression can be deployed for real-time detection of high-energy RF threats on spacecraft, but additional feature engineering is needed to reliably detect subtle attacks like payload manipulation.

Summary

Logistic Regression provides microsecond-level inference with only a 1% accuracy drop relative to Random Forest, making it the most latency-efficient TinyML baseline for onboard spacecraft threat detection. Empirical results show Random Forest attains the highest overall accuracy (0.950) while the MLP yields the best macro F1-score (0.824) and still meets TinyML latency constraints. However, all models struggle to detect payload manipulation, achieving low F1 scores (as low as 0.27 for LR). The evidence is based on a physics-informed synthetic dataset of SPARTA-aligned RF spectrograms; no real-world validation is reported.

What they found 5

  1. Logistic Regression achieves microsecond-level inference with only a 1% accuracy drop relative to Random Forest

    “Logistic Regression achieves microsecond-level inference with only a 1% accuracy drop relative to Random Forest”

  2. Logistic Regression has the fastest inference time (69.5 μs)

    “LR achieves the fastest inference time (69.5 μs), making it the most computationally efficient model.”

  3. Random Forest attains the highest overall accuracy (0.950)

    “RF achieves the highest overall accuracy (0.950) and a competitive macro F1-score (0.817).”

  4. MLP achieves the highest macro F1-score (0.824) while remaining TinyML-feasible

    “The MLP achieves the highest macro F1-score (0.824), outperforming all other models on the most challenging threat class: payload manipulation (F1 = 0.42).”

  5. All models have poor detection of payload manipulation

    “Payload manipulation yields the lowest F1-scores across all models (LR: 0.27, SVM: 0.36, RF: 0.33, MLP: 0.42).”

Caveats 4

  • Logistic Regression’s macro F1-score (0.798) is lower than that of SVM (0.814), MLP (0.824), and Random Forest (0.817), indicating reduced overall classification quality despite its latency advantage.
  • All models, including the best-performing MLP, achieve only moderate F1 (0.42) on payload manipulation, a critical threat class.
  • All models exhibit persistent weaknesses in detecting payload manipulation, motivating future work on richer feature encoders.
  • Payload manipulation yields the lowest F1-scores across all models (LR: 0.27, SVM: 0.36, RF: 0.33, MLP: 0.42).

What’s new here 4

  • First analysis of latency-accuracy trade-offs for TinyML models in the context of SPARTA spacecraft RF threats.
  • Physics-informed theoretical evaluation of model complexity, VC dimension, and Lipschitz continuity applied to RF spectrogram classification.
  • Comprehensive empirical benchmark on adversarial spectrograms generated via BandErasure, FakeNR, and NoiseBurst corruption modes.
  • Identification of a systematic weakness in payload-manipulation detection across all evaluated TinyML models.