StressNet introduces a fast and novel algorithm of obtaining physiological signals and classify stress states from thermal videos. This repo contains ground-up write of all the components of StressNet. It is written in Python and powered by the pytorch deep learning framework.
Satish Kumar*, ASM Iftekhar, Michael Goebel, Tom Bullock, Mary H. MacLean, Michael B. Miller, Tyler Santander, Barry Giesbrecht, Scott T. Grafton, B.S. Manjunath
Official repository for our WACV 2021 paper
This repository includes:
- Source code for ISTI signal predictor with baseline model Resnet50
- Source code for Stress Detector
- Requirements file to setup the environment
- Training/Test code for both ISTI signal predictor and Stress Detector
- Example of training on your own dataset
The whole repo structure follows the same style as written in the paper for easy reproducibility and easy to extend this work. If you use this research, please consider citing our paper (bibtex below)
If this work is useful to you, please consider citing our paper:
@inproceedings{kumar2020stressnet,
title={StressNet: Detecting Stress in Thermal Videos},
author={Kumar, Satish and Iftekhar, ASM and Goebel, Michael and Bullock, Tom and MacLean, Mary H and Miller, Michael B and Santander, Tyler and Giesbrecht, Barry and Grafton, Scott T and Manjunath, BS},
booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
pages={999--1009}
}
- Linux or macOS with Python >= 3.5
- Pytorch >= 1.4.0
- CUDA 10.1 or 10.0 or 9.2
- cudNN (compatible with CUDA)
- Clone the repository
- Install dependencies
pip install -r requirements.txt
Running the ISTI detector code is at isit_predictor. Its output is a numpy array of isti signal. Follow the REAMDME.md to run it.
isti_predictor/README.md
For detecting stress from thermal video, the ISTI detector needs to be run first. Then the predicted ISTI signal is used to predict the probability of stress experienced by an individual. Source code is at stress_predictor.Follow the README.md to run it.
stress_predictor/README.md