作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (3): 364-375. doi: 10.19678/j.issn.1000-3428.0069805

• 交叉融合与工程应用 • 上一篇    下一篇

基于水平相似度匹配机制的鱼群追踪与计数方法

方斌1, 邹青青2,3, 巨浩飞1, 鲍江辉2,3, 段瑞4, 张东旭2,3, 吕华飞2,3, 王翔5, 许鹏飞1, 段明2,3,*()   

  1. 1. 西北大学信息科学与技术学院, 陕西 西安 710127
    2. 中国科学院水生生物研究所, 湖北 武汉 430072
    3. 中国科学院大学, 北京 101408
    4. 武汉中科慧景科技有限公司, 湖北 武汉 430075
    5. 长江勘测规划设计研究有限责任公司, 湖北 武汉 430019
  • 收稿日期:2024-04-29 修回日期:2024-08-29 出版日期:2026-03-15 发布日期:2024-10-28
  • 通讯作者: 段明
  • 作者简介:

    方斌, 男, 学士, 主研方向为深度学习、计算机视觉

    邹青青, 学士

    巨浩飞, 学士

    鲍江辉, 博士

    段瑞, 教授、博士

    张东旭, 学士

    吕华飞, 硕士研究生

    王翔, 高级工程师

    许鹏飞, 教授、博士

    段明(通信作者), 研究员、博士

  • 基金资助:
    国家重点研发计划"智能传感器"重点专项(2022YFB3206900); 国家自然科学基金(32202914); 国家自然科学基金面上项目(32172955); 中国科学院"中央级科学事业单位改善科研条件专项资金"科研装备项目(GSZXKYZB2023019); 长江设计集团有限公司开放创新基金项目(CX2023K04)

Fish Tracking and Counting Method Based on Horizontal Similarity Matching Mechanism

FANG Bin1, ZOU Qingqing2,3, JU Haofei1, BAO Jianghui2,3, DUAN Rui4, ZHANG Dongxu2,3, LÜ Huafei2,3, WANG Xiang5, XU Pengfei1, DUAN Ming2,3,*()   

  1. 1. School of Information Science and Technology, Northwest University, Xi'an 710127, Shaanxi, China
    2. Institute of Hydrobiology, Chinese Academy of Sciences, Wuhan 430072, Hubei, China
    3. University of Chinese Academy of Sciences, Beijing 101408, China
    4. Wuhan Zhongke Huijing Technology Co., Ltd., Wuhan 430075, Hubei, China
    5. Yangtze River Survey, Planning, Design and Research Co., Ltd., Wuhan 430019, Hubei, China
  • Received:2024-04-29 Revised:2024-08-29 Online:2026-03-15 Published:2024-10-28
  • Contact: DUAN Ming

摘要:

鱼群多目标准确计数是水生态智能监测和集约化养殖产业中的重要环节, 对水域生态环境智能保护和水产养殖现代化具有重要作用。现有鱼群多目标准确追踪和计数方法主要适用于鱼群外观清晰、游速缓慢和方向稳定等较理想的情况, 难以有效适用于现实情况下存在的鱼群互相遮挡、游动迅速和方向多变等复杂情况。为此, 结合轻量化目标检测模型YOLOv5n, 提出基于水平相似度匹配机制的鱼群追踪与计数方法。将鱼群计数问题视为多目标检测与追踪问题, 设计水平相似度匹配机制, 并对SORT(Simple Online and Realtime Tracking)算法进行优化。通过高速水流中鱼群个体在帧与帧之间的位置关系对检测框中心点的水平距离进行限制, 以有效解决SORT算法存在的目标匹配混乱问题, 显著提高追踪效果。实验结果表明, 所提方法在鱼群多目标追踪数据集上的性能显著优于现有追踪方法, 对目标遮挡、方向变化等情况目标追踪性能提升显著, 并且该方法结构简单, 易于实际应用。

关键词: 多目标追踪, 鱼群计数, 水平相似度, SORT算法, 距离交并比

Abstract:

Multitarget accurate fish counting is crucial for the intelligent monitoring of water ecology and the intensive cultivation industry, playing a significant role in the protection of aquatic ecological environments and the modernization of fish farming. Existing methods for accurate tracking and counting fish with multiple targets are primarily suitable for ideal situations such as clear fish appearance, slow swimming speed, and stable direction. However, they often prove ineffective in complex real-life situations such as mutual occlusion, rapid swimming, and changeable direction of fish. Therefore, the lightweight target detection model YOLOv5n is combined and a method for tracking and counting fish based on the matching mechanism of horizontal similarity is proposed. This method regards the fish counting problem as a multitarget detection and tracking problem, proposes a horizontal similarity matching mechanism, and optimizes the Simple Online and Realtime Tracking (SORT) algorithm. The horizontal distance of the center point of the detection frame is limited using the position relationship between individual fish in the high-speed water flow to effectively solve the problem of target matching confusion in the SORT algorithm and significantly improve the tracking performance. The results show that the performance of the proposed method is significantly better than that of existing methods on a multitarget tracking dataset. Additionally, the target tracking performance significantly improves under the conditions of target occlusion and direction change. The proposed method has the advantages of simple structure and easy application.

Key words: multiple object tracking, fish counting, horizontal similarity, SORT algorithm, Distance Intersection over Union (DIoU)