← Lab /Security & privacy

Transformer model detects FDI attacks in GOOSE traffic with MCC around 0.60

FDIFormer achieves detection performance comparable to feature-engineered baselines without manual protocol features

Security & privacy arXiv 7 Jul 2026 Method Prototype evidence

Published as “FDIFormer:Protocol-Aware Transformer Learning for False Data Injection Attack Detection in Smart Grid Networks”

Why it matters

Pre-trained Transformer models can replace domain-specific feature engineering for FDI detection in IEC 61850 GOOSE traffic, simplifying deployment across substations.

Summary

GraphCodeBERT achieves an MCC of 0.595 ± 0.122, statistically equivalent to the engineered-feature XGBoost baseline (MCC = 0.604 ± 0.121) while requiring no manual protocol features, and improves MCC by 0.133 over TF-IDF baselines. Evidence comes from three-fold scenario-level cross-validation on the QUT-ZSS-2023-GOOSE dataset, but the study is limited by a small number of attack scenarios, only three folds, and no evaluation of inference latency on substation hardware.

What they found 2

  1. GraphCodeBERT attains MCC comparable to the best engineered-feature baseline.

    “GraphCodeBERT achieves MCC = 0.595 ± 0.122, which is statistically equivalent to XGBoost-Engineered (0.604 ± 0.121; difference 0.009, within the standard deviation of both models)”

  2. Pre-trained Transformers outperform TF-IDF baselines on the same text windows.

    “GraphCodeBERT achieved an MCC improvement of 0.133 over XGBoost-TFIDF.”

Caveats 4

  • Detection performance drops markedly for modification-only attacks, with GraphCodeBERT MCC falling to 0.455 in Fold 3, below the 0.5 threshold.
  • Hybrid models that combine Transformer embeddings with engineered numerical features do not improve MCC and can reduce it (e.g., Hybrid GraphCB+Num MCC = 0.522 vs. standalone GraphCodeBERT MCC = 0.595).
  • The results should be interpreted with some caution, however, given the limited number of attack scenarios and cross-validation folds available in the QUT-ZSS-2023-GOOSE dataset
  • inference latency on representative substation hardware was not evaluated in this study

What’s new here 4

  • Introduces a structured textual representation of IEC 61850 GOOSE packet sequences for direct input to Transformer models.
  • Provides an end-to-end detection pipeline (FDIFormer) that eliminates manual feature engineering.
  • Compares pre-trained Transformer models against engineered-feature and TF-IDF baselines using identical text inputs to isolate the benefit of the models.
  • Analyzes detection performance across different FDI attack behaviours (deletion, addition, modification).