DEV Community

Asad Ali
Asad Ali

Posted on

Masterโ€™s Thesis | Intelligent Shot Detection & Cricket Highlights using AI ๐Ÿ๐Ÿค–

Iโ€™m excited to share the successful completion of my MS (Artificial Intelligence) thesis titled:
๐ŸŽ“ โ€œIntelligent Shot Detection & Cricket Highlightsโ€
๐Ÿ“NED University of Engineering and Technology
๐Ÿ‘จโ€๐Ÿซ Supervised by: Uzair Abid

๐Ÿ” Problem Statement:
Cricket highlight generation is traditionally manual, time-consuming, and subjective. At the same time, deeper shot-level analytics for batsmen are rarely automated or visualized effectively.
This research focuses on automating cricket highlight generation while also providing AI-driven batsman shot analysis, using modern Computer Vision and Transformer-based models.

๐Ÿง  What I Built (End-to-End AI System)
โœ… Event-Driven Highlight Generation
Fine-tuned YOLOv8 models to detect:
Cricket pitch
Score bar
Ball movement
Ball-wise segmentation using pitch & score-bar co-detection
Ball bounce detection via trajectory (Y-axis) analysis
Automatic extraction of highlight-worthy deliveries
โœ… Shot Classification using Transformers
Fine-tuned ViViT (Video Vision Transformer) model
Classifies 10 cricket shots, including:
Cover Drive, Pull, Hook, Sweep, Lofted Shot, Straight Drive, etc.
Achieved ~74% test accuracy on custom-labeled datasets
โœ… Interactive React-Based Dashboard
Upload full cricket match videos
Real-time processing status
Visual analytics using Bar & Doughnut charts
Ball-wise video previews
Annotated frames + bounce zone visualization
Auto-generated final highlights video

๐Ÿ–ฅ๏ธ System Architecture (How Itโ€™s Used)
I also designed a clear SOP (Standard Operating Procedure) so the system can be easily run and tested:
๐Ÿ”น Backend: Python (Flask) + YOLOv8 + Transformer models
๐Ÿ”น Frontend: React.js dashboard
๐Ÿ”น Workflow:
Upload match video
AI processes frames โ†’ detects events
Shot classification & bounce analysis
Dashboard displays analytics + highlights
This makes the solution usable not just for research, but for analysts, coaches, and future real-time extensions.

๐Ÿ–ฅ๏ธ System Architecture (How Itโ€™s Used)
I also designed a clear SOP (Standard Operating Procedure) so the system can be easily run and tested:
๐Ÿ”น Backend: Python (Flask) + YOLOv8 + Transformer models
๐Ÿ”น Frontend: React.js dashboard
๐Ÿ”น Workflow:
Upload match video
AI processes frames โ†’ detects events
Shot classification & bounce analysis
Dashboard displays analytics + highlights
This makes the solution usable not just for research, but for analysts, coaches, and future real-time extensions.

Github Link: https://lnkd.in/dtNPAQf2

Iโ€™m proud of how this project bridges AI research with real-world sports analytics.
Always open to feedback, collaboration, and discussions around AI + Computer Vision + Sports Tech ๐Ÿš€

Top comments (0)