Skip to main content
QUICK REVIEW

[Paper Review] CNN-based Facial Affect Analysis on Mobile Devices

Charlie Hewitt, Hatice Güneş|arXiv (Cornell University)|Jul 23, 2018
Emotion and Mood RecognitionPsychology24 references14 citations
TL;DR

This paper proposes three lightweight CNN architectures optimized for mobile deployment to enable real-time facial affect analysis on smartphones. Evaluated on the AffectNet dataset, the models achieve 58% accuracy for eight-class emotion classification and 0.39 average RMSE for valence/arousal prediction, with real-time inference at ~45 fps on an iPhone 6S, demonstrating feasibility for real-world applications like affect-driven music recommendation.

ABSTRACT

This paper focuses on the design, deployment and evaluation of Convolutional Neural Network (CNN) architectures for facial affect analysis on mobile devices. Unlike traditional CNN approaches, models deployed to mobile devices must minimise storage requirements while retaining high performance. We therefore propose three variants of established CNN architectures and comparatively evaluate them on a large, in-the-wild benchmark dataset of facial images. Our results show that the proposed architectures retain similar performance to the dataset baseline while minimising storage requirements: achieving 58% accuracy for eight-class emotion classification and average RMSE of 0.39 for valence/arousal prediction. To demonstrate the feasibility of deploying these models for real-world applications, we implement a music recommendation interface based on predicted user affect. Although the CNN models were not trained in the context of music recommendation, our case study shows that: (i) the trained models achieve similar prediction performance to the benchmark dataset, and (ii) users tend to positively rate the song recommendations provided by the interface. Average runtime of the deployed models on an iPhone 6S equates to ~45 fps, suggesting that the proposed architectures are also well suited for real-time deployment on video streams.

Motivation & Objective

  • To design and deploy efficient CNN architectures for facial affect analysis tailored to mobile devices with limited storage and computational resources.
  • To evaluate these models on a large-scale, in-the-wild dataset (AffectNet) to ensure performance comparable to state-of-the-art benchmarks.
  • To demonstrate real-world deployability by integrating the models into a music recommendation application as a proof-of-concept for emotionally intelligent user interfaces (EIUIs).
  • To assess user perception and system performance in a real-world context through a user study on affect-based song recommendations.
  • To explore the feasibility of on-device affect recognition with minimal data retention and strong privacy considerations in mobile applications.

Proposed method

  • Proposed three variants of established CNN architectures (VGGNet-based) with architectural modifications to reduce model size while preserving performance.
  • Trained the models on the AffectNet dataset, which includes 450,000 in-the-wild facial images annotated for eight discrete emotions, valence, and arousal.
  • Applied data augmentation and transfer learning techniques to improve generalization and reduce overfitting on the mobile-optimized models.
  • Deployed the trained models on an iPhone 6S using Apple’s CoreML framework to enable on-device inference with low latency.
  • Implemented a music recommendation interface that maps predicted affect (emotion, valence, arousal) to song suggestions using a heuristic mapping strategy.
  • Conducted a user study to evaluate the perceived quality of recommendations and user privacy concerns, with data processed locally on the device.

Experimental results

Research questions

  • RQ1Can lightweight CNN architectures achieve performance comparable to state-of-the-art models on facial affect recognition while minimizing storage requirements for mobile deployment?
  • RQ2How does the inference speed and real-time performance of these models compare on consumer mobile hardware, such as an iPhone 6S?
  • RQ3To what extent can affectively driven music recommendations based on predicted facial affect be perceived positively by users in a real-world setting?
  • RQ4What are the privacy concerns of users when using mobile applications that analyze facial affect, and how can these be mitigated through on-device processing?
  • RQ5Can models trained on generic affective datasets be effectively repurposed for application-specific tasks like music recommendation without fine-tuning?

Key findings

  • The proposed CNN variants achieved 58% accuracy for eight-class emotion classification and 0.39 average RMSE for valence/arousal prediction on the AffectNet dataset, matching the performance of the dataset’s baseline models.
  • The deployed models ran at approximately 45 fps on an iPhone 6S, confirming their suitability for real-time video stream processing.
  • User study results showed that participants rated song recommendations an average of 3.2 out of 5, with higher ratings (3.9) when emotions were correctly classified.
  • Users expressed general satisfaction with the application’s functionality, though they emphasized a preference for local data processing and no persistent storage of facial images.
  • The study confirmed that affective models trained on generic datasets can be effectively used in application-specific contexts like music recommendation, even without task-specific fine-tuning.
  • Privacy concerns were present but less pronounced than expected, especially when data processing was kept on-device and no images were stored.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.