Affiliation:
1. Navigation College, Dalian Maritime University, Dalian 116026, China
Abstract
In inland waterways, there is a high density of various objects, with a predominance of small objects, which can easily affect navigation safety. To improve the navigation safety of inland ships, this paper proposes a new lightweight water-surface object-detection model named LWS-YOLOv7, which is based on the baseline model YOLOv7. Firstly, the localization loss function is improved and the w-CIoU function is introduced to reduce the model’s sensitivity to position deviations of small objects and to improve the allocation accuracy of positive and negative sample labels. Secondly, a new receptive field amplification module named GSPPCSPC is proposed to reduce the model’s parameters and enhance its receptive field. Thirdly, a small-object feature-fusion layer, P2, is added to improve the recall rate of small objects. Finally, based on the LAMP model pruning method, the weights with lower importance are pruned to simplify the parameters and computational complexity of the model, facilitating the deployment of the model on shipborne devices. The experimental results demonstrate that, compared to the original YOLOv7 model, the map of LWS-YOLOv7 increased by 3.1%, the parameters decreased by 38.8%, and the GFLOPS decreased by 28.8%. Moreover, the model not only has better performance and higher speed for input images of different sizes, but it can also be applied to different meteorological conditions.
Funder
National Science Foundation of China
Key Science and Technology Projects in Transportation Industry
Guangxi Key Research and Development Plan