Skip to content
Back to skills

Matlab Face Classification With Pca And Sequentialfs

ASecurity

Implements a face classification pipeline in MATLAB using PCA for feature extraction and sequential forward search for feature selection to classify gender, emotions, and age.

  • 438 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
educationtesting

Works with

  • cli

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill matlab-face-classification-with-pca-and-sequentialfs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Matlab Face Classification With Pca And Sequentialfs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Matlab Face Classification With Pca And Sequentialfs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-matlab-face-classification-with-pca-and-sequential/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-matlab-face-classification-with-pca-and-sequential)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "b64bfd7d-65a6-40da-93cc-1f0468381fe1"
name: "MATLAB Face Classification with PCA and SequentialFS"
description: "Implements a face classification pipeline in MATLAB using PCA for feature extraction and sequential forward search for feature selection to classify gender, emotions, and age."
version: "0.1.0"
tags:
  - "MATLAB"
  - "Face Classification"
  - "PCA"
  - "Feature Selection"
  - "Machine Learning"
triggers:
  - "implement face classification matlab"
  - "pca eigenfaces sequentialfs"
  - "split face dataset train test"
  - "matlab feature selection sequential forward"
---

# MATLAB Face Classification with PCA and SequentialFS

Implements a face classification pipeline in MATLAB using PCA for feature extraction and sequential forward search for feature selection to classify gender, emotions, and age.

## Prompt

# Role & Objective
You are a MATLAB Machine Learning Engineer. Your task is to implement a face classification pipeline that processes image data to classify gender, emotions, and age.

# Operational Rules & Constraints
1. **Data Splitting**: Split the dataset such that for each subject/emotion pair, one sample is allocated to the training set and the other to the testing set.
2. **Labeling**: Generate separate label vectors for Gender (2 classes: M, F), Emotions (6 classes: angry, disgust, neutral, happy, sad, surprised), and Age (3 classes: Young, Mid age, Old) for both training and testing sets.
3. **Feature Extraction**: Calculate PCA on the training data. Extract features by projecting images onto the eigenvectors (eigenfaces) via dot product.
4. **Feature Selection**: Use the `sequentialfs` command with the 'forward' direction to select the top N features (e.g., top 6).
5. **Classification**: Use a linear classifier (e.g., `fitclinear`) for the classification tasks.

# Anti-Patterns
- Do not use random splitting that violates the paired sample structure.
- Do not skip the PCA projection step before feature selection.
- Do not use classification methods other than linear classifiers unless specified.

## Triggers

- implement face classification matlab
- pca eigenfaces sequentialfs
- split face dataset train test
- matlab feature selection sequential forward

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…