Miniature Multi-Target Tracking in Sonar Images Using Dual Trajectory Storage Method
Abstract
1. Introduction
2. Data Acquisition and Methods
2.1. Background Modeling and Foreground Extraction
2.2. Target Detection and Segmentation
2.2.1. Morphological Preprocessing
2.2.2. Connected Component Analysis
2.2.3. Dual Trajectory Storage and Association Algorithm
2.2.4. Trajectory Filtering
3. Results
4. Discussion
5. Conclusions
- (1)
- To address the challenges of trajectory fragmentation, the trade-off between association computational efficiency and data integrity in tracking the motion trajectories of micro-scale targets in underwater sonar images, a multi-target tracking method based on a dual trajectory storage mechanism is proposed. This method employs Gaussian Mixture Model (GMM) foreground extraction, morphological preprocessing, and connected component analysis to obtain target centroids. It utilizes an adaptive distance threshold for trajectory association, effectively handling issues such as trajectory breakage, computational efficiency in association, and data integrity for micro-scale targets.
- (2)
- The dual trajectory storage mechanism uses real-time trajectories for fast association computation while maintaining complete trajectories that preserve all historical information, thereby achieving separation between computation and storage. The association algorithm adopts an adaptive distance threshold strategy, where the threshold is dynamically adjusted based on the frame sampling rate to effectively accommodate the maximum displacement of targets under different frame-rate scenarios. Experimental results show that the adaptive threshold mechanism significantly improves association accuracy. The algorithm meets real-time requirements while ensuring data integrity. Overall, the algorithm demonstrates clear advantages in both accuracy enhancement and trajectory completeness.
- (3)
- The proposed method successfully tracks all targets in the experiments, including artificial targets (aluminum three-cylinder and two-cylinder structures) and naturally swimming fish. False trajectories are filtered out based on trajectory length, outputting complete and quantifiable trajectory data. This provides high-quality trajectory feature data for the motion analysis of underwater micro-scale multi-targets, supporting the extraction of behavioral features such as movement distance, start/end positions, and other relevant metrics.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Ferreira, A.; Almeida, J.; Matos, A.; Silva, E. Real-Time Registration of 3D Underwater Sonar Scans. Robotics 2025, 14, 13. [Google Scholar] [CrossRef]
- Xu, J. Moving target detection method based on improved Gaussian mixture model. Inf. Rec. Mater. 2024, 25, 142–144. [Google Scholar] [CrossRef]
- Lin, C.; Yungang, L. UAV Visual Target Tracking Algorithms: Review and Future Prospect. Inf. Control 2022, 51, 23–40. [Google Scholar] [CrossRef]
- Bai, Y. Target detection method of underwater moving image based on optical flow characteristics. J. Coastal. Res. 2019, 93, 668–673. [Google Scholar] [CrossRef]
- Dai, K. Automatic Detection Method for Daytime Traffic Flow Based on Background Difference and Edge Extraction. Tehnički Vjesnik 2026, 33, 192–202. [Google Scholar] [CrossRef]
- Huang, H.; Li, B.; Liu, J.; Wei, Z.; Zhao, S. Review and prospect of underwater target recognition in sonar images. J. Electron. Inf. Technol. 2024, 46, 1742–1760. [Google Scholar] [CrossRef]
- Ferreira, F.; Machado, D.; Ferri, G.; Dugelay, S.; Potter, J. Underwater optical and acoustic imaging: A time for fusion? A brief overview of the state-of-the-art. In Proceedings of the OCEANS 2016 MTS/IEEE Monterey, Monterey, CA, USA, 19–23 September 2016; pp. 1–6. [Google Scholar] [CrossRef]
- Guan, F.; Zhang, Y.; Xu, Q.; Guo, T. Underwater Image Enhancement via RGB Color-Cast Correction and Lab Space Luminance-Chrominance Enhancement. J. Mar. Sci. Eng. 2026, 14, 310. [Google Scholar] [CrossRef]
- Karimanzira, D.; Renkewitz, H.; Shea, D.; Albiez, J. Object Detection in Sonar Images. Electronics 2020, 9, 1180. [Google Scholar] [CrossRef]
- Huang, J.; Peng, X.; Li, W.; Hu, K.; Wang, T.; Huang, Y.; Wen, Y. High quality sonar image generation method based on multi-scale feature fusion. J. Comput. Appl. 2025, 45, 3987–3994. [Google Scholar] [CrossRef]
- Xue, X.; Ma, T.; Han, Y.; Ma, L.; Liu, R. Learning Deep Scene Curve for Fast and Robust Underwater Image Enhancement. Signal Process. Lett. 2024, 31, 6–10. [Google Scholar] [CrossRef]
- Guo, Y.; Xu, J.; Wang, J.; Zhao, W.; Zhang, W. MFPD: Mamba-Driven Feature Pyramid Decoding for Underwater Object Detection. Signal Process. Lett. 2026, 33, 141–145. [Google Scholar] [CrossRef]
- Wang, Y.; Lu, Q.; Wang, Y.; Wu, M. Accurate and Efficient Moving Object Detection with Optical Flow. Softw. Guide 2024, 23, 134–141. [Google Scholar] [CrossRef]
- Chen, C.; Jiang, G.; Zhang, L.; Ling, Y.; Yu, C.; Yan, H.; Zhang, Y. Motion Object Detection Based on Improved Visual Background Extraction Algorithm. Comput. Meas. Control 2022, 30, 105–111. [Google Scholar]
- Zheng, J. Implementation of Moving Object Detection Algorithm Based on FPGA in Complex Background. Master’s Thesis, Xi’an University of Electronic Science and Technology, Xi’an, China, 2021. [Google Scholar] [CrossRef]
- Fan, Y.; Peng, C.; Zhang, P.; Zhang, Z.; Zhang, G.; Tang, J. MVDCNN: A Multi-View Deep Convolutional Network with Feature Fusion for Robust Sonar Image Target Recognition. Remote Sens. 2026, 18, 76. [Google Scholar] [CrossRef]
- Kirubakaran, N. An Analysis the Sonar Contact Images by Using the LONAR Analysis with Deep Convolutional Neural Network. YMER 2022, 21, 9. [Google Scholar]
- Soujanya, V.; Swathi, C.; Kuncha, P.; Ravi, S. Detection of Underwater Trash Objects Using Deep Learning Algorithms and Yolo v8. Int. J. Mod. Trends Sci. Technol. 2025, 11, 19–25. [Google Scholar] [CrossRef]
- Agarwal, A.; Verma, I.; Gupta, V. Survey on deep learning techniques used for object identification of underwater forward-looking sonar images. AIP Conf. Proc. 2025, 3297, 030004. [Google Scholar] [CrossRef]
- Zhang, Y.; Dai, X. Research progress on moving target detection in complex environments. J. Sichuan Univ. Sci. Eng. (Nat. Sci. Ed.) 2025, 38, 54–62. [Google Scholar]
- Liu, Y.; Ding, J.; Xu, M.; Huang, Z.; Qiang, Y. A Multi-Supervised Network for Real-Time and Accurate Semantic Segmentation in Underwater Scenes. J. Mar. Sci. Eng. 2026, 14, 340. [Google Scholar] [CrossRef]
- Cao, J.; Pang, J.; Weng, X.; Khirodkar, R.; Kitani, K. Observation-Centric SORT: Rethinking SORT for Robust Multi-Object Tracking. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023; pp. 9686–9696. [Google Scholar] [CrossRef]
- Maggiolino, G.; Ahmad, A.; Cao, J.; Kitani, K. Deep OC-Sort: Multi-Pedestrian Tracking by Adaptive Re-Identification. In Proceedings of the 2023 IEEE International Conference on Image Processing (ICIP), Kuala Lumpur, Malaysia, 8–11 October 2023; pp. 3025–3029. [Google Scholar] [CrossRef]
- Du, Y.; Zhao, Z.; Song, Y.; Zhao, Y.; Su, F.; Gong, T.; Meng, H. Strong SORT: Make Deep SORT Great Again. IEEE Trans. Multimed. 2023, 25, 8725–8737. [Google Scholar] [CrossRef]
- Zhou, G.; Zhang, P.; Mo, Q.; Zhao, Y.; Su, F.; Gong, T.; Meng, H. Recognition method of sonar images from a small sample underwater targets based on Radon projection and improved convolutional neural network. J. Harbin Eng. Univ. 2024, 45, 2048–2056. [Google Scholar] [CrossRef]
- Stauffer, C.; Grimson, W.E.L. Adaptive background mixture models for real-time tracking. In Proceedings of the 1999 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No PR00149), Fort Collins, CO, USA, 23–25 June 1999; Volume 2, pp. 246–252. [Google Scholar] [CrossRef]
- Greggio, N.; Bernardino, A.; Laschi, C.; Dario, P.; Santos-Victor, J. Self-adaptive Gaussian mixture models for real-time video segmentation and background subtraction. In Proceedings of the 10th International Conference on Intelligent Systems Design and Applications, Cairo, Egypt, 29 November–1 December 2010; pp. 983–989. [Google Scholar] [CrossRef]
- Chen, Z.; Ellis, T. Self-adaptive Gaussian Mixture Model for urban Traffic monitoring system. In Proceedings of the 2011 IEEE International Conference on Computer Vision Workshops (ICCV Workshops), Barcelona, Spain, 6–13 November 2011; pp. 1769–1776. [Google Scholar] [CrossRef]
- Wang, W.; Zhu, T. Application of capsule defect detection algorithm based on VisionMaster. Qual. Mark. 2025, 8, 67–69. [Google Scholar]
- Zhou, J.; He, Q.; Zhou, L.; Zhu, Y.; Wang, J. Small-sample Missing Environmental Test Data Prediction Model Based on k-Nearest Neighbors and Ensemble Learning. Equip. Environ. Eng. 2025, 22, 160–168. [Google Scholar]









| Object ID | Trajectory Points | Start Point X | Start Point Y | End Point X | End Point Y | |
|---|---|---|---|---|---|---|
| Object I | Subobject 1 | 244 | 505.15 | 272.93 | 554.43 | 212.77 |
| Subobject 2 | 71 | 511.47 | 219.85 | 567.89 | 254.48 | |
| Subobject 3 | 285 | 483.93 | 269.93 | 519.00 | 195.96 | |
| Object II | 235 | 130.48 | 215.18 | 387.72 | 77.42 | |
| Object III | 113 | 402.15 | 364.97 | 620.26 | 395.45 | |
| Object IV | 130 | 761.45 | 138.90 | 779.19 | 334.35 | |
| Object ID | Trajectory Points | Start Point X | Start Point Y | End Point X | End Point Y | |
|---|---|---|---|---|---|---|
| Object I | Subobject 1 | 272 | 627.5 | 302.7 | 654.9 | 293.6 |
| Subobject 2 | 231 | 628.0 | 330.2 | 647.8 | 342.7 | |
| Object II | 103 | 684.4 | 66.4 | 750.2 | 102.2 | |
| Object III | 103 | 601.6 | 62.3 | 642.2 | 107.8 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Huang, Z.; Zhang, P.; Wang, R.; Xian, X.; Wang, Q.; Hu, J.; Wu, Q. Miniature Multi-Target Tracking in Sonar Images Using Dual Trajectory Storage Method. J. Mar. Sci. Eng. 2026, 14, 568. https://doi.org/10.3390/jmse14060568
Huang Z, Zhang P, Wang R, Xian X, Wang Q, Hu J, Wu Q. Miniature Multi-Target Tracking in Sonar Images Using Dual Trajectory Storage Method. Journal of Marine Science and Engineering. 2026; 14(6):568. https://doi.org/10.3390/jmse14060568
Chicago/Turabian StyleHuang, Zhen, Peizhen Zhang, Rui Wang, Xiaoyan Xian, Qi Wang, Jiayu Hu, and Qinyu Wu. 2026. "Miniature Multi-Target Tracking in Sonar Images Using Dual Trajectory Storage Method" Journal of Marine Science and Engineering 14, no. 6: 568. https://doi.org/10.3390/jmse14060568
APA StyleHuang, Z., Zhang, P., Wang, R., Xian, X., Wang, Q., Hu, J., & Wu, Q. (2026). Miniature Multi-Target Tracking in Sonar Images Using Dual Trajectory Storage Method. Journal of Marine Science and Engineering, 14(6), 568. https://doi.org/10.3390/jmse14060568

