Machine Learning Capstone

Content Opportunity Scoring

A leakage-aware machine learning workflow for prioritising content that may deserve human review.

Abstract

This project asks whether a leakage-aware machine learning model can provide a useful directional signal for prioritising content that may need review. I use the FlyRank ML Internship content-refresh dataset, define declining content from the available trend label, and evaluate a Random Forest against a majority-class baseline using a client-grouped holdout. The Random Forest achieved measured ROC AUC of 0.874 and average precision of 0.752 on the held-out test set, compared with 0.500 and 0.391 for the baseline. The resulting ranked queue maps higher model signals to human-review actions such as refresh review, performance review, or monitoring. The output is intended as decision support rather than a causal or autonomous content-management system.

1. Introduction / Problem Statement

Content teams can have many pages that require different levels of attention. The practical decision is not simply whether a model can classify pages, but whether its output can help a reviewer decide what to inspect first.

This study therefore focuses on content opportunity scoring: producing a directional ranking that helps prioritise pages for human review.

2. Data

The analysis uses the public-safe FlyRank ML Internship content-refresh dataset.

Rows with no positive impressions were excluded and content younger than 90 days was excluded. Duplicate content IDs were removed.

Client identifiers were used only for grouped validation and were not used as predictive features.

3. Methodology

Label

The target is is_declining_label, equal to 1 when the repository's trend_direction is down.

Feature boundary

The model uses search/context variables, content-length variables, previous-30-day impressions, clicks and sessions, content age, update age, and categorical context.

Direct label-derived fields such as trend_direction and trend_pct are excluded. Current 90-day performance and current engagement-related aggregates are also excluded because they may overlap the label window.

Model

A Random Forest classifier was trained with class balancing, bounded tree depth, a minimum leaf size, and 200 trees.

Validation

The primary evaluation uses a client-grouped holdout. Entire clients are held out from training so rows from the same client do not appear in both training and test data.

Training contained 27,675 rows and the held-out test set contained 2,325 rows across 6 clients.

Leakage audit

The earlier validation audit found no direct use of label-derived columns, but identified temporal-overlap risk in the original Week-5 feature set. This capstone therefore uses a more conservative feature boundary.

4. Results

0.874 ROC AUC
0.752 Average Precision
0.769 Accuracy
Metric Majority baseline Leakage-aware Random Forest
Accuracy 0.391 0.769
Precision 0.391 0.642
Recall 1.000 0.924
F1 0.562 0.758
ROC AUC 0.500 0.874
Average Precision 0.391 0.752

These results are measured on the same client-grouped test set. They indicate that the Random Forest provides stronger discrimination than the majority baseline under this validation design.

5. Limitations & Honest Framing

6. Ranked Recommendations

1. Refresh review

High decline signal combined with older content or a long period since the last update. A reviewer should inspect freshness, relevance, completeness, and search intent.

2. Performance review

High decline signal without a clear freshness flag. Review search performance, intent alignment, and engagement before deciding whether intervention is appropriate.

3. Monitor

Lower signal or insufficient evidence for immediate action. Continue observation rather than forcing an intervention.

Human review rule

The queue determines what to inspect first, not what must be changed.

No-go cases

7. Reproducibility

The analysis is implemented in the project repository and built through the weekly ML workflow.

8. Acknowledgments & Data Credit

Built on the FlyRank ML Internship dataset.

FlyRank