Qatar Coverage Lens
2026Hackathon — ML engineer
Decides whether Qatar is the real subject of an Arabic news article or only mentioned in passing — and explains why. bge-m3 embeddings fused with Arabic relevance features reach 0.979 ROC-AUC; Gemini reviews the uncertain cases.
- Python
- bge-m3
- scikit-learn
- Gemini API
- Streamlit
- Arabic NLP
A news article that mentions Qatar isn't necessarily about Qatar. This classifier makes that call for Arabic news, and gives its reasons.
The model
A logistic regression on BAAI/bge-m3 embeddings, averaged (0.7 / 0.3) with a logistic regression on 10 hand-built Arabic relevance features — Qatar in the headline or lead, mention density, distinct Qatari entities, whether Qatar only appears inside a list of countries, and so on.
Results
Story-grouped 5-fold cross-validation, repeated three times, on 266 Arabic articles collected from Google News and RSS:
| Model | Accuracy | ROC-AUC |
|---|---|---|
| Rule: Qatar in the headline | 0.835 | – |
| AraBERT v02, mean-pooled | 0.805 | 0.879 |
| bge-m3 | 0.910 | 0.969 |
| 10 features only | 0.890 | 0.971 |
| bge-m3 + features (late fusion) | 0.916 | 0.979 |
The weakest category is sport (0.81), because of the many events hosted in Qatar.
Gemini on the hard cases
For articles the model is unsure about, Gemini gets the same written labelling definition — never the labels — and returns structured JSON: a verdict, confidence, category, a verbatim Arabic evidence sentence and a reason. A Streamlit demo shows the whole thing.
Labels are provisional (one annotator); source is private.