Method and system for estimating food intake of farmed animals based on computer vision recognition

Through computer vision recognition technology, the problem of inaccurate manual judgment of food amount in aquaculture is solved, accurate estimation of the food intake of cultured objects is achieved, feeding strategies are optimized, waste and overeating risks are reduced, and fish growth is improved. and the efficiency of the breeding environment.

CN115100513BActive Publication Date: 2024-09-03CHONGQING TECH & BUSINESS UNIV +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210751283.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-09-03
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The existing feed feeding method in aquaculture relies on manual judgment, which leads to inaccurate food amounts, resulting in waste and problems of too much or too little food for the cultured objects, which affects the growth and reproduction of fish.

Method used

A method for estimating the food intake of breeding objects based on computer vision recognition is adopted. Image data is collected through cameras, preprocessed and analyzed, and the model is trained to identify quantity and body shape characteristics, estimate food intake, reduce labor costs and improve measurement accuracy.

Benefits of technology

It achieves accurate measurement of the food intake of cultured objects, reduces food waste and the risk of overeating, and optimizes the growth and breeding environment of fish.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115100513B
    Figure CN115100513B
Patent Text Reader

Abstract

The present invention relates to the field of intelligent aquaculture technology, and specifically to a method and system for estimating the food intake of aquaculture objects based on computer vision recognition. The method comprises the following steps: an image acquisition step: acquiring image data of aquaculture objects in aquaculture areas; an image processing step: preprocessing the image data to obtain an analysis data set; an image analysis step: using the analysis data set as sample data to train a model, inputting the image data acquired in real time into the trained model, and outputting the number and body shape characteristics of aquaculture objects; a data processing step: analyzing the food intake of aquaculture objects according to the number and body shape characteristics of aquaculture objects, and generating an estimation result of the food intake of aquaculture objects. The method can improve the accuracy of measuring the food intake of aquaculture objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent aquaculture, and in particular to a method and system for estimating the food intake of aquaculture objects based on computer vision recognition. Background Art

[0002] Aquaculture is an important part of agricultural production. my country's aquaculture output has ranked first in the world for many years in a row. China is one of the world's major producers and exporters of aquatic products. Aquaculture has become an important part of my country's agricultural production and a pillar industry for rural economic development in many places.

[0003] The existing method of feeding aquaculture is mainly artificial feeding. When artificial feeding is used, people often decide the amount of food to be fed based on the feeding time of the aquaculture object and the volume of the aquaculture object observed by naked eyes. The calculation of the amount of food in this way mainly relies on people's subjective judgment, which is very inaccurate. When too much food is put in, it will not only cause food waste, but also may cause the aquaculture object to eat too much, causing the aquaculture object to eat too much and cause the fish to die, or the feed residue will dissolve and bring toxicity. If the amount of food put in is too little, it will affect the growth rate of the fish and reduce the reproduction rate of the fish. Summary of the invention

[0004] The technical problem solved by the present invention is to provide a method and system for estimating the food intake of farmed objects based on computer vision recognition, which can improve the accuracy of measuring the food intake of farmed objects.

[0005] The basic solution provided by the present invention is a method for estimating the food intake of a farmed object based on computer vision recognition, comprising the following steps:

[0006] Image acquisition steps: collecting image data of breeding objects in the breeding area;

[0007] Image processing steps: preprocess the image data to obtain the analysis data set;

[0008] Image analysis steps: Use the analysis data set as sample data to train the model, input the real-time image data into the trained model, and output the number and body shape characteristics of the breeding objects;

[0009] Data processing steps: Analyze the food intake of the farmed objects based on the number and body characteristics of the farmed objects to generate an estimated result of the food intake of the farmed objects.

[0010] The principle and advantage of the present invention are: the image of the breeding objects in the breeding area is collected by the camera, the image is screened, and the analysis data set is obtained, and the recognition model is trained with the analysis data set as a training sample. After the newly acquired image data is input into the recognition model, the number and body shape characteristics of the breeding objects in the breeding area are identified. The body shape of the breeding objects is the main influencing factor that determines the food intake. Because in this scheme, the food intake of the breeding objects is estimated, the approximate food intake of the breeding objects in the breeding area can be estimated according to the body shape characteristics and number of the breeding objects, so that the amount of food required for this feeding can be calculated more accurately. Compared with the prior art method of obtaining the number and body shape of the breeding objects through manual observation, judging the food intake of the breeding objects, and determining the feeding amount according to the analyzed food intake of the breeding objects, the food intake of the breeding objects can be measured more accurately, and the labor cost can also be reduced.

[0011] Furthermore, the image processing step includes the following steps:

[0012] S110: Obtain the depth of the breeding area, and set the analysis area according to the depth of the breeding area;

[0013] S120: Analyze the non-sinking period of the aquaculture object according to the analysis area range and the image data, and analyze the non-feeding period of the aquaculture object according to the image data;

[0014] S130: extracting key frames from the intersection of the non-sinking period and the non-feeding period of the aquaculture object as an analysis data set.

[0015] When selecting training samples, the collected image data is screened. First, the analysis area is set according to the depth of the breeding area, and the image data of the breeding objects when they are not eating and most of them are located in the analysis area are selected. Since the breeding objects are more concentrated and dense when they are eating, there will be more overlaps in the breeding objects in the image, which is not conducive to the identification and analysis of the number and body shape of the breeding objects through the image. At the same time, if the breeding objects sink to the bottom, the image cannot be clearly identified. Therefore, by selecting the breeding objects when they are not sinking to the bottom and not eating, the breeding objects are in a natural breeding state at this time, and there will not be too much overlap in the breeding objects in the image, which makes it easier to count the number and body shape characteristics of the breeding objects in the image data, and most of the breeding objects do not sink to the bottom, making the statistical results more accurate. The model is trained with the image data of the breeding objects when they are not sinking to the bottom and not eating, and analyzed to make the analysis results more accurate.

[0016] Furthermore, the image analysis step specifically includes the following steps:

[0017] S210: labeling the analysis data set and training the image segmentation model;

[0018] S220: inputting the image data acquired in real time into the image segmentation model, and the image segmentation model segments the image data to obtain the image of the breeding object;

[0019] S230: Determine the number of breeding objects according to the breeding object images;

[0020] S240: Obtain reference target parameters, and determine body characteristics of the farming object based on the reference target parameters and the farming object image, where the body characteristics include body length and body width.

[0021] The farmed objects in the analysis data set are marked along their contours, and the image segmentation model is trained. The newly acquired images are then input into the image segmentation model. The image segmentation model automatically segments the farmed object images from the input images, and identifies the number of farmed objects and their body shape characteristics based on the farmed object images.

[0022] Further, the S220 specifically includes the following steps:

[0023] S221: Determine whether there are multiple overlapping breeding objects in the breeding object image, if not, mark them as the first image, if overlapping, mark them as the second image;

[0024] S222: Calculating the number of first breeding objects according to the number of first images;

[0025] S223: Obtain the number of heads and the number of tails of the cultured objects in the second image, and calculate the number of second cultured objects according to the number of heads and the number of tails;

[0026] S224: Calculate the total number of breeding objects according to the number of the first breeding objects and the number of the second breeding objects.

[0027] When measuring the number of breeding objects through breeding object images, if there are no overlaps of multiple breeding objects in the breeding object images, there is only one breeding object in one breeding object image. Therefore, by directly measuring the number of breeding object images, the number of breeding objects that do not overlap in the image can be calculated to obtain the first number of breeding objects. If there are overlaps in the breeding object images, there will be multiple breeding objects in one breeding object image. Therefore, by calculating the number of heads and tails in the breeding object images, the number of breeding objects that overlap in the image is calculated to obtain the second number of breeding objects. The first number of breeding objects and the second number of breeding objects are added to obtain the total number of breeding objects.

[0028] Furthermore, the data processing step specifically includes the following steps:

[0029] S310: inputting the body shape characteristics of the breeding object into the trained weight analysis model to obtain the weight data of the breeding object;

[0030] S320: Input the weight data of the breeding objects and the number of breeding objects into the trained food intake analysis model, and output the food intake of the breeding objects.

[0031] Based on the analyzed body length and width of the breeding objects, the weight of the breeding objects is converted through the trained weight analysis model, and then the weight of the breeding objects is input into the trained food intake analysis. The food intake of each breeding object is analyzed based on the weight of the breeding objects, and then the total food intake of the breeding objects is determined according to the number of breeding objects.

[0032] Furthermore, the data processing step further includes the following steps:

[0033] S311: Obtain external influencing factors;

[0034] The food intake analysis model in S320 also analyzes the food intake of the breeding objects based on the weight data of the breeding objects, the number of breeding objects and external influencing factors.

[0035] The food intake of the farmed object is related to its own weight as well as some external factors, such as temperature, pH value, etc. Therefore, in this application, external factors are also input into the food intake analysis model to improve the accuracy of the food intake estimation of the farmed object from multiple aspects.

[0036] Further, the method further comprises a feeding analysis step, wherein the feeding analysis step comprises the following steps:

[0037] S410: Acquire image data of the breeding object after the feeding period;

[0038] S420: analyzing the amount of residual feed according to the image data after the feeding period of the breeding object;

[0039] It also includes the feeding strategy step: formulate a feeding strategy based on the amount of residual bait and the food intake of the farmed animals.

[0040] By analyzing the residual amount and combining it with the analyzed food intake of the farmed objects, a feeding strategy can be formulated to make the feeding amount more accurate, meet the growth needs of the farmed objects, avoid the toxicity caused by excessive dissolution of residual bait, reduce feed waste, and effectively control farming costs.

[0041] The present invention also discloses a system for estimating the food intake of a farmed object based on computer vision recognition, and the system uses the above-mentioned method for estimating the food intake of a farmed object based on computer vision recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of an embodiment of a method for estimating food intake of a farmed object based on computer vision according to the present invention;

[0043] Figure 2 It is a flowchart of the image processing steps of an embodiment of the method for estimating the food intake of a farmed object based on computer vision of the present invention;

[0044] Figure 3 The figure is a flow chart of the image analysis step of an embodiment of a method for estimating food intake of farmed objects based on computer vision according to the present invention. DETAILED DESCRIPTION

[0045] The following is further described in detail through specific implementation methods:

[0046] The embodiment is basically as shown in the attached Figure 1 As shown:

[0047] The method for estimating the food intake of a farmed object based on computer vision comprises the following steps:

[0048] Image acquisition steps: collect image data of breeding objects in the breeding area.

[0049] Specifically, in this embodiment, the breeding area is a fish pond, and the breeding objects are fish. Images are collected by camera equipment, and the camera equipment is set in various areas of the fish pond. The number of camera equipment can be determined according to the area of ​​the fish pond.

[0050] In the image processing step, the image data is preprocessed to obtain the analysis data set.

[0051] The image processing steps are as follows: Figure 2 As shown, the following steps are included:

[0052] S110: Obtain the depth of the breeding area, and set the analysis area according to the depth of the breeding area;

[0053] S120: Analyze the non-sinking period of the aquaculture object according to the analysis area range and the image data, and analyze the non-feeding period of the aquaculture object according to the image data;

[0054] S130: extracting key frames from the intersection of the non-sinking period and the non-feeding period of the aquaculture object as an analysis data set.

[0055] Specifically, through the image processing step, the image data is screened, and clear videos of the farmed objects underwater are selected as the analysis data set. First, if the farmed objects are mostly in a bottom-sinking state, the farmed objects in the image will be blurred, resulting in a decrease in the accuracy of the analysis. Therefore, according to the depth of the farmed area, an analysis area is formulated. In this embodiment, the depth of two-thirds below the water surface is selected as the analysis area. According to the image data, the time period when most of the farmed objects are active in the analysis area is judged as a non-bottom-sinking period. Secondly, if the farmed objects are in the feeding period, the gathering density of the farmed objects is too high, and there will be many overlaps of the farmed objects in the image, which makes the analysis of the image difficult. Therefore, the behavior of the farmed objects in the image data is identified to screen out the non-feeding period of the farmed objects. The intersection of the non-feeding period and the non-sinking period in the image data is selected, that is, the image data of the farmed objects that are neither eating nor sinking to the bottom, and the key frames are extracted by the key frame extraction algorithm. In this embodiment, the frame with the local maximum value of the average inter-frame differential intensity is specifically selected as the key frame of the image data, and the specific method is as follows:

[0056] (1) Read the video frame by frame and perform grayscale and Gaussian filtering.

[0057] (2) Calculate the absolute difference value, perform binarization processing and smooth the difference value list.

[0058] (3) Find the local maximum within the preset window.

[0059] (4) Traverse all video frames, extract video key frames and save them.

[0060] By extracting key frames, we finally obtained clear underwater images of the aquaculture objects in natural aquaculture conditions as analysis data sets.

[0061] Image analysis steps: Use the analysis data set as sample data to train the model, input the real-time image data into the trained model, and output the number and body shape characteristics of the breeding objects;

[0062] The image analysis steps are as follows: Figure 3 As shown, the following steps are included:

[0063] S210: labeling the analysis data set and training the image segmentation model;

[0064] S220: inputting the image data acquired in real time into the image segmentation model, and the image segmentation model segments the image data to obtain the image of the breeding object;

[0065] S230: Determine the number of breeding objects according to the breeding object images;

[0066] S240: Obtain reference target parameters, and determine body characteristics of the farming object based on the reference target parameters and the farming object image, where the body characteristics include body length and body width.

[0067] First, the contours of the farmed objects in the acquired data set are marked, and the image segmentation model is trained through a series of marked images. The newly acquired images are then input into the image segmentation model, which can automatically segment the farmed object images from the image data, and the contours are clear and distinguishable. Through image segmentation, after identifying each farmed object image from the image data, the farmed object images are identified and analyzed to identify the number and size of the farmed objects.

[0068] Then, the number of the breeding objects is determined according to the breeding object images, and S220 specifically includes the following steps:

[0069] S221: determining whether there are multiple overlapping breeding objects in the breeding object image, if not, marking them as the first image, if overlapping, marking them as the second image;

[0070] S222: Calculating the number of first breeding objects according to the number of first images;

[0071] S223: Obtain the number of heads and the number of tails of the cultured objects in the second image, and calculate the number of second cultured objects according to the number of heads and the number of tails;

[0072] S224: Calculate the total number of breeding objects according to the number of the first breeding objects and the number of the second breeding objects.

[0073] Determine whether there are multiple overlapping breeding objects in the segmented breeding object images. If there is no overlap, mark it as the first image; if there is overlap, mark it as the second image. The breeding object in the first image is single, so the number of the first image is counted, and the number of the first breeding objects is calculated to obtain the number of non-overlapping breeding objects. There are multiple overlapping breeding objects in the second image, so the number of heads and the number of tails in the second image are identified by image analysis. Because the breeding objects in the second image overlap, the head or tail of a breeding object may be blocked. Therefore, the larger value of the number of heads and the number of tails is used as the second breeding object data to ensure the accuracy of the result. Add the number of the first breeding objects to the number of the second breeding objects to finally determine the total number of breeding objects.

[0074] After determining the number of breeding objects, the body shape characteristics of the breeding objects are determined by comparing the breeding object images with reference objects. By selecting a fixed object in the image for exhibition, the exhibit in this embodiment is preferably a sewage pipe in the pond, and obtaining reference target parameters, namely the depth of the sewage pipe, the pixel size of the sewage pipe, and the actual size of the sewage pipe. At the same time as the image is collected, the depth of the breeding objects is determined by binocular ranging, and the pixel size of the breeding objects is determined according to the breeding object image. The depth of the sewage pipe, the pixel size of the sewage pipe, the actual size of the sewage pipe, the depth of the breeding object, and the pixel size of the breeding object are known. The actual size of the breeding object is obtained by proportional conversion, thereby obtaining the body shape characteristics of the breeding object, including the body length and width of the breeding object.

[0075] Data processing steps: Generate an estimate of the amount of food consumed by the farmed animals based on the number and body characteristics of the farmed animals.

[0076] The data processing steps include the following steps:

[0077] S310: inputting the body shape characteristics of the breeding object into the trained weight analysis model to obtain the weight data of the breeding object;

[0078] S311: Obtain external influencing factors;

[0079] S320: Inputting the weight data of the breeding objects, the number of breeding objects and external influencing factors into the trained food intake analysis model to obtain the food intake of the breeding objects.

[0080] Specifically, the weight analysis model is trained through deep learning, where the body length is l1, l2, ...ln; the body width is b1, b2, ...bn; and the weight is w1, w2, ...wn.

[0081]

[0082] The body length and body width of the farmed object are input into a trained weight analysis model to convert the body weight of the farmed object. In this embodiment, the body weight of the farmed object is rounded to grams.

[0083] At the same time, external influencing factors are obtained. In this embodiment, the external influencing factors specifically include the water temperature of the breeding area and the pH value of the breeding area. Through deep learning, a comparison table of the weight and food intake of the breeding objects, the influence trend of the water temperature in the breeding area on the food intake of the breeding objects, and the influence trend of the pH value in the breeding area on the food intake of the breeding objects are input in advance to train the food intake analysis model. The real-time measured weight of the breeding objects, the number of breeding objects, the water temperature in the breeding area, and the pH value of the breeding area are input into the food intake analysis model, and the food intake of the breeding objects is output through the food intake analysis model.

[0084] The present invention also discloses a system for estimating the food intake of a farmed object based on computer vision recognition, and the system uses the above-mentioned method for estimating the food intake of a farmed object based on computer vision recognition.

[0085] Embodiment 2

[0086] The difference between this embodiment and the first embodiment is that it further includes a feeding analysis step, which includes the following steps:

[0087] S410: Acquire image data of the breeding object after the feeding period;

[0088] S420: analyzing the amount of residual feed according to the image data after the feeding period of the breeding object;

[0089] It also includes the feeding strategy step: formulate a feeding strategy based on the amount of residual bait and the food intake of the farmed animals.

[0090] Specifically, the water surface image after feeding is analyzed in real time, and whether there is any residual bait on the water surface is determined based on the water surface image. When there is no residual bait on the water surface, feeding is carried out based on the analyzed feeding amount. When there is residual bait on the water surface, the feeding amount is analyzed based on the residual bait amount and the analyzed feeding amount of the breeding objects, and the difference between the feeding amount and the residual bait amount is used as the feeding amount.

[0091] The above are only embodiments of the present invention. Common knowledge such as the known specific structures and characteristics in the scheme is not described in detail here. Ordinary technicians in the relevant field know all the common technical knowledge in the technical field to which the invention belongs before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply conventional experimental means before that date. Ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the scope of protection of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A method for estimating the amount of food consumed by farmed animals based on computer vision recognition. Features: The following steps are involved: Image acquisition steps: collecting image data of breeding objects in the breeding area; Image processing steps: preprocess the image data to obtain the analysis data set; Image analysis steps: Use the analysis data set as sample data to train the model, input the real-time image data into the trained model, and output the number and body shape characteristics of the breeding objects; Data processing steps: Analyze the food intake of the farmed objects according to the number and body shape characteristics of the farmed objects, and generate an estimated result of the food intake of the farmed objects; The image processing step specifically includes the following steps: S110: Obtain the depth of the breeding area, and set the analysis area according to the depth of the breeding area; S120: Analyze the non-sinking period of the aquaculture object according to the analysis area range and the image data, and analyze the non-feeding period of the aquaculture object according to the image data; S130: extracting key frames from the intersection of the non-sinking period and the non-feeding period of the aquaculture object as an analysis data set.

2. The method for estimating the food intake of a farmed animal based on computer vision recognition according to claim 1, Features: The image analysis step specifically includes the following steps: S210: labeling the analysis data set and training the image segmentation model; S220: inputting the image data acquired in real time into the image segmentation model, and the image segmentation model segments the image data to obtain the image of the breeding object; S230: Determine the number of breeding objects according to the breeding object images; S240: Obtain reference target parameters, and determine body shape characteristics of the farming object according to the reference target parameters and the farming object image, where the body shape characteristics include body length and body width.

3. The method for estimating the food intake of a farmed animal based on computer vision recognition according to claim 2, Features: The S220 specifically includes the following steps: S221: determining whether there are multiple overlapping breeding objects in the breeding object image, if not, marking them as the first image, if overlapping, marking them as the second image; S222: Calculating the number of first breeding objects according to the number of first images; S223: Obtain the number of heads and the number of tails of the cultured objects in the second image, and calculate the number of second cultured objects according to the number of heads and the number of tails; S224: Calculate the total number of breeding objects according to the number of the first breeding objects and the number of the second breeding objects.

4. The method for estimating the food intake of a farmed animal based on computer vision recognition according to claim 3, Features: The data processing step specifically includes the following steps: S310: inputting the body shape characteristics of the breeding object into the trained weight analysis model to obtain the weight data of the breeding object; S320: Input the weight data of the breeding objects and the number of breeding objects into the trained food intake analysis model, and output the food intake of the breeding objects.

5. The method for estimating the food intake of a farmed animal based on computer vision recognition according to claim 4, Features: The data processing step also includes the following steps: S311: Obtain external influencing factors; The food intake analysis model in S320 also analyzes the food intake of the breeding objects based on the weight data of the breeding objects, the number of breeding objects and external influencing factors.

6. The method for estimating the food intake of a farmed animal based on computer vision recognition according to claim 5, Features: The feeding analysis step is also included, and the feeding analysis step includes the following steps: S410: Acquire image data of the breeding object after the feeding period; S420: analyzing the amount of residual feed according to the image data after the feeding period of the breeding object; It also includes the feeding strategy step: formulate a feeding strategy based on the amount of residual bait and the food intake of the farmed animals.

7. A system for estimating the amount of food consumed by farmed animals based on computer vision recognition. Features: The method for estimating the food intake of farmed objects based on computer vision recognition as described in any one of claims 1 to 6 is used.

Citation Information

Patent Citations

  • Aquatic animal counting system and method

    CN102073905A

  • Fish feeding method based on deep learning and image recognition

    CN113780225A

  • Accurate feeding system and method applied to recirculating aquaculture

    CN114557308A