01Behavioral AI · Predictive segmentation · Read 4 min
Predictive segmentation: why website transfer changed the decision
More than one million filtered behavioral observations revealed whether a model that performed well on one website could truly transfer to another.
THE STARTING POINTDiscrimination observed on the original website did not hold when the model was applied to another website.
CONTEXTIn early 2025, I contributed to an internal feasibility study on predicting behavior before the final action on a B2B software platform. The model used mouse movements, clicks, scrolling and navigation rhythm observed early in the journey. The real question was whether it learned the target behavior—or merely the structure of one website.
SUMMARYI helped turn interactions into measurable features, train XGBoost models and compare several validation protocols. Area under the ROC curve measures how well the model separates positive and negative observations. Internal evaluation showed predictive signal in known environments. Evaluation on a different environment then revealed a substantial performance drop.
30-second read
The project, evidence and decision.
- Problem
- Predict behavior early from mouse-movement signals.
- My role
- Feature engineering, modeling, ablations and temporal validation.
- Scale
- More than one million filtered behavioral observations, not unique people.
- Result
- Internal predictive signal, with a sharp drop on an unseen environment.
- Decision
- Stop the project before productionization rather than deploy a universal model with insufficient transfer.
- Status
- Feasibility study stopped before productionization.
Key diagram
From raw behavior to a deployment decision
01 · INTERACTIONSMOUSECLICKSSCROLLRHYTHM
First seconds
→EXTRACT
02 · FEATURES01Trajectory
02Pauses
03Corrections
04History
→TRAIN
03 · XGBOOSTROC AUCWithin-site predictive signal
04 · VALIDATIONKnown site✓
Other domain↓
05 · DECISIONStopped before productionizationInsufficient transfer
Early interactions become features. The model is evaluated on future data and then on another website. The AUC drop in the final test leads to rejecting a universal model.
An anonymized case study describing the methods and decisions.Contribution & decision01
How do we decide whether a behavioral score can generalize across environments?
I evaluated variables derived from mouse movements in three ways: removing feature groups one at a time, testing stability over time and evaluating on another environment. The large drop in website transfer led to stopping the study before productionization.
Evidence & limitsDiscrimination score (ROC AUC) by behavior
Temporal stability and calibration
Performance in another environment
TakeawaysValidation on the original website was not enough: the universal model transferred poorly to another environment. This limitation led to stopping the project before productionization.
- Testing on another website revealed an environment dependency that internal validation alone did not expose.
- An offline predictive signal does not by itself justify calibration and maintenance costs.
- Stopping before productionization can be the right decision when a model cannot deliver the promised generalization.
01 — Product problem
Predict future behavior from the start of the session.
The model had to use a short sequence recorded at the beginning of a session. At that point, conversion or the final action has not occurred. The challenge was to turn these early interactions into reliable enough features to predict later behavior.
The protocol covered more than one million filtered behavioral observations. Some behaviors were much rarer than others. The protocol specifies early-session features and a later outcome. The volume refers to filtered observations, not unique people; raw events, sessions and model rows are not interchangeable units.
02 — Feature engineering
Cursor trajectories become measurable groups of variables.
I grouped features by data type: cursor speed and direction, pauses, corrections, screen position, clicks and scrolling. This structure made it possible to measure how much each group contributed to the prediction.
For each ablation, one feature group was removed before retraining and evaluating the model. The resulting AUC drop measured that group’s contribution. Positions were also normalized, and mobile and desktop sessions were handled separately to reduce dependence on screen size.
03 — Evaluation
Cross-validation, temporal testing and website transfer answer different questions.
Stratified cross-validation estimated mean ROC AUC on comparable samples. Temporal splits tested the model on interactions recorded after the training data. The third evaluation applied the model to another website. The retained assessment shows predictive signal in known environments; it does not map a common numeric range to every target and each of these splits.
The third test was decisive: ROC AUC dropped sharply on the other website. Some learned positions and sequences described the layout, traffic and journey rules as well as the behavior of interest. A random split alone would not have exposed this dependency.
04 — Decision
The model lost too much performance on another website.
We therefore ruled out a universal model ready for deployment. Models tailored to each environment would have required their own calibration, decision thresholds and maintenance.
This constraint led to stopping the study before productionization. The results reported here are offline metrics; they demonstrate neither a production deployment nor business impact.