Lightweight fish recognition system and method based on deformable convolution and edge feature learning

By applying deformable convolution and edge feature learning technology in the fish recognition system, combined with the CBAM attention mechanism and LIFRNet network, the complexity and similarity problems of underwater fish recognition are solved, and efficient and accurate fish recognition is achieved. identification, improving the efficiency and accuracy of fish identification.

CN115546193BInactive Publication Date: 2024-09-10DALIAN OCEAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211368110.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Underwater fish individual identification faces high complexity and similarity problems, making it difficult for traditional methods to achieve accurate and efficient fish identification, especially in real-time situations.

Method used

A lightweight fish recognition system based on deformable convolution and edge feature learning is used to collect video data through underwater cameras, use CBAM attention mechanism and LIFRNet backbone network to extract fish features, and combine Arcface loss function and Mish activation function to achieve Fish detection and identification.

Benefits of technology

It improves the accuracy and efficiency of fish identification and gives each fish unique identity information. It has the advantages of high accuracy, strong generalization, simple operation and reliable use, and reduces the labor intensity and risk of underwater fish identification. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115546193B
    Figure CN115546193B
Patent Text Reader

Abstract

The present invention discloses a lightweight fish identification system based on deformable convolution and edge feature learning, including: a data acquisition module, used to collect fish school information; a fish identification terminal, used to extract visual features of fish school information to obtain fish school pictures, and give each fish in the fish school pictures unique identification information; a data transmission module, used to transmit the fish school information collected by the data acquisition module to the fish identification terminal; the data acquisition module is connected to the fish identification terminal via the data transmission module. The present invention adopts the above-mentioned structure of the lightweight fish identification system based on deformable convolution and edge feature learning, which can accurately and efficiently extract the visual features of underwater active fish, and give each fish unique identity information, thereby obtaining fish school information, and has the advantages of high accuracy, strong generalization, simple operation, reliable use, strong practical value, etc., and improves the efficiency of underwater fish identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a fish recognition technology, and in particular to a lightweight fish recognition system and method based on deformable convolution and edge feature learning. Background Art

[0002] With the continuous development of aquaculture and the continuous expansion of aquaculture scale, the traditional aquaculture model that relies on experience, labor and weather has become increasingly unsuitable for the needs of modern agricultural production and management. As a result, the aquaculture industry is gradually transforming from the past extensive production to factory-based, large-scale and intelligent production.

[0003] For example, effectively obtaining some important information generated during the production process and analyzing and processing it is of great significance for reducing breeding risks, improving the economic benefits of enterprises and reducing the labor intensity of employees.

[0004] Among them, fish individual identification can provide key technical support for fish growth monitoring, bait feeding and population density estimation, and can also provide strong data support for precise fish farming. However, the high complexity of underwater conditions, the high similarity of fish individuals and the real-time nature of fish individual identification have brought great challenges to fish individual identification. Summary of the invention

[0005] The purpose of the present invention is to provide a lightweight fish recognition system based on deformable convolution and edge feature learning, which can accurately and efficiently extract the visual features of underwater active fish and give each fish body unique identity recognition information, thereby obtaining fish school information. It has the advantages of high accuracy, strong generalization, simple operation, reliable use, strong practical value, etc., and improves the efficiency of underwater fish recognition.

[0006] To achieve the above object, the present invention provides a lightweight fish recognition system based on deformable convolution and edge feature learning, comprising:

[0007] Data collection module, used to collect fish school information;

[0008] Fish identification terminal, used to extract visual features of fish school information to obtain fish school pictures, and give each fish in the fish school picture unique identification information;

[0009] A data transmission module, used for transmitting the fish school information collected by the data collection module to the fish identification terminal;

[0010] The data acquisition module is connected to the fish identification terminal via the data transmission module.

[0011] Preferably, the data acquisition module includes an underwater camera and an underwater lighting lamp arranged close to the underwater camera, and the underwater camera and the underwater lighting lamp are both connected to a power supply.

[0012] Preferably, the data transmission module comprises a data transmission unit and a data storage unit whose input end is connected to the underwater camera, and an output end of the data transmission unit is connected to the data storage unit.

[0013] Preferably, the fish identification terminal comprises a data receiving unit and a processor whose input end is connected to the data storage unit, and an output end of the data receiving unit is connected to the processor.

[0014] Preferably, the fish identification terminal further includes a monitor connected to the processor, and the monitor is arranged above the underwater camera.

[0015] Preferably, the underwater camera and the underwater lighting are both fixed to the side wall of the fish pond via a fixing plate;

[0016] A fill light plate is fixed on the side wall of the fish pond opposite to the fixing plate.

[0017] Preferably, the data acquisition module further comprises a temperature sensor, an oxygen content sensor and a pressure sensor for respectively collecting the temperature, oxygen content and pressure in the water body.

[0018] The method of a lightweight fish recognition system based on deformable convolution and edge feature learning comprises the following steps:

[0019] S1, the underwater camera records the video containing the fish school information, and then transmits it to the data storage unit for storage via the data transmission unit;

[0020] S2, the data storage unit sends the video containing the fish school information to the data receiving unit, and the data receiving unit forwards it to the processor;

[0021] S3, Processor processing

[0022] S31, performing frame extraction processing on the video containing the fish school information sent to the processor to obtain a fish school picture;

[0023] S32, using Labelimg annotation tool to annotate the fish bodies on the fish school picture;

[0024] S33, learn fish characteristics through the YoloV4-Tiny backbone network integrating the CBAM attention mechanism module, and use the Adam optimization algorithm for training to obtain the optimal fish body detection model and single fish pictures;

[0025] S34, find different pictures of the same fish, number the pictures, and put them into different folders according to categories as training data sets;

[0026] S35, learn fish body features through the LIFRNet backbone network, and use the Adam optimization algorithm for training to obtain the optimal fish recognition model;

[0027] Then, a single fish image of size 112×112×3 is input, and a 1×1×512 feature vector is obtained after passing through the LIFRNet backbone network. The Arcface loss function is used for back propagation, and the similarity distance of the fish images is obtained through feature distance calculation. When the distance is less than 1, it is determined to be the same fish; when the distance is greater than or equal to 1, it is determined to be two different fish.

[0028] S36. Assign different identification information to different fish bodies.

[0029] Preferably, in step S34, a combination of 1×1 convolution and BN layer is used to learn the edge features of the fish body;

[0030] Use Mish activation function instead of Relu.

[0031] Preferably, the backbone network of LIFRNet in step S35 has a total of 29 layers, including 14 layers of 3×3 deformable convolutions, 13 layers of 3×3 depth-separable deformable convolutions, 1 layer of 1×1 standard convolution and 1 fully connected layer.

[0032] The present invention has the following beneficial effects:

[0033] 1. In the fish detection part, the CBAM attention mechanism module is added to greatly improve the target detection accuracy by focusing on the channel and space dimensions at the cost of very little increase in the number of parameters.

[0034] 2. Use a combination of 1×1 convolution and BN layer to learn the edge features of fish bodies; use deformable convolution that is more suitable for the swimming posture of fish bodies; use Mish activation function instead of Relu to obtain smaller intra-class distance and larger inter-class distance, greatly improving the accuracy of fish recognition.

[0035] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a structural schematic diagram of the present invention;

[0037] Figure 2 It is a network diagram of a fish identification terminal of the present invention;

[0038] Figure 3 This is the LIFRNet backbone network diagram of the present invention.

[0039] Among them: 1. Fixing plate; 2. Underwater camera; 3. Underwater lighting; 4. Fill light board; 5. Power supply; 6. Data transmission unit; 7. Data storage unit; 8. Data receiving unit; 9. Processor; 10. Monitor. DETAILED DESCRIPTION

[0040] The present invention will be further described below in conjunction with the accompanying drawings. It should be noted that this embodiment is based on the technical solution and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to this embodiment.

[0041] Figure 1 It is a structural schematic diagram of the present invention; Figure 2 It is a network diagram of a fish identification terminal of the present invention; Figure 3 It is the fish identification image processing diagram of the present invention, such as Figure 1 As shown, the present invention includes: a data acquisition module, which is used to collect fish school information; a fish identification terminal, which is used to extract visual features of the fish school information to obtain a fish school picture, and give each fish in the fish school picture unique identification information; a data transmission module, which is used to transmit the fish school information collected by the data acquisition module to the fish identification terminal; the data acquisition module is connected to the fish identification terminal via the data transmission module.

[0042] Specifically, the data acquisition module includes an underwater camera 2 and an underwater lighting 3 arranged near the underwater camera 2, and the underwater camera 2 and the underwater lighting 3 are both connected to a power supply 5. The data transmission module includes a data transmission unit 6 and a data storage unit 7 whose input end is connected to the underwater camera 2, and an output end of the data transmission unit 6 is connected to the data storage unit 7, and the data storage unit 7 is a mechanical hard disk with an available space of more than 10G. The fish identification terminal includes a data receiving unit 8 and a processor 9 whose input end is connected to the data storage unit 7, and an output end of the data receiving unit 8 is connected to the processor 9. Preferably, the fish identification terminal also includes a monitor 10 connected to the processor 9, and the monitor 10 is arranged above the underwater camera 2 for real-time viewing of the results. In this embodiment, the above-mentioned data transmission unit 6, data storage unit 7, data receiving unit 8, processor 9 and monitor 10 are connected to each other through a wireless bridge to achieve communication connection.

[0043] Preferably, the underwater camera 2 and the underwater lighting lamp 3 are both fixed to the side wall of the fish pond via a fixing plate 1; a fill light plate 4 is fixed to the side wall of the fish pond opposite to the fixing plate 1 to increase the lighting effect.

[0044] Preferably, the data acquisition module further comprises a temperature sensor, an oxygen content sensor and a pressure sensor for respectively collecting the temperature, oxygen content and pressure in the water body to identify the environmental reference variables in the system.

[0045] The method of a lightweight fish recognition system based on deformable convolution and edge feature learning comprises the following steps:

[0046] S1, the underwater camera 2 records the video containing the fish school information, and then transmits it to the data storage unit 7 for storage via the data storage unit 6;

[0047] S2, the data storage unit 7 sends the video containing the fish school information to the data receiving unit 8, and the data receiving unit 8 forwards it to the processor 9;

[0048] S3, processor 9 processes

[0049] S31, performing video frame extraction processing on the video containing the fish school information sent to the processor 9 to obtain a fish school picture;

[0050] S32, using Labelimg annotation tool to annotate the fish bodies on the fish school picture;

[0051] S33, learn fish characteristics through the YoloV4-Tiny backbone network integrating the CBAM attention mechanism module, and use the Adam optimization algorithm for training to obtain the optimal fish body detection model and single fish pictures;

[0052] S34, find different pictures of the same fish, number the pictures, and put them into different folders according to categories as training data sets;

[0053] Preferably, in step S34, a combination of 1×1 convolution and BN layer is used to learn the edge features of the fish body;

[0054] Use Mish activation function instead of Relu.

[0055] And in step S34, data enhancement is first performed on the fish body image, including random rotation from -8 degrees to 8 degrees and brightness change from 0.6 to 1.4.

[0056] S35, learn fish body features through the LIFRNet backbone network, and use the Adam optimization algorithm for training to obtain the optimal fish recognition model;

[0057] Then, a single fish image of size 112×112×3 is input, and a 1×1×512 feature vector is obtained after passing through the LIFRNet backbone network. The Arcface loss function is used for back propagation, and the similarity distance of the fish images is obtained through feature distance calculation. When the distance is less than 1, it is determined to be the same fish; when the distance is greater than or equal to 1, it is determined to be two different fish.

[0058] Preferably, the backbone network of LIFRNet in step S35 has a total of 29 layers, including 14 layers of 3×3 deformable convolutions, 13 layers of 3×3 depth-separable deformable convolutions, 1 layer of 1×1 standard convolution and 1 fully connected layer.

[0059] S36. Assign different identification information to different fish bodies.

[0060] Therefore, the lightweight fish recognition system based on deformable convolution and edge feature learning adopts the above-mentioned structure, which can accurately and efficiently extract the visual characteristics of underwater active fish and give each fish body unique identity recognition information, thereby obtaining fish school information. It has the advantages of high accuracy, strong generalization, simple operation, reliable use, and strong practical value, which improves the efficiency of underwater fish recognition.

[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for a lightweight fish recognition system based on deformable convolution and edge feature learning, characterized in that: The following steps are involved: S1, the underwater camera records the video containing the fish school information, and then transmits it to the data storage unit for storage via the data transmission unit; S2, the data storage unit sends the video containing the fish school information to the data receiving unit, and the data receiving unit forwards it to the processor; S3, Processor processing S31, performing frame extraction processing on the video containing the fish school information sent to the processor to obtain a fish school picture; S32, using Labelimg annotation tool to annotate the fish bodies on the fish school picture; S33, learn fish features through the YoloV4-Tiny backbone network integrated with the CBAM attention mechanism module, and use the Adam optimization algorithm for training to obtain the optimal fish body detection model and single fish pictures; S34, find different pictures of the same fish, number the pictures, and put them into different folders according to categories as training data sets; In step S34, a combination of 1×1 convolution and BN layer is used to learn the edge features of the fish body; Use Mish activation function instead of Relu; S35, learn fish body features through the LIFRNet backbone network, and use the Adam optimization algorithm for training to obtain the optimal fish recognition model; Then, a single fish image of size 112×112×3 is input, and a 1×1×512 feature vector is obtained after passing through the LIFRNet backbone network. The Arcface loss function is used for back propagation, and the similarity distance of the fish images is obtained through feature distance calculation. When the distance is less than 1, it is determined to be the same fish; when the distance is greater than or equal to 1, it is determined to be two different fish. The backbone network of LIFRNet in step S35 has a total of 29 layers, including 14 layers of 3×3 deformable convolutions, 13 layers of 3×3 depthwise separable deformable convolutions, 1 layer of 1×1 standard convolution, and 1 fully connected layer. S36. Assign different identification information to different fish bodies.

2. A lightweight fish recognition system based on deformable convolution and edge feature learning, characterized by: include: Data collection module, used to collect fish school information; A fish identification terminal, used to extract visual features of fish school information using the method of a lightweight fish identification system based on deformable convolution and edge feature learning as described in claim 1 to obtain a fish school picture, and to give each fish in the fish school picture unique identification information; A data transmission module, used for transmitting the fish school information collected by the data collection module to the fish identification terminal; The data acquisition module is connected to the fish identification terminal via the data transmission module.

3. The lightweight fish identification system based on deformable convolution and edge feature learning according to claim 2, characterized in that: The data acquisition module comprises an underwater camera and an underwater lighting lamp arranged close to the underwater camera, and both the underwater camera and the underwater lighting lamp are connected to a power supply.

4. The lightweight fish identification system based on deformable convolution and edge feature learning according to claim 3 is characterized in that: The data transmission module comprises a data transmission unit and a data storage unit, the input end of which is connected to the underwater camera, and the output end of the data transmission unit is connected to the data storage unit.

5. The lightweight fish identification system based on deformable convolution and edge feature learning according to claim 4, characterized in that: The fish identification terminal comprises a data receiving unit and a processor whose input end is connected to the data storage unit, and whose output end is connected to the processor.

6. The lightweight fish identification system based on deformable convolution and edge feature learning according to claim 5, characterized in that: The fish identification terminal also includes a monitor connected to the processor, and the monitor is arranged above the underwater camera.

7. The lightweight fish identification system based on deformable convolution and edge feature learning according to claim 3 is characterized in that: The underwater camera and the underwater lighting are both fixed on the side wall of the fish pond via a fixing plate; A fill light plate is fixed on the side wall of the fish pond opposite to the fixing plate.

8. The lightweight fish identification system based on deformable convolution and edge feature learning according to claim 3 is characterized in that: The data acquisition module also includes a temperature sensor, an oxygen content sensor and a pressure sensor for respectively collecting the temperature, oxygen content and pressure in the water body.