This project performs one-step-ahead prediction and filtering of human IMU signals using the UCI Human Activity Recognition (HAR) dataset. It compares three estimation approaches:
- Extended Kalman Filter (EKF)
- Particle Filter (PF)
- A simple Recurrent Neural Network (RNN) baseline
The goal is to study:
- How model-based estimators compare with a data-driven model.
- How each method behaves under normal conditions.
- How robustness changes when measurement quality worsens (noise, drift, dropouts).
- Clean EKF and PF implementations
- Lightweight PyTorch RNN baseline
- Configurable experiments and reproducible evaluation
- Robustness tests through synthetic noise injection and data degradation
- Clear visualizations (filter outputs, residuals, error curves)
This project uses a Python virtual environment to ensure isolation and reproducibility.
From the repository root:
bash scripts/create_venv.sh
This will create a virtual environment named uci_project and install all
required dependencies.
source uci_project/bin/activate
After activation, your terminal prompt should indicate that the environment is active.
This project uses the UCI Human Activity Recognition (HAR) dataset.
Official dataset page:
https://archive.ics.uci.edu/ml/datasets/human+activity+recognition+using+smartphones
The dataset download and extraction process is fully automated.
From the repository root, run:
bash scripts/get_data.sh
The dataset files are not committed to the repository and are generated locally by the download script.
.
├── configs/ # Configuration files (YAML)
│ └── config.yaml
├── data/ # Dataset storage
│ ├── raw/
│ └── processed/
├── results/ # Experiment outputs
│ ├── metrics/ # Evaluation metrics (JSON)
│ └── plots/ # Generated visualizations
├── report/ # LaTeX report and figures
├── scripts/ # Setup and utility scripts
├── src/ # Source code
│ ├── dataloader/ # Data loading and preprocessing
│ ├── models/ # Model implementations
│ │ ├── base.py # Base model interface
│ │ ├── persistence.py # Persistence baseline
│ │ ├── ekf.py # Extended Kalman Filter
│ │ ├── pf.py # Particle Filter
│ │ ├── rnn.py # PyTorch RNN baseline
│ │ ├── degrade.py # Data degradation utilities
│ │ ├── evaluation/ # Model evaluation
│ │ └── experiments/ # Experiment runners
│ ├── tuning/ # Hyperparameter tuning
│ └── utils/ # Utility functions
├── requirements.txt # Python dependencies
└── README.md # This file