节点文献

基于改进YOLOv5s和TensorRT部署的鱼道过鱼监测

Fish Passage Monitoring Based on Improved YOLOv5s and TensorRT Deployment

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 李健源; 柳春娜; 卢晓春; 吴必朗;

【Author】 LI Jianyuan;LIU Chunna;LU Xiaochun;WU Bilang;College of Hydraulic and Environmental Engineering, China Three Gorges University;China Institute of Water Resources and Hydropower Research;State Key Laboratory of Simulation and Regulation of Water Cycle in River Basin,China Institute of Water Resources and Hydropower Research;

【通讯作者】 柳春娜;

【机构】 三峡大学水利与环境学院; 中国水利水电科学研究院; 中国水利水电科学研究院流域水循环模拟与调控国家重点实验室;

【摘要】 为实现在复杂水体下对鱼道过鱼进行监测,提出了一种基于YOLOv5s的改进模型,并用TensorRT部署应用于某水电站鱼道现场。首先,针对水下图像模糊、目标检测困难的问题,提出了将Swin Transformer(STR)作为检测层,提升了模型对目标的检测能力;其次,针对鱼群密集、图像信息少的问题,将Efficient channel attention(ECA)注意力机制作为主干特征提取网络C3结构的Bottleneck,减少了计算参数并提升了检测精度;然后,针对检测目标定位差、回归不收敛的问题,将Focal and efficient IOU loss(FIOU)作为模型损失函数,优化了模型整体性能;最后将模型部署在TensorRT框架进行优化,处理速度得到了大幅度提升。基于实际采集的复杂水体数据集进行实验,结果表明,本文算法mAP为91.9%,单幅图像处理时间为10.4 ms,在相同条件下,精度比YOLOv5s提升4.8个百分点,处理时间减少0.4 ms。模型使用TensorRT部署后单幅图像推理时间达到2.3 ms,在不影响检测精度的前提下,推理速度提高4.5倍。综上,本文算法模型在保证快速检测的基础上,具有较高的准确性,更适用于复杂水体下鱼道过鱼监测。

【Abstract】 In order to realize the detection of fish passage in fishway under complex water, an improved model based on YOLOv5 s was proposed, and it was deployed and applied to the fishway site of one hydropower station with TensorRT. Firstly, in view of the problems of underwater image blur and target detection difficulty, the Swin Transformer(STR) was proposed as the detection layer, which improved the detection ability of the model for targets. Secondly, in view of the problem of dense fish and little image information, the efficient channel attention(ECA) attention mechanism was used as the Bottleneck of the backbone feature extraction network C3 structure, which reduced the calculation parameters and improved the detection accuracy. Then aiming at the problem of detection target positioning error and non convergence of regression, taking focal and efficient IOU loss(FIOU) as the loss function of the model to optimize the overall performance of the model. Finally, the model was deployed in TensorRT framework for optimization, and the processing speed was greatly improved. Based on the actual collection of complex water body data set, the experiment results showed that the algorithm mAP was 91.9%, and the processing time of a single image was 10.4 ms. Under the same conditions, the precision was 4.8 percentage points higher than that of YOLOv5 s, and the processing time was 0.4 ms. After the model was deployed with TensorRT, the reasoning speed reached 2.3 ms/img, a 4.5 times improvement in reasoning speed without affecting detection accuracy. In conclusion, the algorithm model had good effectiveness and superiority, and it was more suitable for fish passage detection in complex water bodies.

【关键词】 鱼道过鱼监测; YOLOv5s; 损失函数; TensorRT;
【Key words】 fish passage detection; YOLOv5s; loss function; TensorRT;
【基金】 中国水利水电科学研究院“五大人才”计划专项(SD0145B032021);国家自然科学基金项目(51809291)
  • 【文献出处】 农业机械学报 ,Transactions of the Chinese Society for Agricultural Machinery , 编辑部邮箱 ,2022年12期
  • 【分类号】S956.3
  • 【下载频次】100
节点文献中: 

本文链接的文献网络图示:

本文的引文网络