Long Short Term Memory occupancy detection in smart homes using indoor climate data
To read about this project: LSTM for occupancy detection in smart homes using indoor climate data
LSTM predictions on the Occupancy detection dataset
Run code
Or
- Go to Google Colab and sign in
- Open "Open Notebook" then go to "GitHub" tab and then search for "Linkanblomman" and choose repository "Linkanblomman/LSTM_occupancy_detection"
- Pick the notebook and run it
Run on a Raspberry Pi 3
- Download the LSTM_Raspberry_Pi directory to your Raspberry Pi 3
- Follow this guide: A Step by Step guide to installing PyTorch in Raspberry Pi
- Get access to "raspberry_pi_files" as in the folder structure (image below): run Raspberry_Pi_3_Occupancy_Detection_Dataset_LSTM_model.ipynb
- Extract the zip file from step 3 into the LSTM_Raspberry_Pi directory as in the folder structure (image below)
- Pip install necessary modules
- Run code with the command "Python3 lstm__for_raspberrypi.py"
NOTE!
Before running the code in Google Colab.
GPU usage (change CPU to GPU): Runtime -> Change runtime type -> Hardware accelerator -> GPU -> Save
If you get errors when running Raspberry_Pi_3_Occupancy_Detection_Dataset_LSTM_model.ipynb:
- Press the "RESTART RUNTIME"
- Run again: Runtime -> Run all
- Still getting errors then repeat step 1 and 2 again.