Prompt
How do I combine device, behavior, and payment signals into one fraud score?
Latest observation
A good way to combine device, behavior, and payment signals into one fraud score is to treat each as a feature group, normalize them into comparable risk values, and then fuse them with a model or weighted rule layer.
1) Start with a common risk scale
Each signal type is usually on a different scale:
- Device: emulator use, device fingerprint mismatch, IP reputation, geo velocity
- Behavior: typing speed, mouse/touch patterns, session anomalies, navigation path
- Payment: card BIN country mismatch, AVS/CVV result, chargeback history, amount anomaly
Convert each group into a subscore on the same scale, for example 0–1 or 0–100:
device_riskbehavior_riskpayment_risk
You can do this with:
- hand-tuned rules,
- z-score or min-max normalization,
- or a learned model that outputs calibrated probabilities.
2) Choose a fusion approach
Option A: Weighted sum
Simple and common:
[ fraud_score = w_d \cdot device_risk + w_b \cdot behavior_risk + w_p \cdot payment_risk ]
Example:
w_d = 0.3w_b = 0.2w_p = 0.5
Use this when you want interpretability and fast implementation.
Option B: Meta-model
Use the subscores plus raw signals as inputs to a classifier such as:
- logistic regression
- gradient boosted trees
- random forest
- neural network
This usually works better because it can learn nonlinear interactions like:
- low device risk + high payment risk = suspicious
- high behavior risk + new device = very suspicious
Option C: Rules + model hybrid
A practical production pattern:
- Apply hard rules for obvious fraud.
- Feed remaining cases into a trained model.
- Calibrate the output to a probability or score.
This is often the best balance of control and performance.
3) Include interactions
Fraud often shows up in combinations, not single signals. Add features like:
device_risk * behavior_riskdevice_risk * payment_riskbehavior_risk * payment_risknew_device AND high_amountip_country_mismatch AND failed_cvv
These can improve performance a lot.
4) Calibrate the score
If you want the output to mean “probability of fraud,” calibrate it:
- Platt scaling
- isotonic regression
- logistic calibration
Then you can say, for example:
- score 0.85 = roughly 85% chance of fraud, if your calibration is good
5) Set thresholds based on business cost
Don’t choose thresholds arbitrarily. Optimize for:
- false positives cost
- fraud loss cost
- manual review capacity
Typical actions:
- low score: approve
- medium score: step-up auth / review
- high score: decline
6) Example simple formula
A basic starting point:
device_risk = 0.0 to 1.0
behavior_risk = 0.0 to 1.0
payment_risk = 0.0 to 1.0
fraud_score = 100 * (0.3*device_risk + 0.2*behavior_risk + 0.5*payment_risk)
Add bonuses for strong signals:
if device_risk > 0.8 and behavior_risk > 0.8:
fraud_score += 10
if payment_risk > 0.9 and geo_mismatch:
fraud_score += 15
Then cap at 100.
7) Best practice
If you have labeled historical data, the strongest approach is:
- Engineer device, behavior, and payment features
- Train a supervised model
- Calibrate outputs
- Tune thresholds by expected loss
If you don’t have labels, start with:
- rules,
- weighted subscores,
- and gradually replace with a learned model.
If you want, I can also show:
- a concrete scoring formula,
- a feature schema,
- or a Python example using logistic regression or XGBoost.
Brands