A fishing vessel crossing boundary warning method based on deep learning

Through the fishing vessel cross-border early warning method based on deep learning, using target detection models and multi-target trackers, high-precision identification and automatic early warning of fishing vessels are achieved, which solves the problems of high detection cost and poor effect in the existing technology, and improves fishing vessel monitoring. efficiency.

CN117437595BActive Publication Date: 2024-10-18HARBIN AEROSPACE STAR DATA SYST TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311598790.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2024-10-18
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

Existing fishing vessel detection and cross-border warning methods have problems such as high detection costs and poor effectiveness. Especially at night, 24-hour manual monitoring is required, which is prone to missed detections and false detections.

Method used

A deep learning-based fishing vessel cross-border early warning method is adopted. By acquiring fishing vessel data, a target detection model is constructed, and the annotated image data is used for training. The ByteTrack multi-target tracker is used for fishing vessel ID labeling and tracking, and the supervision method is used to delineate the crossing red line. , carry out early warning and quantity statistics for cross-border fishing boats.

Benefits of technology

It achieves 24-hour automatic monitoring and cross-border warning, significantly saves manual verification costs, improves fishing vessel monitoring efficiency, can identify and track fishing vessels with high precision, and reduces missed detections and misdetections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117437595B_ABST
    Figure CN117437595B_ABST
Patent Text Reader

Abstract

The present invention proposes a fishing boat crossing boundary warning method based on deep learning, which belongs to the field of target detection technology. It includes the following steps: S1. Obtain fishing boat data, screen fishing boat images, and construct fishing boat target detection data; S2. Label the fishing boat data, generate image data with labels, and divide the image data with labels into data sets, verification sets, and test sets; S3. Construct a fishing boat target detection optimization model, and use the data set to train the model; S4. Perform target detection on fishing boats in the monitoring area based on the fishing boat target detection optimization model, output classification results and annotation boxes, and perform multi-target tracking on the output classification results; S5. Draw a cross-border red line in the monitoring area, and issue a warning prompt to the fishing boats that cross the cross-border red line. The present invention realizes 24-hour monitoring and cross-border warning of fishing boats in video surveillance, which can save a lot of manual verification costs and effectively improve the monitoring efficiency of fishing boats in video surveillance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a fishing vessel crossing-border early warning method, and in particular to a fishing vessel crossing-border early warning method based on deep learning, and belongs to the technical field of target detection. Background Art

[0002] With the development of the fishing industry, the data of fishing boats is increasing day by day. How to effectively supervise and count the number of fishing boats crossing the boundary in key areas of boundary rivers and rivers has become an urgent problem to be solved. In particular, fishing boats fishing at night and other times need to be able to be counted continuously. Existing fishing boat detection and crossing-boundary warning are mainly carried out through on-site inspection and supervision by law enforcement vessels or manual visual inspection by deploying cameras and radars. The former has low law enforcement efficiency and high labor and economic costs, while the latter requires manual observation 24 hours a day, which is prone to missed detection and false detection. Summary of the invention

[0003] A brief overview of the present invention is provided below in order to provide a basic understanding of certain aspects of the present invention. It should be understood that this overview is not an exhaustive overview of the present invention. It is not intended to identify key or important parts of the present invention, nor is it intended to limit the scope of the present invention. Its purpose is merely to present certain concepts in a simplified form as a prelude to a more detailed description discussed later.

[0004] In view of this, in order to solve the technical problems of high detection cost and poor effect in the prior art, the present invention provides a fishing vessel crossing boundary warning method based on deep learning.

[0005] Solution 1: A fishing vessel crossing boundary warning method based on deep learning, including the following steps:

[0006] S1. Obtain fishing boat data, filter fishing boat images, and construct fishing boat target detection data;

[0007] S2. Annotate the fishing boat data to generate labeled image data, and divide the labeled image data into a data set, a verification set, and a test set;

[0008] S3. Build a fishing boat target detection optimization model and train the model using the dataset;

[0009] The optimization model for fishing boat target detection includes input end, backbone network, neck network and detection layer;

[0010] The backbone network consists of four structures: Focus module, CBS module, C2fGC module, and SSP module;

[0011] The C2fGC module includes the GCBlock module, the Resunit module, and the Concat module;

[0012] S4. Detect fishing boats in the monitoring area based on the fishing boat target detection optimization model, output classification results and annotation boxes, and perform multi-target tracking on the output classification results;

[0013] S5. Draw a red line in the monitoring area and issue early warnings to fishing vessels that cross the red line.

[0014] Preferably, the fishing boat data is annotated to generate image data with labels, and the method of dividing the image data with labels into a data set, a verification set and a test set is:

[0015] Use the LabelImg image annotation tool to annotate images that have been rotated, segmented, enlarged, or translated. The annotated images and labels are stored in two directories, images and labels.

[0016] The ratio of data set, validation set and test set can be divided into 6:2:2.

[0017] Preferably, the image input format at the input end is 640×640×3.

[0018] Preferably, the method of training the model using the data set is: defining the training parameters and the number of training rounds, performing accuracy verification using the validation set after the loss function, i.e., back-propagation gradient calculation.

[0019] Preferably, based on the fishing boat target detection optimization model, target detection is performed on the fishing boats in the monitoring area, and the classification results and annotation boxes are output. The method for performing multi-target tracking on the output classification results is:

[0020] S41. Obtain the detection frame and the corresponding detection score through the detector, and classify the detection frame. If the score is higher than T_high, the detection frame is classified into a high confidence group. If the score is lower than T_high and higher than T_low, the detection frame is classified into a low confidence group.

[0021] S42. retain the high confidence detection frame that was not matched to the trajectory for the first time and the trajectory that was not matched to the detection frame;

[0022] S43. Associating the high-confidence detection boxes that are not matched to the track and the track that is not matched to the detection box, retaining the track that is not matched to the bounding box for the second time, and deleting the bounding boxes in the low-confidence bounding boxes that do not find the corresponding track after the second matching, and the bounding boxes are considered to be the background that does not contain any object;

[0023] S44. Save the high confidence bounding box that is not matched to the corresponding track as a newly appeared track.

[0024] Preferably, the method further comprises: S6. counting fishing vessels that cross the red line of transgression, the method being:

[0025] S61. Use the Supervision method to set the line crossing detection position in the video, LINE_START sets the line starting point, LINE_END sets the line end point, and visualizes the line crossing;

[0026] S62. Obtain the ID of the fishing vessel identified by ByteTrack, and set the fishing vessel with a confidence level of 0.3 to be displayed;

[0027] S63. Prompt the ID of the fishing boats that cross the set line and count the number;

[0028] S64. Store the out-of-bounds data, capture the video of the fishing boat that has crossed the boundary, and store it.

[0029] Solution 2: An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the steps of a deep learning-based fishing vessel crossing boundary warning method described in Solution 1.

[0030] Solution three: A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a deep learning-based fishing vessel crossing boundary warning method as described in Solution one.

[0031] The beneficial effects of the present invention are as follows: The present invention obtains visible light and infrared fishing boat data, labels the fishing boats, improves the existing model, uses the labeled fishing boat data to train the improved model, and the training result model is used for fishing boat target detection. The ByteTrack multi-target tracker is used to mark and track the fishing boat ID, and the supervision method is used to draw the boundary line, and the crossing fishing boats are warned and counted. This method can perform high-precision identification and detection of local unique fishing boats, and at the same time can track the fishing boats in the camera monitoring video, and automatically warn of the crossing of the fishing boat. The deep learning method can monitor the fishing boats in the video surveillance and warn of crossing the boundary 24 hours a day, which can save a lot of manual verification costs and effectively improve the monitoring efficiency of fishing boats in video surveillance. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0033] Figure 1 This is a flowchart of a fishing vessel crossing boundary warning method based on deep learning;

[0034] Figure 2 Schematic diagram of the optimized model structure for fishing boat target detection;

[0035] Figure 3 It is a schematic diagram of the C2fGC module structure;

[0036] Figure 4 This is a schematic diagram of the GCBlock module structure. DETAILED DESCRIPTION

[0037] In order to make the technical solutions and advantages of the embodiments of the present invention more clearly understood, the exemplary embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0038] Example 1: Reference Figure 1-Figure 4 This embodiment describes a fishing vessel crossing boundary warning method based on deep learning, comprising the following steps:

[0039] S1. Obtain fishing boat data, filter fishing boat images, and construct fishing boat target detection data;

[0040] Obtain fishing boat data: Obtain fishing boat image data from the COCO dataset, VOC dataset, and images; filter out fishing boat data from the COCO dataset and VOC dataset, and extract image data with fishing boats from video surveillance; fishing boat data includes visible light image data and infrared image data;

[0041] Rotate, segment, zoom in or translate the fishing boat images to expand the sample size of the dataset;

[0042] S2. Annotate the fishing boat data to generate labeled image data, and divide the labeled image data into a data set, a verification set, and a test set;

[0043] Use the LabelImg image annotation tool to annotate images that have been rotated, segmented, enlarged, or translated. The annotated images and labels are stored in two directories, images and labels. Divide the images into data sets, validation sets, and test sets. The division ratio can be 6:2:2.

[0044] The present invention adopts a deep learning target detection model to improve small targets for fishing boat detection, specifically:

[0045] S3. Build a fishing boat target detection optimization model and train the model using the dataset;

[0046] The optimization model for fishing boat target detection includes input end, backbone network, neck network and detection layer;

[0047] The input end performs Mosaic data enhancement, adaptive anchor box calculation, and adaptive image scaling operations; the image input format at the input end is 640×640×3;

[0048] The backbone network consists of four structures: Focus module, CBS module, C2fGC module, and SSP module;

[0049] The Focus module performs a slice operation on the image; the CBS module includes a Conv convolution layer, a batch normalization module, and a SiLu activation function; wherein the Conv convolution layer performs a convolution operation, and the batch normalization module performs a batch normalization process;

[0050] The C2fGC module includes the GCBlock module, the Resunit module and the Concat module; the C2fGC module structure refers to Figure 3 As shown in the figure, the C2fGC module can improve the perceptual information transmission efficiency of the model; the present invention replaces the convolution block in the traditional model with the GCBlock module, divides the convolution result, and then stacks it through the GCBlock, splices the results of each layer of convolution together and then convolves again;

[0051] GCBlock module structure reference Figure 4 The GCBlock module combines the ideas of the SimplifiedNLblock module and the SEblock module. The feature map is input into the context modeling module (global attention pooling module), and the input is passed through a 1*1 convolution W_k and then a softmax function to obtain the attention weight. The weight is multiplied by the original input so that the weight affects the input, thereby obtaining the global feature. In order to obtain the lightweight advantage of the SE block, the obtained global feature is input into the two-layer Bottleneck convolution, and a BN layer is added before the ReLU activation function to reduce the optimization difficulty, and regularization is introduced in the BN layer to increase the generalization ability of the model.

[0052] The neck network consists of the FPN feature pyramid and the PAN bottom-up feature enhancement algorithm;

[0053] The detection layer performs 1×1 convolution operation on the three-layer feature network generated by the neck network, and outputs three sets of feature maps. The feature results are calculated by loss function and non-maximum suppression through CIOU_LOSS+DIOU_nms, and the classification results and feature boxes are output.

[0054] CIOU_LOSS loss function:

[0055]

[0056] Among them, IOU is the intersection-over-union ratio, Distance_2 2 Represents the Euclidean distance between the center point of the predicted box and the true box, Distance_C 2 It represents the diagonal distance of the minimum enclosed area that can contain both the predicted box and the true box. v is a parameter to measure the consistency of the aspect ratio, which is defined as:

[0057]

[0058] Among them, w p 、h p and w gt 、h gt Represent the height, width of the predicted box and the height, width of the real box respectively;

[0059] The method of using the data set to train the model is: define the training parameters and the number of training rounds, calculate the loss function, i.e., back propagation gradient, use the verification set to verify the accuracy, and finally the model converges to obtain the small target fishing boat detection model and the weight file in the pt format.

[0060] S4. Based on the fishing boat target detection optimization model, target detection is performed on the fishing boats in the monitoring area, and the classification results and annotation boxes are output, and multi-target tracking is performed on the output classification results; the present invention uses ByteTrack multi-target tracker to perform ID annotation on the classification results and annotation boxes, and removes the prediction boxes and IDs with a threshold value lower than 0.3 to perform multi-fishing boat target tracking monitoring. The ByteTrack method for multi-target tracking of fishing boats is as follows:

[0061] S41. Obtain the detection frame and the corresponding detection score through the detector, and classify the detection frame. If the score is higher than T_high, the detection frame is classified into a high confidence group. If the score is lower than T_high and higher than T_low, the detection frame is classified into a low confidence group.

[0062] In the matching process, the similarity between the detection box and the Kalman filter estimation result is used, and the IoU or Re-ID feature distance is used as the similarity metric, and then the Hungarian algorithm is used for matching based on the similarity, specifically: S42. The high-confidence detection box that is not matched to the trajectory for the first time and the trajectory that is not matched to the detection box are retained;

[0063] S43. Associating the high-confidence detection boxes that are not matched to the track and the track that is not matched to the detection box, retaining the track that is not matched to the bounding box for the second time, and deleting the bounding boxes in the low-confidence bounding boxes that do not find the corresponding track after the second matching, and the bounding boxes are considered to be the background that does not contain any object;

[0064] S44. Save the high confidence bounding box that is not matched to the corresponding track as a newly appeared track.

[0065] Using the Supervision method, a crossing red line is set in continuous video monitoring, and early warning prompts and quantity statistics are issued to fishing boats that cross the set red line, specifically: S5. A crossing red line is drawn in the monitoring area, and early warning prompts are issued to fishing boats that cross the crossing red line;

[0066] S6. Count fishing vessels that cross the red line;

[0067] S61. Use the Supervision method to set the line crossing detection position in the video, LINE_START sets the line starting point, LINE_END sets the line end point, and visualizes the line crossing;

[0068] S62. Obtain the ID of the fishing vessel identified by ByteTrack, and set the fishing vessel with a confidence level of 0.3 to be displayed;

[0069] S63. Prompt the ID of the fishing boats that cross the set line and count the number;

[0070] S64. Store the out-of-bounds data, capture the video of the fishing boat that has crossed the boundary, and store it.

[0071] In order to evaluate the accuracy of the present invention, the present invention further comprises: S7. evaluating the fishing boat target detection result, the method is:

[0072] The intersection-over-union ratio is used to determine whether the position of the prediction box is accurate:

[0073]

[0074] In the formula, B p is the prediction box, B gt is the annotation box. According to the relationship with the annotation box, a prediction box is divided into one of the following four categories:

[0075] TP:{Conf>P thresh And IOU>IOU thresh}

[0076] FP:{Conf>P thresh And IOU<IOU thresh}

[0077] FN:{Conf<P thresh And IOU>IOU thresh}

[0078] TN:{Conf<P thresh And IOU<IOU thresh}

[0079] In the formula, IOU thresh is a constant between 0 and 1, IOU thresh Manually specified; for a specific category, the number of four prediction boxes TP, FP, FN, and TN constitutes a confusion matrix (Confusion Matrix); refer to Table 1 Confusion Matrix:

[0080] Table 1 Confusion matrix table

[0081] Number of prediction boxes Predicted to be a fishing vessel Predicted to be other Real fishing boat Number of TP prediction boxes Number of FN prediction boxes True for other categories Number of FP prediction boxes Number of TN prediction boxes

[0082] Precision refers to the proportion of correct predictions in all prediction boxes:

[0083]

[0084] Recall refers to the proportion of all annotation boxes that are correctly predicted:

[0085]

[0086] Average Precision (AP): thresh The threshold varies from 0 to 1, and each P thresh The Precision and Recall corresponding to the threshold are plotted as the PR performance curve of a certain category, and the area enclosed is the AP of the category. AP@0.5 is taken as IOU thresh When the AP value is 0.5, mAP@0.5:0.95 is the IOU thresh The average value of AP when taking ten numbers increasing from 0.5 to 0.95 with a step size of 0.05.

[0087]

[0088] mAP@0.5=AP i (IOU thresh =0.5)

[0089] mAP@0.5:0.95=∑ j AP i (IOU thresh =j)

[0090] Taking IOU, Precision, Recall, AP, mAP@0.5, and mAP@0.5:0.95 as performance indicators, based on the improved YOLOv8 detection model, the accuracy of small target detection of fishing boats can be improved by more than 5%.

[0091] Embodiment 2: The computer device of the present invention may be a device including a processor and a memory, such as a single-chip microcomputer including a central processing unit. Furthermore, the processor is used to implement the steps of the above-mentioned method for warning fishing boat crossing the boundary based on deep learning when executing the computer program stored in the memory.

[0092] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0093] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0094] Embodiment 3: Computer readable storage medium embodiment.

[0095] The computer-readable storage medium of the present invention can be any form of storage medium that can be read by the processor of a computer device, including but not limited to non-volatile memory, volatile memory, ferroelectric memory, etc. The computer-readable storage medium stores a computer program. When the processor of the computer device reads and executes the computer program stored in the memory, the steps of the above-mentioned deep learning-based fishing vessel crossing warning method can be implemented.

[0096] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer readable media do not include electric carrier signals and telecommunication signals.

[0097] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.

Claims

1. A fishing vessel crossing boundary warning method based on deep learning, It is characterized in that The following steps are involved: S1. Obtain fishing boat data, filter fishing boat images, and construct fishing boat target detection data; S2. Annotate the fishing boat data to generate labeled image data, and divide the labeled image data into a data set, a verification set, and a test set; S3. Build a fishing boat target detection optimization model and train the model using the dataset; The optimization model for fishing boat target detection includes input end, backbone network, neck network and detection layer; The backbone network consists of four structures: Focus module, CBS module, C2fGC module, and SSP module; The C2fGC module includes the GCBlock module, the Resunit module, and the Concat module. The GCBlock module combines the ideas of the Simplified NL block module and the SE block module to input the feature map into the context modeling module, passes the input through a 1*1 convolution W_k, and then obtains the attention weight through a softmax function. The weight is multiplied by the original input to make the weight affect the input and obtain the global feature. S4. Based on the fishing boat target detection optimization model, target detection is performed on the fishing boats in the monitoring area, classification results and annotation boxes are output, and multi-target tracking is performed on the output classification results, the method is: S41. Obtain the detection frame and the corresponding detection score through the detector, and classify the detection frame. If the score is higher than T_high, the detection frame is classified into a high confidence group. If the score is lower than T_high and higher than T_low, the detection frame is classified into a low confidence group. S42. retain the high confidence detection frame that was not matched to the trajectory for the first time and the trajectory that was not matched to the detection frame; S43. Associating the high-confidence detection boxes that are not matched to the track and the track that is not matched to the detection box, retaining the track that is not matched to the bounding box for the second time, and deleting the bounding boxes in the low-confidence bounding boxes that do not find the corresponding track after the second matching, and the bounding boxes are considered to be the background that does not contain any object; S44. saving the high confidence bounding box that is not matched to the corresponding track as a newly appeared track; S5. Draw a red line in the monitoring area and issue early warnings to fishing vessels that cross the red line; S6. Count fishing vessels that cross the red line by: S61. Use the Supervision method to set the line crossing detection position in the video, LINE_START sets the line starting point, LINE_END sets the line end point, and visualizes the line crossing; S62. Obtain the ID of the fishing vessel identified by ByteTrack, and set the fishing vessel with a confidence level of 0.3 to be displayed; S63. Prompt the ID of the fishing boats that cross the set line and count the number; S64. Store the out-of-bounds data, capture the video of the fishing boat that has crossed the boundary, and store it.

2. According to claim 1, a fishing vessel crossing boundary warning method based on deep learning, It is characterized in that The fishing boat data is annotated to generate labeled image data. The method of dividing the labeled image data into a data set, a validation set, and a test set is as follows: Use the LabelImg image annotation tool to annotate images that have been rotated, segmented, enlarged, or translated. The annotated images and labels are stored in two directories, images and labels. The ratio of data set, validation set and test set is 6:2:

2.

3. According to the deep learning-based fishing vessel crossing boundary warning method of claim 1, It is characterized in that The image input format at the input end is 640×640×3.

4. According to claim 1, a fishing vessel crossing boundary warning method based on deep learning, It is characterized in that The method of training the model using the data set is: define the training parameters and the number of training rounds, calculate the loss function, i.e., back-propagation gradient, and use the validation set for accuracy verification.

5. An electronic device, It is characterized in that It includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of a deep learning-based fishing vessel crossing boundary warning method as described in any one of claims 1 to 4 when executing the computer program.

6. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method for early warning of fishing vessel crossing the boundary based on deep learning as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Pedestrian small target detection method in video monitoring based on deep learning

    CN115240119A

  • Synchronous localization and mapping (SLAM) algorithm, terminal and storage medium

    CN116563478A