Seatext library / BotRefund evidence

Which Machine Learning Models Predict Click-to-Conversion Timing Anomalies?

Isolation Forest, One-Class SVM, and LSTM networks are the most common models for detecting click-to-conversion timing anomalies. The right choice depends on your data volume, whether you need real-time alerts, and how much interpretability...

Built for advertisers who need clear, refund-ready traffic evidence.

To catch click-to-conversion timing anomalies, you need a model that spots unusual patterns in the delay between a click and a conversion. Isolation Forest, One-Class SVM, and LSTM networks are the most commonly used approaches. Each works differently, and the right choice depends on your data volume, how soon you need alerts, and whether you need to explain each flag.

In practice, many teams combine two or more models. For example, an Isolation Forest can flag outliers quickly, while an LSTM tracks sequences over time. This article walks through the main options, the trade-offs between them, and a decision process you can apply to your own data.

ModelBest fitSetup effortCore workflowInterpretabilityLimitation
Isolation ForestQuick outlier detection on large datasetsLow – requires feature engineering and minimal tuningRandomly isolate points by splitting on random features; anomalies are easier to isolateModerate – you can get feature importance from splitAssumes anomalies are rare and distinct; struggles with sequences
One-Class SVMWhen you have a clean training set of normal behaviorMedium – requires careful kernel selection and scalingLearns a boundary around normal points; flags anything outsideLow – hard to explain why a point is outsideSlows down on large datasets and sensitive to noise
LSTM NetworksSequential data where timing context mattersHigh – needs sufficient data, normalization, and training timeLearns patterns across time steps and flags deviations from expected sequenceLow – black-box, though attention can helpRequires a lot of data to generalize well

Choose Isolation Forest if you have a large dataset and need a fast, scalable first pass. Choose One-Class SVM when you have a clean baseline and few false positives are critical. Choose LSTM when timing patterns change over time and you need to capture context. In most affiliate fraud detection, start with Isolation Forest for screening, then use LSTM for deeper analysis.

Why Click-to-Conversion Timing Anomalies Matter

Normal click-to-conversion time follows a distribution. Buyers from paid ads often convert within minutes; others take days. When that distribution shifts suddenly, it can mean tracking errors, attribution manipulation, or bots imitating humans.

If you ignore timing anomalies, you risk paying commissions on fake or misattributed conversions. The problem is subtle: a bot can click an ad, wait a random period, then convert to look legit. Only a model trained on timing patterns can catch that.

How Anomaly Detection Works for Conversion Timing

All anomaly detection models follow the same core idea: learn what “normal” looks like from historical data, then score new events by how far they deviate. For timing, your input features might include time since click, source, device, session length, and mouse or scroll behavior.

The model doesn't just look at average delay. It learns the shape of the distribution—peaks, long tails, and seasonal patterns. When a new conversion falls far from that shape, it gets a high anomaly score.

One crucial point: timing alone is rarely enough. A legitimate conversion may be delayed by a long product trial. That's why the best systems combine timing with other signals like behavioral data and attribution path analysis.

Model Options and Trade-offs

Isolation Forest

Isolation Forest isolates anomalies instead of profiling normal points. It works by randomly selecting a feature and a split point. Anomalies need fewer splits to be separated because they are few and different. That makes it fast on huge datasets.

It handles high-dimensional data well and doesn't assume a distribution shape. But it treats each conversion independently, so it misses sequences where a single conversion is fine but the pattern across many is odd.

One-Class SVM

One-Class SVM learns a boundary around the normal data using a kernel transformation. Anything outside the boundary is flagged. It works well when you have a clean training set of genuine conversions.

It struggles with quality data that contains clusters. It also slows down as your data grows, so it's better for smaller, focused datasets.

LSTM Networks

Long Short-Term Memory networks remember patterns over multiple time steps. That makes them ideal for click-to-conversion paths where the delay itself is part of a sequence. For example, a user who clicks, leaves, returns, then converts produces a distinct pattern.

LSTMs need substantial data and tuning. They also run slower in production and are harder to explain. Still, for complex timing anomalies, they often catch what simpler models miss.

Other Models Worth Considering

  • Autoencoders: neural networks that learn to compress normal data; reconstruction errors highlight anomalies. Good for non-linear patterns.
  • DBSCAN: density-based clustering; flags points in low-density regions. Works without labeled anomalies.
  • XGBoost with synthetic anomalies: if you can generate realistic anomalies, a gradient-boosted classifier can detect them.

Each model has a place. The key is to match the model to the nature of your anomalies and your operational constraints.

Decision Framework: Which Model Should You Choose?

Follow these four steps to decide.

  1. Define your anomaly. Are you looking for sudden spikes, gradual drift, or individual weird conversions? That tells you if you need a point anomaly, collective anomaly, or context anomaly detector.
  2. Assess your data. How many conversions per day? Do you have labeled anomalies? For sparse data, start with Isolation Forest or One-Class SVM. For rich sequences, try LSTM.
  3. Determine real-time needs. If you need action before payout, choose a model with sub-second inference. Isolation Forest and One-Class SVM are fast. LSTM can be optimized but needs more compute.
  4. Check interpretability. Finance teams want evidence for holds. Isolation Forest gives feature importance; LSTM does not. If you need to explain every flag, avoid pure deep learning.

In most cases, a practical starting point is an Isolation Forest trained on aggregate timing features, with a rule-based overlay for extreme outliers. Add an LSTM later if you see sequential patterns.

Key Facts: What BotRefund Uses

The following facts come from BotRefund's affiliate payout protection service. They show how a real tool applies these concepts.

FactDetail
Signal usedClick-to-conversion timing is one of the behavioral signals in the audit.
Additional signalsBehavioral signals, attribution path analysis, device data, and UTM parameters.
OutputCommissions are scored and tagged: Approve, Review, Hold, or Reject.
SetupNo platform integration needed initially; reads UTM and click IDs from your traffic.
EvidenceProvides granular evidence for each hold or decline.

BotRefund's approach confirms that timing anomalies alone aren't enough—they are one input in a broader pattern.

Limitations and When These Models Don't Apply

Machine learning models assume your historical data reflects normal behavior. If your baseline already contains fraud, the model will learn to call malicious patterns “normal.” You need a clean starting set.

Timing anomalies are also vulnerable to false positives. A legitimate user might take a week to convert because they're researching. A model that doesn't account for product complexity will flag them unfairly. Always combine timing with other signals.

Finally, these models cannot detect every type of fraud. For example, cookie stuffing or last-click hijacking may not affect timing at all. They need to be paired with attribution path analysis.

Terminology You'll Encounter

  • Anomaly score: a number indicating how unusual a conversion is compared to the learned normal behavior.
  • Feature vector: the set of variables the model uses, like time since click, device, source, and session length.
  • Sliding window: a fixed time range used to compute statistics, like average conversion time per hour.
  • False positive: a legitimate conversion flagged as anomalous.
  • False negative: a fraudulent conversion not caught.

FAQ

How much data do I need to train these models?

Isolation Forest and One-Class SVM can work with a few thousand examples. LSTM typically needs at least tens of thousands and a good sequence length. If you're starting small, use simpler models.

Can these models detect anomalies in real time?

Yes, but not all. Isolation Forest and One-Class SVM are fast enough for real-time scoring. LSTM can be deployed with careful optimization but may add latency. Your decision hinges on whether you need instant holds.

Do I need labeled anomalies to train a model?

No. All three are unsupervised—they learn from normal data alone. However, if you have labels from past investigations, you can use supervised learning like XGBoost for better performance.

Will these models catch every type of affiliate fraud?

No. They only catch timing-related anomalies. Attribution manipulation like cookie stuffing often bypasses timing checks. That's why you need additional analysis.

What's the cost of implementing these models?

Cost varies. Open-source libraries like scikit-learn and TensorFlow are free, but you'll spend on compute, storage, and your data team's time. Outsourcing to a service like BotRefund can be cheaper than building in-house.

Further reading and comparison sources

These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.

How BotRefund can help

BotRefund applies these concepts to your actual affiliate commissions. Instead of training models yourself, you get a ready-made system that combines click-to-conversion timing with behavioral and attribution path analysis.

It reads your UTM and click IDs directly from your traffic, so you can start without platform integrations. Before each payout, you receive a report scoring every conversion and tagging it as Approve, Review, Hold, or Reject—with evidence for each decision.

This works for teams that need to protect payouts without building a custom ML pipeline. You also get the option to upload payout CSVs or connect your affiliate platform later for exact matching.

Start free audit