Abstract
Recognizing facial action units (AUs) during spontaneous facial displays is a challenging problem. Most recently, Convolutional Neural Networks (CNNs) have shown promise for facial AU recognition, where predefined and fixed convolution filter sizes are employed. In order to achieve the best performance, the optimal filter size is often empirically found by conducting extensive experimental validation. Such a training process suffers from expensive training cost, especially as the network becomes deeper. This paper proposes a novel Optimized Filter Size CNN (OFS-CNN), where the filter sizes and weights of all convolutional layers are learned simultaneously from the training data along with learning convolution filters. Specifically, the filter size is defined as a continuous variable, which is optimized by minimizing the training loss. Experimental results on two AU-coded spontaneous databases have shown that the proposed OFS-CNN is capable of estimating optimal filter size for varying image resolution and outperforms traditional CNNs with the best filter size obtained by exhaustive search. The OFS-CNN also beats the CNN using multiple filter sizes and more importantly, is much more efficient during testing with the proposed forward-backward propagation algorithm.
What Problem Does This Paper Address?
In computer vision, the "receptive field"—the specific area of an image a single neuron processes—is fundamentally determined by the size of the convolutional filters (e.g., 3x3, 5x5). Selecting the appropriate size is a critical balancing act. Filters that are too small may fail to capture the context of broad facial movements, while excessively large filters risk capturing irrelevant noise or increasing computational overhead.
This challenge is particularly acute in Facial Action Unit (AU) recognition. Different facial muscles operate at vastly different scales. For instance, a "lip corner puller" (AU12, associated with smiling) affects a large triangular region of the cheek, whereas a "chin raiser" (AU17) produces localized wrinkles in a much smaller area.
Conventionally, researchers determine the "optimal" filter size through exhaustive grid searches or trial-and-error. This approach is computationally expensive, especially as networks grow deeper. Furthermore, a filter size optimized for a low-resolution image often fails when applied to high-resolution data.
Methods: The OFS-CNN Architecture
The authors propose the Optimized Filter Size CNN (OFS-CNN), which treats the filter size $k$ as a continuous, learnable variable ($k \in \mathbb{R}^+$) rather than a fixed integer. This allows the network to automatically adapt its receptive fields to the specific task and input resolution.
The Interpolation Trick
To handle non-integer filter sizes (e.g., a 4.2x4.2 convolution), the model employs a linear interpolation method. For any continuous size $k$, the system identifies an "upper-bound" integer size ($k_+$) and a "lower-bound" integer size ($k_-$).
- Forward Pass: The activation is computed as a weighted interpolation between the results of the upper and lower-bound filters.
- Backward Pass: The model calculates the partial derivative of the loss with respect to the filter size $k$. This enables the network to adjust the filter size dynamically during training using standard Stochastic Gradient Descent (SGD).
Dynamic Transformation and Efficiency
As $k$ evolves, it may cross integer boundaries. When this occurs, the model performs a transformation: expanding filters by padding with values from nearest neighbors or shrinking them by filling boundaries with zeros. Crucially, the authors demonstrate that this entire process collapses into a single standard convolution operation during inference. Consequently, OFS-CNN maintains the same computational efficiency as a standard, fixed-size CNN during testing.
Experimental Evaluation
The model was rigorously evaluated on two benchmark databases for spontaneous facial behavior: BP4D (Binghamton-Pittsburgh 4D) and DISFA (Denver Intensity of Spontaneous Facial Action). These datasets are particularly challenging due to the spontaneous nature of the expressions and the presence of moderate head movements.
Key Results and Insights
The OFS-CNN demonstrated superior performance across several metrics:
- Accuracy: A 3-layer OFS-CNN outperformed traditional CNNs using fixed 3x3 to 9x9 filters. It also surpassed state-of-the-art specialized architectures like DRML and PL-CNN.
- Resolution Adaptation: A significant finding was the model's ability to automatically scale filters when input resolution changed. When image resolution quadrupled, the learned filter sizes increased proportionally to maintain a consistent physical receptive field on the face.
- Efficiency: While multi-scale architectures like GoogLeNet use multiple filter sizes simultaneously, they are computationally intensive. OFS-CNN identifies the single best size, resulting in 6-8x faster testing speeds while achieving higher F1 scores on AU tasks (0.537 for OFS-CNN vs. 0.531 for GoogLeNet on BP4D).
Conclusion
OFS-CNN successfully automates the tuning of convolutional filter sizes, a task previously reliant on manual heuristics. By treating filter size as a learnable parameter, the model achieves better performance and robustness to resolution changes without increasing inference time. Future research may explore learning per-channel filter sizes to capture even more diverse features.
Summary updated