aggression-detection
This repository contains the scripts used to train a machine learning model to detect aggression in clinical treatment videos.
https://github.com/munroe-meyer-institute-vr-laboratory/aggression-detection
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.1%) to scientific vocabulary
Repository
This repository contains the scripts used to train a machine learning model to detect aggression in clinical treatment videos.
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Aggression Detection
Parties Involved
Institution: Munroe-Meyer Institute in the University of Nebraska Medical Center & Electrical and Computing Engineering Department in the University of Nebraska-Lincoln
Laboratory: Virtual Reality Laboratory & IMAGE-Signals Analysis Laboratory
Advisor: Dr. James Gehringer & Dr. Benjamin Riggan
Developer: Walker Arce
Motivation
This software repository contains all scripts developed to produce the results in our paper "Detecting Aggression in Clinical Treatment Videos". Due to patient confidentiality issues, the dataset used for this study cannot be shared.
Project Scripts
clip_export.py (180 LOC) - Generates a dataset using cometrics coded videos - Paths to folders and raw data must be added
cnn_transformer.py (290 LOC) - Contains Transformer model source - Contains recurrent model source - Contains unused model source
converttoreli.py (63 LOC) - Converts a primary session to a reliability session
dataloader_utils.py (572 LOC) - Contains multiple routines for processing the dataset and pickling it to speed up processing
datapal_inference.py (302 LOC) - Contains routines for inferencing using DataPal source files, is a precursor to future scripts
experiment_setup.py (655 LOC) - Contains configuration data for experiments including the main training and evaluation routines
full_dataset.py (529 LOC) - Generates dataset statistics
hog_testing.py (155 LOC) - Creates HOG detector
identify_patient.py (43 LOC) - Used to adapt an old dataset to new dataset format
keras_models.py (873 LOC) - This script was the main engine of the experiments, sets up filepaths and initiates training and evaluation
keypoint_detection.py (71 LOC) - Uses detectron2 to generate keypoint images
keypoint_utils.py (78 LOC) - Utilities for processing keypoint data
model_metrics.py (136 LOC) - Utilities for generating performance metrics on keras models
patientdatasetgenerator.py (401 LOC) - Tkinter user interface for generating annotations of patient and clinician using a stock YOLO model
patientdatasetgenerator_auto.py (436 LOC) - Tkinter user interface for automatically generating annotations of patient and clinician using a finetuned YOLO model
roc_creator.py (227 LOC) - Creates ROC curves used in this study
table_creator.py (72 LOC) - Creates tables used in this study
tag_lut.py (85 LOC) - Lookup table for tags used in this study
updatepaths.py (67 LOC) - Recreates YOLO dataset for training using the annotations generated by patientdataset_generator.py
vivit.py (129 LOC) - Instantiates ViViT model
Owner
- Name: Munroe Meyer Institute Virtual Reality Laboratory
- Login: Munroe-Meyer-Institute-VR-Laboratory
- Kind: organization
- Website: https://www.unmc.edu/mmi/research/virtual-reality-lab.html
- Repositories: 4
- Profile: https://github.com/Munroe-Meyer-Institute-VR-Laboratory
The Virtual Reality Laboratory is researching how cutting-edge virtual reality technology can be applied to help our patients.
GitHub Events
Total
Last Year
Dependencies
- Cython ==0.29.24
- Flask ==1.1.2
- Flask-Bootstrap ==3.3.7.1
- Flask-Uploads ==0.2.1
- GitPython ==3.1.31
- Jinja2 ==3.0.3
- Keras-Preprocessing ==1.1.2
- Markdown ==3.3.6
- MarkupSafe ==2.1.2
- Pillow ==8.4.0
- PyWavelets ==1.2.0
- PyYAML ==5.4.1
- Pygments ==2.13.0
- Werkzeug ==2.2.3
- absl-py ==1.0.0
- addict ==2.4.0
- aiohttp ==3.8.1
- aiosignal ==1.2.0
- albumentations ==1.1.0
- antlr4-python3-runtime ==4.8
- appdirs ==1.4.4
- astor ==0.8.1
- asttokens ==2.2.1
- astunparse ==1.6.3
- async-timeout ==4.0.1
- attrs ==21.2.0
- av ==10.0.0
- backcall ==0.2.0
- black ==21.4b2
- cachetools ==4.2.4
- certifi ==2021.10.8
- charset-normalizer ==2.0.8
- click ==8.0.3
- cloudpickle ==2.0.0
- colorama ==0.4.4
- compress-json ==1.0.4
- cycler ==0.11.0
- decorator ==4.4.2
- decord ==0.6.0
- detectron2 ==0.6
- dominate ==2.6.0
- einops ==0.6.0
- et-xmlfile ==1.1.0
- executing ==1.2.0
- fairscale ==0.4.12
- ffmpy ==0.3.0
- flatbuffers ==2.0
- fonttools ==4.28.2
- frozenlist ==1.2.0
- fsspec ==2021.11.1
- future ==0.18.2
- fvcore ==0.1.5.post20211023
- gast ==0.4.0
- gitdb ==4.0.10
- google-auth ==2.3.3
- google-auth-oauthlib ==0.4.6
- google-pasta ==0.2.0
- graphviz ==0.20.1
- grpcio ==1.42.0
- h5py ==3.6.0
- hydra-core ==1.1.1
- idna ==3.3
- imageio ==2.12.0
- imageio-ffmpeg ==0.4.5
- importlib-metadata ==4.8.2
- importlib-resources ==5.4.0
- intel-openmp ==2021.4.0
- iopath ==0.1.9
- ipython ==8.7.0
- itsdangerous ==2.0.1
- jedi ==0.18.2
- joblib ==1.1.0
- keras ==2.10.0
- keras-flops ==0.1.2
- keras-metrics ==1.1.0
- kiwisolver ==1.3.2
- libclang ==15.0.6.1
- matplotlib ==3.5.0
- matplotlib-inline ==0.1.6
- mmcv-full ==1.7.0
- moviepy ==2.0.0.dev2
- mpmath ==1.2.1
- multidict ==5.2.0
- mypy-extensions ==0.4.3
- networkx ==2.6.3
- numpy ==1.21.4
- oauthlib ==3.1.1
- omegaconf ==2.1.1
- opencv-contrib-python ==4.7.0.68
- opencv-python ==4.5.5.64
- opencv-python-headless ==4.5.4.60
- openpyxl ==3.0.10
- opt-einsum ==3.3.0
- packaging ==21.3
- pandas ==1.3.5
- parso ==0.8.3
- pathspec ==0.9.0
- pickleshare ==0.7.5
- plot-keras-history ==1.1.30
- portalocker ==2.3.2
- proglog ==0.1.9
- prompt-toolkit ==3.0.36
- protobuf ==3.19.1
- psutil ==5.9.4
- pure-eval ==0.2.2
- pyDeprecate ==0.3.0
- pyasn1 ==0.4.8
- pyasn1-modules ==0.2.8
- pycocotools ==2.0.3
- pydot ==1.4.2
- pydotplus ==2.0.2
- pyparsing ==3.0.6
- python-dateutil ==2.8.2
- pytorch-lightning ==1.3.3
- pytz ==2021.3
- pywin32 ==302
- qudida ==0.0.4
- regex ==2021.11.10
- requests ==2.26.0
- requests-oauthlib ==1.3.0
- rsa ==4.8
- sanitize-ml-labels ==1.0.29
- scikit-image ==0.18.3
- scikit-learn ==1.0.1
- scikit-video ==1.1.11
- scipy ==1.7.3
- seaborn ==0.11.2
- setuptools-scm ==6.3.2
- sewar ==0.4.5
- simplejson ==3.18.0
- six ==1.16.0
- sk-video ==1.1.10
- sklearn ==0.0
- slowfast ==1.0
- smmap ==5.0.0
- stack-data ==0.6.2
- submitit ==1.4.5
- sympy ==1.11.1
- tabulate ==0.8.9
- tensorboard ==2.10.1
- tensorboard-data-server ==0.6.1
- tensorboard-plugin-wit ==1.8.0
- tensorflow ==2.10.0
- tensorflow-addons ==0.15.0
- tensorflow-estimator ==2.10.0
- tensorflow-intel ==2.11.0
- tensorflow-io-gcs-filesystem ==0.23.1
- termcolor ==1.1.0
- thop ==0.1.1.post2209072238
- threadpoolctl ==3.0.0
- tifffile ==2021.11.2
- toml ==0.10.2
- tomli ==1.2.2
- torch ==2.0.0.dev20230121
- torchaudio ==2.0.0.dev20230122
- torchmetrics ==0.6.0
- torchtext ==0.11.0
- torchvision ==0.15.0.dev20230122
- tqdm ==4.64.1
- traitlets ==5.7.1
- typeguard ==2.13.3
- typing_extensions ==4.0.0
- urllib3 ==1.26.7
- visitor ==0.1.3
- vmz ==0.0.1
- wcwidth ==0.2.5
- wrapt ==1.13.3
- yacs ==0.1.8
- yapf ==0.32.0
- yarl ==1.7.2
- zipp ==3.6.0