Fish behavior detection method and device, electronic equipment and storage medium

By building a multi-task fish behavior detection model, combining target detection, pose estimation and semantic segmentation, and using an auxiliary heat map learning module and a feature map pyramid network, the problem of poor recognition results of lightweight backbone networks in fish behavior recognition is solved. problem, achieving higher recognition accuracy and learning efficiency, and is suitable for health monitoring and ecological protection of aquaculture.

CN118570464APending Publication Date: 2024-08-30BEIJING RES CENT FOR INFORMATION TECH & AGRI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410597587.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing technology lacks a unified model structure and learning method in fish behavior recognition, resulting in poor recognition results of multi-task fish recognition methods based on lightweight backbone networks, especially in aquaculture, which is difficult to meet the requirements of fish behavior analysis. need.

Method used

Construct a multi-task fish behavior detection model, combine the three tasks of target detection, pose estimation and semantic segmentation, perform multi-scale fusion through the auxiliary heat map learning module and feature map pyramid network, use Cross RLE Loss for learning regression, and guide the model to Gaussian Distribution learning to improve recognition accuracy.

Benefits of technology

Through unified multi-task learning, the accuracy and learning efficiency of fish behavior recognition are improved, and the prediction accuracy of fish behavior detection is improved. It is suitable for health status monitoring and ecological environment protection in aquaculture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570464A
    Figure CN118570464A
Patent Text Reader

Abstract

The invention provides a fish behavior detection method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a multi-task fish behavior data set; constructing a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used for realizing three tasks of target detection, attitude estimation and semantic segmentation; training the multi-task fish behavior detection model on the basis of labeling information of fish target detection, attitude estimation and semantic segmentation contained in the multi-task fish behavior data set; the trained multi-task fish behavior detection model is used for recognizing fish behaviors, three results of fish target detection, semantic segmentation and posture estimation are obtained and output, and the problem that a multi-task fish recognition method based on a lightweight backbone network lacks a unified model structure and a learning mode can be solved; and the accuracy of fish behavior identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fish behavior detection, and in particular to a fish behavior detection method, device, electronic equipment and storage medium. Background Art

[0002] In the study of fish behavior recognition, the automatic recognition of live fish behavior is a challenging research problem in aquaculture because it requires the detection and positioning of the fish body. However, the research of related technologies mainly focuses on extracting conventional low-level features, such as color, texture, contour, texture and shape; on the other hand, the research of related deep learning mostly adopts single task models, such as fish target detection, posture estimation and semantic segmentation, and there are obvious differences in the structure between different tasks, lacking a unified learning method, and cannot meet the needs of aquaculture for fish behavior analysis; finally, the models of multi-visual tasks of related technologies (such as LSNet, PointSetNet and CenterNet) usually use backbone networks with strong learning ability, such as ResNet-101+DCN, R2-101-DCN, etc., but perform poorly on lightweight backbones (such as Rednet18, 26). Different visual tasks are not fully adapted in the loss function design, and the recognition effect is poor. Summary of the invention

[0003] The present invention provides a fish behavior detection method, device, electronic device and storage medium, which can solve the problem of lack of unified model structure and learning method in a multi-task fish recognition method based on a lightweight backbone network, and improve the accuracy of fish behavior recognition.

[0004] The present invention provides a fish behavior detection method, comprising:

[0005] Get a multi-task fish behavior dataset;

[0006] Constructing a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used to realize three tasks: target detection, posture estimation and semantic segmentation;

[0007] Based on the annotation information of fish target detection, posture estimation and semantic segmentation contained in the multi-task fish behavior dataset, the multi-task fish behavior detection model is trained;

[0008] The trained multi-task fish behavior detection model is used to identify fish behavior and obtain three output results: fish target detection, semantic segmentation, and posture estimation.

[0009] According to the fish behavior detection method provided by the present invention, the construction of a multi-task fish behavior detection model includes:

[0010] Extracting target feature information of various scales corresponding to three tasks, namely, target detection, posture estimation and semantic segmentation, from the multi-task fish behavior dataset;

[0011] Inputting the target feature information of the various scales into an auxiliary heat map learning module so that the vector learning direction of the target feature information is close to the Gaussian distribution;

[0012] The target feature information is input into the feature graph pyramid network FPN for multi-scale fusion to obtain multiple fused feature information;

[0013] Input the multiple fused feature information into the Cascade Location-Sensitive head network to extract the center points and corresponding vectors corresponding to the three tasks of target detection, pose estimation and semantic segmentation respectively;

[0014] Based on the center points and corresponding vectors corresponding to the three tasks of target detection, posture estimation and semantic segmentation, Cross RLE Loss is used for learning regression. Through local and global training methods, the multi-task fish behavior detection model is guided to learn in the Gaussian direction, thereby completing the construction of the multi-task fish behavior detection model.

[0015] According to the fish behavior detection method provided by the present invention, the target feature information of various scales is input into the auxiliary heat map learning module so that the vector learning direction of the target feature information is close to the Gaussian distribution, including:

[0016] The target feature information of various scales is reorganized into a fixed-size heatmap Gaussian map, and the Heatmap-based method is used to perform intermediate process supervision on the multi-task learning backbone network, requiring the backbone network to learn Gaussian probability distribution and using Laplace distribution as the loss function for model learning.

[0017] According to the fish behavior detection method provided by the present invention, the step of obtaining a multi-task fish behavior dataset comprises:

[0018] Get fish pictures;

[0019] Annotating the fish picture with object information, wherein the object information includes target coordinate position, fish posture feature key points and fish feature mask;

[0020] Select images containing target detection, posture estimation and semantic segmentation from the annotated images, and divide them into training sets and test sets according to a specific ratio as the multi-task fish behavior dataset.

[0021] According to the fish behavior detection method provided by the present invention, the method further comprises:

[0022] The short side of the picture in the multi-task fish behavior dataset is adjusted to a first preset value, the long side is limited to a second preset value, and image flip enhancement is performed.

[0023] According to the fish behavior detection method provided by the present invention, the step of obtaining fish pictures comprises:

[0024] Use a multi-task fish behavior recognition device to obtain fish videos;

[0025] Converting the fish video into a fish picture;

[0026] Wherein, the multi-task fish behavior recognition device includes: underwater camera equipment, light source, light intensity transmitter, memory, processor;

[0027] The underwater camera device is used to collect fish behavior videos in real time under the control of the processor, and extract the fish behavior videos as video streams;

[0028] The light source is used to provide supplementary light for the waterproof camera device;

[0029] The light intensity transmitter is used to sense the light intensity of the environment and transmit the light intensity information to the processor;

[0030] The processor is used to control the light source switch and the light intensity according to the light intensity information.

[0031] The present invention also provides a fish behavior detection device, comprising:

[0032] Acquisition module, used to acquire multi-task fish behavior dataset;

[0033] A construction module, used to construct a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used to implement three tasks: target detection, posture estimation, and semantic segmentation;

[0034] A training module, used for training the multi-task fish behavior detection model based on the annotation information of fish target detection, posture estimation and semantic segmentation in the multi-task fish behavior dataset;

[0035] The behavior detection module is used to identify fish behavior using the trained multi-task fish behavior detection model, and obtain three result outputs: fish target detection, semantic segmentation, and posture estimation.

[0036] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned fish behavior detection methods is implemented.

[0037] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the fish behavior detection method as described in any one of the above is implemented.

[0038] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the fish behavior detection method as described above is implemented.

[0039] The present invention provides a fish behavior detection method, device, electronic device and storage medium, which use a multi-task fish behavior detection model, which mainly includes three tasks: target detection, posture estimation and semantic segmentation. By unifying the learning of multiple tasks of fish target detection, posture estimation and semantic segmentation, the behavior of fish schools is detected and identified. Compared with the single training model, multi-task learning can utilize the commonalities and differences between each task, improve the learning efficiency and prediction accuracy of the specific task model, and thus improve the accuracy of fish behavior recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a schematic diagram of the flow of the fish behavior detection method provided by the present invention;

[0042] Figure 2 It is a schematic diagram of the process of constructing a multi-task fish behavior detection model provided by the present invention;

[0043] Figure 3 It is a schematic diagram of the Cascade Location-Sensitive head network structure provided by the present invention;

[0044] Figure 4 It is a structural schematic diagram of the fish behavior detection device provided by the present invention;

[0045] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] First, the following contents are introduced:

[0048] In the process of factory farming, common fish behaviors include dense aggregation, competitive feeding and responding to human intervention. On the other hand, fish are easily affected by physiological, psychological or environmental changes, and show a variety of abnormal behavioral states such as hunger, cannibalism, and illness.

[0049] Therefore, monitoring and identifying fish behaviors such as competitive feeding and floating heads will help to achieve real-time monitoring of their health status and provide farmers with key information and tools to optimize farming management strategies, improve production efficiency and ensure fish welfare. At the same time, by observing and analyzing fish behavior, we can also better protect water bodies and the ecological environment, achieve an ecologically healthy farming model, and promote the sustainable development of aquaculture.

[0050] In recent years, machine vision has been widely used in image classification, target recognition, pose estimation, and semantic segmentation due to its wide applicability and the advantage of obtaining reliable data, combined with specific image preprocessing and enhancement algorithms.

[0051] In related technologies, multi-task models have been applied in target detection, instance segmentation, and human pose estimation. However, they rely on powerful backbone networks and large-size feature inputs to improve model performance. At the same time, they lack a unified structure and learning method, making it difficult to meet the needs of aquaculture for fish behavior analysis.

[0052] In view of the above-mentioned defects, the present invention provides a fish behavior detection method, device, electronic device and storage medium, which can solve the problem of lack of unified model structure and learning method in the multi-task fish identification method based on lightweight backbone network, and improve the accuracy of fish behavior identification.

[0053] Combine the following Figure 1 The fish behavior detection method provided by the present invention is described.

[0054] Figure 1 : is a flow chart of the fish behavior detection method provided by the present invention, such as Figure 1 As shown, the following steps are included:

[0055] Step 100, obtaining a multi-task fish behavior dataset;

[0056] The core idea of ​​the present invention is to construct a multi-task fish behavior detection model, which mainly includes three tasks: target detection, posture estimation and semantic segmentation. By unifying the learning of multiple tasks of fish target detection, posture estimation and semantic segmentation, the behavior of fish schools can be detected and identified.

[0057] In order to train the multi-task fish behavior detection model, it is first necessary to obtain a multi-task fish behavior dataset.

[0058] Optionally, the multi-task fish behavior dataset may include various fish pictures. It is understandable that the fish pictures may contain annotation information for fish target detection, posture estimation and semantic segmentation to train the multi-task fish behavior detection model.

[0059] Optionally, the present invention does not limit the method for obtaining the multi-task fish behavior dataset, and the dataset can be collected from the Internet or photographed using a photographing device.

[0060] Step 110, constructing a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used to implement three tasks: target detection, posture estimation, and semantic segmentation;

[0061] Optionally, a multi-task fish behavior detection model can be constructed by combining the fish target features, segmentation features and posture information features of complex underwater environments, which mainly includes three tasks: target detection, posture estimation and semantic segmentation.

[0062] Step 120, training the multi-task fish behavior detection model based on the annotation information of fish target detection, posture estimation and semantic segmentation in the multi-task fish behavior dataset;

[0063] Optionally, after constructing the multi-task fish behavior detection model, the annotation information containing fish target detection, posture estimation and semantic segmentation in the multi-task fish behavior dataset can be used as the input of the multi-task fish behavior detection model, the initial parameters of the network are set, and the multi-task fish behavior detection model is trained using a stochastic gradient descent (SGD) optimizer to obtain a trained multi-task fish behavior detection model.

[0064] Step 130, using the trained multi-task fish behavior detection model to identify fish behavior, and obtain three result outputs: fish target detection, semantic segmentation, and posture estimation.

[0065] Optionally, after the multi-task fish behavior detection model is trained, it can be used to perform multi-task detection and recognition of fish school behavior, and ultimately obtain three result outputs: fish target detection, semantic segmentation, and posture estimation.

[0066] The fish behavior detection method provided by the present invention uses a multi-task fish behavior detection model, which mainly includes three tasks: target detection, posture estimation and semantic segmentation. By unifying the learning of multiple tasks of fish target detection, posture estimation and semantic segmentation, the behavior of fish schools is detected and identified. Compared with the single training model, multi-task learning can utilize the commonalities and differences between each task, improve the learning efficiency and prediction accuracy of the specific task model, thereby improving the accuracy of fish behavior recognition.

[0067] Optionally, the constructing of a multi-task fish behavior detection model includes:

[0068] Extracting target feature information of various scales corresponding to three tasks, namely, target detection, posture estimation and semantic segmentation, from the multi-task fish behavior dataset;

[0069] Inputting the target feature information of the various scales into a key point estimation module so that the vector learning direction of the target feature information is close to the Gaussian distribution;

[0070] The target feature information is input into the feature graph pyramid network FPN for multi-scale fusion to obtain multiple fused feature information;

[0071] Input the multiple fused feature information into the Cascade Location-Sensitive head network to extract the center points and corresponding vectors corresponding to the three tasks of target detection, pose estimation and semantic segmentation respectively;

[0072] Based on the center points and corresponding vectors corresponding to the three tasks of target detection, posture estimation and semantic segmentation, Cross RLE Loss is used for learning regression. Through local and global training methods, the multi-task fish behavior detection model is guided to learn in the Gaussian direction, thereby completing the construction of the multi-task fish behavior detection model.

[0073] Figure 2 FIG. 1 is a flow chart of constructing a multi-task fish behavior detection model provided by the present invention. Figure 2 As shown, in some embodiments, the method for constructing a multi-task fish behavior detection model includes the following steps:

[0074] 1a. Backbone network, such as ResNeSt, etc., uses three information images including target detection, posture estimation and semantic segmentation in the multi-task fish behavior dataset as the input of the recognition network, extracts the target feature information required for the three tasks of target detection, posture estimation and semantic segmentation respectively, and outputs target feature information of multiple scales;

[0075] In one embodiment of the present invention, target feature information of the following four scales is output respectively: 640×360×128, 320×180×256, 160×90×512 and 80×45×1024.

[0076] 2a. Input the target feature information of various scales into the key point estimation module to guide the intermediate learning distribution, so that the learning direction of the target feature information vector is close to the Gaussian distribution, and at the same time input it into the Feature Pyramid Networks (FPN) for multi-scale fusion, and obtain multiple fused feature information;

[0077] 3a. Input multiple fused feature information into the Cascade Location-Sensitive head network and use the Deformable Convolution Network (DCN) to extract the center points and corresponding vectors corresponding to the three tasks of target detection, pose estimation and semantic segmentation.

[0078] Among them, the network structure of Cascade Location-Sensitive head is:

[0079] The Cascade Location-Sensitive head network accepts two supervision sources: positioning and classification (Class field).

[0080] Figure 3 : is a schematic diagram of the Cascade Location-Sensitive head network structure provided by the present invention, such as Figure 3 As shown in the figure, more anchor points are assigned to each object by using the Adaptive Training Sample Selection (ATSS) allocator, and DCN is used to extract features on the predicted landmarks; Class field mainly predicts category scores through Fcolloss classification. Positions with high predicted scores represent positions that need to be learned and extracted, while positions with scores below the threshold will not be extracted, thus providing Vectorfield with a hollowing weight W to select important feature information parts; Vectorfield module uses DCN to extract features and learn to predict the offset vector f. At this time, f and the weight w are combined to obtain the hollowed-out information feature that records the prediction of a center point Anchor plus the corresponding vector V.

[0081] The structure of the Cascade Location-Sensitive head is the key to converting the target detection, instance segmentation, and pose estimation tasks into a unified learning prediction of a center point Anchor plus the corresponding vector V, rather than independent regression prediction problems with different methods.

[0082] 4a. Add a central point of the same task obtained in step 3a to the corresponding vector and use Cross RLELoss for learning regression. Through local and global training methods, guide the overall model to learn in the Gaussian direction, and finally enable the multi-task fish behavior detection model to realize target detection, instance segmentation and posture estimation of fish behavior detection.

[0083] Specifically, the fully connected layer fc is used to generate u and sigma as input to the Cross RLE loss. The only difference between the Cascade Location-Sensitive head in different tasks is the number of corresponding vectors V, which is 4 in object detection, 36 in instance segmentation, and 17 in human pose estimation.

[0084] Cross RLE loss can be defined as:

[0085]

[0086] The calculation formula of r,0 is:

[0087]

[0088]

[0089] In formula (1), the first term Q(F) represents a simple Gaussian distribution, and the second term is called the residual log-likelihood, the third term s is a constant, in formula (2) and formula (3), (p n,x -p 0,x ) - , (p n,x -p 0,x ) + , (p n,y -p 0,y ) - , (p n,y -p 0,y ) + Represents the vector learning of the corresponding vector V in the four quadrants.

[0090] The present invention proposes Cross RLE loss, which, by combining with classification supervision, hollows out unimportant feature information and reduces the doubled computational effort caused by large-size features while maintaining the model performance improvement brought by the large size. This method can unify the learning methods between multiple tasks.

[0091] Optionally, inputting the target feature information of the various scales into the auxiliary heat map learning module so that the vector learning direction of the target feature information approaches the Gaussian distribution includes:

[0092] The target feature information of various scales is reorganized into a fixed-size heatmap Gaussian map, and the Heatmap-based method is used to perform intermediate process supervision on the multi-task learning backbone network, requiring the backbone network to learn Gaussian probability distribution and using Laplace distribution as the loss function for model learning.

[0093] In order to solve the problem of poor learning ability of lightweight backbone in multi-task fish behavior recognition model, the present invention proposes an auxiliary heat map learning module. During model learning and training, the characteristics of heat map are used to constrain it to guide the backbone network to learn in the direction of Gaussian probability.

[0094] Since the auxiliary heat map learning module is an auxiliary module, it can be removed during testing, thereby achieving parameter-free improvement.

[0095] The auxiliary heat map learning module proposed in the present invention is composed of a Gaussian heat map module and a Laplace distribution, i.e., an L1 loss function.

[0096] After the target feature information of various scales is input into the auxiliary heat map learning module, it is reorganized into a heat map Gaussian map of a fixed size. The Heatmap-based method is used to perform intermediate process supervision on the multi-task learning backbone network, requiring the backbone network to learn Gaussian probability distribution.

[0097] In addition, the probability distribution of key points is actually sparse, so the Laplace distribution, i.e. L1, is used as the loss function for model learning.

[0098] The auxiliary heatmap learning module can be defined as:

[0099]

[0100] Where X is the input image, F(x) is the feature information extracted by the backbone network, G(·) is the Gaussian heat map conversion function, It is the true Gaussian heat map of each task. When there are multiple tasks, the human posture key points are used as the true Gaussian heat map by default.

[0101] Optionally, obtaining a multi-task fish behavior dataset comprises:

[0102] Get fish pictures;

[0103] Annotating the fish picture with object information, wherein the object information includes target coordinate position, fish posture feature key points and fish feature mask;

[0104] Select images containing target detection, posture estimation and semantic segmentation from the annotated images, and divide them into training sets and test sets according to a specific ratio as the multi-task fish behavior dataset.

[0105] In some embodiments, the method for obtaining a multi-task fish behavior dataset comprises the following steps:

[0106] 1b. Obtain fish images and annotate them with object information, including target coordinate position, fish posture feature key points, and fish feature mask. In addition, 5 fish target labels, 12 fish posture key point labels, and 5 fish feature mask labels are divided according to the fish characteristics of different tasks.

[0107] 2b. Extract the fish feature annotation information and corresponding pictures containing target detection, posture estimation and semantic segmentation from the annotation file. At the same time, redistribute the training set and test set according to a certain ratio; finally, obtain the multi-task fish behavior dataset.

[0108] In one embodiment of the present invention, the training set and the test set are reallocated in a ratio of 0.85:0.15, and finally a multi-task fish behavior dataset is obtained.

[0109] Optionally, the method further comprises:

[0110] The short side of the picture in the multi-task fish behavior dataset is adjusted to a first preset value, the long side is limited to a second preset value, and image flip enhancement is performed.

[0111] In one embodiment of the present invention, on a 64-bit Ubuntu 18.04 operating system platform, a multi-task fish behavior detection model is constructed based on the PyTorch-GPU 1.8.0 deep learning framework and using the Python 3.7.8 scripting language, and an NVIDIA GTX 3090 GPU is used to complete the model training. For all comparison models and the model in this article, the batch size on both GPUs is two images. The initial learning rate is set to 0.0002, the number of training rounds is unified to 100 epochs, and in the test, a single-scale test mode is run, in which the short side of the input image is adjusted to 720 and the long side is limited to 1280. The short side of the picture in the multi-task fish behavior dataset is adjusted to 1280, the long side is limited to 720, and the image is flipped and enhanced.

[0112] Optionally, obtaining fish pictures includes:

[0113] Use a multi-task fish behavior recognition device to obtain fish videos;

[0114] Converting the fish video into a fish picture;

[0115] Wherein, the multi-task fish behavior recognition device includes: underwater camera equipment, light source, light intensity transmitter, memory, processor;

[0116] The underwater camera device is used to collect fish behavior videos in real time under the control of the processor, and extract the fish behavior videos as video streams;

[0117] The light source is used to provide supplementary light for the waterproof camera device;

[0118] The light intensity transmitter is used to sense the light intensity of the environment and transmit the light intensity information to the processor;

[0119] The processor is used to control the light source switch and the light intensity according to the light intensity information.

[0120] The present invention provides a multi-task fish behavior recognition device, comprising: an underwater camera device, a light source, a light intensity transmitter, a memory, a processor, and a multi-task fish behavior recognition program stored in the memory and executable on the processor, wherein the operation processor is respectively connected to the waterproof camera, the light source, and the light intensity transmitter.

[0121] Optionally, the underwater camera device can collect fish behavior videos in real time under the control of the processor.

[0122] Optionally, the light source is used to fill in the light for the underwater camera equipment, and the light intensity transmitter can sense the light intensity of the environment and transmit the light intensity information to the processor, and the processor controls the light source switch and the light intensity according to the light intensity information.

[0123] Optionally, the computer can send the video to a computing processor, and the processor can perform multi-task fish behavior recognition based on a trained multi-task fish behavior detection model.

[0124] The fish behavior detection device provided by the present invention is described below. The fish behavior detection device described below and the fish behavior detection method described above can be referenced to each other.

[0125] Figure 4 Schematic diagram of the structure of the fish behavior detection device provided by the present invention. Figure 4 As shown, the device includes an acquisition module 410, a construction module 420, a training module 430 and a behavior detection module 440, wherein:

[0126] An acquisition module 410 is used to acquire a multi-task fish behavior dataset;

[0127] A construction module 420 is used to construct a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used to implement three tasks: target detection, posture estimation, and semantic segmentation;

[0128] A training module 430, for training the multi-task fish behavior detection model based on the annotation information of fish target detection, posture estimation and semantic segmentation in the multi-task fish behavior dataset;

[0129] The behavior detection module 440 is used to identify fish behaviors using the trained multi-task fish behavior detection model, and obtain three result outputs: fish target detection, semantic segmentation, and posture estimation.

[0130] The fish behavior detection device provided by the present invention uses a multi-task fish behavior detection model, which mainly includes three tasks: target detection, posture estimation and semantic segmentation. By unifying the learning of multiple tasks of fish target detection, posture estimation and semantic segmentation, the behavior of fish schools is detected and identified. Compared with the single training model, multi-task learning can utilize the commonalities and differences between each task, improve the learning efficiency and prediction accuracy of the specific task model, thereby improving the accuracy of fish behavior recognition.

[0131] It can be understood that the fish behavior detection device provided by the present invention corresponds to the fish behavior detection method provided by the above-mentioned embodiments. The relevant technical features of the fish behavior detection device provided by the present invention can refer to the relevant technical features of the fish behavior detection method provided by the above-mentioned embodiments, which will not be repeated here.

[0132] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the fish behavior detection method, which includes: obtaining a multi-task fish behavior data set; constructing a multi-task fish behavior detection model, the multi-task fish behavior detection model is used to achieve three tasks of target detection, posture estimation and semantic segmentation; based on the annotation information of fish target detection, posture estimation and semantic segmentation in the multi-task fish behavior data set, the multi-task fish behavior detection model is trained; the fish behavior is identified using the trained multi-task fish behavior detection model to obtain three results of fish target detection, semantic segmentation and posture estimation.

[0133] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0134] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fish behavior detection method provided by the above-mentioned methods, which includes: obtaining a multi-task fish behavior data set; constructing a multi-task fish behavior detection model, and the multi-task fish behavior detection model is used to realize three tasks of target detection, posture estimation and semantic segmentation; based on the annotation information of fish target detection, posture estimation and semantic segmentation contained in the multi-task fish behavior data set, the multi-task fish behavior detection model is trained; and the fish behavior is identified using the trained multi-task fish behavior detection model to obtain three result outputs of fish target detection, semantic segmentation and posture estimation.

[0135] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the fish behavior detection method provided by the above-mentioned methods, the method comprising: obtaining a multi-task fish behavior data set; constructing a multi-task fish behavior detection model, the multi-task fish behavior detection model being used to implement three tasks of target detection, posture estimation and semantic segmentation; training the multi-task fish behavior detection model based on the annotation information of fish target detection, posture estimation and semantic segmentation contained in the multi-task fish behavior data set; using the trained multi-task fish behavior detection model to identify fish behavior, and obtain three result outputs of fish target detection, semantic segmentation and posture estimation.

[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A fish behavior detection method, It is characterized in that include: Get a multi-task fish behavior dataset; Constructing a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used to realize three tasks: target detection, posture estimation and semantic segmentation; Based on the annotation information of fish target detection, posture estimation and semantic segmentation contained in the multi-task fish behavior dataset, the multi-task fish behavior detection model is trained; The trained multi-task fish behavior detection model is used to identify fish behavior and obtain three output results: fish target detection, semantic segmentation, and posture estimation.

2. The fish behavior detection method according to claim 1, It is characterized in that The multi-task fish behavior detection model is constructed, comprising: Extracting target feature information of various scales corresponding to three tasks, namely, target detection, posture estimation and semantic segmentation, from the multi-task fish behavior dataset; Inputting the target feature information of the various scales into an auxiliary heat map learning module so that the vector learning direction of the target feature information is close to the Gaussian distribution; The target feature information is input into the feature graph pyramid network FPN for multi-scale fusion to obtain multiple fused feature information; Input the multiple fused feature information into the Cascade Location-Sensitive head network to extract the center points and corresponding vectors corresponding to the three tasks of target detection, pose estimation and semantic segmentation respectively; Based on the center points and corresponding vectors corresponding to the three tasks of target detection, posture estimation and semantic segmentation, Cross RLE Loss is used for learning regression. Through local and global training methods, the multi-task fish behavior detection model is guided to learn in the Gaussian direction, thereby completing the construction of the multi-task fish behavior detection model.

3. The fish behavior detection method according to claim 1, It is characterized in that The step of inputting the target feature information of various scales into the auxiliary heat map learning module so that the vector learning direction of the target feature information approaches the Gaussian distribution includes: The target feature information of various scales is reorganized into a fixed-size heatmap Gaussian map, and the Heatmap-based method is used to perform intermediate process supervision on the multi-task learning backbone network, requiring the backbone network to learn Gaussian probability distribution and using Laplace distribution as the loss function for model learning.

4. The fish behavior detection method according to claim 1, It is characterized in that The method of obtaining a multi-task fish behavior dataset comprises: Get fish pictures; Annotating the fish picture with object information, wherein the object information includes target coordinate position, fish posture feature key points and fish feature mask; Select images containing target detection, posture estimation and semantic segmentation from the annotated images, and divide them into training sets and test sets according to a specific ratio as the multi-task fish behavior dataset.

5. The fish behavior detection method according to claim 4, It is characterized in that The method further comprises: The short side of the picture in the multi-task fish behavior dataset is adjusted to a first preset value, the long side is limited to a second preset value, and image flip enhancement is performed.

6. The fish behavior detection method according to claim 4, It is characterized in that The step of obtaining fish pictures comprises: Use a multi-task fish behavior recognition device to obtain fish videos; Converting the fish video into a fish picture; Wherein, the multi-task fish behavior recognition device includes: underwater camera equipment, light source, light intensity transmitter, memory, processor; The underwater camera device is used to collect fish behavior videos in real time under the control of the processor, and extract the fish behavior videos as video streams; The light source is used to provide supplementary light for the waterproof camera device; The light intensity transmitter is used to sense the light intensity of the environment and transmit the light intensity information to the processor; The processor is used to control the light source switch and the light intensity according to the light intensity information.

7. A fish behavior detection device, It is characterized in that include: Acquisition module, used to acquire multi-task fish behavior dataset; A construction module, used to construct a multi-task fish behavior detection model, wherein the multi-task fish behavior detection model is used to implement three tasks: target detection, posture estimation, and semantic segmentation; A training module, used for training the multi-task fish behavior detection model based on the annotation information of fish target detection, posture estimation and semantic segmentation in the multi-task fish behavior dataset; The behavior detection module is used to identify fish behavior using the trained multi-task fish behavior detection model, and obtain three result outputs: fish target detection, semantic segmentation, and posture estimation.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the fish behavior detection method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the fish behavior detection method according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the fish behavior detection method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Fish visual identification method based on multi-task fusion

    CN114842215A

  • Fish behavior state recognition method based on deep learning

    CN116469161A

  • Fish multi-target tracking method, system and equipment for industrial aquaculture

    CN116721132A

  • Fish school behavior analysis system, information processing device, fish school behavior analysis method and program

    JP7463589B1