FairCall AI is aimed to analyze NFL penalty(pass interference)footage by extracting frames and detecting key objects such as people and moving elements using YOLO. Additionally, an LLM was used to generate explanations for whether a pass interference call should be made. The final product provides an automated system to identify players, track movement, recognize physical interactions, and generate explanations for key events based on the detected patterns.
- Our Dataset was all scraped by us, trained and tuned using labelling. linked here
- LLM - this helps explain why the specific call for the frame was made to justify the rationale behind the LTSM decision to make the judgement
- YOLO - this was used to automate object detection, and convert frames into coordinates/numbers to easily identify patterns. Our Model is linked here
FairCall AI was created to help fairly and accurately produce correct officiating calls for football's most controversial/important call.
- Frame Extraction & Object Detection - We extracted frames from DPI and OPI videos and used YOLO to detect key objects like players and the ball, as well as track important interactions.
- LLM Explanation System - An integrated language model (LLM) generates explanations for key events, such as justifying pass interference calls based on the detected interactions.
- Frontend: Built with Streamlit user-friendly experience
- Backend: The backend is primarily Python, passing information between LM Studio and frontend
- LLM: used LM studio along with Python scripting to provide reasoning for penalty calls and plays
- Heuristics: Carefully devised heuristics inform the decision of the LLM
- YOLO: YOLO detects objects in frame and has been trained on players and footballs
To begin using FairCall AI:
- Clone this repository and install the necessary dependencies
- Ensure you have access to the video footage (DPI and OPI) and load them into the system.
- Run the script to detect key events using YOLO and classify interactions.
- Set up LM Studio with the InternLM 20B model.
- Get real-time explanations of critical sports moments, emphasizing pass interference calls, generated by the integrated LLM.
FairCall AI is licensed under the MIT License. Feel free to use, modify, and distribute this software in accordance with the license terms.