Enhancing Badminton Game Analysis: An Approach to Shot Refinement via a Fusion of Shuttlecock Tracking and Hit Detection from Monocular Camera
Abstract
:1. Introduction
- We propose a shot refinement algorithm that uses the results of shuttlecock tracking and action detection, demonstrating improved results compared to previous methods.
- The extracted shots are more precise than those obtained using previous methods, particularly in circumstances with numerous detection misses of the shuttlecock. This leads to improved accuracy in shot-type classification.
- The proposed method only analyzes videos captured from a monocular camera, making it applicable to existing badminton videos without any additional hardware.
2. Related Work
2.1. Sports Analytics with Computer Vision and Deep Learning
2.2. Human Pose Estimation
2.3. Multiple Object Tracking
2.4. High-Speed Ball Tracking
Algorithm 1: Trajectory Smoothing Algorithm |
Input: Predicted trajectory Output: Smoothed trajectory Step 1: Denoising foreach coordinate do before_dist get distance to prior frame; after_dist get distance to next frame; if before_dist 100 pixels or after_dist 100 pixels then remove coordinate as misprediction; end end Step 2: Curve Fitting foreach coordinate do before_window get previous seven frames’ coordinates; after_ window get next seven frames’ coordinates; if at least three coordinates in before_window then fit quadratic curve; front_dist get minimum distance to the curve; end if at least three coordinates in after_window then fit quadratic curve; back_dist get minimum distance to the curve; end if front_dist 50 pixels or back_dist 50 pixels then remove coordinate as misprediction; end end Step 3: Interpolation foreach coordinate do if front_dist 5 pixels or back_dist 5 pixels then fit quadratic curve; interpolate missing coordinates; end end foreach frame with missing coordinate do if have three coordinates in before_window and after_window then fit quadratic curve; interpolate missing coordinates; end end |
2.5. Separate Shots in a Rally
3. Proposed Method
3.1. Pose Estimation
3.2. Shuttlecock Tracking
3.3. Shot Refinement Algorithm
- Case 1: Only one in , k = 1 or 2
- Case 2: More than one in , k = None
- Case 3: Multiple in , k = 1, 2
- Case 4: No in , k = 1, 2
- Case 5: No in , k = None
Algorithm 2: Shot Refinement Algorithm |
Input: HD-T, HS Output: True Hit Moment (THM) Initialize: (current HS sequence) while i < total HS sequence do pk of ; switch condition do case only one HD-T in , k = 1 or 2 do tt of ; add to THM; end case more than one HD-T in , k = None do THM is not assigned; end case multiple HD-T in , k = 1 or 2 do t the frame of the player with the highest confidence in ; add to THM; end case no HD-T in , k = 1 or 2 do t the frame with the highest confidence score in ; add to THM; end case no HD-T in , k = None do do nothing; end end ii + 1; end |
4. Experimental Results and Discussions
4.1. Data Acquisition
4.2. Comparison with State of the Art
4.3. Shot Type Classification
- Both players’ ankle positions (x1, y1, x2, y2) at the hit moment, which is obtained by the method proposed in Section 3.1.
- Flight duration of the shuttlecock, denoted as T in regard to the number of frames.
- The displacement of the shuttlecock (Δx, Δy), quantified as the difference in its positions from the start to the end of the shot.
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zhang, J.; Piao, Z.H.; Bai, D.H. Application Analysis of Badminton Intelligence based on Knowledge Graphs. Tob. Regul. Sci. (TRS) 2022, 8, 1004–1020. [Google Scholar]
- Lin, W.B.; Yang, S.C.; Chen, M.Y. Know thyself, know thy enemy, a thousand battles, a thousand victories—The data science in baseball intelligence gathering for technical and tactical analysis. Q. Chin. Phys. Educ. 2021, 35, 227–237. [Google Scholar]
- Lin, W.B.; Yeh, S.W.; Yang, C.W. A Study of efficiency management for players and teams in CPBL from the viewpoint of data science. Phys. Educ. J. 2017, 50, 91–107. [Google Scholar] [CrossRef]
- Cullen, F.T.; Myer, A.J.; Latessa, E.J. Eight lessons from moneyball: The high cost of ignoring evidence-based corrections. Vict. Offenders 2009, 4, 197–213. [Google Scholar] [CrossRef]
- Trackman. Available online: https://www.trackman.com/baseball (accessed on 29 May 2024).
- Marsten, H. What is TrackMan Data? Available online: https://trackman.zendesk.com/hc/en-us/articles/115002776787-What-is-TrackMan-Data (accessed on 29 May 2024).
- Rapsodo. Design the Perfect Pitch. Develop a Complete Pitch Arsenal with Industry Leading Data. Available online: https://rapsodo.com/baseball/pitching/ (accessed on 29 May 2024).
- Rapsodo. Rapsodo & Driveline Create Official Analytics Partnership. Available online: https://finance.yahoo.com/news/rapsodo-driveline-baseball-announce-partnership-160146669.html (accessed on 29 May 2024).
- Huang, J.; Hsu, H.J. Approximating strike zone size and shape for baseball umpires under different conditions. Int. J. Perform. Anal. Sport 2020, 20, 133–149. [Google Scholar] [CrossRef]
- Yığman, C. Predictive Analysis of Successful Basketball Shots: The Euroleague Case. Unpublished Doctoral Dissertation, Sabanci University, Istanbul, Turkey, 2018. Available online: http://risc01.sabanciuniv.edu/record=b1857583 (accessed on 29 May 2024).
- Miller, T. Sports Analytics and Data Science: Winning the Game with Methods and Models; FT Press: Old Tappan, NJ, USA, 2015. [Google Scholar]
- Sarlis, V.; Tjortjis, C. Sports analytics—Evaluation of basketball players and team performance. Inf. Syst. 2020, 93, 101562. [Google Scholar] [CrossRef]
- Sharef, N.M.; Mustapha, A.; Nor Azmi, M.B.; Nordin, R. Basketball Players Performance Analytic as Experiential Learning Approach in Teaching Undergraduate Data Science Course. In Proceedings of the International Conference on Advancement in Data Science, E-learning and Information Systems (ICADEIS), Lombok, Indonesia, 20–21 October 2020. [Google Scholar]
- Chang, Y.C.; Lin, Y.H. A study of basketball analytics. Q. Chin. Phys. Educ. Soc. Phys. Educ. 2020, 34, 219–228. [Google Scholar]
- SportVU Tracking System Could Find Reach beyond Court For NBA, Teams. Available online: https://www.sportsbusinessjournal.com/Daily/Issues/2013/10/29/NBA-Season-Preview/Tech.aspx (accessed on 26 May 2024).
- Wang, K.C.; Zemel, R. Classifying NBA offensive plays using neural networks. In Proceedings of the MIT Sloan sports analytics Conference, Boston, MA, USA, 11–12 March 2016. [Google Scholar]
- Rajiv, S.; Romijnders, R. Applying deep learning to basketball trajectories. arXiv 2016, arXiv:1608.03793. [Google Scholar] [CrossRef]
- Cao, C. Sports Data Mining Technology Used in Basketball Outcome Prediction. Master’s Thesis, Technological University Dublin, Dublin, Ireland, 2012. [Google Scholar]
- Cohan, A.; Schuster, J.; Fernandez, J. A Deep Learning Approach to Injury Forecasting in NBA Basketball. J. Sports Anal. 2021, 7, 277–289. [Google Scholar] [CrossRef]
- Valter, D.S.; Adam, C.; Barry, M.; Marco, C. Validation of Prozone®: A new video-based performance analysis system. Int. J. Perform. Anal. Sport 2006, 6, 108–119. [Google Scholar] [CrossRef]
- Liu, H.; Hopkins, W.; Gómez, A.M.; Molinuevo, S.-J. Inter-operator reliability of live football match statistics from OPTA Sportsdata. Int. J. Perform. Anal. Sport 2013, 13, 803–821. [Google Scholar] [CrossRef]
- Deltatre. Available online: https://www.deltatre.com (accessed on 29 May 2024).
- Reep, C.; Benjamin, B. Skill and Chance in Association Football. J. R. Stat. Soc. Ser. A (Gen.) 1968, 131, 581–585. [Google Scholar] [CrossRef]
- Reep, C.; Pollard, R.; Benjamin, B. Skill and Chance in Ball Games. J. R. Stat. Soc. Ser. A (Gen.) 1971, 134, 623–629. [Google Scholar] [CrossRef]
- Takahashi, M.; Yamanouchi, Y.; Nakamura, T. Real-Time Ball Position Measurement for Football Games Based on Ball’s Appearance and Motion Features. In Proceedings of the 11th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS), Bangkok, Thailand, 23–27 November 2015. [Google Scholar] [CrossRef]
- Stoeve, M.; Schuldhaus, D.; Gamp, A.; Zwick, C.; Eskofier, B.M. From the Laboratory to the Field: IMU-Based Shot and Pass Detection in Football Training and Game Scenarios Using Deep Learning. Sensors 2021, 21, 3071. [Google Scholar] [CrossRef] [PubMed]
- Rahman, M.A. A deep learning framework for football match prediction. SN Appl. Sci. 2020, 2, 165. [Google Scholar] [CrossRef]
- Merhej, C.; Beal, R.J.; Matthews, T.; Ramchurn, S. What Happened Next? Using Deep Learning to Value Defensive Actions in Football Event-Data. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Singapore, 14–18 August 2021. [Google Scholar] [CrossRef]
- Chen, C.H. Analysis of the technical aspects of the men’s singles badminton final eight in 2020 Tokyo Olympics. J. Badminton Sports Taiwan 2022, 1, 37–54. [Google Scholar]
- Josue, F.; Abdullah, M.F.; Zulkapri, I.; Soeed, K.; Tariq, I. Movement pattern in term of court coverage among top international male and female badminton players during BWF World Championships 2013. J. Sains Sukan Pendidik. Jasm. 2020, 9, 9–14. [Google Scholar]
- Sharma, M.; Kumar, M.N.; Kumar, P. Badminton match outcome prediction model using Naïve Bayes and Feature Weighting technique. J. Ambient. Intell. Humaniz. Comput. 2021, 12, 8441–8455. [Google Scholar] [CrossRef]
- Cheng, Y.P.; Tsai, T.H.; Tsai, T.C.; Chiu, Y.H.; Chu, H.K.; Hu, M.C. OmniScorer: Real-Time Shot Spot Analysis for Court View Basketball Videos. In Proceedings of the ACM Multimedia Asia 2023, Tainan, China, 6–8 December 2023. [Google Scholar]
- Liu, P.X.; Pan, T.Y.; Hu, M.C.; Chu, H.K.; Lin, H.S.; Hsieh, W.W.; Cheng, C.-J. An Exploratory Investigation into the Design of a Basketball Immersive Vision Training System. In Proceedings of the 2023 IEEE Conference on Virtual Reality and 3D User Interfaces Abstracts and Workshops (VRW), Shanghai, China, 25–29 March 2023. [Google Scholar] [CrossRef]
- Wang, W.Y.; Chang, K.S.; Chen, T.F.; Wang, C.C.; Peng, W.C.; Yi, C.W. Badminton Coach AI: A badminton match data analysis platform based on deep learning. Phys. Educ. J. 2020, 53, 201–213. [Google Scholar] [CrossRef]
- Martínez, G.H. Openpose: Whole-Body Pose Estimation. Ph.D. Dissertation, Carnegie Mellon University, Pittsburgh, PA, USA, 2019. [Google Scholar]
- Güler, R.A.; Neverova, N.; Kokkinos, I. Densepose: Dense human pose estimation in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018. [Google Scholar]
- Wu, Y.; Kirillov, A.; Massa, F.; Lo, W.Y.; Girshick, R. Detectron2: A PyTorch-Based Modular Object Detection Library. Available online: https://ai.facebook.com/blog/-detectron2-a-pytorch-based-modular-object-detection-library-/ (accessed on 26 January 2024).
- Vuola, A.O.; Akram, S.U.; Kannala, J. Mask-RCNN and U-net ensembled for nuclei segmentation. In Proceedings of the 2019 IEEE 16th International Symposium on Biomedical Imaging (ISBI 2019), Venice, Italy, 8–11 April 2019. [Google Scholar]
- Güler, R.A.; Trigeorgis, G.; Antonakos, E.; Snape, P.; Zafeiriou, S.; Kokkinos, I. Densereg: Fully convolutional dense shape regression in-the-wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017. [Google Scholar] [CrossRef]
- Luo, W.; Xing, J.; Milan, A.; Zhang, X.; Liu, W.; Kim, T.K. Multiple object tracking: A literature review. Artif. Intell. 2021, 293, 103448. [Google Scholar] [CrossRef]
- Bewley, A.; Ge, Z.; Ott, L.; Ramos, F.; Upcroft, B. Simple online and realtime tracking. In Proceedings of the 2016 IEEE International Conference on Image Processing (ICIP), Phoenix, AZ, USA, 25–28 September 2016. [Google Scholar]
- Wojke, N.; Bewley, A.; Paulus, D. Simple online and realtime tracking with a deep association metric. In Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP), Beijing, China, 17–20 September 2017. [Google Scholar]
- Lin, S.D.; Chang, T.; Chen, W. Multiple Object Tracking using YOLO-based Detector. J. Imaging Sci. Technol. 2021, 65, 1. [Google Scholar] [CrossRef]
- Krishna, N.M.; Reddy, R.Y.; Reddy, M.S.; Madhav, K.P.; Sudham, G. Object Detection and Tracking Using Yolo. In Proceedings of the 2021 Third International Conference on Inventive Research in Computing Applications (ICIRCA), Coimbatore, India, 2–4 September 2021. [Google Scholar]
- Megalingam, R.K.; Babu, D.H.T.A.; Sriram, G.; YashwanthAvvari, V.S. Concurrent detection and identification of multiple objects using YOLO algorithm. In Proceedings of the 2021 XXIII symposium on image, signal processing and artificial vision (STSIVA), Popayán, Colombia, 15–17 September 2021. [Google Scholar] [CrossRef]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016. [Google Scholar]
- Redmon, J.; Farhadi, A. YOLO9000: Better, faster, stronger. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017. [Google Scholar]
- Redmon, J.; Farhadi, A. Yolov3: An incremental improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
- Bochkovskiy, A.; Wang, C.Y.; Liao, H.Y.M. Liao. Yolov4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar] [CrossRef]
- Li, C.; Li, L.; Jiang, H.; Weng, K.; Geng, Y.; Li, L.; Ke, Z.; Li, Q.; Cheng, M.; Nie, W.; et al. YOLOv6: A single-stage object detection framework for industrial applications. arXiv 2022, arXiv:2209.02976. [Google Scholar] [CrossRef]
- Wang, C.Y.; Yeh, I.H.; Liao, H.Y.M. You Only Learn One Representation: Unified Network for Multiple Tasks. J. Inf. Sci. Eng. 2024, 40, 691–709. [Google Scholar]
- Wang, C.Y.; Bochkovskiy, A.; Liao, H.Y.M. YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023. [Google Scholar] [CrossRef]
- Tan, L.; Dong, X.; Ma, Y.; Yu, C. A Multiple Object Tracking Algorithm Based on YOLO Detection. In Proceedings of the 2018 11th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Beijing, China, 13–15 October 2018. [Google Scholar] [CrossRef]
- Cao, Z.; Liao, T.; Song, W.; Chen, Z.; Li, C. Detecting the shuttlecock for a badminton robot: A YOLO based approach. Expert Syst. Appl. 2021, 164, 113833. [Google Scholar] [CrossRef]
- Li, W.; Liu, X.; An, K.; Qin, C.; Cheng, Y. Table Tennis Track Detection Based on Temporal Feature Multiplexing Network. Sensors 2023, 23, 1726. [Google Scholar] [CrossRef]
- Zhang, Z.; Wu, F.; Qiu, Y.; Liang, J.; Li, S. Tracking Small and Fast Moving Objects: A Benchmark. In Proceedings of the Asian Conference on Computer Vision, Macau, China, 4–8 December 2022. [Google Scholar]
- Wu, C.W.; Shieh, M.D.; Lien, J.; Yang, J.F.; Chu, W.T.; Huang, T.H.; Hsieh, H.C.; Chiu, H.T.; Tu, K.C.; Chen, Y.T.; et al. Enhancing Fan Engagement in a 5G Stadium with AI-Based Technologies and Live Streaming. IEEE Syst. J. 2022, 16, 6590–6601. [Google Scholar] [CrossRef]
- Huang, Y.C.; Liao, I.N.; Chen, C.H.; İk, T.U.; Peng, W.C. TrackNet: A deep learning network for tracking high-speed and tiny objects in sports applications. In Proceedings of the 2019 16th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS), Taipei, China, 18–21 September 2019. [Google Scholar]
- Lin, Y.C. Badminton Trajectory Detection and Analysis. Master’s Thesis, National Yang Ming Chiao Tung University, Hsinchu, China, 2021. [Google Scholar]
Method | Processing Time (Seconds) | IoU Threshold | Precision | Recall | F1 |
---|---|---|---|---|---|
HD-T (TrackNet) | 0.032 | 0.5 | 0.588 | 0.936 | 0.723 |
0.85 | 0.131 | 0.209 | 0.162 | ||
0.95 | 0.046 | 0.073 | 0.056 | ||
HD-T (TrackNet) + SRA | 0.174 | 0.5 | 0.843 | 0.882 | 0.862 |
0.85 | 0.435 | 0.455 | 0.444 | ||
0.95 | 0.244 | 0.255 | 0.249 | ||
HD-T (tuned) | 0.032 | 0.5 | 0.524 | 0.897 | 0.661 |
0.85 | 0.084 | 0.153 | 0.101 | ||
0.95 | 0.038 | 0.069 | 0.049 | ||
HD-T (tuned) + SRA | 0.175 | 0.5 | 0.897 | 0.913 | 0.905 |
0.85 | 0.461 | 0.483 | 0.472 | ||
0.95 | 0.269 | 0.271 | 0.270 |
Method | IoU Threshold | Accuracy |
---|---|---|
TrackNet | 0.5 | 0.388 |
0.85 | 0.610 | |
0.95 | 0.719 | |
SRA | 0.5 | 0.541 |
0.85 | 0.654 | |
0.95 | 0.721 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Hsu, Y.-H.; Yu, C.-C.; Cheng, H.-Y. Enhancing Badminton Game Analysis: An Approach to Shot Refinement via a Fusion of Shuttlecock Tracking and Hit Detection from Monocular Camera. Sensors 2024, 24, 4372. https://doi.org/10.3390/s24134372
Hsu Y-H, Yu C-C, Cheng H-Y. Enhancing Badminton Game Analysis: An Approach to Shot Refinement via a Fusion of Shuttlecock Tracking and Hit Detection from Monocular Camera. Sensors. 2024; 24(13):4372. https://doi.org/10.3390/s24134372
Chicago/Turabian StyleHsu, Yi-Hua, Chih-Chang Yu, and Hsu-Yung Cheng. 2024. "Enhancing Badminton Game Analysis: An Approach to Shot Refinement via a Fusion of Shuttlecock Tracking and Hit Detection from Monocular Camera" Sensors 24, no. 13: 4372. https://doi.org/10.3390/s24134372
APA StyleHsu, Y.-H., Yu, C.-C., & Cheng, H.-Y. (2024). Enhancing Badminton Game Analysis: An Approach to Shot Refinement via a Fusion of Shuttlecock Tracking and Hit Detection from Monocular Camera. Sensors, 24(13), 4372. https://doi.org/10.3390/s24134372