Real-Time Anomaly Detection in IoT Sensor Data via Deep Learning and Deployment with Python Frameworks

Authors

  • M. Yogeswar B. Tech CSE Students, Department of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. Hemanth B. Tech CSE Students, Department of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. Srikanth B. Tech CSE Students, Dept. of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • M. Harshitha B. Tech CSE Students, Dept. of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • N. Venkata Maruthi Sai Ram Chandu B. Tech CSE Students, Dept. of CSE, Sir C R Reddy College of Engineering, Eluru. Author
  • K. Budda Vara Prasad Department of CSE, Sir C R Reddy College of Engineering, Eluru. Author

Keywords:

Anomaly Detection, LSTM Autoencoder, IoT Sensor Data, Time-Series Analysis, Deep Learning, Streamlit, Reconstruction Error, Real-Time Monitoring, Predictive Maintenance, MinMax Normalization, Smart Environments, Edge AI.

Abstract

The rapid proliferation of Internet of Things (IoT) devices has generated massive volumes of time-series sensor data that require continuous, intelligent monitoring. This project presents a comprehensive real-time anomaly detection system for IoT sensor data leveraging Long Short-Term Memory (LSTM) Autoencoder neural networks. The system processes multivariate sensor streams — including temperature, humidity, air quality, light intensity, and loudness — and identifies deviations from learned normal patterns using reconstruction error thresholding. The trained model is deployed through an interactive Streamlit-based web application, enabling users to upload CSV datasets, trigger analysis, and explore results through rich interactive visualizations without requiring programming knowledge. Experimental evaluation on a dataset of 6,558 time-series entries yielded an anomaly detection rate of 5.00% at a reconstruction error threshold of 0.002154, demonstrating high detection sensitivity with minimal false positives. The end-to-end pipeline — from raw sensor ingestion and MinMax normalization to sequence generation, LSTM inference, and downloadable labeled outputs — validates the practical viability of deep learning for IoT anomaly monitoring in smart environments.

Downloads

Published

2026-06-21

Issue

Section

Articles