上海大学学报(自然科学版) ›› 2023, Vol. 29 ›› Issue (1): 68-81.doi: 10.12066/j.issn.1007-2861.2422

• 研究论文 • 上一篇    下一篇

基于损失加权的实时篮球裁判手势识别系统

李忠雨1, 孙浩东1, 李娇1,2()   

  1. 1.上海大学 微电子研究与开发中心, 上海 200444
    2.上海大学 机电工程与自动化学院, 上海 200444
  • 收稿日期:2022-05-28 出版日期:2023-02-28 发布日期:2023-03-28
  • 通讯作者: 李娇 E-mail:lijiaoshu@shu.edu.cn
  • 作者简介:李娇(1975—), 女, 讲师, 博士, 研究方向为模式识别等. E-mail: lijiaoshu@shu.edu.cn
  • 基金资助:
    国家自然科学基金资助项目(52107239)

Design of real-time basketball referee gesture recognition system based on loss weighting

LI Zhongyu1, SUN Haodong1, LI Jiao1,2()   

  1. 1. Microelectronic R&D Center, Shanghai University, Shanghai 200444, China
    2. School of Mechatronic Engineering and Automation, Shanghai University, Shanghai 200444, China
  • Received:2022-05-28 Online:2023-02-28 Published:2023-03-28
  • Contact: LI Jiao E-mail:lijiaoshu@shu.edu.cn

摘要:

为了方便观众更好地在观看比赛直播和录像时理解裁判手势的含义, 或帮助录像分析师分析比赛视频, 设计了一种实时篮球裁判手势检测与识别系统Yolov5-BR(Yolov5-Basketball Referee). 首先, 采用目标检测中的Yolov5 算法为基础模型, 对其边界框的交并比(intersection over union, IoU) 损失函数完全交并比(complete intersection over union, CIoU) 进行加权处理, 增强预测框的鲁棒性; 其次, 在C3 模块后加入注意力机制, 产生更具分辨性的特征表示, 从而提升网络识别性能; 此外, 在检测层头部融入自适应特征融合机制, 充分利用图像高层语义信息; 最后, 对目标置信度损失函数进行不对等加权处理, 从而提高对小目标检测的鲁棒性. 在自制的裁判手势数据集上, Yolov5-BR 取得了95.4% 的mAP 值, 本地视频检测速率为55.5 帧/s, 外接摄像头分辨率为$1 280\times 960$, 检测速率为25 帧/s. 实验结果表明, Yolov5-BR 相对于原始模型在检测裁判手势的性能上有所提升, 保持了较高的准确率、稳定性与实时性.

关键词: 目标检测, 手势识别, 篮球裁判, 深度学习, 损失函数

Abstract:

To help the audience better understand the meaning of the referee's gesture when watching a live broadcast or a video of a basketball game, or to help video analysts analyze the game video, a real-time basketball referee gesture detection and recognition system, Yolov5-Basketball Referee (Yolov5-BR), was designed. The Yolov5 target detection algorithm was used as the basic model, and the intersection over union (IoU) and complete IoU (CIoU) loss functions of its boundary box were weighted to enhance the robustness of the prediction box. After the C3 module, an attention mechanism was added to generate more distinguishing feature representation and improve the network recognition performance. In addition, an adaptive feature fusion mechanism was incorporated into the head of the detection layer to make full use of the high-level semantic information of the image. Finally, the target confidence loss function was weighted unequally to improve the robustness of small-target detection. On a self-made referee gesture dataset, Yolov5-BR achieved a 95.4% mAP value, with a local video detection rate of 55.5 frame/s, an external camera resolution of $1 280 \times 960$, and a detection rate of 25 frame/s. Experimental results show that, compared with the original model, Yolov5-BR can effectively improve the performance of judging gestures while maintaining high accuracy, stability, and real-time response.

Key words: target detection, gesture recognition, basketball referee, deep learning, loss function

中图分类号: