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 条
  • [31] Peach Flower Density Detection Based on an Improved CNN Incorporating Attention Mechanism and Multi-Scale Feature Fusion
    Tao, Kun
    Wang, Aichen
    Shen, Yidie
    Lu, Zemin
    Peng, Futian
    Wei, Xinhua
    HORTICULTURAE, 2022, 8 (10)
  • [32] Driver Attention Detection Based on Improved YOLOv5
    Wang, Zhongzhou
    Yao, Keming
    Guo, Fuao
    APPLIED SCIENCES-BASEL, 2023, 13 (11):
  • [33] Tomato leaf disease detection based on attention mechanism and multi-scale feature fusion
    Wang, Yong
    Zhang, Panxing
    Tian, Shuang
    FRONTIERS IN PLANT SCIENCE, 2024, 15
  • [34] An Improved U-Net Infrared Small Target Detection Algorithm Based on Multi-Scale Feature Decomposition and Fusion and Attention Mechanism
    Fan, Xiangsuo
    Ding, Wentao
    Li, Xuyang
    Li, Tingting
    Hu, Bo
    Shi, Yuqiu
    SENSORS, 2024, 24 (13)
  • [35] BS-YOLOV5S: INSULATOR DEFECT DETECTION WITH ATTENTION MECHANISM AND MULTI-SCALE FUSION
    Zhang, Zengbin
    Lv, Guohua
    Zhao, Guixin
    Zhai, Yi
    Cheng, Jinyong
    2023 IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, ICIP, 2023, : 2365 - 2369
  • [36] Crack detection based on attention mechanism with YOLOv5
    Lan, Min-Li
    Yang, Dan
    Zhou, Shuang-Xi
    Ding, Yang
    ENGINEERING REPORTS, 2024,
  • [37] CAM-YOLO: tomato detection and classification based on improved YOLOv5 using combining attention mechanism
    Appe, Seetharam Nagesh
    Arulselvi, G.
    Balaji, G. N.
    PEERJ COMPUTER SCIENCE, 2023, 9
  • [38] SSD with multi-scale feature fusion and attention mechanism
    Liu, Qiang
    Dong, Lijun
    Zeng, Zhigao
    Zhu, Wenqiu
    Zhu, Yanhui
    Meng, Chen
    SCIENTIFIC REPORTS, 2023, 13 (01):
  • [39] SSD with multi-scale feature fusion and attention mechanism
    Qiang Liu
    Lijun Dong
    Zhigao Zeng
    Wenqiu Zhu
    Yanhui Zhu
    Chen Meng
    Scientific Reports, 13 (1)
  • [40] Multi-scale Small Target Detection for Indoor Mobile Rescue Vehicles Based on Improved YOLOv5
    Li, Maoyue
    Yang, Tenghui
    Xu, Shengbo
    Meng, Lingqiang
    Liu, Zhicheng
    INTERNATIONAL JOURNAL OF AUTOMOTIVE TECHNOLOGY, 2024, : 1431 - 1444