Offside check, It's On...or is it?

This project aims to demonstrate the potential use of Artificial Intelligence in Football to improve the refereeing quality. I have taken the example of one of the most controversial topics in football: Offside and showcase how AI could help improve the game.

Before we actually dwelve into the project, it's best if we first understand what is an Offside in football.
Check out the video below.

In comes VAR

Okay so what's VAR now? Check it here
Did you read the whole thing? Kudos to you!
TL;DR?

Joining the dots...

Okay, so you know what's Offside, and you know how VAR has changed that...well, almost! The problem is that it's still not fully automated i.e. the decision-making is left up to human beings (which has its own set of complications like preference, consistency in performance etc.) Even if they were to get the decison right eventually, it results in the stoppage of play. It's not real time and has an impact on the viewing experience. This is where my project comes in. What if we could use AI to make the ofside decisions for us?

There is a ml5 module called YOLO which allows for object detection in real time. We could harness this capability and extrapolate it to football matches wherein our AI model is trained to detect players and their on-field positioning at all times. And the offside call would be activated instantaneously upon infringement. Thereby reducing the time required to actually check and verify if the correct call was made.


How do we go about it?

We train our AI model by creating our dataset comprised of offside images and videos. Here's how we can do it: Build A Data Set For Your Machine Learning Project
Below are a few examples of what the dataset would look like.

*The Genesis*

We all need a little bit of inspiration in our lives, don't we? So, is this the source of my inspiration? Not really but it turns out that people have already thought about this before. Not bad, eh?

Okay...so how to actually develop this?

"Only a bad craftsman blames his tools"

This is me making sure that the best tools are available for my (developer?) craftsman.
  • Vehicle detection using YOLO
  • YOLO detecting players
  • Object detection using YOLO