What is AI feature selection?
Feature selection chooses the most useful subset of the variables fed to a machine learning model. Its aim is threefold: better prediction performance, faster and more cost-effective models and a better understanding of the data-generating process.
Unlike dimensionality reduction, which usually creates new components from the original inputs, feature selection keeps a subset of the existing variables.
- Topic
- Machine learning, models and training
- Also known as
- Variable selection, attribute selection
- Origin
- Variable selection in statistics; 2003, machine learning special issue on variable and feature selection
How AI feature selection works
- Filter methods drop variables in a model-independent pre-processing step, for example by correlation coefficient or variance threshold.
- Wrapper methods treat the model as a black box and score variable subsets by predictive power; recursive elimination tries ever smaller sets.
- Embedded methods select during training; L1-penalised linear models set many coefficients to zero, dropping those variables.
- Selection is usually a pipeline step before learning; the number of features kept can follow the cross-validation score.
In more detail
Variables that work together
The same study used an example inspired by the famous XOR problem to show that two variables useless by themselves can separate classes well together. It also noted that adding presumably redundant variables can reduce noise and improve class separation. Variables are therefore assessed jointly, not only one by one.
Commonly confused terms
| Term | How it differs |
|---|---|
| Feature importance | Feature importance is a score showing each feature's contribution to a trained model's predictions. Feature selection can use such scores, but its aim is to decide which features stay in the model. |
Why AI feature selection matters for on-premises AI
Feature selection became prominent in fields with tens or hundreds of thousands of variables, such as text processing and gene expression analysis. Ranking variables one by one can mislead: a 2003 study showed that a variable useless by itself can significantly improve performance together with others. Türkiye's data protection law also requires personal data to be relevant, limited and proportionate to its purpose, so dropping unneeded personal variables supports data minimisation.
This page gives general information and is not legal advice.
When retraining its claims model, an insurer filters candidate variables by variance and correlation, then narrows the rest with cross-validated recursive elimination. Personal fields that add nothing are removed; the selected list goes into the model documentation.
Common questions
What is the difference between feature selection and dimensionality reduction?
Feature selection keeps a subset of the original variables, which keep their meaning. Dimensionality reduction usually produces new components that combine variables.
Should a variable that looks weak on its own be dropped?
Not always. A variable useless by itself can noticeably improve performance together with others. Subsets should therefore be evaluated, not only individual rankings.
Does feature selection prevent overfitting?
Not by itself. Multivariate selection methods are also prone to overfitting, especially when the number of candidate variables is large compared with the number of examples. Selection is assessed on a separate validation set or by cross-validation.
Related terms
Sources
- An Introduction to Variable and Feature Selection, JMLR, 2003
- scikit-learn documentation, Feature selection
- Law No. 6698 on the Protection of Personal Data, Official Gazette of Türkiye, 2016
In the glossary: Glossary, E to L