Skip to content

StressNet: Detecting Stress in Thermal Videos. StressNet introduces a fast and novel algorithm of obtaining physiological signals and classify stress states from thermal videos.

License

Notifications You must be signed in to change notification settings

Electrum9/StressVision

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StressNet: Detecting stress in thermal videos

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

supported versions Library GitHub license

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)

Citing

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}
}

Requirements

  • Linux or macOS with Python >= 3.5
  • Pytorch >= 1.4.0
  • CUDA 10.1 or 10.0 or 9.2
  • cudNN (compatible with CUDA)

Installation

  1. Clone the repository
  2. Install dependencies
pip install -r requirements.txt

ISTI detector

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

Stress detector from predicted ISTI signal

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

About

StressNet: Detecting Stress in Thermal Videos. StressNet introduces a fast and novel algorithm of obtaining physiological signals and classify stress states from thermal videos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%