Abstract:
Artificial intelligence is increasingly being used in all areas of human activity, from the familiar text editor to the cutting-edge satellite that has just entered Earth's orbit. Modern team sports also need to implement AI to analyze the results of matches, in order to identify the strengths and weaknesses of each player, as well as to develop a right strategy for subsequent games against a specific opponent. Our study investigates the process of data collection and processing for sports analytics using basketball and volleyball games as examples. Data for analysis was sourced from the official FIBA YouTube channel "FIBA - The Basketball Channel" and the Baller TV replay library, which archives matches from various youth sports. The obtained videos were segmented into individual frames. A portion of these frames were manually labeled to create training and
validation datasets. The remaining frames formed the unlabeled test dataset, crucial for evaluating the accuracy of the YOLOv8 model chosen as the foundation for this study. Our focus was on
identifying players through jersey number recognition, detecting the ball and its location on the court, classifying game situations, and processing the score and timer using OCR technology. The fine-tuned YOLOv8 achieved an accuracy of 93% based on the mAP50-95 metric, which evaluates the overlap between predicted and actual bounding boxes.