What is feature engineering for fraud models?
Feature engineering is the work of turning raw event data into useful inputs for a fraud model, such as counts, ratios, time since last action and links to other accounts.
Also called: feature engineering, fraud features, model features
What a feature is
A machine learning fraud detection model does not read raw logs. It reads features: numbers and categories that describe an event. Raw data like a list of past payments becomes features like "number of payments in the last hour" or "amount compared with this customer's average."
Good features capture what makes fraud different from normal use. Often the most useful ones compare an event with history: for the customer, the device, the merchant or everyone.
Common feature types
- Velocity: counts and sums over time windows, as in a velocity check.
- Change: time since a password reset, a new device or a new payee.
- Mismatch: distance between IP location, billing address and phone country.
- Network: how many accounts share this device, email or card, from link analysis.
- Reputation: age and history of the email, phone, device or IP.
Why it matters for fraud and trust
Better features often improve a model more than a more complex algorithm does. They also make model results easier to explain to analysts and regulators, because each feature has a clear meaning.
Pitfalls
The biggest risk is leakage: using information that was not known at the moment of the decision, such as a later chargeback. This makes models look good in testing and fail in production. Features must also be computed the same way in training and in live scoring.
Teams should check that features do not act as stand-ins for protected traits, and watch them over time for model drift as customer behavior and attacks change.
Related terms
- Machine learning for fraud detectionMachine learning for fraud detection uses models trained on past data to estimate how likely a transaction, account or event is to be fraudulent.
- Velocity checkA velocity check counts how often something happens in a set time window, such as payments per card per hour, and flags or blocks activity that goes above a limit.
- Model driftModel drift is the drop in a model's performance over time as real-world data or the link between inputs and outcomes changes from what it learned.
- BacktestingBacktesting runs a new fraud rule, threshold or model on past data with known outcomes to estimate how it would have performed before it goes live.
- Explainable AI (XAI)Explainable AI is the set of methods that show why a model made a decision, in terms people can understand, check and act on.