Automated Video Game Recognition for Hashtag Suggestion on Live Streaming Platforms
A 10-class image classifier that identifies which video game is being played from a gameplay
screenshot. Built on a fine-tuned google/efficientnet-b0
backbone, trained at a custom, aspect-ratio-preserving 180×320 input resolution (instead of the
standard 224×224 square crop) on the Bingsu/Gameplay_Images
dataset.
This model was built as part of a university course project (AI Lab, SE334) — "Automated Video Game
Recognition and Hashtag Suggestion for Live Streaming Platforms Using Image Classification" — and
powers the GameSense demo app.
Architecture: EfficientNet-B0 backbone (ImageNet-pretrained), fine-tuned end-to-end with the
final classifier layer replaced for 10 output classes. Trained at a custom 180×320 input
resolution — half of the source dataset's native 640×360, preserving the true 16:9 aspect ratio —
made possible without architectural changes since EfficientNet's AdaptiveAvgPool2d head is
resolution-agnostic.
Fine-tuning objective: Cross-entropy loss with label smoothing (0.1), sklearn balanced class
weights applied in the loss (the source dataset is already perfectly balanced at 1,000 images/class)
Training regime: Mixed-precision (AMP) training on dual CUDA T4 GPUs, AdamW optimizer with a
OneCycleLR schedule, up to 25 epochs with early stopping (patience = 6, monitored on validation loss)
Classes
Among Us, Apex Legends, Fortnite, Forza Horizon, Free Fire, Genshin Impact, God of War, Minecraft, Roblox, Terraria
Intended Use
This model is intended for identifying which video game is shown in a gameplay screenshot. Example use
cases:
Auto-generating hashtags/tags for gameplay clips, stream thumbnails, and social posts
Categorizing or organizing gameplay footage/screenshots by game on a content platform
A component in a larger stream metadata or content-tagging pipeline
Research and coursework on multi-class visual classification
Out of scope: This model only recognizes the 10 games listed above — any other game will be forced
into one of these 10 labels rather than correctly rejected. It has been evaluated on one dataset only,
and has not been validated against real-world production streaming footage, unusual camera angles,
menu/loading screens, or extensive in-game cosmetic content (e.g. crossover skins) that may visually
resemble a different game in the label set.
How to Use
This model is distributed in two formats — pick whichever fits your stack.
Option A: ONNX (lightweight, CPU-friendly)
Download both files and keep them in the same folder — the .onnx graph loads its weights from the
.onnx.data file alongside it at runtime:
The model was fine-tuned on the Bingsu/Gameplay_Images
dataset — 10,000 gameplay screenshots (1,000 per class) at native 640×360 resolution, PNG format.
Splits: Stratified 70 / 15 / 15 train / validation / test (the source dataset ships a single
train split only; the split above was carved out manually, preserving per-class balance)
Training augmentation: Random horizontal flip, color jitter, random rotation (±8°), random
erasing
Class balancing: The dataset is already perfectly balanced (1,000 images/class); sklearn
balanced class weights are still computed and applied in the loss as a safeguard
Training Procedure
training_curves
Framework: PyTorch
Hardware: Kaggle free-tier T4 x2 GPUs
Loss: Cross-entropy with label smoothing (0.1)
Mixed precision: Enabled (AMP)
Evaluation
Evaluated on the held-out test split (n = 1,500) at a decision threshold of 0.5.
Classification Report
Class
Precision
Recall
F1-score
Support
Among Us
1.0000
1.0000
1.0000
150
Apex Legends
1.0000
0.9933
0.9967
150
Fortnite
1.0000
1.0000
1.0000
150
Forza Horizon
1.0000
1.0000
1.0000
150
Free Fire
1.0000
1.0000
1.0000
150
Genshin Impact
0.9934
1.0000
0.9967
150
God of War
1.0000
1.0000
1.0000
150
Minecraft
1.0000
1.0000
1.0000
150
Roblox
1.0000
1.0000
1.0000
150
Terraria
1.0000
1.0000
1.0000
150
accuracy
0.9993
1,500
macro avg
0.9993
0.9993
0.9993
1,500
weighted avg
0.9993
0.9993
0.9993
1,500
Test ROC-AUC: 1.0000 (macro average; per-class AUC is also 1.0000 across all 10 classes)
Confusion Matrix
confusion_matrix
ROC Curve
roc_auc_curves
Limitations
Performance is reported on a single dataset; generalization to other capture sources, image
qualities, camera angles, or game versions/UI updates is not guaranteed.
The classifier is closed-set — it will always assign one of the 10 trained classes, even to games or
content it has never seen, rather than rejecting out-of-distribution input.
Confidence can be lower on visually ambiguous content, such as games with extensive cosmetic/skin
systems whose art style can resemble another class in the label set.
The model has not been evaluated as a standalone production guardrail; low-confidence predictions
should be handled with a confidence threshold or human review rather than trusted outright.
Citation
If you use this model, please cite this repository and reference this course project:
@misc{game-detection-classifier,
title = {Automated Video Game Recognition and Hashtag Suggestion for Live Streaming Platforms
Using Image Classification},
author = {Afrim Hossen Khan},
year = {2026},
note = {Course project, AI Lab (SE334), Daffodil International University}
}