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.
- Content-level search and performance aggregates.
- Content age and time since last update.
- Search/context variables.
- Previous-30-day performance variables.
- Categorical content and context features.
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
| 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
- The measured performance applies to this dataset and validation design.
- Client-grouped validation is a stronger unseen-client test, but it does not prove generalisation to every future client or search environment.
- The conservative feature boundary reduces temporal-overlap risk but does not prove that every contextual feature is perfectly time-stamped.
- The model identifies observed patterns; it does not explain why a page declined.
- A high score does not prove that refreshing a page will improve traffic, rankings, clicks, or business outcomes.
- The output is a directional decision-support signal, not an autonomous content-management system.
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
- Automatically rewriting content.
- Automatically publishing changes.
- Automatically deleting pages.
- Automatically creating redirects.
- Automatically changing search intent.
- Automatically claiming a refresh will improve performance.
- Automatically making business-critical SEO changes.
7. Reproducibility
The analysis is implemented in the project repository and built through the weekly ML workflow.
- GitHub repository
-
work/notebooks/w06_validation_audit.ipynb -
work/notebooks/w07_action_playbook.ipynb -
work/notebooks/capstone.ipynb -
work/outputs/contains generated metrics and recommendation artifacts.
8. Acknowledgments & Data Credit
Built on the FlyRank ML Internship dataset.