Answered Away: Detecting and Costing Click-Suppression in Declining Content
1 Introduction / Problem Statement
FlyRank currently flags declining pages in production using a hand-written system of fixed, human-chosen thresholds (such as health scores, quick-win tags, and needs-attention flags). While these rules operate successfully at scale, they fail when signals become numerous, tangled, or begin shifting in ways no static threshold anticipated. That gap is where this project sits: out of thousands of pages, which one should a human fix first, and can a learned model make that call better than the fixed rule does today? A content team watching a page's traffic decline has one primary lever: refresh it. But "declining" hides two fundamentally different problems. A page can lose clicks because fewer people ever see it, representing normal visibility decay. Alternatively, roughly the same number of people might see it but simply stop clicking. This second pattern is consistent with something answering the query before the click happens. Treating both as the same problem means editors sometimes refresh pages that were never losing visibility, and sometimes miss pages where a routine refresh was never going to help.
This project refers to the second pattern as answered_away. It is explicitly a behavioral label describing the shape of the traffic data, not a confirmed causal mechanism, as no column in this dataset identifies what appeared on a search results page for any given query. The goal is to produce a ranked queue that tells a content editor which pages to look at first and which of two different fixes each likely needs: a structural fix (like a clearer direct-answer block near the top, FAQ-style content) for answered_away pages, or a routine refresh for pages simply losing visibility.
Operating at the unit of a single content page (content_hash_id), this classifier supports the operational decision of allocating editorial effort. The cost of a wrong call is highly asymmetric: deploying a structural fix on a page that only needed routine freshening wastes valuable editor time. Worse, missing a real answered_away page and treating it as normal decay guarantees the page will continue losing clicks, even after a standard refresh that was never designed to address the actual problem.
2 Data
2.1 Source, Scale, and Time Windows
The underlying dataset is drawn from the FlyRank ML Internship warehouse via Hugging Face, utilizing the fact_content_daily_performance and dim_content.parquet tables, accessed natively via DuckDB over hf://. This project operates on a warehouse of roughly 81.8 million rows across a 1.17 GB search performance dataset. All label and feature construction relies strictly on the prior30 period (February 2026) to predict outcomes in the last30 period (March 2026). The scale of the active modeling partition is substantial: the March 2026 window alone contains 9,841,378 rows, confirmed via live row-count queries during model execution.
2.2 Filtering and Exclusions
To ensure percentage-change labels are robust rather than statistical noise from a tiny base, the pool is heavily filtered to pages with gsc_impressions_prior30 >= 50 and gsc_clicks_prior30 >= 3. Pages with fewer than 60 days of history before the March 2026 decision date are entirely excluded from the action queue (removing 1,268 pages on the final run). Features were scoped restrictively: client_hash_id is used strictly for split grouping and never as a predictive feature. Similarly, content_age_days was documented but deliberately excluded from the final model1, and AI-referral session columns were dropped early due to extreme sparsity2.
2.3 Public Safety Statement
No client names, domains, raw queries, or URLs appear anywhere in this repository or its outputs. All entity identifiers are pseudonymous hashes (content_hash_id, client_hash_id) used strictly for relational joins and grouped cross-validation.
3 Methodology
3.1 Label definition and Leakage prevention
The classification objective (prior30 vs. last30, on the filtered base pool) is defined logically:
answered_away: \Delta\text{impressions} \geq -5\% \;\land\; \Delta\text{clicks} \leq -15\%normal_decay: \Delta\text{impressions} \leq -15\% \;\land\; \Delta\text{clicks} \leq -15\%stable_other: everything else
Because click_change_pct is an ingredient in the label formula, it presents an extreme data-leakage risk if included as a feature. A deliberate leakage experiment confirmed this danger: an honest Random Forest without the leaky feature scores F1=0.158 on a random split, whereas reintroducing click_change_pct artificially inflates the score to F1=0.703. This ~0.55 jump acts as the leakage signature that the validation harness is built to proactively catch and block.
3.2 Feature engineering
The feature space was constrained to five prior-period numeric signals and two categorical fields, deliberately avoiding the last30 window and the label formula: gsc_impressions_prior30, gsc_clicks_prior30, gsc_avg_position_prior30, word_count, gsc_ctr_prior30, along with one-hot encoded representations of content_type and main_intent.
3.3 Baseline Circularity
The primary baseline is a hand-written rule derived directly from the pattern_group thresholds. Because the rule is the label, this comparison is circular by construction and yields a perfect F1=1.000. It is reported here not as a competitive model, but as a transparent intellectual boundary condition. The true modeling reference point is the early honest, non-leaky Random Forest scoring F1=0.135.
3.4 Model Selection and Validation
Logistic Regression was chosen as the primary architecture after a standard Random Forest (without class_weight='balanced') severely underperformed (F1=0.108) against the imbalanced 22.9% minority class. Validation relied on a strict GroupShuffleSplit grouped by client_hash_id (test_size=0.25, random_state=42) to assert zero client overlap between train and test. This single-split evaluation is corroborated by a 5-fold GroupKFold (mean F1=0.340, std=0.034, range 0.296–0.378), confirming the single-split F1=0.350 is a structurally sound estimate rather than an artifact of a lucky split3.
4 Results
Interpretation: Reaching an F1 of 0.350 demonstrates signal well above the 22.9% base rate. Operationally, Precision@50=0.58 is the decision-relevant metric. Of the top 50 pages the model ranks highest, 58% are true answered_away cases. This is the practical leverage point, as an editor can reasonably review about 50 pages per cycle (see Table 1). Detailed performance metrics, threshold behaviors, action composition, and cross-validation spreads are illustrated in Figures 2 through 5 respectively.
We treat this consistency as rigorous evidence of a true performance ceiling on this specific prior-period feature set, rather than a string of failed optimization attempts, evaluated via F1 score as defined in Equation 1.
| Model | Split | F1 (answered_away) |
Precision@50 |
|---|---|---|---|
Rule baseline (pattern_group) |
— | 1.000 (circular) | — |
| Random Forest, honest (no leak) | random | 0.158 | — |
Random Forest, leaky (click_change_pct included) |
random | 0.703 | — |
| Logistic Regression | random | 0.365 | — |
| Logistic Regression | grouped (client_hash_id) | 0.350 | 0.580 |
| XGBoost | grouped | 0.352 | 0.520 |
| Logistic Regression + content_age_days/days_since_update | grouped | 0.341 | — |
| Logistic Regression, GroupKFold-tuned | grouped (held-out) | 0.349 | — |
5 Limitations & Honest Framing
This work formally establishes that a page's traffic pattern is consistent with click suppression (steady impressions, falling clicks), and that this distinct pattern is detectable above base rate using exclusively prior-period signals. It provides a proxy dollar estimate of ad-equivalent value at risk, explicitly labeled as a lower-bound estimate.
Furthermore, we cannot claim measured revenue loss, as the dataset contains no conversion or order-value data, only ad-equivalent click value. This is observational historical data; any interpretation is associative, not a proof of causality.
Finally, we emphasize precision over absolute certainty. A Precision@50=0.58 means roughly 4 in 10 of the top-ranked pages are false positives. The playbook routes disagreements between the rule and the model to a review category rather than silently discarding them, but human oversight remains fundamentally necessary.
Client diversity: 59 total warehouse clients, only about 30 survive the volume filters, with extreme size imbalance (3 to 7,393 rows per client). The grouped-split F1 could shift on a warehouse with a different client mix.
GA4 coverage: only about 31% of pages have GA4 engagement data; has_ga4_prior30 showed negative permutation importance, so engagement features were not pursued further as a lift lever.
6 Ranked Recommendations
The action playbook sorts test-set pages by the grouped-split Logistic Regression's predicted probability of answered_away in descending order. It then assigns one of four actions using both the model's confidence and the rule-based label as a structural cross-check:
- Structural Fix (28 of top 50 rows on the real run) Top-ranked, rule-labeled
answered_away, model confidence ≥0.3, no extreme swing. Action: Add or improve a direct-answer block aimed at the query. - Investigate Quiet Risk (18 of top 50) Model confidence ≥0.6 but the rule did NOT label the page
answered_away. Action: The model seeing something the rule's thresholds miss is itself worth a human's attention. - Verify Then Review (4 of top 50) Impressions or clicks moved more than 300% either direction. Action: A swing that large is likely a tracking artifact; investigate telemetry before acting.
- Routine Refresh Rule-labeled
normal_decay, no extreme swing. Action: Standard content freshening.
Economics framing: The ad-equivalent value at risk for the 28 structural_fix rows on this run totals $72.50, computed as (clicks lost) × cpc. This is an explicit proxy for what it would cost to rebuy that traffic via ads, not a measured revenue figure. It must be read as a lower bound: it only prices pages with nonzero cpc, so real value at risk across the full queue is understated by this figure alone.
7 Reproducibility
This section addresses the Pineau ML Reproducibility Checklist v2.0.
7.1 Models/algorithms
- Mathematical setting: Logistic Regression, binary classification (
answered_awayvs. not),class_weight='balanced',max_iter=1000, features standardized viaStandardScalerbefore fitting. (Yes) - Assumptions: label is defined from prior30 to last30 percentage change in impressions/clicks, not from any ground-truth cause;
client_hash_idis used only for split grouping, never as a feature. (Yes) - Complexity: Not applicable at this scale. Dataset is tens of thousands of rows after filtering, and Logistic Regression training is not the bottleneck. (N/A)
7.2 Theoretical claims
Not applicable. This is an applied/empirical paper, no theoretical proofs are made. (N/A)
7.3 Dataset
- Statistics: 9,841,378 rows pulled in the March 2026 / last30 partition alone. Filtered base pool after
gsc_impressions_prior30 >= 50andgsc_clicks_prior30 >= 3; 30 of 59 total warehouse clients survive the volume filters, with a client size range of 3 to 7,393 rows per client; base rate foranswered_awayis 22.9% of the filtered pool. (Yes) - Train/test split:
GroupShuffleSplit, grouped byclient_hash_id,test_size=0.25,random_state=42, zero client overlap between train and test asserted. Corroborated with 5-foldGroupKFold. (Yes) - Exclusions: pages with fewer than 60 days of history before the March 2026 decision date are excluded.
content_age_daysscoped early but never added. AI-referral session columns dropped early due to sparsity (~6%). (Yes) - Dataset link: Gated access dataset, available to FlyRank ML Internship participants, see https://flyrank.ai. (
hf://datasets/FlyRank/internship-warehouse). (Yes) - Data collection: Not applicable. The dataset was provided by FlyRank, not collected by this project. (N/A)
7.4 Code
- Dependencies:
duckdb,pandas,numpy,scikit-learn,xgboost,matplotlib, run in Google Colab (CPU runtime). (Yes) - Training code, evaluation code: See capstone.ipynb, w05_model.ipynb, w06_validation_audit.ipynb, and w07_action_playbook.ipynb in the repo root. (Yes)
- Pretrained models: None shipped. Logistic Regression is fast enough to retrain from the notebook directly. (Yes)
- README with results table: The results table in the Results section of this page (Table 1) IS the summary, with the exact notebook cell that produces each number documented in the notebooks. (Yes)
7.5 Experimental results
- Hyperparameters: Logistic Regression used mostly with defaults plus
class_weight='balanced'; tuning via 4-foldGroupKFoldscored F1=0.349 (no meaningful change from 0.350). (Yes) - Number of runs: Single train/test split for the headline number (
random_state=42), corroborated by 5-fold GroupKFold. (Yes) - Metric definition: F1 score on the
answered_awaypositive class; Precision@50 = fraction of true cases among top 50 pages ranked by probability. (Yes) - Central tendency + variation: mean F1=0.340, std=0.034 across 5 GroupKFold folds, explicitly reported alongside the single-split F1=0.350. (Yes)
- Runtime/compute & infrastructure: Google Colab, CPU runtime, DuckDB querying Parquet over
hf://directly. Full warehouse DuckDB scans take 5–10 minutes on first run due to network I/O. (Yes)
1 Confirmed during validation as a documentation/code mismatch, not a leakage issue.
2 Populated on only ~6% of pages in the starter sample, which is too sparse to support a classifier.
3 This is exactly why the split is grouped by client in the first place.