Deep Learning Based Sport Shot Sensing Using Convolutional Neural Network: An Experimental Study

V Senthil Kumar, B Kavitha, K Abivarthanaa, A Akshaya and V Prabhu
Vel Tech Multi Tech Dr. Rangarajan Dr. Sakunthala Engineering College, Chennai, Tamil Nadu, India Research Organization Registry (ROR)
Correspondence to: V Senthil Kumar, vsenthilkumar@veltechmultitech.org

Premier Journal of Science

Additional information

  • Ethical approval: N/a
  • Consent: N/a
  • Funding: No industry funding
  • Conflicts of interest: N/a
  • Author contribution: V Senthil Kumar, B Kavitha, K Abivarthanaa, A Akshaya and V Prabhu – Conceptualization, Writing – original draft, review and editing
  • Guarantor: V Senthil Kumar
  • Provenance and peer-review: Unsolicited and externally peer-reviewed
  • Data availability statement: N/a

Keywords: lenet-based shot classification, Real-time sports analytics, Django web deployment, Kaggle sports image dataset, Basketball shot sensing.

Peer Review
Received: 14 August 2025
Last revised: 22 October 2025
Accepted: 26 October 2025
Version accepted: 5
Published: 27 December 2025

Plain Language Summary Infographic
“Poster-style infographic illustrating deep learning-based sport shot sensing using a convolutional neural network, highlighting real-time shot classification, LeNet CNN architecture, and performance results for sports analytics.”
Abstract

Current sports analytical systems often rely on static visualizations such as shot maps to guide decision-making in games like basketball, cricket, or tennis. While these approaches help coaches and players identify optimal shooting positions, they lack interactivity, contextual adaptability, and real-time processing capability. This work introduces a deep learning-based framework for automated sports shot sensing using the lightweight and efficient LeNet convolutional neural network (CNN) architecture. The model is trained using a publicly available dataset collected from Kaggle, consisting of 18 sports classes with around 500–700 images per class, and augmented through flipping, rotation, and scaling to ensure generalization. The proposed system, developed using the Django framework, enables real-time classification and accessibility for coaches, analysts, and broadcasters. Experimental results demonstrate an average classification accuracy of 95.8%, precision of 94.2%, and inference latency of 24 ms per image, confirming the model’s efficiency for real-time sports analytics applications.

Introduction

Sports analytics has transformed the way gameplay and player performance are evaluated, enabling coaches and analysts to make data-driven decisions. Traditionally, shot classification and event annotation were carried out manually, which is both time-consuming and error-prone. Advances in computer vision and machine learning now make it possible to automate this process. Prior works such as VisCommentator1 and RallyComparator2 have enhanced sports analysis through visualization and comparative tools, but they remain domain-specific and lack scalability. This study focuses on automated sports shot classification for cricket and tennis using convolutional neural networks. By employing a lightweight CNN model such as LeNet, we aim to provide a deployable, efficient, and scalable solution that bridges the gap between theoretical deep learning models and real-world sports analytics applications. The proposed framework ensures ease of use, high accuracy, and low computational cost, making it suitable for both real-time analysis and educational use in sports training environments.

In addition to addressing the limitations of manual annotation, the proposed framework provides a flexible approach that can adapt to a variety of sports without major architectural changes. By combining efficient deep learning techniques with a web-based interface, this system encourages wider adoption among coaches and analysts who may not have extensive technical expertise. The focus on accessibility, efficiency, and real-time performance positions this research as an essential step toward the democratization of AI in sports analytics. The ultimate goal is to enable automated, data-driven insights that can enhance player training, tactical analysis, and broadcast engagement.

Traditional sports shot maps, widely used in basketball analytics, have been helpful in visualizing shooting locations and performance. However, these methods lack dynamic interactivity and real-time adaptability. Research efforts such as The Ball in Our Court3 and iBall4 demonstrate the benefits of incorporating domain expertise and gaze-driven analytics to improve understanding of game dynamics. OBTracker5 advanced this by visualizing off-ball movements, while HoopInsight introduced customizable comparative analytics. Despite these advancements, most existing systems are limited to specific sports, lack real-time performance, or require high computational resources. Hence, a lightweight, generalized, and easily deployable system for multi-sport shot classification remains an open challenge. Our work addresses this gap using a CNN-based architecture optimized for efficiency, scalability, and real-time inference.

Proposed Methodology

The proposed system aims to enhance sports analysis and broadcasting by using deep learning techniques to automatically detect and classify various sports shots with high precision and efficiency. The entire workflow, illustrated in Figure 1, begins with dataset collection and preprocessing, followed by model training using the LeNet convolutional neural network (CNN) architecture and real-time deployment through a Django-based web application. The dataset for this work was collected from open-source repositories on the Kaggle platform and includes eighteen different sports categories such as cricket, tennis, badminton, basketball, football, swimming, and wrestling, each containing approximately 500 – 700 labelled images. All images were resized to 128 × 128 pixels, normalized, and augmented through rotation, flipping, scaling, and brightness variation to increase data diversity and prevent overfitting.6 The data were split into 70 % for training, 20 % for validation, and 10 % for testing to ensure balanced evaluation.

Fig 1 | System configuration
Figure 1: System configuration.

The LeNet architecture used in this study consists of two convolutional layers with 5 × 5 kernels followed by max-pooling layers for feature extraction and dimensionality reduction, two fully connected layers for high-level representation learning, and a final SoftMax layer that outputs the predicted class probabilities. The model was trained for 25 epochs using the Adam optimizer with a learning rate of 0.001 and categorical cross-entropy loss. Comparative experiments were performed with VGG16, AlexNet, and Mobile Net V3 architectures to evaluate efficiency and performance trade-offs. While deeper networks provided slightly higher accuracy, the proposed LeNet model achieved comparable performance with approximately 60% less computational cost and a significantly lower inference latency of 24 milliseconds per image on NVIDIA RTX hardware, enabling near real-time operation.7 The system was developed and deployed through a Django framework that connects the trained model with a responsive web interface built using HTML, CSS, and JavaScript. The backend, implemented in Python, handles image uploads, preprocessing, model inference, and database storage using SQLite. This design allows analysts, coaches, and broadcasters to access predictions instantly through a user-friendly interface without needing extensive technical knowledge. Figure 1 represents the system configuration of the proposed framework, showing the sequential flow from dataset preprocessing through CNN feature extraction and model.

This design allows analysts, coaches, and broadcasters to access predictions instantly through a user-friendly interface without needing extensive technical knowledge. Figure1 represents the system configuration of the proposed framework, showing the sequential flow from dataset preprocessing through CNN feature extraction and model prediction to the final classification displayed on the Django platform. After training, the accuracy trend of the model across epochs is visualized in Figure 2, which demonstrates stable convergence and high predictive reliability of the LeNet architecture during the learning process. Together, these figures validate the effectiveness of the proposed pipeline and its suitability for real-time sports shot sensing applications.8

Fig 2 | Lenet model accuracy
Figure 2: Lenet model accuracy.

Figure 2 illustrates the training and validation accuracy trends of the LeNet model across 25 epochs. The figure clearly shows that the model achieves rapid convergence within the initial epochs, maintaining stable accuracy without signs of overfitting. The smooth increase in both training and validation curves indicates that the data augmentation techniques effectively enhanced generalization performance. The minimal gap between the two curves demonstrates consistent learning behaviour and balanced optimization of both datasets. This stable performance across epochs confirms that the LeNet model is well-suited for lightweight, real-time sports shot classification while maintaining high predictive reliability and computational efficiency.9,10

Results and Discussion

The proposed framework was experimentally evaluated to assess its accuracy, computational efficiency, and real-time feasibility in classifying sports shots across multiple categories. The LeNet model was trained for 25 epochs using the augmented dataset, and its performance was compared against other well-known architectures such as VGG16, AlexNet, and MobileNetV3. Figure 2 presents the training and validation accuracy curves of the proposed LeNet model, showing consistent improvement with stable convergence throughout the training phase. The accuracy increased rapidly during the early epochs and stabilized after approximately 15 epochs, indicating efficient feature learning and generalization. The small gap between training and validation curves highlights that the model effectively avoided overfitting due to the use of data augmentation and regularization techniques.11

Quantitatively, the LeNet model achieved an average test accuracy of 95.8%, precision of 94.2%, recall of 93.7%, and an F1-score of 94.0% across all classes. These metrics demonstrate that the system maintains high classification consistency, correctly identifying most of the sports shot categories in the test dataset.12 A detailed confusion matrix analysis revealed that minor misclassifications occurred mainly between visually similar categories, such as cricket drives versus cut shots and tennis forehands versus backhands. These errors are attributed to overlapping motion patterns and similar postures captured in the static images. Despite these challenges, the model consistently outperformed deeper architectures in terms of speed and efficiency while maintaining comparable accuracy levels.13

In addition to classification accuracy, the computational efficiency of the model was carefully evaluated. The LeNet network demonstrated an average inference latency of 24 milliseconds per image when executed on an NVIDIA RTX GPU, corresponding to over 40 frames per second (FPS) — effectively enabling real-time prediction capability. The lightweight nature of the LeNet architecture ensured reduced training time and memory usage compared to larger networks like VGG16 and AlexNet, making it ideal for deployment on low-resource devices or web-based applications. This confirms the framework’s potential for real-world sports analytics, where low-latency feedback is crucial for live commentary, coaching assistance, and broadcast integration. The system’s web-based implementation also proved effective in practical scenarios. The Django framework provides an intuitive interface where users can upload an image and instantly view classification results, including the predicted sport and shot type.

The backend efficiently handles preprocessing, model inference, and database storage, while the frontend presents a responsive visualization of the output. User interface elements such as login and result pages have been moved to supplementary material as per reviewer recommendations, ensuring that the primary focus of this section remains on experimental results and system performance.The robustness of the proposed model was further validated by conducting experiments under different environmental conditions, including variations in lighting, background, and camera angle.14 The model maintained stable predictions, with less than 3% variation in accuracy across these conditions, proving its resilience to common visual distortions. This robustness is critical for real-world deployments where sports images and videos are often captured from varying perspectives and under dynamic conditions.15

Moreover, the comparative evaluation demonstrated that LeNet’s efficiency is particularly advantageous in deployment scenarios. While VGG16 and AlexNet required approximately 5–7 times longer inference times, LeNet achieved similar classification performance with significantly lower computational demand. MobileNetV3, another lightweight model, showed comparable efficiency but required more fine-tuning to reach the same accuracy levels. This reinforces the selection of LeNet as a practical solution for scalable and real-time applications. The experimental findings confirm that the combination of deep learning and web technologies can create an effective, accessible, and fast sports analytics system. By leveraging a balanced CNN architecture and a simple deployment pipeline, this framework provides a practical tool for both professional and educational purposes in sports analysis. The results validate that even a classical architecture like LeNet, when appropriately optimized and integrated into a modern framework, can deliver state-of-the-art performance for lightweight real-time applications. Overall, the developed system bridges the gap between advanced deep learning research and practical sports analytics, providing a foundation for future expansion into multi-sport, video-based, and cloud-enabled intelligent sports sensing systems.

Conclusion and Future Works

The developed framework introduces a lightweight deep learning approach for automated sports shot classification using the LeNet convolutional neural network architecture. The proposed system effectively combines accurate image-based classification with real-time deployment through the Django platform, ensuring practical applicability in sports analytics and broadcasting. The model’s strong performance in terms of accuracy, efficiency, and inference speed confirms its suitability for scalable, real-world implementations. Future work will focus on expanding the dataset to include a broader range of sports, adopting transformer-based architectures for improved contextual understanding, and incorporating temporal modelling for video-based shot recognition. Furthermore, integrating cloud-based analytics and player performance metrics will enhance usability and accessibility across multiple sporting domains.

 References
  1. Chen, Z and Ye, S. (2022) ‘Augmenting sports videos with VisCommentator’,IEEE Transactions on Visualization and Computer Graphics,28(1):824–834. https://doi.org/10.1109/TVCG.2021.3114806
  2. Lan, J Wang, J and Shu, X. (2022) ‘RallyComparator: Visual comparison of The multivariate spatial stroke sequence in table tennis rally’, Journal of Visualization,25(1):143–158. https://doi.org/10.1007/s12650-021-00772-0
  3. Lin, T and Chen, Z (2023) ‘the ball is in our court: Conducting Visualization research with sports experts’, IEEE Computer Graphics and Applications, 43(1):84–90. https://doi.org/10.1109/MCG.2022.3222042
  4. Shan, J and Beyer, J. (2023) ‘iBall: Augmenting basketball videos with gazemoderated embedded visualizations’, CHI Conference on Human Factors in Computing Systems, CHI’ 23, pp.841:1–841:18. https://doi.org/10.1145/3544548.3581266
  5. Wu, Y and Deng, D. (2023) ‘OBTracker: Visual analytics of off-ball Movements in basketball’, IEEE Transactions on Visualization and Computer Graphics,29(1):929–939. https://doi.org/10.1109/TVCG.2022.3209373
  6. V. Nehru and V. Prabhu (2023) Segmentation of Brain tumor sub regions with Depth wise Separable Dense U-NET (DSDU-NET), International Journal of Imaging Systems and Technology. 2023; 1–12. https://doi.org/10.21203/rs.3.rs-1689340/v1
  7. Cao, X and Xie, J. (2021) ‘Visual analytics of soccer player migration’,Visual Informatics,5(3):102–113. https://doi.org/10.1016/j.visinf.2021.09.002
  8. Du, M and Yuan, X. (2020) ‘A survey of competitive sports data visualization and visual analysis’, Journal of visualization,(1):47–67. https://doi.org/10.1007/s12650-020-00687-2
  9. V. Prabhu, Laxmi Sundar, V. Drishya, G. Ruby Alice Rajeshwari and D. Ruban Thomas (2022) A Discrete wavelet transform-based audio watermarking technique for digital. https://doi.org/10.1504/IJNDC.2022.124212
  10. Lin, T Chen, Z and Yang, Y. (2023) ‘The quest omnioculars Embedded Visualization for augmenting basketball game viewing experiences’, IEEE Transactions on Visualization and Computer Graphics,29(1):962–971. https://doi.org/10.1109/TVCG.2022.3209353
  11. Matsumoto, K., & Tanaka, K. (2020). ‘Advances in image processing for autonomous vehicles and robotics’,IEEE Transactions on Robotics,36(4),935–948.
  12. Perin, C., Vuillemot, R., & Fekete, J.-D. (2018). ‘State of the Art of Sports Data Visualization’, Computer Graphics Forum, 37(3), 663– 686. https://doi.org/10.1111/cgf.13447
  13. Ye, S, Chen, Z and Zhouk, k. (2020) ‘Exploring and analysing movement trajectory in immersive visualization’, IEEE TVCG,27(2):860–869. https://doi.org/10.1109/TVCG.2020.3030392
  14. Zhang, J., & Liu, X. (2019). ‘Real-time image processing for distance measurement and object recognition using machine learning algorithms’, Journal of Real-Time Image Processing,16(1),23–35.
  15. Zhao, Z., & Wu, X. (2016). ‘Image-based real-time object tracking and distance measurement using embedded systems’, Journal of Real-Time Image Processing,12(3),447–457.


Premier Science
Publishing Science that inspires