Ahmadi, MahdiaIzidorio, FelipeIgrejas, GetúlioRodrigues, Pedro JoãoLopes, Rui Pedro2026-03-272026-03-272026Ahmadi, Mahdia; Izidorio, Felipe; Igrejas, Getúlio; Rodrigues, Pedro João; Lopes, Rui Pedro (2026). Anomaly detection in gas sensor data using LSTM autoencoder and latent space analysis. In 24th World Symposium on Applied Machine Intelligence and Informatics. Stará Lesná, Slovakia. p. 41-46. ISBN 979-8-3315-9163-2. DOI: 10.1109/sami68106.2026.11420410979-8-3315-9163-2http://hdl.handle.net/10198/36345Anomaly detection in gas sensor data is crucial for food quality control, environmental monitoring, and industrial safety, yet traditional supervised approaches require labeled anomalous data that is often impossible to obtain. This paper presents a single-class LSTM autoencoder for BME688 gas sensor anomaly detection using latent space distance analysis. Training exclusively on normal samples (Anis estrellado), the model detects anomalies by measuring Euclidean distances in the learned 8-dimensional latent space. Treating the 10-step heater profile as a temporal sequence enables the capture of sequential dependencies in gas resistance patterns. Evaluation across seven compounds achieves 100% detection for olive oil and 50.4% for air while maintaining false positive rates at or below 5% for normal classes (coffee: 0.0%, tea: 0.4%, cocoa: 5.0%). Compared to reconstruction-based methods, our approach provides 3.7× better separation, faster inference (6.8ms vs 12.3ms), and improved interpretability, offering an efficient solution for real-time anomaly detection where only normal operational data is available.enganomaly detectionLSTMautoencodergas sensorsBME688latent space analysissingle-class learningtimeseriesAnomaly detection in gas sensor data using LSTM autoencoder and latent space analysisconference paper10.1109/sami68106.2026.11420410