Classroom Behavior Detection Based on Improved YOLOv5 Algorithm Combining Multi-Scale Feature Fusion and Attention Mechanism

被引:16
|
作者
Tang, Longyu [1 ]
Xie, Tao [2 ]
Yang, Yunong [1 ]
Wang, Hong [1 ]
机构
[1] Chongqing Normal Univ, Coll Comp & Informat Sci, Chongqing 401331, Peoples R China
[2] Southwest Univ, Fac Educ, Chongqing 400715, Peoples R China
来源
APPLIED SCIENCES-BASEL | 2022年 / 12卷 / 13期
关键词
classroom behavior detection; attention mechanism; pyramid network; non-maximal suppression; RECOGNITION;
D O I
10.3390/app12136790
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
The detection of students' behaviors in classroom can provide a guideline for assessing the effectiveness of classroom teaching. This study proposes a classroom behavior detection algorithm using an improved object detection model (i.e., YOLOv5). First, the feature pyramid structure (FPN+PAN) in the neck network of the original YOLOv5 model is combined with a weighted bidirectional feature pyramid network (BiFPN). They are subsequently processed with feature fusion of different scales of the object to mine the fine-grained features of different behaviors. Second, a spatial and channel convolutional attention mechanism (CBAM) is added between the neck network and the prediction network to make the model focus on the object information to improve the detection accuracy. Finally, the original non-maximum suppression is improved using the distance-based intersection ratio (DIoU) to improve the discrimination of occluded objects. A series of experiments were conducted on our new established dataset which includes four types of behaviors: listening, looking down, lying down, and standing. The results demonstrated that the algorithm proposed in this study can accurately detect various student behaviors, and the accuracy was higher than that of the YOLOv5 model. By comparing the effects of student behavior detection in different scenarios, the improved algorithm had an average accuracy of 89.8% and a recall of 90.4%, both of which were better than the compared detection algorithms.
引用
下载
收藏
页数:18
相关论文
共 50 条
  • [1] MCF-YOLOv5: A Small Target Detection Algorithm Based on Multi-Scale Feature Fusion Improved YOLOv5
    Gao, Song
    Gao, Mingwang
    Wei, Zhihui
    INFORMATION, 2024, 15 (05)
  • [2] A Multi-Scale Traffic Object Detection Algorithm for Road Scenes Based on Improved YOLOv5
    Li, Ang
    Sun, Shijie
    Zhang, Zhaoyang
    Feng, Mingtao
    Wu, Chengzhong
    Li, Wang
    ELECTRONICS, 2023, 12 (04)
  • [3] Petrochemical Equipment Detection by Improved Yolov5 with Multiscale Deep Feature Fusion and Attention Mechanism
    Wei, Zhenqiang
    Dong, Shaohua
    Wang, Xuchu
    JOURNAL OF ELECTRICAL AND COMPUTER ENGINEERING, 2022, 2022
  • [4] Improved YOLOv5 Based on Feature Fusion and Attention Mechanism and Its Application in Continuous Casting Slab Detection
    Yang, Hongliang
    Fang, Yiming
    Liu, Le
    Ju, Hao
    Kang, Kesong
    IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 2023, 72
  • [5] YOLOv5 Transmission Line Fault Detection Based on Attention Mechanism and Cross-scale Feature Fusion
    Hao S.
    Yang L.
    Ma X.
    Ma R.
    Wen H.
    Zhongguo Dianji Gongcheng Xuebao/Proceedings of the Chinese Society of Electrical Engineering, 2023, 43 (06): : 2319 - 2330
  • [6] Multi-scale Forest Flame Detection Based on Improved and Optimized YOLOv5
    Zhou, Mengdong
    Liu, Shuai
    Li, Jianjun
    FIRE TECHNOLOGY, 2023, 59 (06) : 3689 - 3708
  • [7] Multi-scale Forest Flame Detection Based on Improved and Optimized YOLOv5
    Mengdong Zhou
    Shuai Liu
    Jianjun Li
    Fire Technology, 2023, 59 : 3689 - 3708
  • [8] MTD-YOLOv5: Enhancing marine target detection with multi-scale feature fusion in YOLOv5 model
    Lian-suo, W. E. I.
    Shen-hao, Huang
    Long-yu, Ma
    HELIYON, 2024, 10 (04)
  • [9] Classroom Anomalous Behavior Detection Based On Improved YOLOv5
    Yao, Fu
    Journal of Applied Science and Engineering, 2024, 28 (07): : 1473 - 1481
  • [10] Text Detection Algorithm Based on Multi-Scale Attention Feature Fusion
    She, Xiangyang
    Liu, Zhe
    Dong, Lihong
    Computer Engineering and Applications, 2024, 60 (01) : 198 - 206