Marine organism detection and tracking method based on artificial intelligence

Through artificial intelligence technology, combined with SAM, two-way propagation algorithms and YOLOv8 models, marine biological videos are preprocessed and tracked, solving the problems of traditional artificial analysis time-consuming and low recognition performance, and achieving efficient detection and tracking of marine biological organisms. Improved recognition effect and recall rate.

CN118898855APending Publication Date: 2024-11-05SHANGHAI JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875705.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Traditional artificial analysis of marine biological video data takes a long time and lacks evaluation standards. The existing technology has fewer types of identification, low generalization performance, and is difficult to utilize information between adjacent frames, so it is impossible to effectively detect and track marine biological.

Method used

Using an artificial intelligence-based method, preprocessing video images, using Segment Everything (SAM) large model for automatic segmentation, combining the two-way propagation algorithm and the YOLOv8 model to further process the target box, tracking based on the StrongSORT++ algorithm, and using YOLOv8 and FishAI /EchoAI model is pre-classified and detailedly identified.

Benefits of technology

It realizes efficient detection and tracking of marine organisms in marine environments, improves recognition effect and recall rate, reduces processing time, and ensures complete coverage and accurate identification of small objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898855A_ABST
    Figure CN118898855A_ABST
Patent Text Reader

Abstract

A marine organism detection and tracking method based on artificial intelligence comprises the following steps: preprocessing an acquired video containing marine organisms, automatically segmenting the preprocessed image by using an SAM large model, and further perfecting an automatic segmentation result by using a two-way propagation algorithm by taking YOLOv8 as a judgment basis to obtain a target frame; and tracking the target frame based on a StrongSORT + + algorithm, pre-classifying the obtained target by using YOLOv8, and finally further identifying the pre-classification result by using a classification network to obtain a detection result. According to the method, acceptable tracking and recognition results can be obtained in the ocean real shot video, and good effects are achieved on indexes on a single-target tracking data set and the recall rate on a multi-target tracking data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology in the field of image processing, specifically a method for detecting and tracking marine life based on artificial intelligence. Background Art

[0002] The health of the ocean is related to the sustainable development of human society, and it is necessary to conduct extensive and in-depth investigations and monitoring of marine life. Among the many investigation and monitoring methods, the video acquisition investigation method is less invasive and is widely used. This type of investigation will produce a large amount of video data, which was mainly analyzed manually in the past. However, traditional manual analysis is time-consuming, lacks corresponding evaluation standards, and requires certain expert knowledge, which is not an ideal choice. Summary of the invention

[0003] In view of the shortcomings of the existing technology, such as limited recognition types, low generalization performance and difficulty in utilizing information between adjacent frames, the present invention proposes a marine life detection and tracking method based on artificial intelligence, which can achieve acceptable tracking and recognition results in real-life marine videos, and achieves good results in indicators on single-target tracking datasets and recall rates on multi-target tracking datasets.

[0004] The present invention is achieved through the following technical solutions:

[0005] The present invention relates to a marine life detection and tracking method based on artificial intelligence. After preprocessing a collected video containing marine life, the preprocessed image is firstly automatically segmented by using a Segment Everything (SAM) large model, and then YOLOv8 is used as a judgment basis, and a two-way propagation algorithm is used to further improve the automatic segmentation result to obtain a target frame; then the target frame is tracked based on a StrongSORT++ algorithm, and YOLOv8 is used to pre-classify the obtained target, and finally a classification network is used to further identify the pre-classification result and obtain a detection result.

[0006] The preprocessing adopts a method of combining a deep network (water-net) with VGG (Visual Geometry Group) as the network skeleton and contrast-limited adaptive histogram equalization (CLAHE). The original image in the video containing marine life collected and the image after white balance, histogram equalization and gamma correction are input into the deep network for enhancement. Then, the grayscale exceeding the set threshold in each area is cropped by CLAHE, and the excess part is distributed to the remaining grayscale in the area based on linear interpolation, so that the grayscale distribution is relatively uniform.

[0007] The automatic segmentation refers to: using a large model for segmentation, setting appropriate parameters, using the full-image segmentation function of the model for each frame of the preprocessed image, obtaining the segmentation of each object in the image, and obtaining the frame and mask array at the same time.

[0008] The mask array is stored using storage optimization, and only the array within the bbox range is stored.

[0009] The two-way propagation algorithm means that in the results of automatic segmentation in the SAM model, it is very likely that some smaller organisms are only segmented in a few frames. In order to make full use of the segmentation results of these frames, the information between adjacent frames is used by forward or backward iterative propagation. Specifically, in the forward or backward propagation, YOLOv8 is used to detect the frame obtained by the segmentation of the whole image. When marine organisms appear in the frame, it is transmitted to the next frame in the current direction. In the next frame, the propagated frame is further segmented using the frame segmentation function of SAM, and then the segmentation result is added to the result of the current frame, that is, the segmentation result of each frame is propagated to the next frame after detection to participate in re-segmentation and as the output result.

[0010] The tracking is specifically as follows: the target frame is segmented into an image region, and after extracting features using a CNN network obtained by a BoT (Bag of Tricks) strategy, an optimized tracking result is obtained using the StrongSORT++ algorithm based on the image information and feature information.

[0011] Preferably, the tracking result is further post-processed, specifically: the disconnected part of the trajectory in the tracking result is filled with a linear algorithm; for the image mutation between consecutive frames in the trajectory, that is, the IoU is 0, the trajectory is divided into multiple trajectories; multiple trajectories that should be the same trajectory are judged according to IoU, and when the disconnected interval is not long, they are connected and filled with a linear algorithm; similar frames in the same frame in different trajectories are deleted, and only the frame results are retained in the longer trajectory; and trajectories with too short length, too small average size or too large are deleted.

[0012] The pre-classification removes the misdetected trajectory results through the trained YOLOv8 model, specifically: the YOLOv8 model is used to detect the frames of each trajectory respectively, and those without detection results are classified as non-living things, and the rest are classified as fish and echinoderms. Trajectories with more than half of the frames being non-living things are deleted, and the rest are classified as fish or echinoderms according to the number of frame categories.

[0013] The classification network uses but is not limited to the fish and echinoderm classification models FishAI and EchoAI that are specially trained for marine life.

[0014] The present invention relates to a system for implementing the above method, comprising: a preprocessing unit, a segmentation unit, a tracking unit and a recognition unit, wherein: the preprocessing unit segments an image according to input video information, uses water-net and CLAHE for comprehensive processing, and obtains a clearer picture result that is convenient for subsequent steps to be implemented; the segmentation unit performs SAM full-image segmentation processing according to the preprocessed image information, and then uses a two-way propagation algorithm to optimize the segmentation result to obtain a more ideal image segmentation; the tracking unit uses StrongSORT++ to process according to the frame information obtained by the segmentation to obtain the trajectory result of each object; the recognition unit uses YOLOv8 for pre-classification according to the trajectory information, and then uses FishAI and EchoAI for detailed classification to obtain a specific classification result. Technical Effects

[0015] Compared with the prior art in complex environments such as the ocean, where smaller objects are only segmented in a few frames, the present invention uses a two-way propagation algorithm to pay attention to the full-image segmentation results of SAM again, propagate the information of the area in the previous and next frames, and combine SAM's frame segmentation to pay extra attention to the frames containing specific organisms in the previous and next frames, and achieve full coverage of the desired area through a simple process without omission. For small objects segmented in a few frames, the segmentation effect is improved after two-way propagation, and the time consumption is still significantly lower than SAM full-image segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of the present invention;

[0017] Figure 2 Schematic diagram of target detection based on the two-way propagation algorithm;

[0018] Figure 3 It is a real-life video effect diagram of the embodiment. DETAILED DESCRIPTION

[0019] like Figure 1 As shown, this embodiment involves an artificial intelligence-based marine life detection and tracking method, which pre-processes the collected video containing marine life, uses the Segment Everything (SAM) large model and the bidirectional propagation algorithm to segment the pre-processed image, and then uses YOLOv8 as a judgment basis to further improve the automatic segmentation result to obtain a target frame; then based on the StrongSORT++ algorithm, the target frame is tracked and the obtained target is pre-classified, and finally a classification network is used to further identify the pre-classified result and obtain a detection result.

[0020] The ocean video data used is from real seabed shooting. The lens is fixed to the submersible and moves with the submersible. The lens movement is basically translation. After using various SAMs to segment the whole image, the two-way propagation algorithm is used. When small and difficult-to-detect organisms, such as sea urchins and starfish, are only detected in a few frames, additional attention is paid to the area in the previous and next frames, and this attention will continue until it is judged that there is no organism in the area or the area has been paid attention to. It runs on the UTB180 dataset, and 11 videos are randomly selected from them. The image size is 1920*1080, and the device is RTX3090. EfficientViT-SAM is used for full-image segmentation, with 32 sampling points on each side. The results of the two-way propagation algorithm are shown in Table 1.

[0021] Table 1. Results of two-way propagation

[0022] After bidirectional propagation, the average IoU increased from 0.6646 to 0.7058, an increase of 4 percentage points. In terms of time, the average bidirectional propagation per image takes 5.79 seconds, which is acceptable compared to the 10.60 seconds for full image segmentation.

[0023] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.

Claims

1. A method for detecting and tracking marine life based on artificial intelligence, It is characterized in that After preprocessing the collected videos containing marine life, the preprocessed images are first automatically segmented using the Segment Everything (SAM) large model, and then YOLOv8 is used as the judgment basis. The two-way propagation algorithm is used to further improve the automatic segmentation results to obtain the target frame; the target frame is then tracked based on the StrongSORT++ algorithm, and YOLOv8 is used to pre-classify the obtained targets. Finally, the classification network is used to further identify the pre-classification results and obtain the detection results.

2. The method for detecting and tracking marine life based on artificial intelligence according to claim 1, Its characteristics are: The two-way propagation algorithm means that in the results of automatic segmentation in the SAM model, it is very likely that some smaller organisms are only segmented in a few frames. In order to make full use of the segmentation results of these frames, the information between adjacent frames is used by forward or backward iterative propagation. Specifically, in the forward or backward propagation, YOLOv8 is used to detect the frame obtained by the segmentation of the whole image. When marine organisms appear in the frame, it is transmitted to the next frame in the current direction. In the next frame, the propagated frame is further segmented using the frame segmentation function of SAM, and then the segmentation result is added to the result of the current frame, that is, the segmentation result of each frame is propagated to the next frame after detection to participate in re-segmentation and as the output result.

3. The method for detecting and tracking marine life based on artificial intelligence according to claim 1 or 2, Its characteristics are: The preprocessing adopts a method of combining a deep network (water-net) with VGG (Visual Geometry Group) as the network skeleton and contrast-limited adaptive histogram equalization (CLAHE). The original image in the video containing marine life collected and the image after white balance, histogram equalization and gamma correction are input into the deep network for enhancement. Then, the grayscale exceeding the set threshold in each area is cropped by CLAHE, and the excess part is distributed to the remaining grayscale in the area based on linear interpolation, so that the grayscale distribution is relatively uniform.

4. The method for detecting and tracking marine life based on artificial intelligence according to claim 1 or 2, Its characteristics are: The automatic segmentation refers to: using a large model for segmentation, setting appropriate parameters, using the full-image segmentation function of the model for each frame of the preprocessed image, obtaining the segmentation of each object in the image, and obtaining the frame and mask array at the same time.

5. The method for detecting and tracking marine life based on artificial intelligence according to claim 1 or 2, Its characteristics are: The mask array is stored using storage optimization, and only the array within the bbox range is stored.

6. The method for detecting and tracking marine life based on artificial intelligence according to claim 1 or 2, Its characteristics are: The tracking is specifically as follows: the target frame is segmented into an image region, and after extracting features using a CNN network obtained by a BoT (Bag of Tricks) strategy, an optimized tracking result is obtained using the StrongSORT++ algorithm based on the image information and feature information.

7. The method for detecting and tracking marine life based on artificial intelligence according to claim 6, Its characteristics are: The tracking results are further post-processed, specifically: the disconnected parts of the trajectory in the tracking results are filled with a linear algorithm; for the image mutation between consecutive frames in the trajectory, that is, the IoU is 0, the trajectory is divided into multiple trajectories; multiple trajectories that should be the same trajectory are judged according to IoU. When the disconnected interval is not long, they are connected and filled with a linear algorithm; similar frames in the same frame in different trajectories are deleted, and only the frame results are retained in the longer trajectory; trajectories that are too short, too small or too large in average size are deleted.

8. The method for detecting and tracking marine life based on artificial intelligence according to claim 1 or 2, Its characteristics are: The pre-classification eliminates the misdetected trajectory results through the trained YOLOv8 model, specifically: the YOLOv8 model is used to detect the frames of each trajectory respectively, and those without detection results are classified as non-living things, and the rest are classified as fish and echinoderms; the trajectories with more than half of the frames being non-living things are deleted, and the rest are classified as fish or echinoderms according to the number of frame categories.

9. The method for detecting and tracking marine life based on artificial intelligence according to claim 1 or 2, Its characteristics are: The classification network uses FishAI and EchoAI, the fish and echinoderm classification models specially trained for marine life.

10. A marine life detection and tracking system implementing the method of any one of claims 1 to 9, It is characterized in that include: The preprocessing unit, the segmentation unit, the tracking unit and the recognition unit include: the preprocessing unit segments the image according to the input video information, and uses water-net and CLAHE for comprehensive processing to obtain a clearer picture result that is convenient for subsequent steps to implement; the segmentation unit performs SAM full-image segmentation processing based on the preprocessed image information, and then uses the two-way propagation algorithm to optimize the segmentation result to obtain a more ideal image segmentation; the tracking unit uses StrongSORT++ to process the frame information obtained by segmentation to obtain the trajectory results of each object; the recognition unit uses YOLOv8 for pre-classification based on the trajectory information, and then uses FishAI and EchoAI for detailed classification to obtain specific classification results.