The rapid evolution of computer technology has significantly impacted the field of medicine, particularly in the utilization of information and image evidence. In the realm of sports medicine, this technological advancement plays a crucial role in ensuring sports safety, especially in the context of injury recovery following sports-related activities. The necessity to interpret and utilize a vast amount of sports medical data effectively has emerged as a pivotal research avenue. This paper delves into the challenges associated with extracting, studying, and the accuracy training of complex algorithms essential for analyzing critical sporting medical data.Central to this discussion is introducing an Optimized Convolutional Neural Network (OCNN) model, which is based on deep learning principles. This model is designed to enhance the detection and risk assessment of diseases related to sport medicine. It incorporates a novel Self-Adjustment Resizing algorithm (SAR), augmented by a self-coding method of convolution (SCM). The proposed OCNN model comprises two convolutional layers, two pooling layers, a fully connected layer, and a SoftMax structure. This architecture is tailored for the classification and analysis of sport-related medical data.