Skip to content

qhdamm/Sports-Police

Repository files navigation

Sports-Police

YBIGTA DS 2024-Summer Project

Project on predicting diving scores and servicing the results with RAG

Project Initiation

In sports, biased judgments by referees have long been a source of controversy.
To address this issue objectively, we propose the development of an AI-driven service that evaluates the performance of actions during games based on a rule-based system.
This service aims to provide users not only with the AI model’s evaluation results but also with a detailed explanation of the scores assigned.
By offering transparency in the decision-making process, this tool will enable users to determine whether a referee’s judgment was genuinely biased or fair, thus fostering greater trust and accountability in sports officiating.

Core Features

User Input: diving video link (YouTube), specify the desired time segment, the actual score

The service will then process the video through a series of steps:

  1. OCR for Difficulty Identification
  2. Video Analysis and Score Prediction
  3. RAG-based Q&A

Pipeline

RAG Implementation and Performance Evaluation

Our RAG (Retrieval-Augmented Generation) system was implemented using chatgpt4o-mini and ChromaDB. The performance of the RAG system was evaluated using RAGAS, yielding the following results:

  • Context Precision: 1.0000
  • Context Recall: 0.5167
  • Faithfulness: 0.6935
  • Answer Relevancy: 0.5916

These metrics reflect the effectiveness and accuracy of our RAG system in generating relevant and faithful responses based on the retrieved context.

How to Run

Environment Setup

Run the Project

  1. Activate Backend and Frontend module first
$uvicorn main:app --reload # in ./Backend
$npm run serve # in ./Frontend
  1. Run Inference Server module
$uvicorn app:app --host 0.0.0.0 --port 8090 # in ./NSAQA

Team Members

김대솔 김보담 김진형 김채현 박수연 양인혜
GitHub Badge GitHub Badge GitHub Badge GitHub Badge GitHub Badge GitHub Badge

About

YBIGTA DS 2024-Summer Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published