This project focuses on Human Activity Recognition (HAR) using smartphone sensor data. The model classifies different human activities based on accelerometer and gyroscope data from mobile devices.
✔️ Classifies activities like Walking, Sitting, Standing, and Jogging
✔️ Uses ML models to predict human actions based on sensor data
✔️ Achieves 93% accuracy
The dataset used for this project is the UCI HAR Dataset. It contains motion sensor data collected from mobile devices while participants performed different activities.
📌 Dataset Files:
train.csv- Training datatest.csv- Testing datafeatures.txt- Feature names
🔹 Programming Language: Python
🔹 Libraries: Pandas, NumPy, Scikit-Learn
🔹 Model Used: Random Forest Classifier
| Metric | Score |
|---|---|
| Accuracy | 93% |
| Precision | XX% |
| Recall | XX% |
git clone https://github.com/robinnits/Human-Activity-Detection.git
cd Human-Activity-Detectionpython3 -m venv venv
source venv/bin/activate # (Mac/Linux)
venv\Scripts\activate # (Windows) pip install -r requirements.txtpython train_model.py📂 Human-Activity-Detection
┣ 📂 data
┃ ┣ 📜 train.csv
┃ ┣ 📜 test.csv
┣ 📂 models
┃ ┣ 📜 trained_model.pkl
┣ 📜 train_model.py
┣ 📜 test_model.py
┣ 📜 README.md
┣ 📜 requirements.txt
👤 Robin Poddar
📌 NIT Silchar
- UCI Machine Learning Repository for providing the dataset.
- Scikit-Learn & Pandas for ML implementation.