Sensor-Driven Real-Time Recognition of Basketball Goal States Using IMU and Deep Learning
Abstract
:1. Introduction
- (1)
- Quantification of goal states: Using IMU sensors, the system captures real-time acceleration, angular velocity, and angular changes during the shooting process, whereby motion features are analyzed across four goal states: rebound, swish, other goal types, and missed shots.
- (2)
- Goal state recognition on edge devices: Motion feature data are processed using five deep learning models—convolutional neural network (CNN), recurrent neural network (RNN), long short-term memory (LSTM), CNN-LSTM, and CNN-LSTM-Attention—enabling direct real-time shooting state recognition on edge devices.
- (3)
- Visual feedback: Real-time recognition results are integrated into a smartphone application, providing players with an intuitive visualization of the shooting outcomes.
2. Related Work
Advances in Basketball Shot Selection and Performance Analysis
3. System Design
3.1. System Overview
3.2. IMU Sensors
3.3. Edge Computing Unit
4. Experimental Setup
4.1. Data Collection
4.2. Data Preprocessing
Labeling of Collected Data
4.3. Model Selection
4.3.1. CNN Model
4.3.2. RNN Model
4.3.3. LSTM Model
4.3.4. CNN-LSTM Model
4.3.5. CNN-LSTM-Attention Model
4.3.6. Training and Validation
4.4. Smartphone Applications
5. Discussion
5.1. Application Scenarios
5.2. Limitations of This System
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Hsu, Y.; Chang, H.; Chiu, Y. Wearable sport activity classification based on deep convolutional neural network. IEEE Access 2019, 7, 170199–170212. [Google Scholar] [CrossRef]
- Hollaus, B.; Stabinger, S.; Mehrle, A.; Raschner, C. Using wearable sensors and a convolutional neural network for catch detection in American football. Sensors 2020, 20, 6722. [Google Scholar] [CrossRef] [PubMed]
- Mackenzie, R.; Cushion, C. Performance analysis in football: A critical review and implications for future research. J. Sports Sci. 2013, 31, 639–676. [Google Scholar] [CrossRef]
- Hughes, M.D.; Bartlett, R.M. The use of performance indicators in performance analysis. J. Sports Sci. 2002, 20, 739–754. [Google Scholar] [CrossRef]
- Ofoghi, B.; Zeleznikow, J.; Macmahon, C.; Raab, M. Data mining in elite sports: A review and a framework. Meas. Phys. Educ. Exerc. Sci. 2013, 17, 171–186. [Google Scholar] [CrossRef]
- Sarmento, H.; Marcelino, R.; Anguera, M.T.; Campaniço, J.; Matos, N.; Leitão, J.C. Match analysis in football: A systematic review. J. Sports Sci. 2014, 32, 1831–1843. [Google Scholar] [CrossRef]
- Cust, E.E.; Sweeting, A.J.; Ball, K.; Robertson, S. Machine and deep learning for sport-specific movement recognition: A systematic review of model development and performance. J. Sports Sci. 2019, 37, 568–600. [Google Scholar] [CrossRef]
- Cornacchia, M.; Ozcan, K.; Zheng, Y.; Velipasalar, S. A survey on activity detection and classification using wearable sensors. IEEE Sens. J. 2016, 17, 386–403. [Google Scholar] [CrossRef]
- Raiola, G.; D’Isanto, T. Descriptive shot analysis in basketball. J. Hum. Sport Exerc. 2016, 11, S259–S266. [Google Scholar] [CrossRef]
- Yan, W.; Jiang, X.; Liu, P. A review of basketball shooting analysis based on artificial intelligence. IEEE Access 2023, 11, 87344–87365. [Google Scholar] [CrossRef]
- Shankar, S.; Suresh, R.P.; Talasila, V.; Sridhar, V. Performance measurement and analysis of shooting form of basketball players using a wearable IoT system, 2018. In Proceedings of the 2018 IEEE 8th International Advance Computing Conference (IACC), Greater Noida, India, 14–15 December 2018; IEEE: Piscataway, NJ, USA, 2018. [Google Scholar]
- Karlis, D.; Ntzoufras, I. Analysis of sports data by using bivariate Poisson models. J. R. Stat. Soc. Ser. D 2003, 52, 381–393. [Google Scholar] [CrossRef]
- Baio, G.; Blangiardo, M. Bayesian hierarchical model for the prediction of football results. J. Appl. Stat. 2010, 37, 253–264. [Google Scholar] [CrossRef]
- Caudill, S.B. Predicting discrete outcomes with the maximum score estimator: The case of the NCAA men’s basketball tournament. Int. J. Forecast. 2003, 19, 313–317. [Google Scholar] [CrossRef]
- Cattelan, M.; Varin, C.; Firth, D. Dynamic Bradley–Terry modelling of sports tournaments. J. R. Stat. Soc. Ser. C Appl. Stat. 2013, 62, 135–150. [Google Scholar] [CrossRef]
- Acikmese, Y.; Ustundag, B.C.; Uzunovic, T.; Golubovic, E. Artificially Intelligent Assistant for Basketball Coaching, 2020; Springer: Berlin/Heidelberg, Germany, 2020. [Google Scholar]
- Kuhlman, N.; Min, C. Analysis and classification of basketball shooting form using wearable sensor systems, 2021. In Proceedings of the 2021 IEEE 11th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, NV, USA, 27–30 January 2021; IEEE: Piscataway, NJ, USA, 2021. [Google Scholar]
- Tegicho, B.E.; Chestnut, M.D.; Webb, D.; Graves, C. Basketball shot analysis based on goal assembly disturbance, 2021. In Proceedings of the 2021 IEEE 12th Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON), New York, NY, USA, 1–4 December 2021; IEEE: Piscataway, NJ, USA, 2021. [Google Scholar]
- Baca, A.; Kornfeind, P.; Preuschl, E.; Bichler, S.; Tampier, M.; Novatchkov, H. A server-based mobile coaching system. Sensors 2010, 10, 10640–10662. [Google Scholar] [CrossRef]
- Walker, C.; Sinclair, P.; Graham, K.; Cobley, S. The validation and application of Inertial Measurement Units to springboard diving. Sports Biomech. 2017, 16, 485–500. [Google Scholar] [CrossRef]
- Vales-Alonso, J.; Chaves-Diéguez, D.; López-Matencio, P.; Alcaraz, J.J.; Parrado-García, F.J.; González-Castaño, F.J. SAETA: A smart coaching assistant for professional volleyball training. IEEE Trans. Syst. Man Cybern. Syst. 2015, 45, 1138–1150. [Google Scholar] [CrossRef]
- Watanabe, K.; Hokari, M. Kinematical analysis and measurement of sports form. IEEE Trans. Syst. Man Cybern-Part A Syst. Hum. 2006, 36, 549–557. [Google Scholar] [CrossRef]
- Spelmezan, D.; Borchers, J. Real-Time Snowboard Training System; Association for Computing Machinery: New York, NY, USA, 2008; pp. 3327–3332. [Google Scholar]
- Ji, R. Research on basketball shooting action based on image feature extraction and machine learning. IEEE Access 2020, 8, 138743–138751. [Google Scholar] [CrossRef]
- Acikmese, Y.; Ustundag, B.C.; Golubovic, E. Towards an artificial training expert system for basketball, 2017. In Proceedings of the 2017 10th International Conference on Electrical and Electronics Engineering (ELECO), Bursa, Turkey, 30 November 2017–2 December 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
- Ma, R.; Yan, D.; Peng, H.; Yang, T.; Sha, X.; Zhao, Y.; Liu, L. Basketball movements recognition using a wrist wearable inertial measurement unit, 2018. In Proceedings of the 2018 IEEE 1st International Conference on Micro/Nano Sensors for AI, Healthcare, and Robotics (NSENS), Shenzhen, China, 5–7 December 2018; IEEE: Piscataway, NJ, USA, 2018. [Google Scholar]
- Cervone, D.; D Amour, A.; Bornn, L.; Goldsberry, K. A multiresolution stochastic process model for predicting basketball possession outcomes. J. Am. Stat. Assoc. 2016, 111, 585–599. [Google Scholar] [CrossRef]
- Gonçalves, G.S.; Cardozo, P.L.; Valentini, N.C.; Chiviacowsky, S. Enhancing performance expectancies through positive comparative feedback facilitates the learning of basketball free throw in children. Psychol. Sport Exerc. 2018, 36, 174–177. [Google Scholar] [CrossRef]
- Sandholtz, N.; Mortensen, J.; Bornn, L. Measuring spatial allocative efficiency in basketball. J. Quant. Anal. Sports 2020, 16, 271–289. [Google Scholar] [CrossRef]
- Wu, S.; Bornn, L. Modeling offensive player movement in professional basketball. Am. Stat. 2018, 72, 72–79. [Google Scholar] [CrossRef]
- Viswanathan, J.; Nageswara, A.S.; Baskar, S. Anthropometric assessment of youth national championship basketball players in relation to playing position. Br. J. Sports Med. 2010, 44, i36–i37. [Google Scholar] [CrossRef]
- Liu, N.; Liu, P. Goaling recognition based on intelligent analysis of real-time basketball image of Internet of Things. J. Supercomput. 2022, 78, 123–143. [Google Scholar] [CrossRef]
- Smith, S.W. The Scientist and Engineer’s Guide to Digital Signal Processing; California Technical Pub.: San Diego, CA, USA, 1997. [Google Scholar]
- Mathie, M.J.; Coster, A.C.; Lovell, N.H.; Celler, B.G. Accelerometry: Providing an integrated, practical method for long-term, ambulatory monitoring of human movement. Physiol. Meas. 2004, 25, R1. [Google Scholar] [CrossRef] [PubMed]
- Kwapisz, J.R.; Weiss, G.M.; Moore, S.A. Activity recognition using cell phone accelerometers. ACM SigKDD Explor. Newsl. 2011, 12, 74–82. [Google Scholar] [CrossRef]
- Zhou, H.; Hu, H. Human motion tracking for rehabilitation—A survey. Biomed. Signal Process. Control 2008, 3, 1–18. [Google Scholar] [CrossRef]
- Lecun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
- Wang, Y.; Wang, X.; Jiang, P.; Wang, F. RNN-based human motion prediction via differential sequence representation. In Proceedings of the 2019 IEEE 6th International Conference on Cloud Computing and Intelligence Systems (CCIS), Singapore, 19–21 December 2019. [Google Scholar]
- Peterson, K.D. Recurrent neural network to forecast sprint performance. Appl. Artif. Intell. 2018, 32, 692–706. [Google Scholar] [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Graves, A.; Mohamed, A.; Hinton, G. Speech recognition with deep recurrent neural networks, 2013. In Proceedings of the 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, Vancouver, BC, Canada, 26–31 May 2013; IEEE: Piscataway, NJ, USA, 2013. [Google Scholar]
- Fok, W.W.; Chan, L.C.; Chen, C. Artificial intelligence for sport actions and performance analysis using recurrent neural network (RNN) with long short-term memory (LSTM). In Proceedings of the 4th International Conference on Robotics and Artificial Intelligence, Guangzhou, China, 17–19 November 2018. [Google Scholar]
- Donahue, J.; Anne Hendricks, L.; Guadarrama, S.; Rohrbach, M.; Venugopalan, S.; Saenko, K.; Darrell, T. Long-term recurrent convolutional networks for visual recognition and description, 2015. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015. [Google Scholar]
- Shi, X.; Chen, Z.; Wang, H.; Yeung, D.; Wong, W.; Woo, W. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 7–12 December 2015; Volume 28. [Google Scholar]
- Hassan, N.; Miah, A.S.M.; Shin, J. A deep bidirectional LSTM model enhanced by transfer-learning-based feature extraction for dynamic human activity recognition. Appl. Sci. 2024, 14, 603. [Google Scholar] [CrossRef]
- Bahdanau, D.; Cho, K.; Bengio, Y. Neural machine translation by jointly learning to align and translate. arXiv 2014, arXiv:1409.0473. [Google Scholar]
- Park, H.; Kim, N.; Lee, G.H.; Han, J.; Oh, H.; Choi, J.K. Multi-head CNN and LSTM with attention for user status estimation from biometric information, 2022. In Proceedings of the 2022 International Conference on Artificial Intelligence in Information and Communication (ICAIIC), Jeju Island, Republic of Korea, 21–24 February 2022; IEEE: Piscataway, NJ, USA, 2022. [Google Scholar]
- Waltner, G.; Mauthner, T.; Bischof, H. Indoor activity detection and recognition for sport games analysis. arXiv 2014, arXiv:1404.6413. [Google Scholar]
- Gomaa, W.; Elbasiony, R.; Ashry, S. Adl classification based on autocorrelation function of inertial signals, 2017. In Proceedings of the 2017 16th IEEE International Conference on Machine Learning and Applications (ICMLA), Cancun, Mexico, 18–21 December 2017; IEEE: Piscataway, NJ, USA, 2017. [Google Scholar]
- Hoelzemann, A.; Romero, J.L.; Bock, M.; Laerhoven, K.V.; Lv, Q. Hang-time HAR: A benchmark dataset for basketball activity recognition using wrist-worn inertial sensors. Sensors 2023, 23, 5879. [Google Scholar] [CrossRef]
- Guo, X.; Brown, E.; Chan, P.P.; Chan, R.H.; Cheung, R.T. Skill level classification in basketball free-throws using a single inertial sensor. Appl. Sci. 2023, 13, 5401. [Google Scholar] [CrossRef]
Refer | Sensor Code | Usage |
---|---|---|
D | LSM6DSM | Low-power 3-axis accelerometer and 3-axis gyroscope |
E | LSM303AGR | Ultra-low power 3-axis accelerometer and 3-axis magnetometer |
G | Blue NRG-MS | Bluetooth low-energy network processor |
Refer | Sensor Code | Usage |
---|---|---|
A | Sensor Tile footprint | Used to solder the Sensor Tile core system board |
D | Power on/off switch | Power switch |
E | SWD connector | 5PIN SWD interface for programming and debugging |
Sensor Component | Parameter | Specification | Configuration Used in Experiment |
---|---|---|---|
Accelerometer | Full-scale range | ±2 g, ±4 g, ±8 g, ±16 g | ±16 g |
Resolution | 16-bit output data | 16-bit | |
Output data rate | Up to 6.6 kHz | 416 Hz | |
Sensitivity | ~0.061 mg/LSB at ±2 g ~90 μg/√Hz | Corresponding sensitivity for ±16 g | |
Noise density | ~90 μg/√Hz | — | |
Gyroscope | Full-scale range | ±125, ±245, ±500, ±1000, ±2000 dps | ±2000 dps |
Resolution | 16-bit output data | 16-bit | |
Output data rate | Up to 6.6 kHz | 416 Hz | |
Noise density | ~4 mdps/√Hz | — |
Shot Status | Description | Vibration Pattern | Video Verification |
---|---|---|---|
Rebound (RB) | Ball hits the rebound and scores | Significant fluctuation | Yes |
Hollow ball (HB) | Ball directly enters the basket | Fast and smooth fluctuation | Yes |
Other (OT) | Complex cases, multiple rim touches | Irregular fluctuation | Yes |
Shooting miss (SM) | Does not enter the hoop | Slight fluctuation | Yes |
Study | Sensor Type | Model Type | Task | Accuracy | Remarks |
---|---|---|---|---|---|
G Waltner et al., 2014 [50] | IMU | K-NN | Volleyball | 77.56% | Dataset includes data from different participants, using simple machine learning |
W Gomaa et al., 2017 [51] | IMU | RF | Human activities | 80% | Dataset includes 14 activities |
Hoelzemann et al., 2023 [52] | IMU | CNN, LSTM | Basketball activity recognition | 85% | Dataset includes diverse players; baseline models evaluated |
Xiaoyu Guo et al., 2023 [53] | IMU | CNN | Basketball activity recognition | 82% | The datasets come from participants of different levels |
Our study | IMU | CNN, RNN, LSTM | Basketball state recognition | 87.79% | Datasets from different participants; deep learning models used |
Model | Average Accuracy | Number of Parameters | Recall | Precision | F1 Score | Maximum Latency |
---|---|---|---|---|---|---|
CNN | 64.96% | 93,184 | 61.03% | 55.33% | 54.63% | 3 ms |
RNN | 56.83% | 48,042 | 52.58% | 51.99% | 51.25% | 2 ms |
LSTM | 68.85% | 69,636 | 67.02% | 66.72% | 65.9% | 3 ms |
CNN-LSTM | 81.14% | 232,680 | 80.47% | 82.22% | 80.49% | 3 ms |
CNN-LSTM-Attention | 87.79% | 307,360 | 87.35% | 88.69% | 87.65% | 6 ms |
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. |
© 2025 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
Zhang, J.; Guo, R.; Zhu, Y.; Che, Y.; Zeng, Y.; Yu, L.; Yang, Z.; Yang, J. Sensor-Driven Real-Time Recognition of Basketball Goal States Using IMU and Deep Learning. Sensors 2025, 25, 3709. https://doi.org/10.3390/s25123709
Zhang J, Guo R, Zhu Y, Che Y, Zeng Y, Yu L, Yang Z, Yang J. Sensor-Driven Real-Time Recognition of Basketball Goal States Using IMU and Deep Learning. Sensors. 2025; 25(12):3709. https://doi.org/10.3390/s25123709
Chicago/Turabian StyleZhang, Jiajin, Rong Guo, Yan Zhu, Yonglin Che, Yucheng Zeng, Lin Yu, Ziqiong Yang, and Jianke Yang. 2025. "Sensor-Driven Real-Time Recognition of Basketball Goal States Using IMU and Deep Learning" Sensors 25, no. 12: 3709. https://doi.org/10.3390/s25123709
APA StyleZhang, J., Guo, R., Zhu, Y., Che, Y., Zeng, Y., Yu, L., Yang, Z., & Yang, J. (2025). Sensor-Driven Real-Time Recognition of Basketball Goal States Using IMU and Deep Learning. Sensors, 25(12), 3709. https://doi.org/10.3390/s25123709