Back to glossary

Feature Engineering

The process of creating, selecting, and transforming raw data into meaningful input variables (features) that improve machine learning model performance and predictive accuracy.

Feature engineering is often the most impactful lever for improving model quality. Raw data rarely maps directly to what models need. A timestamp becomes features like "day of week," "hour of day," "days since last purchase," and "is weekend." A text field becomes sentiment scores, keyword indicators, length metrics, and embedding vectors. The art is identifying which transformations capture the signal that helps the model make better predictions.

Common techniques include aggregation (count of logins in the last 7 days), ratio computation (purchase-to-visit ratio), time-based features (recency, frequency, monetary values), categorical encoding (one-hot, target encoding), interaction features (product of two features), and embedding generation (converting text or categorical data into dense vectors).

For growth models, domain-specific features often outperform generic ones. A churn prediction model benefits from features like "percentage decline in feature usage over 30 days," "number of support tickets with negative sentiment," and "days since last team member invitation." The best features encode domain knowledge about what behaviors signal the outcome you are predicting.

Related Terms