Bi-2DPCA: A Fast Face Coding Method for Recognition

Jian Yang, Yong Xu, Jingyu YangInTech 2010 · OpenAlex

Abstract

Traditional Principal Component Analysis (PCA) has long been a staple of face recognition, yet it suffers from high computational costs and estimation inaccuracies due to the necessity of flattening 2D images into 1D vectors. While Two-Dimensional PCA (2DPCA) addressed computational efficiency by working directly with image matrices, it introduced a significant storage overhead. This paper presents Bidirectional 2DPCA (Bi-2DPCA), a method that performs dimensionality reduction in both horizontal and vertical directions sequentially. By leveraging a separable transform approach, Bi-2DPCA achieves the high compression rates of traditional PCA while maintaining the computational advantages of 2D matrix-based operations. Experimental results on the FERET and AT&T databases demonstrate that Bi-2DPCA is not only faster and more memory-efficient than PCA but also achieves comparable or superior recognition accuracy.

Introduction

For decades, the "Eigenfaces" method—based on Principal Component Analysis (PCA)—represented the gold standard for holistic face recognition. PCA operates by transforming 2D image matrices into high-dimensional 1D vectors. For instance, a $100 \times 100$ pixel image is treated as a 10,000-dimensional vector, resulting in a massive covariance matrix that is computationally expensive to solve and difficult to evaluate accurately with limited training samples.

To mitigate these issues, Two-Dimensional PCA (2DPCA) was developed. Unlike PCA, 2DPCA constructs an image covariance matrix directly from the original 2D matrices, significantly reducing the size of the matrix and the complexity of determining eigenvectors. However, 2DPCA has a notable drawback: it only reduces dimensionality in one direction (usually horizontal), leading to feature representations that require substantially more storage space than those produced by PCA. This paper introduces Bi-2DPCA to bridge this gap, providing a method that is as compact as PCA and as efficient as 2DPCA.

Methodology: The Bidirectional Approach

The core innovation of Bi-2DPCA is the application of dimensionality reduction in two sequential stages: horizontal projection followed by vertical projection.

  1. Horizontal Projection: The image matrix is projected onto an optimal set of axes to eliminate correlations between columns. This stage mirrors standard 2DPCA, concentrating the image's "energy" into a reduced number of columns.
  2. Vertical Projection: The resulting feature matrix is then transposed and projected again to eliminate correlations between rows.

This sequential pipeline effectively squeezes the most important visual information into the top-left corner of the matrix. The final representation is a small $p \times q$ matrix (e.g., $15 \times 15$), which is significantly smaller than the original image or the intermediate 2DPCA output.

Mathematically, the authors provide a theoretical foundation (Theorem 2) proving that this sequential approach is optimal for minimizing mean-square error (MSE). This distinguishes Bi-2DPCA from previous "separable" transforms like ST-KLT, which often abandoned the theoretical assumptions necessary to guarantee they remained good approximations of the Karhunen-Loève Transform (KLT).

Experimental Setup

The performance of Bi-2DPCA was evaluated using two prominent benchmarks:

  • AT&T Face Database: Comprising 400 images of 40 individuals, used for initial testing and image reconstruction analysis.
  • FERET Database: The industry standard for face recognition. The study utilized the 1996 standard subset, featuring a gallery of 1,196 images and four probe sets (fafb, fafc, Duplicate I, and Duplicate II) to test the algorithm against variations in expression, lighting, and time intervals.

Key Insights and Results

Computational and Storage Efficiency

Bi-2DPCA demonstrates a clear advantage in resource management. In tests on the FERET dataset, the total time for training and testing was 799 seconds for Bi-2DPCA, compared to 1,232 seconds for PCA.

More strikingly, the memory requirements for the transformation model (Projector Size) were drastically reduced. While PCA required 1,280,000 units of memory, Bi-2DPCA required only 2,320. This makes Bi-2DPCA highly suitable for systems with limited storage or real-time processing requirements.

Recognition Accuracy

Bi-2DPCA consistently matched or outperformed PCA across various distance metrics. Using the L1 distance metric on the full FERET set, Bi-2DPCA achieved a 55.08% recognition rate, surpassing PCA’s 53.89%. Furthermore, Bi-2DPCA showed greater stability across different metrics (L1, L2, and Cosine) compared to 2DPCA, indicating higher robustness for diverse deployment scenarios.

Visual Representation

Analysis of the "basis images" revealed that Bi-2DPCA captures meaningful facial structures. Unlike 2D-DCT basis images, which appear as generic checkerboard patterns, Bi-2DPCA basis images resemble ghostly face prototypes. This confirms that the algorithm is successfully learning the underlying structural features of human faces rather than just performing generic frequency analysis.

Conclusion and Future Work

Bi-2DPCA successfully addresses the storage limitations of 2DPCA while retaining its computational speed. By performing bidirectional projections, it provides a compact, efficient, and accurate framework for face coding. While the method shows some sensitivity to extreme environmental changes (such as significant lighting variations in the fafc probe set), its efficiency makes it a compelling candidate for various biometric applications. Future research may explore the application of the Bi-2DPCA framework to other 2D biometric data, such as palmprints or gait analysis, where maintaining structural integrity during dimensionality reduction is critical.

Summary updated

Abstract

Pattern Recognition, Recent Advances 314 Recently, a straightforward image projection technique, coined two-dimensional principal component analysis (2DPCA) Differing from standard PCA, 2DPCA is based on 2D matrices rather than 1D vectors. That is, 2DPCA does not need to transform an image matrix into a vector in advance. Instead, it can construct an image covariance matrix directly using the original image matrices. In contrast with the covariance matrix of PCA, the size of the image covariance matrix of 2DPCA is much smaller. Thereby, 2DPCA has two remarkable advantages over PCA. Firstly, it is much easier to evaluate the covariance matrix accurately with a given number of training images. Secondly, it is computationally more efficient to determine the eigenvectors. The disadvantage of 2DPCA, however, is also obvious 2DPCA-based image representation was not as economical as PCA in terms of storage requirements, since 2DPCA needs more coefficients than PCA for image representation. Although a feasible alternative to deal with this is to use PCA after 2DPCA for further dimensional reduction, it is still unclear how the dimension of 2DPCA could be reduced directly. In this paper, we will address this issue. In image compression area, the classical 2D-KLT technique was ever adopted to implement KLT (KL transform) for computational efficiency, based on an assumed image model Assuming that the image random field has a separable covariance function (or autocorrelation function) and, the horizontal and vertical statistics satisfy the first-order Markov model, PCA can be equivalently implemented by a separable transform, i.e. 2D-KLT. Recently, Olmos et al. However, in Olmos's method, the horizontal and vertical covariance matrices are not generated by the assumed first-order Markov covariance functions but evaluated by the training samples. This implies that the separability assumption was actually abandoned in ST-KLT. The abandonment of this assumption will give rise to a series of problems; for example, no theory can guarantee that ST-KLT is a good approximation to KLT.
BibTeX
@inproceedings{yang2010bi,
  author = {Jian Yang and Yong Xu and Jingyu Yang},
  title = {{Bi-2DPCA: A Fast Face Coding Method for Recognition}},
  booktitle = {InTech},
  year = {2010},
  doi = {10.5772/9353},
}
Figure