Project 06
Eigenfaces & Fisherfaces: Classical Face Recognition on Olivetti Faces
A face-recognition study on Olivetti Faces, with PCA eigenfaces at 98.0% using 54× fewer dimensions and Fisherfaces at 99.0%, plus cross-validation that tempers both claims.
- 2026
- Python
- scikit-learn
- PCA
- LDA
- +3

Context
Problem
Classical face recognition has to identify 40 people from 64×64 grayscale images with only about seven training photographs per person. The question is whether a linear projection can preserve identity while discarding expression, lighting, and noise.
Reading
Research & prior art
- 01
Turk & Pentland (1991), “Eigenfaces for Recognition,” Journal of Cognitive Neuroscience.
Eigenfaces projects faces onto the leading principal components of the training set. It is a linear, unsupervised compression, and it is the baseline the rest of the project measures against.
- 02
Belhumeur et al. (1997), “Eigenfaces vs. Fisherfaces: Recognition Using Class Specific Linear Projection,” IEEE TPAMI.
Fisherfaces adds a supervised LDA step after PCA, so the projection maximises between-class separation. It reaches 99.0% at 39 dimensions, but it needs class labels and can overfit with few samples per class.
- 03
Martínez & Kak (2001), “PCA versus LDA,” IEEE TPAMI.
With small per-class samples, LDA can overfit and PCA is not automatically worse. That is the tension between the 99.0% Fisherfaces result and the more stable Eigenfaces cross-validation.
- 04
AT&T Laboratories Cambridge, “The Olivetti Faces Dataset.”
The dataset is 400 64×64 grayscale images of 40 subjects, ten each. The small per-subject sample is the reason cross-validation matters more than a single held-out split.
Trade-offs
Approaches compared
Raw pixels plus a linear SVM
- Strengths
- No projection and no information loss; 97.00% test accuracy.
- Limits
- 4,096 features for 400 images. The classifier has to handle irrelevant lighting and expression variation directly.
- Verdict
- The control. PCA's 98.0% is only one point above it, so the compression is the real win, not a new classifier.
Eigenfaces, PCA k=75 plus a linear SVM
- Strengths
- 98.0% test accuracy with 75 components (54× fewer than 4,096); 5-fold cross-validation gives 97.25% ± 1.22%.
- Limits
- The single-split 98.0% is above the cross-validated mean, and PCA is unsupervised, so it does not use class labels.
- Verdict
- The honest headline: equivalent accuracy with far fewer dimensions, not a decisive win over raw pixels.
Tuned Eigenfaces (GridSearchCV, k=50, C=0.1)
- Strengths
- Selected by cross-validation rather than the single split; 96.0% test accuracy.
- Limits
- Lower on the held-out split, and the search is small, so the estimate is still noisy.
- Verdict
- The more defensible configuration if the goal is a repeatable pipeline, even though its headline number is lower.
Fisherfaces (PCA 150 plus LDA)
- Strengths
- 99.0% at 39 dimensions; the supervised projection separates subjects rather than appearance.
- Limits
- Implemented by a teammate. At most C-1 = 39 directions for 40 classes, and LDA can overfit with few samples per class.
- Verdict
- The strongest project result, but not my implementation and not a like-for-like comparison with the unsupervised Eigenfaces pipeline.
Method
Approach
- 01
Split the 400 Olivetti images stratified by subject: 75% training, 25% test, with a fixed random seed.
- 02
Fit PCA on the training set and sweep the number of components for both 1-NN and linear SVM classifiers, then run a joint GridSearchCV over components and SVM hyperparameters.
- 03
Build raw-pixel baselines to separate the effect of the classifier from the effect of dimensionality reduction.
- 04
Evaluate the best configuration with macro precision, recall, F1, a confusion matrix, and 5-fold stratified cross-validation.
- 05
Add zero-mean Gaussian noise of increasing standard deviation, and compare pure Eigenfaces with the supervised Fisherfaces extension (PCA + LDA).
Contribution
What I personally built
- I owned the classification and evaluation: the PCA component sweep, the 1-NN and linear-SVM comparison, the confusion matrix, the raw-pixel baseline, the noise tests, and the 5-fold stratified cross-validation.
- I built the GridSearchCV comparison that selected k=50, C=0.1 at 96.0%, and the analysis that separates the 98.0% single-split result from the 97.25% cross-validated estimate.
- The Fisherfaces implementation and its 99.0% result were a teammate's; I include them as the project's strongest comparison, not as my work.
Evidence
Results
99.0%
Fisherfaces accuracy
39 final dimensions (PCA 150 + LDA), single held-out split
98.0%
Eigenfaces accuracy
PCA k=75 + linear SVM, 54× fewer than 4,096
97.25%
Cross-validated accuracy
5-fold stratified CV, ± 1.22 percentage points






Reflection
What I would do differently
The 98.0% single-split result was 0.75 points above the 97.25% cross-validated mean, and PCA was statistically indistinguishable from raw pixels at 97.00%. The honest headline is equivalent accuracy with 54× fewer dimensions, not a better classifier. I would lead with cross-validation, treat a single split as a noisy estimate, and test a nonlinear model before calling linear methods the ceiling.