# Learning in Two-Scales Through LSTM-GPT2 Fusion Network: A Hybrid Approach for Time Series Anomaly Detection

**Authors:** Taoyu Wang, Dan Wu, Jun Wang, Jinwei Zhao, Haoming Wang, Dongnan Xie, Hongtao Zhang, Xinhong Hei

PMC · DOI: 10.3390/s25061849 · Sensors (Basel, Switzerland) · 2025-03-16

## TL;DR

This paper introduces a new deep learning method for detecting anomalies in complex sensor data from industrial systems, using a hybrid model that improves accuracy and efficiency.

## Contribution

The novel LGFN model combines LSTM and GPT-2 for multi-scale anomaly detection in both input and latent spaces, achieving state-of-the-art performance.

## Key findings

- The LGFN model outperforms or matches existing methods on five public MTS datasets.
- LGFN demonstrates space efficiency compared to GPT-2-based anomaly detection methods.
- Ablation studies confirm the importance of each component in the LGFN architecture.

## Abstract

Anomaly detection (AD) in multivariate time series data (MTS) collected by industrial sensors is a crucial undertaking for the damage estimation and damage monitoring of machinery like rocket engines, wind turbine blades, and aircraft turbines. Due to the complex structure of industrial systems and the varying working environments, the collected MTS often contain a significant amount of noise. Current AD studies mostly depend on extracting features from data to obtain the information associated with various working states, and they attempt to detect the abnormal states in the space of the original data. Nevertheless, the latent space, which includes the most essential knowledge learned by the network, is often overlooked. In this paper, a multi-scale feature extraction and data reconstruction deep learning neural network, designated as LGFN, is proposed. It is specifically designed to detect anomalies in MTS in both the original input space and the latent space. In the experimental section, a comparison is made between the proposed AD process and five well-acknowledged AD methods on five public MTS datasets. The outcomes demonstrate that the proposed method attains state-of-the-art or comparable performance. The memory usage experiment illustrates the space efficiency of LGFN in comparison to another AD method based on GPT-2. The ablation studies emphasise the indispensable role of each module in the proposed AD process.

## Full-text entities

- **Genes:** GPT2 (glutamic--pyruvic transaminase 2) [NCBI Gene 84706] {aka ALT2, GPT 2, MRT49, NEDSPM}, KL (klotho) [NCBI Gene 9365] {aka HFTC3, KLA}
- **Diseases:** SMD (MESH:D007859), seizures (MESH:D012640), MSL (MESH:D005600), LGFN (MESH:D000069337), AD (MESH:D000013), injury to (MESH:D014947), MTAD (MESH:D000377)
- **Chemicals:** Water (MESH:D014867), S (MESH:D013455), AD (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC11946349/full.md

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC11946349/full.md

## References

42 references — full list in the complete paper: https://tomesphere.com/paper/PMC11946349/full.md

---
Source: https://tomesphere.com/paper/PMC11946349