Every smartphone carries an accelerometer and a gyroscope. The signals they record change in a recognisable way when you walk, climb stairs, sit or lie down. This project trains a Long Short-Term Memory (LSTM) network to recognise the activity from these sensor signals.
Unlike images, sensor data is a time series – what matters is how the values change over a few seconds. LSTM networks are designed to remember patterns across time steps, which makes them a natural choice for activity recognition.
How the System Works
- Load the sensor data – use a public dataset such as the UCI HAR dataset or WISDM, with labelled accelerometer and gyroscope readings.
- Segment into windows – cut the continuous signal into short overlapping windows (for example 2.5 seconds), each labelled with one activity.
- Normalise – scale every sensor channel so that no single axis dominates training.
- Build the LSTM – one or two LSTM layers followed by dropout and a softmax layer for the activity classes.
- Train and tune – adjust window length, number of units and dropout while watching validation accuracy.
- Evaluate – report accuracy and a confusion matrix – sitting and standing are often confused, which makes a good discussion point.
Tools and Techniques
Written in Python with TensorFlow/Keras or PyTorch, NumPy and Pandas for the signals, and Matplotlib for plotting raw signals and training curves. A CNN-LSTM hybrid or a classical model such as Random Forest on hand-made features makes a good comparison.
What You Learn
You learn how to handle time-series sensor data, windowing and labelling, how recurrent networks and LSTM cells keep memory across time, and how to compare deep learning with classical machine learning on the same problem.
Real-World Applications
- Fitness and step-tracking apps
- Fall detection for elderly people
- Health and rehabilitation monitoring
- Smart-home and wearable device context awareness
Related Projects
Explore more deep learning projects on similar topics:
- Vehicle Number Plate Detection and Recognition Using Deep Learning
- Signature Verification System Using CNN (Genuine vs Forged)
- Handwritten Digit Recognition Using CNN on the MNIST Dataset
- Black and White Image Colorization Using OpenCV and Deep Learning
What Support You Get
- Coding guidance: how to write the windowing code and the LSTM model in Python, train it on the sensor dataset and analyse the results – explained line by line so you understand every step
- Dataset guidance: where to find a suitable public dataset and how to clean and prepare it yourself
- Report guidance: how to structure your own report – introduction, literature review, methodology, results and conclusion
- Live class: a step-by-step explanation while you write and run the code on your own computer, so you can present your work and answer viva questions with confidence
Studying abroad? We guide you too – learn Python, machine learning and deep learning through our live classes or recorded video lessons.
Who Is This Project For?
This project is a good learning example for B.Tech and B.E. students in CSE, IT, AI and Data Science, ECE and allied branches, MCA and M.Sc students, and M.Tech students who want a method they can extend in their own thesis. It also suits anyone learning deep learning in Python who wants to work on a real problem instead of a textbook example.
Frequently Asked Questions
What data does the project use?
Accelerometer and gyroscope readings from smartphones, for example the public UCI HAR dataset.
Why LSTM instead of a normal neural network?
Activities are defined by how signals change over time, and LSTM layers are built to learn such time patterns.
Which activities can be recognised?
Typically walking, walking upstairs, walking downstairs, sitting, standing and lying down.
Can I learn this project with Engineers R World?
Yes. We teach the method step by step in live classes or recorded videos, and you write and run the Python code yourself on your own computer.
Learn the Human Activity Recognition Using LSTM Project With Us
Want to learn this project for your final year, mini project or M.Tech work? Message us with your university, branch and deadline, and we will share a learning plan – live classes and step-by-step guidance while you build it yourself.
Enquire about this project on WhatsApp or use the enquiry form on our home page. Browse more deep learning projects or start with our free Python learning section.
Interested in this project? Get the details, files and guidance from our team.
Enquire on WhatsApp