Code Monkey home page Code Monkey logo

identity-action's Introduction

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

identity-action's People

Contributors

duyngudao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.