Downloads · 30 days
0
mbradiant/exam-behavior-classifier
exam-behavior-classifier is a video classification model from mbradiant. Use it for the video classification task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
Classifies a short clip of a single student into one of five exam behaviors: normal, copying, gesture, mobile, notes.
Downloads · 30 days
0
Access
Public
Updated Jul 11, 2026
Repo size
125 MB
Likes
0
Public
Click a slice to open those files.
.pt125 MB · 100%
From the Hugging Face model README
Classifies a short clip of a single student into one of five exam behaviors: normal, copying, gesture, mobile, notes.
r2plus1d_18, Kinetics-400 pretrained, 5-way head.⚠️ Research & education only — not a proctoring system. Outputs are suggestions for a human to review, never evidence of cheating. Full limitations and ethics discussion in the model card.
Code, training pipeline, and demo app: github.com/MunkhbayarA/exam-cheating-detection
import torch, torch.nn as nn
from torchvision.models.video import r2plus1d_18
from huggingface_hub import hf_hub_download
CLASSES = ["normal", "copying", "gesture", "mobile", "notes"]
ckpt_path = hf_hub_download("mbradiant/exam-behavior-classifier", "best_model.pt")
ckpt = torch.load(ckpt_path, map_location="cpu", weights_only=True)
model = r2plus1d_18()
model.fc = nn.Linear(model.fc.in_features, len(CLASSES))
model.load_state_dict(ckpt["model"])
model.eval()
# input: float tensor (B, 3, 16, 112, 112), Kinetics-normalized