Image analysis with PCA has been widely used over past 30 years.
The fisrt article describing such idea was in 1991 by Turk and Pentland. CVPR paper
, Journal paper
They proposed a PCA-based face recognition algorithm. The method of applying PCA on an image was described in detail.
In this notebook, I follow their description and compute eigenfaces on another widely used dataset, Japanese Female Facial Expression Dataset (JAFFE).
Data can be downloaded from Kaggle.
images/ contains all the face images, data.csv contains information on each image, such as person ID, and the expression.