Fish egg and fry automatic monitoring system based on feature image recognition

Through the automatic monitoring system of fish egg seedlings based on feature image recognition, the YOLOv8 network model and feature extraction module are used to solve the problems of low accuracy of fish egg seedling counting and complex operation, and high-accuracy egg and fry recognition are achieved and counting, with a wide range of application, timely warning and control of water pumps to ensure water quality safety.

CN118968276APending Publication Date: 2024-11-15CHONGQING WESTERN WATER RESOURCES DEV CO LTD +1

Patent Information

Application Number
CN202411228074.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing fish egg seedling counting methods have low accuracy, complex operation and small application range, making it difficult to effectively monitor the arrival of fish floods and affect water quality.

Method used

The automatic monitoring system of fish egg seedlings based on feature image recognition is adopted, and the image acquisition device is used to collect fish egg seedling images, and count them through the controller and YOLOv8 network model. Combined with feature extraction, fusion and enhancement modules, the eggs and fish seedlings are realized. and generate early warning signals and start and stop signals according to the set threshold.

Benefits of technology

Achieve high accuracy identification (more than 95%) of the number of fish egg seedlings, with a wide range of application, and can identify any size of fry or fish eggs in a muddy underwater environment, promptly warn and control the water pump to ensure safety and stability sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968276A_ABST
    Figure CN118968276A_ABST
Patent Text Reader

Abstract

According to the automatic fish egg and fry monitoring system based on feature image recognition, on the basis of an image recognition technology, the number of fish eggs and fry is obtained by collecting fish egg and fry images, then the total number of fish eggs and fry in a period of time is obtained, whether a fish flood comes or not is judged according to the total number of fish eggs and fry in a period of time, and corresponding measures are taken; according to the automatic monitoring and early warning system, the recognition accuracy of fish eggs and fries reaches 95% or above, the recognition precision is high, when images containing more than 400 fish eggs and fries are processed, the accuracy still reaches 95% or above, and the stability is good; the fish egg and fry automatic monitoring and early warning system can identify and count fish fries or fish eggs of any size in an underwater turbid environment, and is wide in application range; when the system monitors that the number of the fish eggs reaches a certain numerical value, early warning is conducted in time, meanwhile, the water pump is controlled to be closed, entrainment of the fish eggs is avoided, and safety is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fish egg and fry monitoring, and in particular to an automatic fish egg and fry monitoring system based on feature image recognition. Background Art

[0002] When a pumping station is pumping water, it is necessary to count the number of fish eggs and fry in the pumped water to determine whether a fish season has arrived. If a fish season has arrived, the pumping operation must be stopped to prevent excessive numbers of fish eggs and fry from affecting the water quality. Currently, manual counting methods are commonly used to count the number of fish eggs and fry. This method has the problem of low accuracy and is time-consuming and labor-intensive. If the operation is improper, it is easy to cause damage to the fry. With the development of technology, automatic fry counters have emerged. However, most fry counters are complicated to operate and are only suitable for counting specific fry or adult fish, and have a small scope of application. Summary of the invention

[0003] In order to solve the problems of low accuracy, complex operation and small application scope of the fish fry counting method in the prior art, a fish egg and fry automatic monitoring system and method based on feature image recognition are provided.

[0004] An automatic monitoring system for fish eggs and fry based on feature image recognition, comprising:

[0005] An image acquisition device is used to acquire images of fish eggs and fry, and send the acquired images of fish eggs and fry to a controller;

[0006] A controller is used to control the image acquisition device to acquire images of fish eggs and fry at fixed intervals within a set time period, obtain the number of fish eggs and fry according to the received images of fish eggs and fry, obtain the total number of fish eggs and fry within the set time period according to the obtained number of fish eggs and fry, and judge whether the total number of fish eggs and fry within the set time period reaches a threshold value, and if so, generate an early warning signal and a shutdown signal, send the early warning signal to the early warning device, and send the shutdown signal to the water pump, and if not, re-control the image acquisition device to acquire images of fish eggs and fry;

[0007] An early warning device, used for issuing an early warning according to a received early warning signal;

[0008] The controller is also used to generate a pump start signal according to the set end time of the fish season, and send the pump start signal to the water pump;

[0009] The water pump is used to pump water. It stops pumping water when it receives a shutdown signal and starts pumping water when it receives a pump start signal.

[0010] Beneficial Effects

[0011] The present application discloses an automatic monitoring system for fish eggs and fry based on feature image recognition. Based on image recognition technology, the number of fish eggs and fry is counted to avoid interference from other substances in the water. The accuracy rate of identifying fish eggs and fry is more than 95%, and the recognition precision is high. When processing images containing more than 400 fish eggs and fry, the accuracy rate is still more than 95%, and the stability is good. The automatic monitoring and early warning system for fish eggs and fry can identify and count fish fry or fish eggs of any size in an underwater turbid environment, and has a wide range of applications. When the system monitors that the number of fish eggs and fry reaches a certain value, an early warning is issued in time, and at the same time, a water pump is controlled to be turned off to avoid the suction of fish eggs and fry, and the safety is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a structural diagram of a fish egg and fry automatic monitoring and early warning system based on feature image recognition according to a specific implementation method of the present application;

[0013] Figure 2 This is a structural diagram of the YOLOv8 fish egg and fry counting model according to a specific implementation of the present application;

[0014] Figure 3 This is a specific structural diagram of the feature extraction module, feature fusion and enhancement module, and target detection and counting module of a specific implementation mode of this application;

[0015] Figure 4 This is a structural diagram of the CSP layer and ConvM layer of a specific implementation method of this application;

[0016] Figure 5 This is a flow chart of the automatic monitoring and early warning method for fish eggs and fry based on feature image recognition according to a specific implementation method of the present application. DETAILED DESCRIPTION

[0017] Specific implementation method 1: The following will be combined Figures 1 to 2 , describing this embodiment, a fish egg and fry automatic monitoring system based on feature image recognition, comprising:

[0018] An image acquisition device is used to acquire images of fish eggs and fry, and send the acquired images of fish eggs and fry to a controller;

[0019] A controller is used to control the image acquisition device to acquire images of fish eggs and fry at fixed intervals within a set time period, obtain the number of fish eggs and fry according to the received images of fish eggs and fry, obtain the total number of fish eggs and fry within the set time period according to the obtained number of fish eggs and fry, and judge whether the total number of fish eggs and fry within the set time period reaches a threshold value, and if so, generate an early warning signal and a shutdown signal, send the early warning signal to the early warning device, and send the shutdown signal to the water pump, and if not, re-control the image acquisition device to acquire images of fish eggs and fry;

[0020] An early warning device, used for issuing an early warning according to a received early warning signal;

[0021] The controller is also used to generate a pump start signal according to the set end time of the fish season, and send the pump start signal to the water pump;

[0022] The water pump is used to pump water. It stops pumping water when it receives a shutdown signal and starts pumping water when it receives a pump start signal.

[0023] Specifically, fish egg and fry images are collected at fixed intervals within a set time period to obtain the total number of fish eggs and fry within the time period, and then by comparing the total number of fish eggs and fry within the time period with a threshold, it is determined whether a fish season has arrived so that relevant measures can be taken. The system is simple to operate and has high recognition accuracy, which is convenient for staff to make accurate judgments on the arrival of a fish season.

[0024] Furthermore, the image acquisition device is arranged in a water intake or a water collection well of a pumping station, and the fish egg and fry image is an image of fish egg and fry within a cross section of the water intake or the water collection well of the pumping station.

[0025] Specifically, the image acquisition device is arranged at the water intake of the pump station or the water collection well to facilitate the acquisition of images of fish eggs and fry, and the area of ​​the fish eggs and fry image is smaller than the cross-section of the water intake of the pump station or the water collection well.

[0026] Further, the controller includes a fish egg and fry counting model and a processing module;

[0027] A fish egg and fry counting model is used to obtain the number of fish eggs and fry according to the received fish egg and fry images, and send the number of fish eggs and fry to the processing module;

[0028] The processing module is used to control the image acquisition device to collect images of fish eggs and fry at fixed intervals within a set time period, obtain the total number of fish eggs and fry within the set time period according to the number of fish eggs and fry received, and judge whether the total number of fish eggs and fry within the set time period reaches a threshold value, if so, generate an early warning signal, and send the early warning signal to the early warning device, if not, re-control the image acquisition device to collect images of fish eggs and fry;

[0029] The fish egg and fry counting model is implemented using the YOLOv8 network structure.

[0030] Specifically, the YOLOv8 network model supports image classification, object detection and instance segmentation tasks. The YOLOv8 fish egg counting model of the present application is obtained by training the YOLOv8 network model with a fish fry and egg image dataset. The fish egg automatic monitoring and early warning system based on feature image recognition of the present application is applied to the upper reaches of the Yangtze River, so the selected fish fry and egg image dataset includes all species in the upper reaches of the Yangtze River.

[0031] Furthermore, the fish egg and fry counting model includes a feature extraction module, a feature fusion and enhancement module, and a target detection and counting module;

[0032] The feature extraction module is used to perform multiple convolutions on the received fish egg and fry images to obtain multiple fish egg and fry feature maps of different scales, and send the last three fish egg and fry feature maps of different scales to the feature fusion and enhancement module;

[0033] The feature fusion and enhancement module is used to fuse and enhance the three received fish egg and fry feature images of different scales to obtain three processed fish egg and fry feature images, and send the three processed fish egg and fry feature images to the target detection and counting module;

[0034] The target detection and counting module is used to decouple the three processed fish egg and fry feature images received respectively, and obtain a first group of recognition results, a second group of recognition results and a third group of recognition results, each group of recognition results includes multiple recognition results, each recognition result includes a type and a corresponding confidence level, and the type is identified as fish eggs, identified as fish fry or identified as non-eggs and fry; the three groups of recognition results are integrated to obtain a final group of recognition results, and according to the final group of recognition results, the recognition results with confidence greater than a set value and the type being identified as fish eggs and the type being identified as fish fry are counted to obtain the number of fish eggs and fry; and the obtained number of fish eggs and fry is sent to the processing module.

[0035] Specifically, Figure 4 As shown in the figure, the feature extraction module (Backbone module) performs multiple convolutions on the received fish egg and fry images. The feature extraction module mainly includes CSP layer, ConvM layer and SPPF layer. Due to the complex convolution structure of the feature extraction module, the graphic features can be extracted in depth from multiple angles. The feature extraction module performs a total of five stages of complex convolution operations to obtain five feature maps P1~P5. The last three convolution operations obtain three feature maps P3~P5 of different scales; the three feature maps P3~P5 of different scales are sent to the feature fusion and enhancement module;

[0036] The main CSP layer and ConvM layer structure of the feature extraction module are as follows: Figure 4As shown in the figure, the CSP layer consists of a ConvM convolution layer, multiple batch normalization (DB) layers, a segmentation layer and a splicing layer. It adopts a multi-branch flow design to enhance the feature extraction capability of the model. The segmentation layer divides the input feature map into multiple parts in a certain dimension; the splicing layer splices two or more parts in a certain dimension to merge their feature information. The two can reduce the amount of calculation, increase feature diversity, and promote information flow. The DB layer is a specially designed convolutional neural network module, which is constructed through a series of convolutional layers, activation functions, and possible residual connections. While maintaining the complexity of the model, it improves the feature extraction capability and computational efficiency of the model; the ConvM layer is a basic convolution layer, which includes a two-dimensional convolution layer (Conv2d), a batch normalization layer, and a SiLU activation function; the SPPF layer is composed of a ConvM layer, three pooling layers, a splicing layer, and a ConvM layer in sequence;

[0037] The feature fusion and enhancement module (Neck module) includes multiple CSP layers, ConvM layers, splicing layers and upsampling layers, which performs feature fusion and enhancement processing on the three received feature maps P3-P5 of different scales. The three processed fish egg and fry feature maps are sent to the target detection and counting module;

[0038] The target detection and counting module (Head module) decouples the processed fish egg and fry feature images P3, P4 and P5 to obtain several recognition results. The larger the confidence factor in the recognition result, the greater the possibility that the image block is the judged species. In the specific operation, the set value is set to 40, and the total number of the final recognition results in the final group recognition results in which the species is fish fry and the confidence factor is greater than 40 and the final recognition results in which the species is fish eggs and the confidence factor is greater than 40 is counted as the number of fish eggs, and the number of fish eggs is sent to the processing module.

[0039] Furthermore, the target detection and counting module decouples the three processed fish egg and fry feature images received respectively by inputting the three processed fish egg and fry feature images received into the decoupling structure respectively, each decoupling structure includes a ConvM convolution layer and a Conv2d convolution layer connected in sequence, and the convolution kernel size of each ConvM convolution layer is 5×5.

[0040] Specifically, the convolution kernel size of the ConvM convolution layer of the target detection and counting module in the YOLOv8 network model is 3×3. The YOLOv8 fish egg and fry counting model of the present application changes the size of the convolution kernel of the ConvM convolution layer to enhance the specific recognition capability.

[0041] Furthermore, the method of synthesizing the three groups of recognition results to obtain the final group of recognition results is: comparing the first group of recognition results, the second group of recognition results and the third group of recognition results, and taking the recognition result with the larger confidence factor for the same object as the final recognition result.

[0042] Specifically, in the specific implementation, there is a phenomenon that the recognition results for the same object in the three groups of recognition results are different. For this phenomenon, the confidence factors of different recognition results are compared, and the recognition result with the larger confidence factor is taken as the final recognition result of the object.

[0043] Further, the method for obtaining the total number of fish eggs and fry within a set time period according to the received number of fish eggs and fry is as follows: the processing module controls the image acquisition device to collect fish egg and fry images at fixed intervals t within the set time period T, and then obtains The number of fish eggs Qi is obtained, and the total number of fish eggs Q is obtained by summing up the obtained multiple numbers of fish eggs Qi. The ratio of the area of ​​any fish egg image to the cross section of the pump station water intake or the water collection well is selected as the proportional coefficient K. Then the total number of fish eggs sucked by the water intake pump in the time period T is N = Q × K; where Qi is the number of fish eggs, For The value of is rounded.

[0044] Specifically, the system is set to perform a statistical task every 30 minutes, T is 1 minute, t is 1 second, then the image acquisition device collects fish egg and fry images every 1 second within 1 minute, and a total of 60 fish egg and fry images are obtained. A fish egg and fry quantity Qi is obtained for each fish egg and fry image, and the total number of fish egg and fry Q is obtained by summing up the 60 fish egg and fry quantities Qi.

[0045] A threshold value M is set according to the statistical data of the previous year. If the obtained N≥M, a system warning is triggered to remind the staff that the fish season is coming. At the same time, the water pump is controlled to shut down, and the end time of the fish season is set according to the historical statistical data. After the end time of the fish season is reached, the controller controls the generation of a pump start signal, the water pump resumes pumping, and the pumping station operates normally. In specific implementation, if the obtained N<M, the controller re-controls the image acquisition device to collect images of fish eggs and fry.

[0046] Furthermore, the image acquisition device is an underwater high-definition microscope camera.

[0047] Specifically, it is convenient to obtain clear images of fish eggs and fry in the water intake of a pump station or a water collection well.

[0048] Specific implementation method 2, a method for automatically monitoring fish eggs and fry is as follows:

[0049] S1, acquiring fish egg and fry images multiple times at fixed intervals within a set time period;

[0050] S2, obtaining the number of fish eggs and fry according to each obtained fish egg and fry image, summing up the obtained multiple numbers of fish eggs and fry to obtain the total number of fish eggs and fry, and obtaining the total number of fish eggs and fry sucked by the water pump within a set time period according to the obtained total number of fish eggs and fry;

[0051] S3, judging whether the total number of fish eggs and fry sucked by the water pump within the set time period reaches a threshold value, if so, an early warning is issued and the water pump is controlled to be shut down, and the water pump is restarted after the end time of the fishing season; if not, the fish egg and fry images are re-acquired.

[0052] Furthermore, the method for obtaining the number of fish eggs and fry according to each acquired fish egg and fry image is as follows: performing multiple convolutions on each acquired fish egg and fry image to obtain multiple fish egg and fry feature maps of different scales, fusing and enhancing the last three fish egg and fry feature maps of different scales to obtain three processed fish egg and fry feature maps, and decoupling the three processed fish egg and fry feature maps respectively to obtain a first group of recognition results, a second group of recognition results, and a third group of recognition results, each group of recognition results includes multiple recognition results, each recognition result includes a type and a corresponding confidence level, and the type is identified as fish eggs, identified as fish fry, or identified as non-eggs and fry; the three groups of recognition results are integrated to obtain a final group of recognition results, and according to the final group of recognition results, the recognition results with a confidence level greater than a set value and a type identified as fish eggs and a type identified as fish fry are statistically analyzed to obtain the number of fish eggs and fry.

Claims

1. A fish egg and fry automatic monitoring system based on feature image recognition, characterized in that: include: An image acquisition device is used to acquire images of fish eggs and fry, and send the acquired images of fish eggs and fry to a controller; A controller is used to control the image acquisition device to acquire images of fish eggs and fry at fixed intervals within a set time period, obtain the number of fish eggs and fry according to the received images of fish eggs and fry, obtain the total number of fish eggs and fry within the set time period according to the obtained number of fish eggs and fry, and judge whether the total number of fish eggs and fry within the set time period reaches a threshold value, and if so, generate an early warning signal and a shutdown signal, send the early warning signal to the early warning device, and send the shutdown signal to the water pump, and if not, re-control the image acquisition device to acquire images of fish eggs and fry; An early warning device, used for issuing an early warning according to a received early warning signal; The controller is also used to generate a pump start signal according to the set end time of the fish season, and send the pump start signal to the water pump; The water pump is used to pump water. It stops pumping water when it receives a shutdown signal and starts pumping water when it receives a pump start signal.

2. The fish egg and fry automatic monitoring system based on feature image recognition according to claim 1 is characterized in that: The image acquisition device is arranged in the water intake of the pump station or the water collection well, and the fish egg and fry image is the fish egg and fry image in the cross section of the water intake of the pump station or the water collection well.

3. The method for automatic monitoring and early warning of fish eggs and fry based on feature image recognition according to claim 2 is characterized in that: The controller includes a fish egg and fry counting model and a processing module; A fish egg and fry counting model is used to obtain the number of fish eggs and fry according to the received fish egg and fry images, and send the number of fish eggs and fry to the processing module; The processing module is used to control the image acquisition device to collect images of fish eggs and fry at fixed intervals within a set time period, obtain the total number of fish eggs and fry within the set time period according to the number of fish eggs and fry received, and judge whether the total number of fish eggs and fry within the set time period reaches a threshold value, if so, generate an early warning signal, and send the early warning signal to the early warning device, if not, re-control the image acquisition device to collect images of fish eggs and fry; The fish egg and fry counting model is implemented using the YOLOv8 network structure.

4. The fish egg and fry automatic monitoring system based on feature image recognition according to claim 3 is characterized in that: The fish egg and fry counting model includes a feature extraction module, a feature fusion and enhancement module, and a target detection and counting module; The feature extraction module is used to perform multiple convolutions on the received fish egg and fry images to obtain multiple fish egg and fry feature maps of different scales, and send the last three fish egg and fry feature maps of different scales to the feature fusion and enhancement module; feature A fusion and enhancement module is used to fuse and enhance the three received fish egg and fry feature images of different scales to obtain three processed fish egg and fry feature images, and send the three processed fish egg and fry feature images to the target detection and counting module; The target detection and counting module is used to decouple the three processed fish egg and fry feature images received respectively, and obtain a first group of recognition results, a second group of recognition results and a third group of recognition results, each group of recognition results includes multiple recognition results, each recognition result includes a type and a corresponding confidence level, and the type is identified as fish eggs, identified as fish fry or identified as non-eggs and fry; the three groups of recognition results are integrated to obtain a final group of recognition results, and according to the final group of recognition results, the recognition results with confidence greater than a set value and the type being identified as fish eggs and the type being identified as fish fry are counted to obtain the number of fish eggs and fry; and the obtained number of fish eggs and fry is sent to the processing module.

5. The fish egg and fry automatic monitoring system based on feature image recognition according to claim 4 is characterized in that: The method for decoupling the three processed fish egg and fry feature images received by the target detection and counting module is as follows: the three processed fish egg and fry feature images received are respectively input into the decoupling structure, each decoupling structure includes a ConvM convolution layer and a Conv2d convolution layer connected in sequence, and the convolution kernel size of each ConvM convolution layer is 5×5.

6. The method for automatic monitoring and early warning of fish eggs and fry based on feature image recognition according to claim 5, characterized in that: The method of synthesizing the three groups of recognition results to obtain the final group of recognition results is: comparing the first group of recognition results, the second group of recognition results and the third group of recognition results, and taking the recognition result with the larger confidence factor for the same object as the final recognition result.

7. The fish egg and fry automatic monitoring system based on feature image recognition according to claim 6 is characterized in that: The method for obtaining the total number of fish eggs and fry within a set time period according to the number of fish eggs and fry received is as follows: the processing module controls the image acquisition device to collect fish egg and fry images at fixed intervals t within the set time period T, and then obtains The number of fish eggs Qi is obtained, and the total number of fish eggs Q is obtained by summing up the obtained multiple numbers of fish eggs Qi. The ratio of the area of ​​any fish egg image to the cross section of the pump station water intake or the water collection well is selected as the proportional coefficient K. Then the total number of fish eggs sucked by the water intake pump in the time period T is N = Q × K; where Qi is the number of fish eggs, For The value of is rounded.

8. The fish egg and fry automatic monitoring system based on feature image recognition according to claim 7 is characterized in that: The image acquisition device is an underwater high-definition microscope camera.

9. A method for automatically monitoring fish eggs and fry, characterized in that: The method comprises: S1, acquiring fish egg and fry images multiple times at fixed intervals within a set time period; S2, obtaining the number of fish eggs and fry according to each obtained fish egg and fry image, summing up the obtained multiple numbers of fish eggs and fry to obtain the total number of fish eggs and fry, and obtaining the total number of fish eggs and fry sucked by the water pump within a set time period according to the obtained total number of fish eggs and fry; S3, judging whether the total number of fish eggs and fry sucked by the water pump within the set time period reaches a threshold value, if so, an early warning is issued and the water pump is controlled to be shut down, and the water pump is restarted after the end time of the fishing season; if not, the fish egg and fry images are re-acquired.

10. The method for automatically monitoring fish eggs and fry according to claim 9, characterized in that: The method for obtaining the number of fish eggs and fry according to each acquired fish egg and fry image is as follows: performing multiple convolutions on each acquired fish egg and fry image to obtain multiple fish egg and fry feature maps of different scales, fusing and enhancing the last three fish egg and fry feature maps of different scales to obtain three processed fish egg and fry feature maps, respectively decoupling the three processed fish egg and fry feature maps to obtain a first group of recognition results, a second group of recognition results and a third group of recognition results, each group of recognition results includes multiple recognition results, each recognition result includes a type and a corresponding confidence, and the type is identified as fish eggs, identified as fish fry or identified as non-eggs and fry; the three groups of recognition results are integrated to obtain a final group of recognition results, and according to the final group of recognition results, the recognition results with a confidence greater than a set value and a type identified as fish eggs and a type identified as fish fry are counted to obtain the number of fish eggs and fry.

Citation Information

Patent Citations

  • Large-batch rapid fry counting device and counting method

    CN112085142A

  • Drifting roe monitoring equipment and cascade reservoir dispatching method for improving hatchability

    CN113194271A

  • Fish counting method, device and equipment based on deep learning and medium

    CN114359199A

  • Physical experiment device and method for entrainment effect of pumping station water intake on fish eggs and fries

    CN117334108A

  • Fry detection method and system

    CN117853477A

Cited By

  • Identification and automatic counting method and system for noctuid eggs

    CN121810633A