In-situ counting method for sea cucumber in a breeding area

By using a camera mounted on an ROV and combining it with a deep learning-based sea cucumber target detection and tracking algorithm, the problem of manual underwater operations in existing sea cucumber counting methods has been solved. This has enabled accurate calculation of sea cucumber parameters and real-time, efficient, and automated counting, improving data reliability and computational efficiency.

CN118037639BActive Publication Date: 2026-11-20DALIAN OCEAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410071979.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2026-11-20
Estimated Expiration
2044-01-18

AI Technical Summary

Technical Problem

Existing sea cucumber counting methods require manual underwater operations, resulting in low data reliability and long processing times. Underwater robot counting is not practically applicable.

Method used

The system uses an ROV equipped with a camera to collect underwater video, and combines deep learning-based sea cucumber target detection and tracking algorithms. It uses the YOLOv8-C3FA detector and ByteTrack algorithm to accurately calculate sea cucumber parameters, including distribution density and total number.

Benefits of technology

No manual intervention is required in the water, which improves the accuracy and reliability of sea cucumber counting, enables real-time and efficient automated counting, reduces interference with the marine environment, and the lightweight network structure improves computing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118037639B_ABST
    Figure CN118037639B_ABST
Patent Text Reader

Abstract

The present application relates to sea cucumber counting technical field, provide a kind of in situ counting method of sea cucumber in breeding area, comprising the following process: step 1, utilize the camera of ROV, collect the underwater sea cucumber video of detection area;Step 2, according to the underwater sea cucumber video collected, sea cucumber target is detected and tracked, and the quantity of sea cucumber is calculated;Step 3, the total area actually swept by current underwater sea cucumber video is calculated;Step 4, the sea cucumber quantity of multiple sampling areas recorded is calculated to obtain the distribution density of sea cucumber in breeding circle and the total amount of sea cucumber.The present application can record the total number of sea cucumber in scanning area, improve sea cucumber detection accuracy and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of sea cucumber counting technology, and in particular to an in-situ counting method for sea cucumbers in aquaculture areas. Background Technology

[0002] The current counting methods for sea cucumbers (or other marine delicacies / fish) have the following shortcomings: 1. The method involves manually diving into the sea to select multiple sampling points within the sea cucumber enclosure, collecting all sea cucumbers to calculate the total number. This not only poses a significant health risk to divers but also suffers from several drawbacks: the small sampling area leads to subjectivity in the calculated total number of sea cucumbers, resulting in low data reliability; and the method is also extremely time-consuming.

[0003] 2. The method of collecting underwater images by using underwater robots or other mobile platforms equipped with cameras and counting sea cucumbers in the videos is mostly experimental and has not formed an effective operating procedure, so it cannot be put into actual production. Summary of the Invention

[0004] This invention primarily addresses the technical problems of existing statistical video methods for sea cucumber counting, which require manual underwater operations, resulting in low data reliability and trustworthiness. Furthermore, these methods are time-consuming, and underwater robot counting cannot be applied to actual production. The invention proposes an in-situ counting method for sea cucumbers in aquaculture areas to record the total number of sea cucumbers in the scanned area, thereby improving the accuracy and reliability of sea cucumber detection.

[0005] This invention provides an in-situ counting method for sea cucumbers in aquaculture areas, comprising the following steps: Step 1, using a camera mounted on an ROV to collect underwater sea cucumber videos of the detection area; Step 2, based on the collected underwater sea cucumber videos, detecting and tracking the sea cucumber targets, and calculating the number of sea cucumbers; Step 3, calculating the total area actually scanned by the current underwater sea cucumber video; Step 4, calculating the sea cucumber distribution density and total number of sea cucumbers within the aquaculture area by recording the sea cucumber parameters of multiple sampling areas.

[0006] Step 2 includes steps 201 to 203.

[0007] Step 201: Input the image of the i-th frame from the underwater sea cucumber video information into a deep learning-based sea cucumber target detector to obtain the detection result of the i-th frame; Step 202: Perform target matching between this detection result and the predicted bounding box obtained by the tracking trajectory prediction algorithm of the sea cucumber trajectory in the (i-1)-th frame to obtain the matching result of the i-th frame; Update the trajectory state of the sea cucumber according to the matching result; Step 203: Obtain the detection result of each frame image in sequence according to the method of steps 201 to 202 until the entire video processing is completed, and finally obtain the trajectory of all sea cucumbers. By analyzing these trajectories, the sea cucumber quantity in the sampling area can be statistically determined. ; In step 201, the network structure of the YOLOv8-C3FA detector consists of three parts: a backbone network, a Neck connection layer, and a Head detection head. The input image is fed into the backbone network, then into the Neck connection layer, and finally into the Head detection head, and the detection result is output.

[0008] The backbone network consists of three parts: a CBS convolutional module, a C3FA module, and an SPFF module. First, a 640*640*3 image is input into the network, passing through a stack of one CBS convolutional module and four CBS convolutional modules combined with a C3FA module, and finally input to the SPFF module. The CBS module includes a convolutional layer (Conv), a batch normalization layer, and a SiLU activation function layer, encapsulating the combined operations of convolution, batch normalization, and activation functions. The C3FA module takes C1 channels of feature maps as input and outputs C2 channels of feature maps. First, the input passes through a 1x1 convolutional layer, reducing the number of channels to half of C2; then, it passes through N FasterNet Bolck modules; finally, it passes through N FasterNet... The feature map after the Block module is concatenated with the feature map after another 1x1 convolutional layer, resulting in a feature map with C2 channels. Finally, it passes through a 1x1 convolutional layer, maintaining the number of channels at C2, to obtain the output of the C3-FA module, which is then used for learning and convergence. The FasterNet Block divides the input into two parts, with one branch connecting two PWConv layers after the PConv layer. A normalization layer and SiLu activation function are added after each PWConv layer, and finally, the output is added to the input features. This method achieves significant network lightweighting. The SPPF module performs three 5×5 max pooling operations on the input feature map, then concatenates the original feature map with the feature maps after different pooling operations, and outputs the result through a CBS module. Finally, three feature matrices of sizes 80×80×256, 40×40×512, and 20×20×512 are input to the connection layer. This allows for the fusion of local and global features, enhancing the expressive power of the features.

[0009] The connection layer consists of the Upsample module, the C3FA module, and the CBS module; the Upsample module is a bilinear interpolation upsampling module; the connection layer connects the backbone network and the head network; the PANet structure is used, which is a bidirectional feature pyramid network that upsamples and downsamples feature maps at different levels, and then performs feature fusion through cross-layer connections and convolution operations.

[0010] The detection head generates the final output: The detection head uses a separate head network that separates the classification and regression branches; the network structure uses three output branches, and the three predicted feature maps of sizes 80×80×256, 40×40×512 and 20×20×512 generated by the detection head correspond to different scales and receptive fields, which are used to predict targets of different sizes.

[0011] Step 202 includes steps 2021 to 2024.

[0012] Step 2021, Detection Box Classification: ByteTrack classifies detection boxes into two categories based on their confidence level: high-scoring boxes are detection boxes with a confidence level higher than a preset threshold, corresponding to clearly visible targets; low-scoring boxes are detection boxes with a confidence level lower than the high-scoring box threshold but higher than another preset threshold, corresponding to occluded or blurred targets; ByteTrack places high-scoring boxes and low-scoring boxes into two sets, Dhigh and Dlow, respectively, for subsequent association operations.

[0013] Step 2022, High-resolution bounding box association: ByteTrack uses a Kalman filter to predict the position and velocity of each trajectory in the current frame, and then calculates the IOU distance matrix between the high-resolution bounding box set Dhigh and the trajectory set Track; the IOU distance matrix represents the degree of spatial overlap between each high-resolution bounding box and each trajectory, and the larger the value, the more similar they are; ByteTrack uses the Hungarian algorithm to solve this matrix to obtain the optimal matching scheme.

[0014] Step 2023, Low-level bounding box association: ByteTrack uses the same method to calculate the IOU distance matrix between the low-level bounding box set Dlow and the unmatched trajectory set Tremain, and uses the Hungarian algorithm to solve for the optimal matching scheme.

[0015] Step 2024, Track Creation, Deletion, and Merging: For high-scoring bounding boxes that fail to match any track, ByteTrack creates a new track and initializes its Kalman filter if its confidence level is higher than a preset threshold. For tracks that fail to match any detection boxes, if they are continuously lost for more than a preset number of frames, they are considered to have disappeared and are deleted from the track set. For multiple tracks that match the same detection box, if they have a large IOU overlap, they are considered to be the same target, assigned the same ID, and merged into one track.

[0016] Step 3: Calculate the total area actually scanned by the current underwater sea cucumber video. Step 3 includes the following steps 301 to 302: Step 301: Calculate the projected area using the following formula:

[0017] like Figure 6 As shown, the ROV camera is at point [location missing]. Place, These are the camera's horizontal and vertical half-field-of-view angles, respectively. Let be the area captured by the camera on the seabed at a certain moment, and let be the projected area. , .

[0018] Step 302: Calculate the total area of ​​the sampling points based on the ROV's distance from the seabed and the camera lens parameters at each time point; The ROV maintains a constant speed, that is... The ROV's height above the seabed remains unchanged. Changes will occur over continuous time. Divided into discrete sampling periods The ROV's distance from the seabed was recorded during each sampling period. and height when turning ; in S n Let n be the area swept by the camera at time n, v be the top and bottom edges of this region, and v be the robot speed.

[0019] The formula for calculating the swept area is:

[0020] The total area actually scanned (the total area of ​​the sampling points) is: ; Step 4: Calculate the sea cucumber distribution density and total number of sea cucumbers within the aquaculture area by recording the sea cucumber parameters from multiple sampling areas. Given the area of ​​the sea cucumber enclosure, the density of sea cucumbers within the enclosure is... With the total number of sea cucumbers for: .

[0021] The advantages of this invention are: 1. No manual underwater operation required: Compared with traditional sea cucumber counting methods, this invention uses a camera mounted on an ROV to collect underwater sea cucumber videos, eliminating the need for manual underwater operation and avoiding harm to the health of divers.

[0022] 2. Improved Accuracy and Reliability: By employing ROV-based and deep learning methods, accurate calculation of sea cucumber parameters can be achieved through the detection and tracking of sea cucumber targets. The deep learning detector can efficiently process seabed images, improving the reliability of the counting.

[0023] 3. Real-time monitoring and efficient operation: This invention uses machine learning technology, which has a significant advantage in real-time performance. It collects and counts underwater videos in real time through ROV, avoiding the problem of long time consumption in traditional methods.

[0024] 4. No need to harvest sea cucumbers: Traditional methods often require sea cucumbers to be taken out of the water for counting, while this invention uses an in-situ counting method that eliminates the need to harvest sea cucumbers, reducing interference with the marine environment.

[0025] 5. Accurate area calculation: By accurately recording the ROV's travel path and the camera's field of view, combined with a mathematical model, the total area actually scanned by the underwater video can be accurately calculated, improving the accuracy of area calculation.

[0026] 6. Fully automated counting process: Through deep learning-based target detection and trajectory tracking algorithms, the entire sea cucumber counting process is automated, reducing human intervention and improving counting efficiency.

[0027] 7. Lightweight Network Structure: The YOLOv8-C3FA detector used in this invention achieves efficient processing of sea cucumber counting tasks by using a lightweight network structure, thereby improving computational efficiency. Attached Figure Description

[0028] Figure 1 This is a flowchart illustrating the implementation of the sea cucumber counting method based on ROV and deep learning provided by this invention. Figure 2 This is a schematic diagram of the camera's detection area; Figure 3 This is a schematic diagram illustrating the specific operation process of steps 2 and 202; Figure 4 This is a network structure diagram of the YOLOv8-C3FA detector; Figure 5 This is a schematic diagram illustrating the specific operation process of step 203; Figure 6 This is a schematic diagram of the projected area; Figure 7 This is a schematic diagram of the ROV's movement trajectory. Detailed Implementation

[0029] To make the technical problems solved by this invention, the technical solutions adopted, and the technical effects achieved clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings, not all of them.

[0030] like Figure 1 As shown, the sea cucumber counting method based on ROV and deep learning provided in this embodiment of the invention includes the following process: Step 1: Use the camera mounted on the ROV to collect underwater sea cucumber videos of the detection area.

[0031] Set the search area for the ROV (Remotely Operated Vehicle) to a length of [length missing]. , width is The ROV acquires underwater sea cucumber videos. However, the search area is not the actual area scanned by the camera on the ROV. The ROV is equipped with cameras, altimeters, and other sensors to acquire underwater sea cucumber images, ensuring clear and stable images, while also setting the ROV's coverage area for the sampling region. For example... Figure 2 As shown, the actual width of the camera's detection area is and length , Figure 2 The ROV runs for five rounds, with trajectory S representing the ROV's search path, and trajectory s representing the first round. The main part is the projected area captured by the camera (i.e., the actual detection area of ​​the camera). When the ROV turns, the camera repeatedly captures a portion of the area at the turning point, which is the shaded area in the diagram (each repeated capture area) with an area of ​​[area missing]. Regions ABCD: The area detected by the motion camera at a certain moment.

[0032] This invention sets the ROV search speed according to the conditions within the sea cucumber farming area. Height above the seabed The camera was installed at an angle parallel to the seabed to ensure that the underwater sea cucumber video images obtained were clear, stable and continuous.

[0033] Step 2: Based on the collected underwater sea cucumber videos, detect and track the sea cucumber targets, and calculate the number of sea cucumbers.

[0034] To count sea cucumbers from videos collected by unmanned surface vessels, we adopted the YOLOV8+BYTE method as its foundation. This method combines the object detection capabilities of YOLOV8 with the trajectory tracking capabilities of BYTE, enabling fast, accurate, and stable identification and counting of sea cucumbers. For object detection, to improve the inference speed of the YOLOV8 model, we improved the FasterNet Block (Faster Neural Network Block) into the C3 module, and improved the C3FA module into YOLOV8, forming the YOLOV8-C3FA network. For trajectory tracking, we added a line-crossing counting method to BYTE to address situations where detector performance degrades due to environmental changes, leading to frequent ID switching. This method determines whether a line has been crossed by performing a cross product between the center point of the detection box in consecutive frames and the detection line, thus counting the number of sea cucumbers crossing the detection line. We added this method to the BYTE method, ultimately forming the YOLOV8-C3FA+BYTE+LC (Line Crossing) method. Figure 3 As shown, the specific process includes the following steps 201 to 204: Step 201: The image of the i-th frame in the underwater sea cucumber video information is sent to the sea cucumber target detector based on deep learning to obtain the detection result of the i-th frame.

[0035] The sea cucumber target detector is based on the latest version of the YOLO series model, YOLOv8, with the lightweight FasterNet Block added to its network to form a YOLOv8-C3FA network. The network structure of the YOLOv8-C3FA detector is as follows: Figure 4 As shown, it consists of three parts: Backbone, Neck, and Head. The input image is fed into the Backbone, then into the Neck, and finally into the Head, and the final output is the detection result. The backbone network consists of three parts: a CBS (Convolutional Block with SiLU) convolutional module, a C3FA module, and an SPFF module. First, a 640*640*3 image is input into the network, passing through one CBS module and four stacked CBS and C3FA modules, before finally being input into the SPFF module. The CBS module includes convolutional layers (Conv), batch normalization (BN) layers, and SiLU (Sigmoid Linear Unit) activation function layers, encapsulating the combined operations of convolution, batch normalization, and activation functions. The C3FA module takes C1 channels of feature maps as input and outputs C2 channels of feature maps. First, the input passes through a 1x1 convolutional layer, reducing the number of channels to half of C2. Then, it passes through N FasterNet Bolck modules. Next, the feature map after passing through N FasterNetBlock modules is concatenated with the feature map after the input has passed through another 1x1 convolutional layer, resulting in a feature map with C2 channels. Finally, it passes through a 1x1 convolutional layer, maintaining the number of channels at C2, to obtain the output of the C3-FA module. This allows for more efficient learning and convergence. The FasterNet Block divides the input into two parts, with one branch following a PConv (partial convolution) layer with two PWConv (pointwise convolution) layers. A normalization layer and a SiLu activation function are added after each PWConv layer, and finally, the input features are added together. This method achieves a significant reduction in network weight. The core operation of SPPF (Spatial Pyramid Feature Fusion) is to perform three 5×5 max pooling operations on the input feature map, then concatenate the original feature map with the feature maps after different pooling operations, and finally output the result through a CBS. Finally, three feature matrices of sizes 80×80×128, 40×40×512, and 20×20×1024 are obtained. This allows for the fusion of local and global features, enhancing the expressive power of the features.

[0036] The connection layer consists of an Upsample module, a C3FA module, and a CBS module. The Upsample module performs bilinear interpolation upsampling; the connection layer connects the backbone network and the head network. The PANet (Pyramid Attention Network) architecture is used. PANet is a bidirectional feature pyramid network that can upsample and downsample feature maps at different levels, and then fuse features through cross-layer connections and convolutional operations. This enhances the multi-scale and semantic nature of features, improving detection accuracy and speed.

[0037] The detection head is responsible for generating the final output. It employs a separate head network, separating the classification and regression branches. This reduces the number of parameters, speeds up convergence, and improves detection performance. The network structure uses three output branches: three predicted feature maps of sizes 80×80×256, 40×40×512, and 20×20×512 generated by the detection head, corresponding to different scales and receptive fields, used to predict targets of different sizes.

[0038] Step 202: Match the detection result with the predicted bounding box obtained by the tracking trajectory prediction algorithm of the sea cucumber trajectory in frame i-1 to obtain the matching result of frame i; update the trajectory status of the sea cucumber according to the matching result.

[0039] This step utilizes a multi-object tracking algorithm based on object detection to predict the bounding boxes and movement trajectories of multiple objects within the field of view. Most existing algorithms of this type simply discard bounding boxes with confidence scores below a certain threshold during the object detection stage. This can directly lead to the loss of real targets with temporarily low confidence scores due to occlusion, and indirectly result in the loss of movement trajectories. To address this issue, the ByteTrack algorithm, based on the YOLOv8 object detector, uses the BYTE data association method to retain low-scoring bounding boxes while maintaining high-scoring bounding box tracking. It then leverages the similarity between these low-scoring bounding boxes and previous movement trajectories to reconstruct real targets and filter out background detections.

[0040] The basic ByteTrack multi-target tracking algorithm employs the BYTE data association strategy, which is effective in tracking severely occluded sea cucumber objects in complex scenes, such as... Figure 3 As shown, the specific operation process of step 202 is as follows: steps 2021 to 2024: Step 2021: Detection Box Classification. ByteTrack classifies detection boxes into two categories based on their confidence level: high-scoring boxes and low-scoring boxes. High-scoring boxes are detection boxes with a confidence level above a preset threshold; they typically correspond to clearly visible targets. Low-scoring boxes are detection boxes with a confidence level below the high-scoring threshold but above another preset threshold; they typically correspond to occluded or blurred targets. ByteTrack places high-scoring and low-scoring boxes into two sets D, respectively. high and D low This is used for subsequent association operations.

[0041] Step 2022, High-resolution bounding box association. ByteTrack uses a Kalman filter to predict the position and velocity of each trajectory in the current frame, and then calculates the high-resolution bounding box set D. high The Intersection over Union (IOU) distance matrix between the bounding box and the track set Ttrack. The IOU distance matrix represents the degree of spatial overlap between each high-scoring bounding box and each track; a larger value indicates greater similarity. ByteTrack uses the Hungarian algorithm to solve this matrix to obtain the optimal matching scheme. The Hungarian algorithm is a classic bipartite graph matching algorithm that can find the maximum or minimum weighted matching in polynomial time.

[0042] Step 2023, low-resolution bounding box association. ByteTrack uses the same method to calculate the low-resolution bounding box set D. low With the set of unmatched trajectories T remain The IOU distance matrix between the high-resolution bounding boxes is calculated, and the Hungarian algorithm is used to solve for the optimal matching scheme. The purpose of this step is to use low-resolution bounding boxes to recover trajectories that are occluded or blurred and therefore not matched by high-resolution bounding boxes, and to filter out low-resolution bounding boxes that belong to the background or noise.

[0043] Step 2024: Track Creation, Deletion, and Merging. For high-scoring bounding boxes that fail to match any tracks, ByteTrack creates a new track and initializes its Kalman filter if its confidence level is above a preset threshold. For tracks that fail to match any detection boxes, if they are continuously lost for more than a preset number of frames, they are considered to have disappeared and are deleted from the track set. For multiple tracks that simultaneously match the same detection box, if they have significant IOU overlap, they are considered to be the same target, assigned the same ID, and merged into a single track.

[0044] The BYTE-based counting method is highly dependent on detector performance. When the environment changes, such as significant changes in lighting, color, or object features, the detector's performance will significantly degrade. Simply using the IDs from the tracking algorithm for counting will result in large errors. Specifically, this manifests as frequent missed object detections and ID switching, assigning multiple IDs to a single object in the video. However, the BYTE-based counting method directly obtains the total number of objects from the ID count, leading to obvious errors in the count.

[0045] Step 203: To improve the counting effect under different environments, we propose a line-crossing counting scheme based on the actual application scenarios and the frequent ID switching in the tracking algorithm. We set a horizontal detection line L and a set D that records the IDs of those who have crossed the line in the video. lc In D lc We use the ID of the detection box obtained in each frame using the BYTE algorithm to determine if a frame has crossed a line. Figure 5 As shown.

[0046] Our counting method uses IDs to count lines during video playback. When setting the horizontal detection line L, we consider that the effective receptive field of the FasterNet Block appears as a t-shaped Conv (convolution), which focuses more on the center position compared to regular convolution that uniformly processes an image block. Therefore, we set the horizontal detection line L at half the height of the image.

[0047] We perform a line-crossing check on each detection box in each frame of the video, using the cross-product method. Specifically, we let the center point of detection box B in the current frame i be A, with ID 1. Then, we take the center point of the detection box with the same ID from the previous frame as A, and any two points on the detection line L as C and D. Then, according to the formula: ; Where × represents the vector cross product. When both Formula 1 and Formula 2 are satisfied, we check if the ID of the current detection box exists in Dlc. If it doesn't, we consider that a new object's detection box that hasn't crossed the line has moved from one side to the other, and we count that ID and add it to the set Dlc. If neither of the above two formulas is satisfied simultaneously, we consider the object not to have crossed the line. This means the detection box either hasn't crossed the line or is parallel to the detection line L. Alternatively, if the ID of a detection box that has crossed the line exists in Dlc, we consider the object to have crossed the line. However, due to external instability or deformation of the detection box, the object's center point may have changed position, and we don't count it.

[0048] Step 204: Following the methods in steps 201 to 203, the detection results for each frame of the image are obtained sequentially until the entire video processing is completed. Finally, the trajectories of all sea cucumbers are obtained. By analyzing the number of these trajectories crossing the line, the sea cucumber quantity in the sampling area can be statistically determined. .

[0049] Step 3: Calculate the total area actually scanned by the current underwater sea cucumber video. Step 3 includes the following steps 301 to 302: Step 301: Calculate the projected area using the following formula:

[0050] like Figure 6 As shown, the ROV camera is at point [location missing]. place, These are the camera's horizontal and vertical half-field-of-view angles, respectively. Let be the area captured by the camera on the seabed at a certain moment (this is the projected area), where , 。

[0051] Step 302: Calculate the total area of ​​the sampling points based on the ROV's height from the seabed at each time point and the camera lens parameters.

[0052] The motion model can be approximated as follows Figure 7 As shown, the ROV maintains a constant speed at this time. (Unchanged), but the ROV's height above the seabed The changes are due to two reasons: 1. Due to light intensity or other factors, the ROV needs to be adjusted to a suitable position to capture clear images of sea cucumbers. 2. The seabed is not uniformly flat, but has certain undulations. Therefore, we will use continuous time... Divided into discrete sampling periods The ROV's distance from the seabed was recorded during each sampling period. and height when turning .

[0053] in S n Let n be the area swept by the camera at time n, v be the top and bottom edges of this region, and v be the robot speed.

[0054] The formula for calculating the swept area is:

[0055] The total area actually scanned (the total area of ​​the sampling points) is: ; Step 4: Calculate the sea cucumber distribution density and total number of sea cucumbers within the aquaculture area by recording the sea cucumber parameters from multiple sampling areas.

[0056] Given the area of ​​the sea cucumber enclosure, the density of sea cucumbers within the enclosure is... With the total number of sea cucumbers for: ; ; Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications to the technical solutions described in the foregoing embodiments, or equivalent substitutions for some or all of the technical features, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for in-situ counting of sea cucumbers in aquaculture areas. The process includes the following: Step 1: Use the camera mounted on the ROV to collect underwater sea cucumber videos of the detection area; Step 2: Based on the collected underwater sea cucumber videos, detect and track the sea cucumber targets, and calculate the number of sea cucumbers; Step 2 includes the following steps 201 to 203: Step 201: Input the image of the i-th frame in the underwater sea cucumber video information into the sea cucumber target detector based on deep learning to obtain the detection result of the i-th frame; Step 202: Match the detection result with the predicted bounding box obtained by the tracking trajectory prediction algorithm of the sea cucumber trajectory in frame i-1 to obtain the matching result of frame i; update the trajectory status of the sea cucumber according to the matching result. Step 203: Following the methods in steps 201 to 202, the detection results of each frame of the image are obtained sequentially until the entire video processing is completed. Finally, the trajectories of all sea cucumbers are obtained. By analyzing these trajectories, the sea cucumber quantity in the sampling area can be statistically determined. ; In step 201, the network structure of the detector consists of three parts: the backbone network, the Neck connection layer, and the Head detection head. The input image is fed into the backbone network, then into the Neck connection layer, and finally into the Head detection head, and the detection result is finally output. The backbone network consists of three parts: a CBS convolutional module, a C3FA module, and an SPFF module. First, a 640*640*3 image is input into the network, passing through a stack of one CBS convolutional module and four CBS convolutional modules combined with a C3FA module, and finally input to the SPFF module. The CBS module includes a convolutional layer (Conv), a batch normalization layer, and a SiLU activation function layer, encapsulating the combined operations of convolution, batch normalization, and activation functions. The C3FA module takes C1 channels of feature maps as input and outputs C2 channels of feature maps. First, the input passes through a 1x1 convolutional layer, reducing the number of channels to half of C2; then, it passes through N FasterNet Bolck modules; finally, it passes through N FasterNet... The feature map after the Block module is concatenated with the feature map after another 1x1 convolutional layer, resulting in a feature map with C2 channels. Finally, it passes through a 1x1 convolutional layer, maintaining the number of channels at C2, to obtain the output of the C3-FA module, which is then used for learning and convergence. The FasterNet Block module divides the input into two parts. One branch connects two PWConv layers after the PConv layer, and a normalization layer and SiLu activation function are added after each PWConv layer. Finally, these are added to the input features. This method achieves significant network lightweighting. The SPPF module performs three 5×5 max pooling operations on the input feature map, then concatenates the original feature map with the feature maps after different pooling operations, and outputs the result through a CBS module. Finally, three feature matrices of sizes 80×80×256, 40×40×512, and 20×20×512 are input to the connection layer, enabling the fusion of local and global features and enhancing feature expressiveness. The connection layer consists of the Upsample module, the C3FA module, and the CBS module; the Upsample module is a bilinear interpolation upsampling; the connection layer connects the backbone network and the head network; the PANet structure is used, which is a bidirectional feature pyramid network that upsamples and downsamples feature maps at different levels, and then performs feature fusion through cross-layer connections and convolution operations; The detection head generates the final output: The detection head uses a separate head network that separates the classification and regression branches; The network structure uses three output branches. The three predicted feature maps generated by the detection head, with sizes of 80×80×256, 40×40×512 and 20×20×512, correspond to different scales and receptive fields, respectively, to predict targets of different sizes. Step 3: Calculate the total area actually scanned by the current underwater sea cucumber video. Step 3 includes the following steps 301 to 302: Step 301: Calculate the projected area using the following formula: ; At this time, the ROV camera is at point Place, These are the camera's horizontal and vertical half-field-of-view angles, respectively. Let be the area captured by the camera on the seabed at a certain moment, and let be the projected area. , ; Step 302: Calculate the total area of ​​the sampling points based on the ROV's distance from the seabed and the camera lens parameters at each time point; The ROV maintains a constant speed, that is... The ROV's height above the seabed remains unchanged. Changes will occur over continuous time. Divided into discrete sampling periods The ROV's distance from the seabed was recorded during each sampling period. and height when turning ; in S n Let n be the area swept by the camera at time n, v be the top and bottom edges of this region, and v be the robot speed. The formula for calculating the swept area is: ; ; ; The total area actually scanned, i.e., the total area of ​​the sampling points. for: ; Step 4: Calculate the sea cucumber distribution density and total number of sea cucumbers within the aquaculture area by recording the sea cucumber parameters from multiple sampling areas.

2. The in-situ counting method for sea cucumbers in aquaculture areas according to claim 1, characterized in that, Step 202 includes the following steps 2021 to 2024: Step 2021, Detection Box Classification: ByteTrack classifies detection boxes into two categories based on their confidence level: high-scoring boxes are detection boxes with a confidence level higher than a preset threshold, corresponding to clearly visible targets; low-scoring boxes are detection boxes with a confidence level lower than the high-scoring box threshold but higher than another preset threshold, corresponding to occluded or blurred targets; ByteTrack places high-scoring boxes and low-scoring boxes into two sets, Dhigh and Dlow, respectively, for subsequent association operations; Step 2022, High-resolution bounding box association: ByteTrack uses a Kalman filter to predict the position and velocity of each trajectory in the current frame, and then calculates the IOU distance matrix between the high-resolution bounding box set Dhigh and the trajectory set Ttrack; the IOU distance matrix represents the degree of spatial overlap between each high-resolution bounding box and each trajectory, and the larger the value, the more similar they are; ByteTrack uses the Hungarian algorithm to solve this matrix to obtain the optimal matching scheme; Step 2023, Low-level bounding box association: ByteTrack uses the same method to calculate the IOU distance matrix between the low-level bounding box set Dlow and the unmatched trajectory set Tremain, and uses the Hungarian algorithm to solve for the optimal matching scheme; Step 2024, Track Creation, Deletion, and Merging: For high-scoring bounding boxes that fail to match any track, ByteTrack creates a new track and initializes its Kalman filter if its confidence level is higher than a preset threshold. For tracks that fail to match any detection boxes, if they are continuously lost for more than a preset number of frames, they are considered to have disappeared and are deleted from the track set. For multiple tracks that match the same detection box, if they have a large IOU overlap, they are considered to be the same target, assigned the same ID, and merged into one track.

3. The in-situ counting method for sea cucumbers in aquaculture areas according to claim 1, characterized in that, Step 4 calculates the sea cucumber distribution density and total number of sea cucumbers within the aquaculture area by recording the sea cucumber parameters from multiple sampling areas. Given the area of ​​the sea cucumber enclosure, the density of sea cucumbers within the enclosure is... With the total number of sea cucumbers for: 。