Skip to content

Official implementation of the affective mobile sensing system called FacePsy proposed in the article "FacePsy: An Open-Source Affective Mobile Sensing System - Analyzing Facial Behavior and Head Gesture for Depression Detection in Naturalistic Settings".

License

Notifications You must be signed in to change notification settings

stevenshci/FacePsy

Repository files navigation

FacePsy

FacePsy is designed to capture real-time facial behavior primitives as users interact with their mobile devices.

This is the official codebase of the affective mobile sesning system paper FacePsy: An Open-Source Affective Mobile Sensing System - Analyzing Facial Behavior and Head Gesture for Depression Detection in Naturalistic Settings, accepted by ACM International Conference on Mobile Human-Computer Interaction (MobileHCI 2024).

News 📰

Our work mood detection using pupillary response got accepted at IEEE-EMBS BSN 2024, titled MoodPupilar: Predicting Mood Through Smartphone Detected Pupillary Responses in Naturalistic Settings.

Depression Study In-the-Wild

FacePsy Study

Introduction

FacePsy System

Functionalities:

  • Real-time facial behavior primitives (e.g. AU, head pose, facial expressions) tracking
  • App usage tracking (e.g. screen on/off, app open/close)
  • Cognitive assessment (e.g. Stroop, Visual Spatial Memory, etc.)
  • Custom EMA delivery
  • Data collection can be done in the background
  • Use triggers such as screen on/off, app open/close, etc. to start/stop data collection
  • Realtime feature extraction of facial behavior primitives, and stores them remote database
  • Reboot app on device restart, app crash, etc, and continue data collection

Requirements

  1. Android Studio 2022
  2. NDK: 20.0.5594570
  3. Firebase

Installation

  1. Clone the repository
  2. Open the project in Android Studio
  3. Set the NDK path in local.properties file
  4. Set JDK version to 1.8 by going to Preference > Build Tools > Gradle
  5. Add Firebase to the project (Follow the instructions here)
  6. Build the project

Usage

  1. Open the app
  2. Create an account, or login if you already have an account
  3. App will ask for permissions to access the camera, storage, etc.
  4. App registers itself in background services, and starts collecting data based on the triggers

Study Admin/Researcher/Developer

The study admin/researcher/developer can access the data collected by the app by logging into the firebase console. The firebase console is available at FacePsy Web Portal

Following parameters can be accessed by the study admin/researcher/developer:

  1. Customizable triggers
  2. EMA link and delivery
  3. Data collection length on each trigger type
  4. Data collection frequency

Extras

To use Dlib with OpenCV

  1. Before importing the project into AndroidStudio there's a little editing to do:
    • Open the app/CMakeLists.txt
    • Then, replace with your path the variables PROJECT_PATH and OPENCV_PATH.
  2. Now the project is ready to be imported into AndroidStudio.

Credit

Thanks to CottaCush/HiddenCam.

Citation

If you find this repository useful, please consider giving a star ⭐ and citation using the given BibTeX entry:

@article{10.1145/3676505,
author = {Islam, Rahul and Bae, Sang Won},
title = {FacePsy: An Open-Source Affective Mobile Sensing System - Analyzing Facial Behavior and Head Gesture for Depression Detection in Naturalistic Settings},
year = {2024},
issue_date = {September 2024},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {8},
number = {MHCI},
url = {https://doi.org/10.1145/3676505},
doi = {10.1145/3676505},
month = sep,
articleno = {260},
numpages = {32},
keywords = {affective computing, application instrumentation, depression, empirical study that tells us about people, field study, machine learning, mobile computing, system}
}

License

This project is licensed under the MIT License.

Contact

If you have any questions or suggestions, please feel free to contact Rahul.

About

Official implementation of the affective mobile sensing system called FacePsy proposed in the article "FacePsy: An Open-Source Affective Mobile Sensing System - Analyzing Facial Behavior and Head Gesture for Depression Detection in Naturalistic Settings".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published