Skip to content

DuyNguDao/Identity-Action

Repository files navigation

The combination of face identification and action recognition for fall detection

Introduction

Falls are a very common unexpected accident in the elderly that result in serious injuries such as broken bones, head injury. Detecting falls and taking fall patients to the emergency room in time is very important. In this project, we propose a method that combines face recognition and action recognition for fall detection. Specifically, we identify seven basic actions that take place in elderly daily life based on skeleton data detected using YOLOv7-Pose model. Two deep models which are Spatial Temporal Graph Convolutional Network (ST-GCN) and Long Short-Term Memory (LSTM) are employed for action recognition on the skeleton data. The experimental results on our dataset show that ST-GCN model achieved an accuracy of 90% higher than the LSTM model by 7%.

video demo

recog_recording.mp4

System Diagram

Dev

Member:
 - DAO DUY NGU
 - LE VAN THIEN
Instructor: TRAN THI MINH HANH

Usage

Install package

git clone https://github.com/DuyNguDao/Identity-Action.git
cd Identity-Action
conda create --name human_action python=3.8
pip install -r requirements.txt

Download

model yolov7 pose state dict: yolov7_w6_pose

Quick start

start and config url

python run_video.py

start with terminal

python detect_video.py --fn <url if is video or 0>

Run App

note:

pip install opencv-python-headless==4.5.5.64
python app.py

Datasets and result model training

Dataset human action

Human action

Dataset Face Detection

Face detection

Dataset Face Recognition

Face recognition

Result face recognition

Diagram

Face detection

FDDB DATA

  • Confusion matrix of YOLO5Face

  • Confusion matrix of RetinaFace

WIDERFACE Val

  • Confusion matrix of YOLO5Face

  • Confusion matrix of RetinaFace

Result compare: Accuracy, Precision, Recall, Time processing

Config Computer:

  • CPU: AMD Ryzen 7 4800H với 16G RAM DDR4
  • GPU: NVIDIA GeForce GTX 1650 với 4G RAM DDR6

Face landmark loss

Face recognition

Backbone compare:

  • MobileFaceNet

  • ResNet18

Methods compare: LOOCV (Leave-One-Out Cross-Validation), Time processing with FaceScrub data

Diagram Accuracy Thresh

Result human action pose

Diagram

Backbone

LSTM

ST-GCN

Two Stream ST-GCN

Confusion matrix

  • Model LSTM (Long Short Term Memory)

  • Model ST-GCN (Spatial Temporal - Graph Convolutional Network)

Methods compare

Accuracy, Precision, Recall, F1-score, Time processing

Config Computer:

  • CPU: AMD Ryzen 7 4800H với 16G RAM DDR4
  • GPU: NVIDIA GeForce GTX 1650 với 4G RAM DDR6

Compare ST-GCN + YOLOv7-Pose and ST-GCN + YOLOv3 + Alphapose

Config Computer:

  • CPU: AMD Ryzen 7 4800H với 16G RAM DDR4
  • GPU: NVIDIA GeForce GTX 1650 với 4G RAM DDR6

  • Confusion matrix of ST-GCN with skeleton data export from yolov3 + alphapose

Training

Human action

Face Detection

Face recognition

Citation

@article{
  title={The combination of face identification and action recognition for fall detection},
  author={Dao Duy Ngu, Le Van Thien, Tran Thi Minh Hanh, Nguyen Thi Hong Yen, Dao Duy Tuan},
  journal={Journal of Science and Technology, Issue on Information and Communications Technology, ISSN: 1859-1531},
  Pages={37-44, Vol. 20, No. 12.2, 2022}
  year={2022}
}

Contact

The University of Da Nang, The University of Science and Technology
Address: 54, Nguyen Luong Bang street, Lien Chieu district, Da Nang City, Viet Nam

Acknowledgements