Skip to content

Human Activity Recognition (HAR) model classifies physical activities like walking, running, or sitting using sensor data from wearables (accelerometers/gyroscopes). Built with ML/DL models, this project includes preprocessing, training, and evaluation pipelines. Ideal for fitness tracking and smart health applications.

License

Notifications You must be signed in to change notification settings

SatChittAnand/Human_Activity_RecognitionModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏃‍♂️ Human Activity Recognition (HAR)

Python License Status ML Models DL Models google Colab

A machine learning and deep learning-based system for classifying human physical activities—such as walking, running, sitting, and standing—using sensor data from wearable devices (accelerometers and gyroscopes). This project includes preprocessing, training, and evaluation pipelines, making it ideal for smart health, fitness tracking, and ambient intelligence applications.


🚀 Project Highlights

  • 📊 Sensor-Based Classification
    Uses time-series data from accelerometers and gyroscopes to identify physical activities.

  • 🧠 ML & DL Models
    Implements Logistic Regression, Decision Trees, XGBoost, CNNs, and LSTMs for robust classification.

  • 🧼 Preprocessing Pipeline
    Includes normalization, windowing, feature extraction, and label encoding.

  • 📈 Evaluation Metrics
    Accuracy, precision, recall, F1-score, and confusion matrix for model comparison.

  • 🧪 Colab-Ready Notebook
    Fully executable in Google Colab with minimal setup.


🗂️ Folder Structure

HAR-Project/
│
├── data/                   # Raw and preprocessed sensor data
├── notebooks/              # Jupyter/Colab notebooks for training and evaluation
├── models/                 # Saved model weights and architectures
├── utils/                  # Helper functions for preprocessing and visualization
├── requirements.txt        # Python dependencies
└── README.md               # Project documentation

⚙️ Setup Instructions

🔧 Local Setup

git clone https://github.com/SatChittAnand/Human_Activity_RecognitionModel.git
cd Human_Activity_RecognitionModel

☁️ Colab Setup

Just open the notebook in notebooks/Human_Activity_RecognitionModel.ipynb and run all cells. No local installation required.


📊 Dataset

You can use publicly available datasets like:

Or plug in your own wearable sensor data in .csv format.


🧠 Models Implemented

Model Type Algorithms Used
Machine Learning Logistic Regression, Decision Tree, XGBoost
Deep Learning CNN, LSTM (for sequential time-series data)

📈 Evaluation Metrics

  • Accuracy
  • Precision & Recall
  • F1-Score
  • Confusion Matrix
  • ROC Curve (for binary classification)

📌 Applications

  • 🏋️ Fitness Tracking System
  • 🧘 Smart Health Monitoring
  • 🏠 Ambient Assisted Living
  • 📱 Wearable Device Intelligence

🙌 Contributing

Pull requests are welcome! If you’d like to contribute preprocessing modules, new models, or dataset integrations, feel free to fork and submit.


📄 License

This project is licensed under the MIT License. See LICENSE for details.

About

Human Activity Recognition (HAR) model classifies physical activities like walking, running, or sitting using sensor data from wearables (accelerometers/gyroscopes). Built with ML/DL models, this project includes preprocessing, training, and evaluation pipelines. Ideal for fitness tracking and smart health applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published