A Deep Learning-Based Method for Classroom Crowd Counting and Localization

  • Conference paper
  • First Online:
Computer Science and Education. Computer Science and Technology (ICCSE 2023)

Abstract

In order to count the students’ seating distribution and attendance in offline classroom, which is a better response to the students’ learning and teaching situation. Based on the deep learning method, we propose a crowd localization and counting model for students’ seating area in offline classroom. Firstly, we choose YOLOv8 to improve it, adding the SENet attention module after the backbone network reinforce the role of important channels and speed up model learning, designing a simple and efficient feature fusion method, using the anchor size and the number of detected heads which are more suitable for classroom scenarios and compute the overall loss of the model by using the loss of confidence and the loss of regression of prediction frames. Enhancement methods with Mosaic and cutout data to increase the generalization ability of the model. The improved network achieved 95.405% precision, 92.808% recall and 96.159% mAP on SCUT-HEAD Dataset and C University Dataset.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (Canada)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (Canada)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (Canada)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Yang, X., Zhou, X., Hu, J.: Students’ preferences for seating arrangements and their engagement in cooperative learning activities in University English blended learning classrooms in higher education. High. Educ. Res. Dev. 41(4), 1356–1371 (2022)

    Article  Google Scholar 

  2. Juhaňák, L., Cigán, J.: Effects of seating arrangement on students’ interaction in group reflective practice. J. Exp. Educ. 91(2), 249–277 (2023)

    Article  Google Scholar 

  3. Sam, D.B., Peri, S.V., Sundararaman, M.N., Kamath, A., Radhakrishnan, V.B.: Locate, size and count: accurately resolving people in dense crowds via detection. In: IEEE Transactions on Pattern Analysis and Machine Intelligence, pp. 2739–2751. IEEE (2020)

    Google Scholar 

  4. Zhang, Z., **a, S., Cai, Y., Yang, C., Zeng, S.: A Soft-YoloV4 for high-performance head detection and counting. Mathematics 9(23), 3096 (2021)

    Google Scholar 

  5. Wang, Y., Hou, J., Hou, X.: A self-training approach for point-supervised object detection and counting in crowds. In: Transactions on Image Processing, pp. 2876–2887. IEEE (2020)

    Google Scholar 

  6. Zand, M., Damirchi, H., Farley, A., Molahasani, M., Greenspan, M., Etemad, A.: Multiscale crowd counting and localization by multitask point supervision. In: International Conference on Acoustics, Speech and Signal Processing, pp. 1820–1824. IEEE (2022)

    Google Scholar 

  7. Lian, D., Chen, X., Li, J., Luo, W., Gao, S.: Locating and counting heads in crowds with a depth prior. In: Transactions on Pattern Analysis and Machine Intelligence, pp. 9056–9072. IEEE (2021)

    Google Scholar 

  8. Abousamra, S., Hoai, M., Samaras, D., Chen, C.: Localization in the crowd with topological constraints. Ar**v, abs/2012.12482 (2020)

    Google Scholar 

  9. Hu, J., Shen, L., Sun, G.: Squeeze-and-Excitation Networks. In: 2018 Conference on Computer Vision and Pattern Recognition, pp. 7132–7141. IEEE/CVF (2018)

    Google Scholar 

  10. Zheng, Z., et al.: Enhancing geometric factors in model learning and inference for object detection and instance segmentation. In: Transactions on Cybernetics, pp. 8574–8586. IEEE (2021)

    Google Scholar 

  11. Peng, D., Sun, Z., Chen, Z., Cai, Z., **e, L., **, L.: Detecting heads using feature refine net and cascaded multiscale architecture. In: International Conference on Pattern Recognition (ICPR), pp. 2528–2533. IEEE (2018)

    Google Scholar 

  12. Bochkovskiy, A., Wang, C., Liao, H.M.: YOLOv4: optimal speed and accuracy of object detection. Ar**v, abs/2004.10934 (2020)

    Google Scholar 

  13. Devries, T., Taylor, G.W.: Improved Regularization of convolutional neural networks with cutout. Ar**v, abs/1708.04552 (2017)

    Google Scholar 

Download references

Acknowledgements

The work was supported by science and technology innovation 2030— major project of “New Generation Artificial Intelligence” (2022ZD0115905), the Key Project of Chuzhou University (2022XJZD13) and Anhui University of Science and Technology Graduate Innovation Projects (2023cx2130).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chunyan Yu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ding, Q., Yu, C. (2024). A Deep Learning-Based Method for Classroom Crowd Counting and Localization. In: Hong, W., Kanaparan, G. (eds) Computer Science and Education. Computer Science and Technology. ICCSE 2023. Communications in Computer and Information Science, vol 2023. Springer, Singapore. https://doi.org/10.1007/978-981-97-0730-0_16

Download citation

  • DOI: https://doi.org/10.1007/978-981-97-0730-0_16

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-97-0729-4

  • Online ISBN: 978-981-97-0730-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

Navigation