EmotionNet Nano: An Efficient Deep Convolutional Neural Network Design for Real-time Facial Expression Recognition

James Ren Hou Lee, Linda Wang, Alexander Wong

Abstract

While recent advances in deep learning have led to significant improvements in facial expression classification (FEC), a major challenge that remains a bottleneck for the widespread deployment of such systems is their high architectural and computational complexities. This is especially challenging given the operational requirements of various FEC applications, such as safety, marketing, learning, and assistive living, where real-time requirements on low-cost embedded devices is desired. Motivated by this need for a compact, low latency, yet accurate system capable of performing FEC in real-time on low-cost embedded devices, this study proposes EmotionNet Nano, an efficient deep convolutional neural network created through a human-machine collaborative design strategy, where human experience is combined with machine meticulousness and speed in order to craft a deep neural network design catered towards real-time embedded usage. Two different variants of EmotionNet Nano are presented, each with a different trade-off between architectural and computational complexity and accuracy. Experimental results using the CK+ facial expression benchmark dataset demonstrate that the proposed EmotionNet Nano networks demonstrated accuracies comparable to state-of-the-art in FEC networks, while requiring significantly fewer parameters (e.g., 23x fewer at a higher accuracy). Furthermore, we demonstrate that the proposed EmotionNet Nano networks achieved real-time inference speeds (e.g. >25 FPS and >70 FPS at 15W and 30W, respectively) and high energy efficiency (e.g. >1.7 images/sec/watt at 15W) on an ARM embedded processor, thus further illustrating the efficacy of EmotionNet Nano for deployment on embedded devices.

Introduction

Facial Expression Classification (FEC) has seen massive improvements thanks to deep learning, but the most accurate models are typically computationally expensive. These "heavyweight" neural networks require significant power and memory, making them difficult to deploy on the "edge"—low-cost processors found in smart mirrors, car dashboards, or wearable assistive devices.

In critical scenarios like driver monitoring (detecting fatigue or rage) or assistive technology for individuals with Autism Spectrum Disorder, low latency is essential. The challenge lies in finding a "Goldilocks" zone: a model small enough to run in real-time on an ARM processor but sophisticated enough to distinguish subtle nuances between various emotional states.

Methodology: Human-Machine Collaborative Design

The authors employ a two-phase human-machine collaborative design strategy to build EmotionNet Nano:

  1. Principled Network Design Prototyping: Researchers established the initial "DNA" of the model using residual design principles. This phase focused on ensuring the model could handle the "vanishing gradient" problem while maintaining architectural flexibility.
  2. Machine-Driven Design Exploration: Using generative synthesis, the team set specific constraints—such as requiring accuracy above 92% and keeping the parameter count under 1 million—and allowed an algorithm to explore the vast space of possible macro- and micro-architectures.

The resulting architecture is characterized by architectural heterogeneity. Unlike standard models that repeat uniform block structures, EmotionNet Nano’s layers vary in shape and channel count, tailored specifically to the features required at different stages. It also utilizes selective long-range connectivity, where $1 \times 1$ convolutions act as "shortcuts" to mix channels and reduce dimensionality, retaining salient features while minimizing computational load.

Datasets

The model was trained and evaluated on the Extended Cohn-Kanade (CK+) dataset, a gold standard for laboratory-controlled facial expression research. The dataset includes 593 video sequences from 123 subjects across seven expression classes: anger, contempt, disgust, fear, happiness, sadness, and surprise.

Sample facial expressions from the CK+ dataset illustrating the variety of classes the model must distinguish.

Validation was performed using subject-independent 10-fold cross-validation to ensure the model generalizes effectively to unseen faces.

Key Results

The researchers produced two variants: Nano-A (optimized for accuracy) and Nano-B (optimized for speed).

  • Accuracy: Nano-A achieved 97.6% accuracy on the CK+ dataset, comparable to much larger state-of-the-art models.
  • Compactness: Nano-A uses only 0.232 million parameters, making it 23x smaller than previous high-performance models while maintaining superior accuracy.
  • Embedded Performance: On an ARM v8.2 64-bit RISC processor, Nano-A achieved ~26 FPS at 15W and ~70 FPS at 30W. Nano-B reached ~33 FPS at 15W and ~73 FPS at 30W.
  • Energy Efficiency: The models achieved up to 2.43 images/sec/watt, demonstrating high suitability for battery-powered devices.

Discussion and Future Work

While EmotionNet Nano demonstrates significant efficiency, the authors identify several areas for future development. Currently, the model primarily processes static frames; incorporating temporal dynamics (how expressions evolve over time) could further improve classification without significantly increasing the computational budget. Additionally, addressing dataset imbalances—such as the relative scarcity of "contempt" examples—remains a priority. Finally, the authors emphasize the importance of responsible deployment, noting the ethical and privacy implications of facial recognition technology in public and social settings.

Summary updated

Abstract

While recent advances in deep learning have led to significant improvements in facial expression classification (FEC), a major challenge that remains a bottleneck for the widespread deployment of such systems is their high architectural and computational complexities. This is especially challenging given the operational requirements of various FEC applications, such as safety, marketing, learning, and assistive living, where real-time requirements on low-cost embedded devices is desired. Motivated by this need for a compact, low latency, yet accurate system capable of performing FEC in real-time on low-cost embedded devices, this study proposes EmotionNet Nano, an efficient deep convolutional neural network created through a human-machine collaborative design strategy, where human experience is combined with machine meticulousness and speed in order to craft a deep neural network design catered towards real-time embedded usage. Two different variants of EmotionNet Nano are presented, each with a different trade-off between architectural and computational complexity and accuracy. Experimental results using the CK+ facial expression benchmark dataset demonstrate that the proposed EmotionNet Nano networks demonstrated accuracies comparable to state-of-the-art in FEC networks, while requiring significantly fewer parameters (e.g., 23$\times$ fewer at a higher accuracy). Furthermore, we demonstrate that the proposed EmotionNet Nano networks achieved real-time inference speeds (e.g. $>25$ FPS and $>70$ FPS at 15W and 30W, respectively) and high energy efficiency (e.g. $>1.7$ images/sec/watt at 15W) on an ARM embedded processor, thus further illustrating the efficacy of EmotionNet Nano for deployment on embedded devices.
BibTeX
@inproceedings{lee2020emotionnet,
  author = {James Ren Hou Lee and Linda Wang and Alexander Wong},
  title = {{EmotionNet Nano: An Efficient Deep Convolutional Neural Network Design for Real-time Facial Expression Recognition}},
  booktitle = {Frontiers Artif. Intell},
  year = {2020},
  url = {https://openreview.net/forum?id=PdeIbB434T_},
}
Figure