A feeding method and system based on sow body condition
Through image collection and deep learning models, efficient and accurate measurement of sow weight and size is achieved, solving the problems of low efficiency and high cost of manual measurement in the existing technology, reducing breeding costs, and improving sow feeding efficiency. Accuracy and efficiency.
Patent Information
- Application Number
- CN202411020050.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing sow weight and size measurement relies on manual operation, which is inefficient and costly. The three-dimensional point cloud measurement algorithm is complex and requires a large amount of data, which increases the cost of breeding.
Image acquisition equipment is used to obtain images of the sow from the front, side, and above, and ternary size data is generated through a pre-trained three-branch convolutional neural network model, and input into a multi-layer perceptron to generate weight information and determine customized feeding information. .
It improves the efficiency of sow weight measurement, reduces labor costs and algorithm complexity, uses a monocular camera to reduce breeding costs, and has high prediction accuracy, ensuring the feeding effect.
Smart Images

Figure CN118552797B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of sow feeding, and relates to a feeding method and system based on the body condition of the sow. Background Art
[0002] Scientific and reasonable control of sow body condition helps optimize the health status and production performance of sows, and avoids the negative effects of being too fat or too thin on reproductive capacity and growth and development. Overweight sows may encounter difficulties during delivery, increasing the risk of dystocia, and may also lead to insufficient lactation, affecting the growth and development of piglets; while too thin sows may not be able to provide sufficient nutritional reserves, affecting their own health and reproductive capacity. Secondly, through precise control of sow body condition, feed utilization can be improved, feeding costs can be reduced, and higher economic benefits can be achieved. Scientific feeding management can ensure that each sow obtains the right amount of nutrition at different growth stages, avoid feed waste, and reduce the risk of diseases caused by malnutrition or overfeeding.
[0003] At present, most sows are fed by manually detecting their physical condition and formulating feeding plans. However, this feeding method has the following pain points: weight or size is difficult to measure; sow weight and size are mainly measured manually, which not only has high labor costs, but also easily causes sows to be frightened during pregnancy. In other words, measuring sow size is time-consuming and labor-intensive, and the measurement efficiency is low.
[0004] The study found that there is currently a method of using 3D point clouds to measure the weight of pigs, but the algorithm complexity of this method is relatively high and requires a large amount of data. In addition, in terms of equipment selection, depth cameras must be used, which also increases the cost of breeding. Summary of the invention
[0005] In order to solve the above-mentioned problems in the prior art, the present invention provides a feeding method and system based on the body condition of sows.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] In a first aspect, the present application provides a feeding method based on the body condition of a sow, comprising: obtaining a first image set, a second image set, and a third image set corresponding to a target sow; screening out N first selected images from the first image set, identifying the N first selected images, and determining an area of interest in each first selected image; determining a first image based on the area of interest in each first selected image; the first image corresponds to the front of the target sow; screening out N second selected images from the second image set, identifying the N second selected images, and determining an area of interest in each second selected image; determining a second image based on the area of interest in each second selected image; the second image corresponds to the front and side of the target sow; screening out N second selected images from the third image set, identifying the N second selected images, and determining an area of interest in each second selected image; determining a second image based on the area of interest in each second selected image; Output N third selected images, identify the N third selected images, and determine the region of interest in each third selected image; determine a third image based on the region of interest in each third selected image; the third image corresponds to the top of the target sow; input the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow; wherein the ternary size data of the target sow includes the length, width and height of the target sow; input the ternary size data of the target sow and the breed of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow; and determine the feeding information of the target sow based on the weight information of the target sow.
[0008] Optionally, the inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate the ternary size data of the target sow includes: inputting the first image, the second image and the third image into a pre-trained semantic segmentation network respectively to obtain a first sub-image, a second sub-image and a third sub-image; wherein the semantic segmentation network is used to extract the sow area in the image; performing background expansion on the first sub-image, the second sub-image and the third sub-image to expand them to the size of the original image; wherein the same pixel is used for expansion; and inputting the first sub-image, the second sub-image and the third sub-image after the background expansion into a pre-trained three-branch convolutional neural network model to generate the ternary size data of the target sow.
[0009] Optionally, the three-branch convolutional neural network model includes a first branch convolution module, a second branch convolution module, a third branch convolution module, a regression network module and a fully connected layer; the first image, the second image and the third image are input into a pre-trained three-branch convolutional neural network model to generate the ternary size data of the target sow, including: inputting the first image into the first branch convolution module, inputting the second image into the second branch convolution module, and inputting the third image into the third branch convolution module, so that the three branch convolution modules normalize the coordinates of the three images to the same space; transmitting the processed three images to the regression network module to predict the size of the target sow; and outputting the ternary size data of the target sow through the fully connected layer.
[0010] Optionally, determining the feeding information of the target sow based on the weight information of the target sow includes: obtaining the breed of the target sow; determining the feeding information of the target sow based on the weight information of the target sow and the breed of the target sow; wherein the feeding information includes feeding time and feed amount.
[0011] Optionally, the method also includes: obtaining the physiological stage of the target sow; determining the feeding information of the target sow based on the weight information of the target sow, the breed of the target sow and the physiological stage of the target sow; wherein the feeding information also includes feed additives corresponding to the physiological stage of the target sow.
[0012] Optionally, determining the feeding information of the target sow based on the weight information of the target sow, the breed of the target sow and the physiological stage of the target sow includes: obtaining a first data correspondence table corresponding to the breed of the target sow; wherein the first data correspondence table includes different weight information of sows of this breed and the corresponding feed feeding amount ranges; obtaining a second data correspondence table corresponding to the breed of the target sow; wherein the second data correspondence table includes feed feeding amount ranges corresponding to different physiological stages of sows of this breed; determining a first feed feeding amount range corresponding to the target sow based on the weight information of the target sow and the first data correspondence table; determining a second feed feeding amount range corresponding to the target sow based on the physiological stage of the target sow and the second data correspondence table; determining the feeding information of the target sow based on the first feed feeding amount range and the second feed feeding amount range.
[0013] Optionally, the first image set is acquired by an image acquisition device in front of the target sow, the second image set is acquired by an image acquisition device on the side of the target sow, and the third image set is acquired by an image acquisition device above the target sow.
[0014] Optionally, determining the first image based on the region of interest in each first selected image includes: calculating similarity between the region of interest in each first selected image and a preset object, and determining the first selected image with the highest similarity as the first image.
[0015] Optionally, after generating the feeding information of the target sow based on the weight information of the target sow, the method further includes: generating a feeding data table of the target sow; wherein the feeding data table of the target sow includes multiple data items; the data types of the data items include weight, size, type, feed information, and data collection time.
[0016] In a second aspect, the present application provides a feeding system based on the body condition of a sow, including: an acquisition module, for acquiring a first image set, a second image set, and a third image set corresponding to a target sow; screening out N first selected images from the first image set, identifying the N first selected images, and determining an area of interest in each first selected image; determining a first image based on the area of interest in each first selected image; the first image corresponds to the front of the target sow; screening out N second selected images from the second image set, identifying the N second selected images, and determining an area of interest in each second selected image; determining a second image based on the area of interest in each second selected image; the second image corresponds to the front side of the target sow; screening out N third selected images from the third image set, and determining an area of interest in each second selected image; The N third selected images are identified to determine the area of interest in each third selected image; a third image is determined based on the area of interest in each third selected image; the third image corresponds to the top of the target sow; a size generation module is used to input the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow; wherein the ternary size data of the target sow includes the length, width and height of the target sow; a weight generation module is used to input the ternary size data of the target sow and the breed of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow; a feeding information determination module is used to determine the feeding information of the target sow based on the weight information of the target sow.
[0017] The beneficial effects of this application include:
[0018] First, by collecting images of target sows, the target sows’ weight can be predicted. Compared with manual measurement, this method improves measurement efficiency and saves labor costs. Compared with using a depth camera to measure the weight of sows through a three-dimensional point cloud, the algorithm complexity is reduced and does not require too much data. At the same time, the image is collected using only an ordinary monocular camera, which reduces the breeding cost.
[0019] Second, the prediction of the sow weight provided in the embodiment of the present application first generates the ternary size data (length, width and height of the target sow) of the target sow through a pre-trained three-branch convolutional neural network model, and then inputs the ternary size data of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow. In this way, the prediction accuracy of the target sow weight is high.
[0020] Third, considering that the images collected from various angles may not be completely standard during the movement of the sow, image sets from various angles are collected and images that meet the requirements are selected from them. That is, after obtaining the image set, only N set selected images are selected for image recognition to reduce the amount of calculation, and the required images are determined by identifying the region of interest to ensure that the images finally input into the model are as standard as possible, that is, to ensure that the three images input into the model are the image directly in front of the target sow, the image directly to the side, and the image directly above, so as to improve the accuracy of the subsequent prediction of the weight information of the target sow, thereby improving the feeding effect of the target sow. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of a feeding method based on sow body condition provided by an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of the structure of a three-branch convolutional neural network model provided by an embodiment of the present invention;
[0023] Figure 3 A module block diagram of a feeding system based on sow body condition provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0025] At present, most sows are fed by manually detecting their physical condition and formulating feeding plans. However, this feeding method has the following pain points: weight or size is difficult to measure; sow weight and size are mainly measured manually, which not only has high labor costs, but also easily causes sows to be frightened during pregnancy. In other words, measuring sow size is time-consuming and labor-intensive, and the measurement efficiency is low.
[0026] The study found that there is currently a method of using 3D point clouds to measure the weight of pigs, but the algorithm complexity of this method is relatively high and requires a large amount of data. In addition, in terms of equipment selection, depth cameras must be used, which also increases the cost of breeding.
[0027] In view of the above problems, the present application provides the following embodiments to solve them:
[0028] See also Figure 1 , an embodiment of the present application provides a feeding method based on the body condition of a sow, comprising: steps 101 to 107.
[0029] Step 101: Acquire a first image set, a second image set, and a third image set corresponding to a target sow.
[0030] The first image set corresponds to the front view of the target sow, the second image set corresponds to the side view of the target sow, and the third image set corresponds to the upper view of the target sow.
[0031] Here, the first image set is collected by an image acquisition device in front of the target sow, the second image set is collected by an image acquisition device on the side of the target sow, and the third image set is collected by an image acquisition device above the target sow. That is, different image acquisition devices are responsible for collecting images of the target sow in different directions and constructing image sets.
[0032] In other embodiments, at least one image acquisition device may be used to acquire images of the target sow, and after all acquired images are aggregated, the first image set, the second image set, and the third image set may be determined by image recognition.
[0033] Step 102: select N first selected images from the first image set, identify the N first selected images, and determine the region of interest in each first selected image; determine the first image based on the region of interest in each first selected image; the first image corresponds to the front of the target sow.
[0034] Wherein, N is a positive integer. N can be 5, 7, 9, 11, etc. From the perspective of computational complexity, the value of N can be 7, so as to determine a better and effective image without a large amount of computation.
[0035] Here, the region of interest is the sow region, and the above recognition process can use a semantic segmentation network to determine the region of interest.
[0036] In one embodiment, N first selected images may be randomly selected from the first image set, or may be selected from the first image set at intervals, which is not limited in the present application.
[0037] It should be noted that the first image can be understood as an image in which the target sow is located directly in front of the N first selected images. Although the first image set is all images corresponding to the front of the target sow, since the target sow is in motion, the collected front images may have deviations. Therefore, the above screening process is used to select the most standard front image of the target sow.
[0038] Step 103: select N second selected images from the second image set, identify the N second selected images, and determine the region of interest in each second selected image; determine the second image based on the region of interest in each second selected image; the second image corresponds to the front side of the target sow.
[0039] Step 104: select N third selected images from the third image set, identify the N third selected images, and determine the region of interest in each third selected image; determine the third image based on the region of interest in each third selected image; the third image corresponds to the top of the target sow.
[0040] The determination process of the second image and the determination process of the third image may refer to the determination process of the first image in the aforementioned step 102, and will not be described in detail here.
[0041] Step 105: Input the first image, the second image, and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow.
[0042] Among them, the ternary size data of the target sow includes the length, width and height of the target sow.
[0043] Step 106: Input the ternary size data of the target sow and the breed of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow.
[0044] Step 107: Based on the weight information of the target sow, determine the feeding information of the target sow.
[0045] That is, the embodiment of the present application provides a method for measuring the size of a sow by means of an image, predicting the weight of the sow by the size of the sow, and then formulating customized feeding information for the sow by the weight of the sow.
[0046] In this embodiment of the present application, it is necessary to simultaneously obtain images corresponding to three angles of the target sow, namely, the image corresponding to the front of the target sow (i.e., the first image), the image corresponding to the side of the target sow (i.e., the second image), and the image corresponding to the top of the sow (i.e., the third image).
[0047] The above-mentioned image acquisition devices can all be monocular cameras or monocular cameras.
[0048] Then, the first image, the second image, and the third image of the target sow are input into a pre-trained three-branch convolutional neural network model to obtain the ternary size data of the target sow (the length, width, and height of the target sow).
[0049] Next, the ternary size data of the target sow is input into a pre-trained multi-layer perceptron to generate the weight information of the target sow.
[0050] Finally, the feeding information of the target sow is determined based on the predicted weight information of the target sow.
[0051] For example, the feeding information here may refer to the feed amount of the target sow. The corresponding relationship between the weight range and the feeding range can be preset. For example, if the sow weighs 20-30 kg, the corresponding feed amount is 1.5-1.8 kg.
[0052] Assuming that the current target sow weighs 25 kg, a value between 1.5 and 1.8 kg can be randomly set as the target sow's feed feeding amount, such as 1.6 kg, 1.7 kg, etc. Of course, in other embodiments, the feed feeding amount of the same proportion in the feed feeding amount can also be determined according to the proportion of the target sow in the corresponding interval. This application does not limit this.
[0053] It should be noted that, since the weight of the sow is usually positively correlated with her fat condition, the above method is equivalent to feeding according to the fat condition of the sow.
[0054] In summary, the feeding method based on the sow's body condition provided in the embodiment of the present application has the following beneficial effects:
[0055] First, by collecting images of target sows, the target sows’ weight can be predicted. Compared with manual measurement, this method improves measurement efficiency and saves labor costs. Compared with using a depth camera to measure the weight of sows through a three-dimensional point cloud, the algorithm complexity is reduced and does not require too much data. At the same time, the image is collected using only an ordinary monocular camera, which reduces the breeding cost.
[0056] Second, the prediction of the sow weight provided in the embodiment of the present application first generates the ternary size data (length, width and height of the target sow) of the target sow through a pre-trained three-branch convolutional neural network model, and then inputs the ternary size data of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow. In this way, the prediction accuracy of the target sow weight is high.
[0057] Third, considering that the images collected from various angles may not be completely standard during the movement of the sow, image sets from various angles are collected and images that meet the requirements are selected from them. That is, after obtaining the image set, only N set selected images are selected for image recognition to reduce the amount of calculation, and the required images are determined by identifying the region of interest to ensure that the images finally input into the model are as standard as possible, that is, to ensure that the three images input into the model are the image directly in front of the target sow, the image directly to the side, and the image directly above, so as to improve the accuracy of the subsequent prediction of the weight information of the target sow, thereby improving the feeding effect of the target sow.
[0058] In addition, although the growth cycle of sows has a certain regularity from a statistical point of view, differences between individual sows are inevitable. Under the same feeding plan, some sows may grow faster in weight and size while some sows grow slower. Moreover, it is difficult to regulate the feeding plans for different individuals when the number of sows is large. The embodiment of the present application formulates customized feeding information for each sow based on its weight to accurately control the growth of each sow.
[0059] In one embodiment, the image acquisition device is arranged at the exit passage of the sow enclosure area, or may be arranged on the sow feeding limit fence. Three image acquisition devices are arranged in three directions of the target sow respectively.
[0060] Optionally, the determining the first image based on the region of interest in each first selected image may further include: calculating similarity between the region of interest in each first selected image and a preset object, and determining the first selected image with the highest similarity as the first image.
[0061] In order to achieve high-precision size measurement, it is necessary to collect images including the front, side and top as much as possible. Therefore, the present application provides a method of setting an object for similarity calculation to determine the first selected image with the highest similarity as the first image, so as to select the image facing as much as possible.
[0062] It should be explained that the setting object is a pre-acquired standard cross-sectional view of a sow in a certain direction. Each direction is provided with a corresponding setting object. For example, the first selected image is similar to the standard cross-sectional view directly in front of the sow.
[0063] Optionally, the determining of the first image based on the region of interest in each first selected image may further include: calculating the deviation between the region of interest in each first selected image and the exact center of the image, and determining the first selected image with the smallest deviation as the first image.
[0064] Similarly, this method is also to achieve high-precision size measurement, and it is necessary to collect images including the front, side and top as much as possible. Since the position of the image acquisition device is fixed, when the sow passes by the image acquisition device, the image when the sow is exactly at the center of the image can be determined as the first image (the same applies to the second and third images).
[0065] Optionally, the above step of determining the second image based on the region of interest in each second selected image may include: comparing the area sizes of the region of interest in each second selected image, and determining the second selected image with the largest region of interest as the second image.
[0066] Similarly, this method is also to achieve high-precision size measurement, and it is necessary to collect images facing the front and side as much as possible. Therefore, the present application provides a method for comparing the area sizes of the regions of interest identified in multiple images to select images facing the front and side as much as possible.
[0067] Optionally, the above step of inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow may specifically include: inputting the first image, the second image and the third image into a pre-trained semantic segmentation network respectively to obtain a first sub-image, a second sub-image and a third sub-image; wherein the semantic segmentation network is used to extract the sow area in the image; performing background expansion on the first sub-image, the second sub-image and the third sub-image to expand them to the size of the original image; wherein the same pixel is used for expansion; and inputting the first sub-image, the second sub-image and the third sub-image after the background expansion into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow.
[0068] Specifically, after obtaining the first image , second image And the third image Then, we use the semantic segmentation network to segment the first image , second image And the third image The area where the sow image exists is extracted to obtain the first sub-image , the second sub-image And the third sub-image , then, for the first sub-image , the second sub-image And the third sub-image Perform background expansion, where white pixels can be used for expansion. Each sub-image is changed to the original image size through expansion. Then, the first sub-image after background expansion is , the second sub-image And the third sub-image Input into the pre-trained three-branch convolutional neural network model to generate the ternary size data of the target sow.
[0069] It should be noted that the above method is used to further reduce the amount of calculation, while avoiding interference of the background environment on the prediction and reducing the prediction error.
[0070] Optionally, the three-branch convolutional neural network model includes a first branch convolutional module, a second branch convolutional module, a third branch convolutional module, a regression network module and a fully connected layer; the first image, the second image and the third image are input into the pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow, including: inputting the first image into the first branch convolutional module, inputting the second image into the second branch convolutional module, and inputting the third image into the third branch convolutional module, so that the three branch convolution modules normalize the coordinates of the three images to the same space; transmitting the processed three images to the regression network module to predict the size of the target sow; and outputting the ternary size data of the target sow through the fully connected layer.
[0071] It should be noted that the three images correspond to the X-axis, the Y-axis and the Z-axis, respectively, that is, they correspond to the length, width and height of the target sow, respectively.
[0072] See also Figure 2 , the first image (corresponding to the X-axis), the second image (corresponding to the Y-axis) and the third image (corresponding to the Z-axis) are respectively input into the corresponding three branch convolution modules. Specifically, the first image is input into the first branch convolution module (ConvNet1), the second image is input into the second branch convolution module (ConvNet2), and the third image is input into the third branch convolution module (ConvNet3). The three branch convolution modules normalize the coordinates of different images into the same space. Subsequently, the size of the target sow is predicted through the regression network model (RegNet), and a ternary size data is input through the fully connected layer (FC). The three-dimensional data corresponds to the length, width and height of the target sow.
[0073] Optionally, the expression form of the pre-trained multi-layer perceptron in the embodiment of the present application is:
[0074] ;
[0075] Among them, the above formula represents the parameter set as Multilayer Perceptron ; represents the manual weight measurement result of the i-th sow, represents the number of sows, represents the ternary size data of the i-th sow; Indicates the type of sow (when the type of sow is not considered, this parameter can be deleted); the above formula is used to find the optimal . It means that based on the ternary size data and type of the i-th sow, the weight prediction result of the i-th sow is output.
[0076] Optionally, based on the weight information of the target sow, the feeding information of the target sow is determined, including: obtaining the breed of the target sow; based on the weight information of the target sow and the breed of the target sow, determining the feeding information of the target sow; wherein the feeding information includes feeding time and feed amount.
[0077] That is, in an embodiment of the present application, a method is provided for formulating feeding information based on the breed and weight of the target sow, thereby achieving more accurate feeding.
[0078] For example, the feed feeding amount can be set for sows of different breeds by dividing them into weight ranges. For example, Duroc pigs are divided by weight as the threshold factor. The daily feeding amount is 1.5-2.0 kg when the weight is 20-50 kg, 2.5-3.0 kg when the weight is 50-90 kg, and 3.0-3.5 kg when the weight is 90-120 kg.
[0079] Optionally, the method also includes: obtaining the physiological stage of the target sow; determining the feeding information of the target sow based on the weight information of the target sow, the breed of the target sow and the physiological stage of the target sow; wherein the feeding information also includes feed additives corresponding to the physiological stage of the target sow.
[0080] That is to say, this time the physiological stages of different sows are taken into consideration, and more precise feeding is achieved by combining the physiological conditions of different sows.
[0081] The above-mentioned physiological stages may include, but are not limited to, the sow reserve stage (i.e., breeding), the sow breeding stage, the sow early pregnancy stage, the sow mid-pregnancy stage, the sow late pregnancy stage, the sow lactation stage, the sow post-weaning stage, etc.
[0082] The above physiological stages need to be manually determined and input in actual operation.
[0083] It should be noted that different physiological stages of sows usually require different feeding amounts. For example, during the breeding stage, only the amount of feed that provides basic nutritional needs is needed to avoid obesity. In the middle and late stages of sow pregnancy, the amount of feed needs to be appropriately increased to ensure that the piglets can get enough nutrition.
[0084] The above-mentioned feed additives may include but are not limited to antioxidants, vitamin C, etc. For example, Pietrain sows need more amino acids, such as lysine, in the feed formula during lactation to support their high milk production and rapid growth of piglets.
[0085] Optionally, based on the weight information of the target sow, the breed of the target sow and the physiological stage of the target sow, the feeding information of the target sow is determined, including: obtaining a first data correspondence table corresponding to the breed of the target sow; wherein the first data correspondence table includes different weight information of sows of this breed and the corresponding feed feeding amount ranges; obtaining a second data correspondence table corresponding to the breed of the target sow; wherein the second data correspondence table includes feed feeding amount ranges corresponding to different physiological stages of sows of this breed; based on the weight information of the target sow and the first data correspondence table, determining the first feed feeding amount range corresponding to the target sow; based on the physiological stage of the target sow and the second data correspondence table, determining the second feed feeding amount range corresponding to the target sow; based on the first feed feeding amount range and the second feed feeding amount range, determining the feeding information of the target sow.
[0086] It is understandable that the first data correspondence table and the second data correspondence table are pre-set, and then the first data correspondence table and the second data correspondence table are combined to realize the accurate feeding information of the target sow. It is understandable that the above-mentioned determination of the feeding information of the target sow based on the first feed feeding amount range and the second feed feeding amount range can be specifically to collect the intersection of the first feed feeding amount range and the second feed feeding amount range, and determine the feed feeding amount in the intersection as the feeding information of the target sow. The intersection can be understood as a comprehensive consideration of the two factors of sow weight and physiological stage, thereby achieving more accurate feeding.
[0087] Optionally, after generating the target sow's feeding information based on the target sow's weight information, the method further includes: generating a feeding data table for the target sow; wherein the target sow's feeding data table includes multiple data items; the data types of the data items include weight, size, type, feed information, and data collection time.
[0088] By generating a feeding data table for target sows, the full cycle of target sows can be managed.
[0089] In one embodiment, the present application also provides an RFID (Radio Frequency Identification) tag ear clip and an RFID reader / writer.
[0090] Users can manually add the target sow’s breed to the RFID tag ear clip and then wear it on the target sow’s ear.
[0091] At the same time, all data of the sow can be transmitted to the user's device, which can provide functions such as automatic update, automatic data deletion, and manual data deletion.
[0092] In addition, the feeding method based on the sow's body condition provided in the embodiment of the present application can also be used in combination with an automatic feeding device.
[0093] The following is a process method, including:
[0094] Step 1: The user first manually sets the breed of the target sow through the RFID tag ear clip and RFID reader.
[0095] Step 2: After setting, wear it on the sow's ear.
[0096] Step 3: Set up the image acquisition equipment at the exit of the sow enclosure. When the sow passes through the exit channel, the image acquisition equipment will capture the image of the sow and send the image to the background equipment for weight and size measurement. After the measurement is completed, the exit gate opens and the sow passes through.
[0097] Step 4: The backend equipment will generate professional data tables for all sows, including data update time, weight, size, and type. Since it is difficult to judge the pregnancy of a sow through images, the settings for special periods still rely on manual modification by the user.
[0098] Step 5: When preparing ingredients daily, give the corresponding feeding plan (for each sow) through professional data tables.
[0099] Step 6: The user configures the feed according to the feeding plan (either manually or automatically through an automatic feeding device).
[0100] See also Figure 3In a second aspect, an embodiment of the present application provides a feeding system 30 based on the body condition of a sow, comprising: an acquisition module 301, for acquiring a first image, a second image and a third image corresponding to a target sow; wherein the first image is an image corresponding to the front of the target sow, the second image is an image corresponding to the side of the target sow, and the third image is an image corresponding to the top of the target sow; a size generation module 302, for inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow; wherein the ternary size data of the target sow includes the length, width and height of the target sow; a weight generation module 303, for inputting the ternary size data of the target sow and the breed of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow; a feeding information determination module 304, for determining the feeding information of the target sow based on the weight information of the target sow.
[0101] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0102] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0103] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", and "assemble" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0104] In the description of the embodiments of the present invention, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.
[0105] In the description of the embodiments of the present invention, it should be understood that "-" and "~" represent a range between two values, and the range includes the endpoints. For example, "AB" represents a range greater than or equal to A and less than or equal to B. "A~B" represents a range greater than or equal to A and less than or equal to B.
[0106] In the description of the embodiments of the present invention, the term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the associated objects before and after are in an "or" relationship.
[0107] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A feeding method based on sow body condition, characterized in that: include: Acquire a first image set, a second image set, and a third image set corresponding to a target sow; Selecting N first selected images from the first image set, identifying the N first selected images, and determining a region of interest in each first selected image; determining a first image based on the region of interest in each first selected image; The first image corresponds to the front of the target sow; Selecting N second selected images from the second image set, identifying the N second selected images, and determining a region of interest in each second selected image; Determine a second image based on the region of interest in each second selected image; the second image corresponds to the front side of the target sow; Selecting N third selected images from the third image set, identifying the N third selected images, and determining a region of interest in each third selected image; Determine a third image based on the region of interest in each third selected image; the third image corresponds to the top of the target sow; Inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow; wherein the ternary size data of the target sow includes the length, width and height of the target sow; Inputting the ternary size data of the target sow and the breed of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow; Based on the weight information of the target sow, feeding information of the target sow is determined.
2. The feeding method based on sow body condition according to claim 1, characterized in that: The step of inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow includes: Inputting the first image, the second image and the third image into a pre-trained semantic segmentation network respectively to obtain a first sub-image, a second sub-image and a third sub-image; wherein the semantic segmentation network is used to extract a sow area in the image; Performing background expansion on the first sub-image, the second sub-image, and the third sub-image to expand them to the size of the original images; wherein the expansion is performed using the same pixel; The first sub-image, the second sub-image and the third sub-image after background expansion are input into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow.
3. The feeding method based on sow body condition according to claim 1, characterized in that: The three-branch convolutional neural network model includes a first branch convolution module, a second branch convolution module, a third branch convolution module, a regression network module and a fully connected layer; The step of inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow includes: Inputting the first image into the first branch convolution module, inputting the second image into the second branch convolution module, and inputting the third image into the third branch convolution module; The three processed images are transmitted to the regression network module to predict the size of the target sow; The ternary dimension data of the target sow is output through the fully connected layer.
4. The feeding method based on sow body condition according to claim 1, characterized in that: The step of determining the feeding information of the target sow based on the weight information of the target sow comprises: Obtaining the breed of the target sow; Determining feeding information of the target sow based on the weight information of the target sow and the breed of the target sow; The feeding information includes feeding time and feed amount.
5. The feeding method based on sow body condition according to claim 4, characterized in that: The method further comprises: Obtaining the physiological stage of the target sow; Determining feeding information of the target sow based on the weight information of the target sow, the breed of the target sow, and the physiological stage of the target sow; The feeding information also includes feed additives corresponding to the physiological stage of the target sow.
6. The feeding method based on sow body condition according to claim 5, characterized in that: The step of determining the feeding information of the target sow based on the weight information of the target sow, the breed of the target sow, and the physiological stage of the target sow includes: Obtaining a first data correspondence table corresponding to the breed of the target sow; wherein the first data correspondence table includes different weight information of the sow of the breed and the feed feeding amount range corresponding thereto; Obtaining a second data correspondence table corresponding to the breed of the target sow; wherein the second data correspondence table includes feed feeding amount ranges corresponding to different physiological stages of the breed of sow; Determine a first feed feeding amount range corresponding to the target sow based on the weight information of the target sow and the first data correspondence table; Determining a second feed feeding amount range corresponding to the target sow based on the physiological stage of the target sow and the second data correspondence table; Based on the first feed feeding amount range and the second feed feeding amount range, feeding information of the target sow is determined.
7. The feeding method based on sow body condition according to claim 1, characterized in that: The first image set is collected by an image acquisition device in front of the target sow, the second image set is collected by an image acquisition device on the side of the target sow, and the third image set is collected by an image acquisition device above the target sow.
8. The feeding method based on sow body condition according to claim 7, characterized in that: The step of determining the first image based on the region of interest in each first selected image comprises: A similarity calculation is performed between the region of interest in each first selected image and the preset object, and the first selected image with the highest similarity is determined as the first image.
9. The feeding method based on sow body condition according to claim 1, characterized in that: After generating the feeding information of the target sow based on the weight information of the target sow, the method further includes: Generate a feeding data table for the target sow; wherein the feeding data table for the target sow includes multiple data items; the data types of the data items include weight, size, type, feed information, and data collection time.
10. A feeding system based on sow body condition, characterized in that: include: An acquisition module, used to acquire a first image set, a second image set and a third image set corresponding to a target sow; Selecting N first selected images from the first image set, identifying the N first selected images, and determining a region of interest in each first selected image; Determine a first image based on the region of interest in each first selected image; the first image corresponds to the front of the target sow; Selecting N second selected images from the second image set, identifying the N second selected images, and determining a region of interest in each second selected image; Based on the region of interest in each second selected image, determine the second image; the second image corresponds to the front side of the target sow; select N third selected images from the third image set, identify the N third selected images, and determine the region of interest in each third selected image; Determine a third image based on the region of interest in each third selected image; the third image corresponds to the top of the target sow; A size generation module, used for inputting the first image, the second image and the third image into a pre-trained three-branch convolutional neural network model to generate ternary size data of the target sow; wherein the ternary size data of the target sow includes the length, width and height of the target sow; A weight generation module, used for inputting the ternary size data of the target sow and the breed of the target sow into a pre-trained multi-layer perceptron to generate the weight information of the target sow; A feeding information determination module is used to determine the feeding information of the target sow based on the weight information of the target sow.
