A digital breeding management method and a digital breeding management system
Through passive ear tag positioning and image processing technology, combined with multiple signal transmitters and monitoring devices, the problem of ear tag loss caused by the high frequency of pig pen changes is solved, the full-time tracking and refined management of pigs are realized, and the breeding efficiency is improved. Management accuracy and reliability.
Patent Information
- Application Number
- CN202410758818.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-13
AI Technical Summary
In large-scale breeding, pigs change pens frequently and the ear tag polling time is long, resulting in the loss of some ear tags, making it impossible to monitor the pig breeding behavior. It is difficult to realize pig identification and supervision around the clock with existing technology.
Using passive ear tag positioning and image processing technology, multiple signal transmitters are used to determine the location data of pigs in the feeding area, combined with monitoring devices to obtain video streams of pigs, extract pig characteristic maps and construct body size and morphological parameter sets to predict loss The position of the ear tag enables full-time tracking of pigs.
It achieves refined management of pigs, ensures full-time tracking and supervision of pigs, reduces monitoring interruptions caused by loss of ear tags, and improves the accuracy and reliability of breeding management.
Smart Images

Figure CN118333080B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital breeding management, and in particular to a digital breeding management method and a digital breeding management system. Background Art
[0002] In the context of the current technologically driven transformation of the breeding industry, intelligent and refined pig management has become one of the core elements of large-scale breeding. Digital management of livestock usually uses image recognition or infrared transceivers to track the location of livestock. In the prior art, a Chinese patent application with publication number CN115909481A discloses a pig posture tracking method based on edge computing and improved yolo, which divides the behavior monitoring data set in proportion to obtain a training set and a test set. Then, a target recognition model is constructed, and the recognition detection results are input into the target tracking model to further identify and track the pig herd to obtain the pig behavior tracking results. Although machine learning has improved the tracking accuracy to a certain extent, with the growth of livestock activities and body shapes, the recognition difficulty is greater. The Chinese patent with application number CN202311469554.1 of the applicant discloses a method for tracking ear tags and a method for collecting breeding data. The patent tracks the location of each pig by polling the ear tags and identifies changes in the body temperature or trajectory of the pigs. However, in large-scale farming, the frequency of pig pen changes is high, the polling time of ear tags is long, and it is easy to lose the location of some ear tags, resulting in the inability to monitor the farming behavior of pigs. Therefore, it is necessary to provide a digital farming management method that can realize pig identification and supervision around the clock and achieve refined farming management. Summary of the invention
[0003] In view of the above problems, the present invention discloses a digital breeding management method and a digital breeding management system. The present invention realizes full-time tracking of live pigs and realizes refined breeding management by using passive ear tag positioning and image processing technology.
[0004] The invention objectives of this application can be achieved through the following technical solutions:
[0005] A digital breeding management method comprises the following steps:
[0006] Step 1: Arrange multiple feeding areas in the farm, each feeding area has at least one feeding device, and set a reader, multiple signal transmitters and a monitoring device in each feeding area;
[0007] Step 2: Assign ear tags to each pig in the farm, each reader has a signal coverage area larger than the feeding area, and any reader identifies M groups of ear tags in the corresponding signal coverage area;
[0008] Step 3: The signal transmitter transmits a ranging signal to the feeding area, predicts the position data of the M groups of ear tags, and determines the N groups of ear tags in the feeding area;
[0009] Step 4: The signal transmitter periodically updates the position data of the ear tag n, the monitoring device obtains the video stream of the feeding area, and marks the ear tag number to the video stream according to the position data of the ear tag, n≤N;
[0010] Step 5: Extract key frames from the video stream and identify the pig feature map G corresponding to the ear tag n according to the pig biological model n , extract the characteristic data of the pig characteristic map, and then construct the body size parameter set U of the pig corresponding to the ear tag n according to the characteristic data n and the morphological parameter set V n ;
[0011] Step 6: Identify the feeding equipment in the key frame, predict the feeding behavior of the pigs based on the morphological parameter set and the position data of the feeding equipment, and output the breeding data based on multiple feeding behaviors;
[0012] Step 7: If at least one ear tag is missing in the key frame, extract the unlabeled pig feature map in the key frame and then proceed to step 8, otherwise return to step 5;
[0013] Step 8: predicting a first expected atlas R1 of the pigs with lost ear tags n' according to the historical position data, and predicting a second expected atlas R2 according to the body size parameter set of the pigs with lost ear tags n', wherein both the first expected atlas R1 and the second expected atlas R2 include at least one unlabeled pig feature map;
[0014] Step 9: Determine the pig characteristic graph G' corresponding to the ear tag n' according to the first expected graph set and the second expected graph set, extract the characteristic data of the pig characteristic graph G', and update the body size parameter set U of the pig corresponding to the ear tag n' according to the characteristic data n' and the morphological parameter set V n' , return to step 6.
[0015] In the present invention, in step 2, ear tags are allocated to M1 pigs in the breeding farm. After the pigs are moved to another pen, the reader in each feeding area transmits a broadcast signal and identifies the M2 group ear tags that respond to the broadcast signal. The reader transmits a polling signal to the M2 group ear tags, and the reader determines the M group ear tags that are in the signal coverage area based on the response signal.
[0016] In the present invention, in step 3, an attenuation parameter is generated according to the calibrated distance between multiple signal transmitters in the same feeding area and the first measured distance, a corrected distance between the ear tag and the signal transmitter is determined according to the second measured distance between the signal transmitter and the ear tag and the attenuation parameter, and the position data of the ear tag is predicted according to at least three corrected distances.
[0017] In the present invention, in step 3, if the position data of the ear tag belongs to the coordinate interval of the feeding area in three consecutive signal cycles, the ear tag is located in the feeding area.
[0018] In the present invention, in step 4, an identification frame of ear tag n is created, the identification frame has the ear tag number of ear tag n, and the identification frame is inserted into the corresponding position data of the video stream.
[0019] In the present invention, in step 5, the contour line and the center line of the pig feature map are extracted, the envelope polygon of the pig feature map is generated, the distance between the contour line and the envelope polygon in the direction perpendicular to the center line is calculated, and the feature data is determined according to the extreme value of the distance, and the feature data includes ear root feature points p1 and p2, shoulder feature points p3 and p4, abdomen feature points p5 and p6, buttocks feature points p7 and p8, tail root feature points p9 and p10. 10 .
[0020] In the present invention, the ear tag n corresponds to the body size parameter set U of the live pig. n ={x1,x2,x3,x4,x5,x6,x7,x8}, x1= |p1-p2|, x2=|p3-p4|, x3=|p5-p6|, x4=|p7-p8|, x5=|p9-p 10 |, x6=(|p3-p5|+|p4-p6|) / 2, x7=(|p5-p7|+|p6-p8|) / 2, x8=(| p7-p9|+|p8-p 10 |) / 2, morphological parameter set , p0 is the position data of the ear tag.
[0021] In the present invention, in step 8, multiple groups of single-frame images of the video stream are intercepted at the time of the key frame, the position data of the ear tag n' in each single-frame image is determined, the expected position data of the ear tag n' in the key frame image is predicted, the pig feature map G' is arranged according to the distance between the pig feature map G' and the expected position data, and the first expected atlas R1 is generated.
[0022] In the present invention, in step 8, the body size parameter set U of the ear tag n' is extracted. n' , calculate the body size parameter set U' of the pig characteristic graph G', according to the body size parameter set U n' The pig characteristic graphs are arranged according to the similarity with the body size parameter set U', and the second expected graph set R2 is generated.
[0023] A digital farming management system for implementing the digital farming management method includes: a feeding device, a monitoring device, a reader, a signal transmitter, a plurality of ear tags, an image processing unit, a storage unit, a first analysis unit and a second analysis unit, wherein:
[0024] Feeding equipment is located in each feeding area;
[0025] The monitoring device is used to obtain the video stream of the feeding area;
[0026] Each ear tag corresponds to one pig;
[0027] The reader is used to identify the ear tags in the signal coverage area;
[0028] The signal transmitter is used to generate the position data of the ear tag;
[0029] The image processing unit is used to extract the pig feature map of the video stream and construct a body size parameter set and a morphology parameter set;
[0030] The storage unit is used to store a body size parameter set and a morphology parameter set;
[0031] The first analysis unit is used to predict the feeding behavior of the pigs based on the morphological parameter set and the position data of the feeding equipment;
[0032] The second analysis unit is used to generate a first expected atlas and a second expected atlas of lost ear tags, and determine corresponding pig feature maps.
[0033] The implementation of the digital breeding management method and digital breeding management system of the present invention has the beneficial effects of: determining the position data of the pigs in the feeding area through multiple groups of signal transmitters, obtaining the pig characteristic map of the pigs through the monitoring device, marking the position data of the ear tag to the pig characteristic map of the pig, and realizing more intuitive and detailed digital breeding. When the ear tag is lost in the video stream, the present invention predicts a first expected atlas based on the historical position data of the ear tag, and predicts a second expected atlas based on the pig body size parameter set, and comprehensively matches the lost ear tag and the unmarked pig characteristic map with the first expected atlas and the second expected atlas. Furthermore, the present invention realizes accurate acquisition of the ear tag position data by deploying signal transmitters at multiple points in the feeding area and determining the attenuation parameters based on the influence of environmental factors on the positioning of the ear tag. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flow chart of the digital breeding management method of the present invention;
[0035] Figure 2 A schematic diagram of the distribution of signal transmitters in multiple feeding areas of the present invention;
[0036] Figure 3 It is a schematic diagram of the ear tag for screening group M of the present invention;
[0037] Figure 4 A schematic diagram of the signal coverage area of the reader of the present invention;
[0038] Figure 5 It is a schematic diagram of the pig characteristic diagram of the present invention;
[0039] Figure 6 It is a schematic diagram of the pig body size parameter set of the present invention;
[0040] Figure 7 It is a schematic diagram of the pig morphology parameter set of the present invention;
[0041] Figure 8 is a schematic diagram of a first ranging signal of the present invention;
[0042] Fig. 9 is a schematic diagram of a second ranging signal of the present invention;
[0043] Fig.10 is a schematic diagram of an envelope polygon of the present invention;
[0044] Fig.11 The block diagram is a digital breeding management system of the digital breeding management method of the present invention. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0046] In modern large-scale farming, the farm is divided into multiple feeding areas, and each feeding area is set with a feeding plan based on the growth stage, gender and health status of the pigs. Digital farming technology determines the location data of the pigs through the unique ear tags worn by the pigs, so that the farm can grasp the precise location and growth status of each pig in real time. Due to the large number of pigs, the reader or signal transmitter loses some ear tags in some time periods, resulting in the inability to mark the ear tags in the video stream. The present invention uses passive ear tag positioning and image processing technology to achieve predictive pairing of lost ear tags, achieve full-time tracking of pigs, and achieve refined farming management. Embodiment 1
[0047] Reference Figure 1 The digital farming management method of the present invention described in detail in this embodiment comprises the following steps:
[0048] Step 1: Arrange multiple feeding areas in the farm. Each feeding area has at least one feeding device. A reader, multiple signal transmitters and a monitoring device are installed in each feeding area. The reader screens active ear tags, and the ear tags can report data such as the pig's body temperature to the reader. Feeding equipment includes but is not limited to drinking water equipment, feeding equipment, etc. Feeding equipment usually has fixed area and contour data, and location data can be quickly extracted. The monitoring device, such as a high-definition camera, is usually installed directly above the feeding area and can cover all pigs in the feeding area. Figure 2,Multiple signal transmitters are installed at the edge of the feeding area, which can transmit or receive signals of specific frequencies to obtain the location data of active ear tags.
[0049] Step 2: Assign ear tags to each pig in the farm. Each reader has a signal coverage area larger than the feeding area. Any reader identifies the M groups of ear tags in the corresponding signal coverage area. Assign ear tags to M1 pigs in the farm. After the pigs are moved to another pen, the reader in each feeding area transmits a broadcast signal and identifies the M2 groups of ear tags that respond to the broadcast signal. The reader transmits a polling signal to the M2 group of ear tags. The reader determines the M groups of ear tags in the signal coverage area based on the response signal. Figure 3 , the M group of ear tags obtained after multiple broadcast polling operations are within the M1 group of ear tags, M1≥M2≥M.
[0050] Step 3: The signal transmitter transmits a ranging signal to the feeding area, predicts the location data of M groups of ear tags, and determines the N groups of ear tags in the feeding area. Figure 4 , the feeding area is square, and not all of the M groups of ear tags are in the current feeding area. In each signal cycle, the signal transmitter transmits a set of ranging signals, and then determines the position data of the ear tags by triangulation. Since the ranging signal is interfered by the on-site environment, the present embodiment determines the position of the ear tags by multiple measurements. If the position data of the ear tags belongs to the coordinate interval of the feeding area in three signal cycles, the ear tags are located in the feeding area, otherwise the ranging signals continue to be transmitted. Further, in order to reduce the impact of the environment, the present invention generates an attenuation parameter based on the calibrated distances and the first measured distances between multiple signal transmitters in the same feeding area. The corrected distance between the ear tags and the signal transmitter is determined based on the second measured distance between the signal transmitter and the ear tags and the attenuation parameter, and the position data of the ear tags are predicted based on at least three corrected distances.
[0051] Step 4: The signal transmitter periodically updates the position data of ear tag n, the monitoring device obtains the video stream of the feeding area, and marks the ear tag number to the video stream according to the position data of the ear tag, n≤N. The time stream of the position data obtained by the synchronization signal transmitter and the time stream of the video stream are synchronized to create an identification frame of ear tag n, the identification frame has the ear tag number of ear tag n, and the identification frame is inserted into the corresponding position data of the video stream. The ear tag number is, for example, the serial number of the pig. Therefore, there is an identification frame on each pig feature map of the video stream. The identification frame can also include the body temperature data of the pig, the number of meals eaten on the day, the current body size parameter set, etc.
[0052] Step 5: Extract key frames from the video stream and identify the pig feature map G corresponding to the ear tag n according to the pig biological model n , extract the characteristic data of the pig characteristic map, and then construct the body size parameter set U of the pig corresponding to the ear tag n according to the characteristic data n and the morphological parameter set V nThis embodiment can extract the contour line and center line of the pig feature map, generate the envelope polygon of the pig feature map, calculate the distance between the contour line and the envelope polygon in a direction perpendicular to the center line, and determine the feature data according to the extreme value of the distance. Figure 5 The pig feature map includes ear root feature points p1 and p2, shoulder feature points p3 and p4, abdomen feature points p5 and p6, buttocks feature points p7 and p8, tail root feature points p9 and p10. 10 .like Figure 6 , body size parameter set U n It reflects the body size of the pig corresponding to the ear tag n and can be used to analyze the growth and development of the pig. Figure 7 , morphological parameter set V n It reflects the spatial layout of the pig's body structure corresponding to the ear tag n and can be used to analyze the pig's behavior.
[0053] Step 6: Identify the feeding equipment in the key frame, predict the feeding behavior of the pigs based on the morphological parameter set and the position data of the feeding equipment, and output the breeding data based on multiple feeding behaviors. The key frame is, for example, the end frame or the start frame of each cycle. In this embodiment, an object detection algorithm is used to identify the feeding equipment in the key frame, obtain the image pixel interval of the feeding equipment, and convert the image pixel interval into a coordinate interval, which is the position data of the feeding equipment. The feeding behavior of the pig can be predicted based on the positional relationship between the morphological parameter set and the coordinate interval. For example, if the feeding equipment is a drinking water device, it is determined that the ear root feature point of the pig's head is located within the coordinate interval, the hip feature point and the tail root feature point are located outside the coordinate interval, and some vectors of the morphological parameter set are in a periodic fluctuation state, then it is predicted that the pig is in the drinking water behavior.
[0054] Step 7: If at least one ear tag is missing in the key frame, extract the unlabeled pig feature map in the key frame and proceed to step 8, otherwise return to step 5. After the ear tag is lost, the pig feature map corresponding to the ear tag cannot be marked with the ear tag number. The biological model of the pig can be used to extract the unlabeled pig feature map, and then match the lost ear tag with the unlabeled pig feature map. If the key frame does not lose the ear tag, continue to update the body size parameter set and morphological parameter set of the pig.
[0055] Step 8: Predict the first expected atlas R1 of the lost ear tag n' based on the historical position data, and predict the second expected atlas R2 based on the body size parameter set of the lost ear tag n', the first expected atlas R1 and the second expected atlas R2 both including at least one unlabeled pig feature map. This embodiment captures multiple groups of single-frame images of the video stream according to the time of the key frame, and the single-frame image is, for example, a continuous image before the key frame. The present invention determines the position data of the ear tag n' in each single-frame image, predicts the expected position data of the ear tag n' in the key frame image, arranges the pig feature map G' according to the distance between the pig feature map G' and the expected position data, and then generates the first expected atlas R1. Extract the body size parameter set U of the ear tag n' n' , calculate the body size parameter set U' of the pig characteristic graph G', according to the body size parameter set U n' The pig characteristic graphs are arranged according to the similarity with the body size parameter set U', and the second expected graph set R2 is generated.
[0056] Step 9: Determine the pig characteristic graph G' corresponding to the ear tag n' according to the first expected graph set and the second expected graph set, extract the characteristic data of the pig characteristic graph G', and update the body size parameter set U of the pig corresponding to the ear tag n' according to the characteristic data n' and the morphological parameter set V n' , return to step 6. In this embodiment, multiple mapping pairs are generated for all lost ear tags and all unmarked pig feature maps, and the approximation of the ear tags and pig feature maps in each mapping pair is calculated in combination with the first expected atlas and the second expected atlas. The mapping pair n'- G' with the largest approximation is extracted, and the pig feature map corresponding to the ear tag n' is confirmed to be G'. Then delete the mapping pair containing the ear tag n' or the pig feature map G', and re-extract the mapping pair with the largest approximation until all lost ear tags are matched to the corresponding pig feature map. For example, for N1 groups of lost ear tags and unmarked pig feature maps, a total of N1×N1 groups of mapping pairs are generated. After extracting the mapping pair n'- G', the mapping pair with the largest approximation is selected from the (N1-1)×(N1-1) groups of mapping pairs. The new pig feature map reflects changes in the body size and morphology of the pig, and updates the body size parameter set and the morphology parameter set. Embodiment 2
[0057] In step 3, the signal transmitter predicts the position data of the ear tag. Since the present invention is used in farms, the working environment of the farms is harsh and it is difficult to locate the signal transmitter. In particular, obstacles that are constantly moving in the farms will affect the propagation of the ranging signal. In this embodiment, the attenuation parameter is calculated through the error of the signal transmitter, and then the position data of the ear tag is predicted in combination with the attenuation parameter.
[0058] First, obtain the attenuation parameter S. Figure 8 , the signal transmitters at known positions transmit I first ranging signals to each other to generate a first measurement distance. I≥3. By comparing the first measurement distance fi and the corresponding calibration distance h i The difference, i=1,2,…, I, determines the signal attenuation law of the current farm and generates the attenuation parameter The calibration distance is determined when the signal transmitter is installed.
[0059] Then, determine the correction distance. Fig. 9 The signal transmitter transmits J second ranging signals to the ear tag to generate a second measurement distance. j , determine the corrected distance d between the signal transmitter and the ear tag j =(1-S)f j , j=1,2,…,J.
[0060] Finally, the position data of the ear tag is predicted. Combining the corrected distances d from at least three different signal transmitters j , use triangulation or multilateral positioning algorithm to predict the position data of the ear tag. For example, the coordinates of the three signal transmitters are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), and the corrected distances are determined to be d1, d2, and d3, respectively, and then the triangulation positioning algorithm is used to obtain the position data (x, y, z) of the ear tag. Embodiment 3
[0061] This embodiment further discloses a method for constructing a body size parameter set and a morphology parameter set in step 5. The monitoring device mainly captures the video stream from the top, and the biological model of the pig mainly refers to the back model. The back model can be composed of a set of feature data, including ear root feature points, shoulder feature points, abdomen feature points, buttocks feature points, and tail root feature points.
[0062] like Fig.10 , extract the centroid of the pig feature map, and use the edge detection operator to extract the contour of the pig feature map. The medial axis transformation map is constructed by calculating the distance from the contour line to the boundary point, and two center lines are obtained. The best fitting geometry of the pig feature map is obtained by the Hough transform algorithm, which is an envelope polygon.
[0063] The distance between the contour line and the envelope polygon in a direction perpendicular to the center line is calculated, and the feature data is determined according to the extreme value of the distance. Among them, the maximum distance in the head area is the ear base feature points p1 and p2. The minimum distance after the head area is the shoulder feature points p3 and p4, and all feature data are simulated step by step. In a further embodiment, due to the continuous movement of the pig, a single key frame cannot obtain all feature data. The optimal solution for the feature data can be iterated through multiple key frames.
[0064] The ear tag n in this embodiment corresponds to the body size parameter set U of the live pign ={x1,x2, x3, x4, x5, x6, x7,x8}, x1= |p1-p2|, x2= |p3-p4|, x3= |p5-p6|, x4=|p7-p8|, x5=|p9-p 10 |, x6=(|p3-p5|+|p4-p6|) / 2, x7=(|p5-p7|+|p6-p8|) / 2, x8=(| p7-p9|+|p8-p 10 |) / 2. Morphological parameter set , p0 is the position data of the ear tag. Embodiment 4
[0065] This embodiment further details the method of predicting the first desired atlas R1 and the method of predicting the second desired atlas R2 in step 8.
[0066] In this embodiment, the time t at which the key frame is located is determined, a video stream with a duration of T is intercepted according to the time t, and Q groups of continuous single-frame images before the time t are obtained from the video stream. The position data of the ear mark n' in each single-frame image is determined, where the position data of the ear mark n' in the qth group of single-frame images is S q , q=1, 2,…,Q. The expected position data of ear tag n' in the key frame is S Q+1 This embodiment predicts the expected position data based on the trajectory heat decay algorithm. , λ is the trajectory heat coefficient, λ>0. The closer the position data is to the current time t, the greater the influence on the expected position data at time t. Calculate the distance between the expected position data and the middle ear of each pig characteristic graph G'. Arrange the pig characteristic graphs from large to small according to the distance, and generate the first expected graph set R1. Furthermore, the position data of this embodiment can be expressed in the form of a matrix of three coordinate values, and the trajectory heat decay algorithm of each coordinate value can be used to calculate the expected coordinates of the corresponding coordinate axis, and then determine the expected position data.
[0067] The characteristic data of the unlabeled pig characteristic graph G' is obtained by adopting the method of Example 3, and a body size parameter set U' is constructed, where U'={x1',x2',x3',x4',x5',x6',x7',x8'}. n' , calculate the body size parameter set U n' The similarity between the body size parameter set U' , w k is the weight of the kth body size parameter. The similarity in this embodiment reflects the weighted sum of the Euclidean distances of the body size parameters. The smaller the Euclidean distance, the higher the weight. n'The greater the similarity X with U', the greater the similarity X. The pig feature maps are arranged from small to large according to the similarity to generate the second expected atlas R2. Further, this embodiment can set the maximum distance or the minimum similarity to reduce the number of elements in the first expected atlas and the second expected atlas. Embodiment 5
[0068] like Fig.11 The digital breeding management system for implementing the digital breeding management method of the present invention comprises: a feeding area, a feeding device, a monitoring device, a reader, a signal transmitter, a plurality of ear tags, an image processing unit, a storage unit, a first analysis unit and a second analysis unit. The feeding device is located in each feeding area, and the feeding device can be a drinking device, a feeding device, an excretion device, etc. The monitoring device is installed on the top of the feeding area, and is used to obtain the video stream of the feeding area. Each ear tag corresponds to a live pig, and the ear tag has an ear tag code. The reader is used to identify the ear tag in the signal coverage area. The signal transmitter is used to generate the position data of the ear tag. The image processing unit is used to extract the live pig feature map of the video stream and construct a body size parameter set and a morphological parameter set. The storage unit is used to store the body size parameter set and the morphological parameter set. The first analysis unit is used to predict the feeding behavior of the live pig according to the morphological parameter set and the position data of the feeding device. The second analysis unit is used to generate a first expected atlas and a second expected atlas of the lost ear tag, and predict the corresponding live pig feature map.
[0069] The present invention determines the position data of pigs in the feeding area through multiple groups of signal transmitters, obtains the pig characteristic map of the pigs through the monitoring device, and marks the position data of the ear tag to the pig characteristic map of the pig, so as to achieve more intuitive and detailed breeding management. When the ear tag is lost in the video stream, the first expected atlas is predicted according to the historical position data of the ear tag, and the second expected atlas is predicted according to the pig body size parameter set. The first expected atlas and the second expected atlas are used to comprehensively match the lost ear tag and the unmarked pig characteristic map, and finally realize uninterrupted digital breeding management of pigs.
[0070] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A digital breeding management method, characterized in that: The following steps are involved: Step 1: Arrange multiple feeding areas in the farm, each feeding area has at least one feeding device, and set a reader, multiple signal transmitters and a monitoring device in each feeding area; Step 2: Assign ear tags to each pig in the farm, each reader has a signal coverage area larger than the feeding area, and any reader identifies M groups of ear tags in the corresponding signal coverage area; Step 3: The signal transmitter transmits a ranging signal to the feeding area, predicts the position data of the M groups of ear tags, and determines the N groups of ear tags in the feeding area; Step 4: The signal transmitter periodically updates the position data of the ear tag n, the monitoring device obtains the video stream of the feeding area, and marks the ear tag number to the video stream according to the position data of the ear tag, n≤N; Step 5: Extract key frames from the video stream and identify the pig feature map G corresponding to the ear tag n according to the pig biological model n , extract the characteristic data of the pig characteristic map, and then construct the body size parameter set U of the pig corresponding to the ear tag n according to the characteristic data n and the morphological parameter set V n ; Step 6: Identify the feeding equipment in the key frame, predict the feeding behavior of the pigs based on the morphological parameter set and the position data of the feeding equipment, and output the breeding data based on multiple feeding behaviors; Step 7: If at least one ear tag is missing in the key frame, extract the unlabeled pig feature map in the key frame and then proceed to step 8, otherwise return to step 5; Step 8: predicting a first expected atlas R1 of the pigs with lost ear tags n' according to the historical position data, and predicting a second expected atlas R2 according to the body size parameter set of the pigs with lost ear tags n', wherein both the first expected atlas R1 and the second expected atlas R2 include at least one unlabeled pig feature map; Step 9: Determine the pig characteristic graph G' corresponding to the ear tag n' according to the first expected graph set and the second expected graph set, extract the characteristic data of the pig characteristic graph G', and update the body size parameter set U of the pig corresponding to the ear tag n' according to the characteristic data n' and the morphological parameter set V n' , return to step 6.
2. The digital breeding management method according to claim 1, characterized in that: In step 2, ear tags are assigned to M1 pigs in the farm. After the pigs are moved to another pen, the reader in each feeding area transmits a broadcast signal and identifies the M2 group of ear tags that respond to the broadcast signal. The reader transmits a polling signal to the M2 group of ear tags, and the reader determines the M group of ear tags in the signal coverage area based on the response signal.
3. The digital breeding management method according to claim 1, characterized in that: In step 3, an attenuation parameter is generated according to the calibrated distance between multiple signal transmitters in the same feeding area and the first measured distance, a corrected distance between the ear tag and the signal transmitter is determined according to the second measured distance between the signal transmitter and the ear tag and the attenuation parameter, and the position data of the ear tag is predicted according to at least three corrected distances.
4. The digital breeding management method according to claim 3, characterized in that: In step 3, if the position data of the ear tag belongs to the coordinate interval of the feeding area in three consecutive signal cycles, the ear tag is located in the feeding area.
5. The digital farming management method according to claim 1, characterized in that: In step 4, an identification frame of ear tag n is created, the identification frame has the ear tag number of ear tag n, and the identification frame is inserted into the corresponding position data of the video stream.
6. The digital breeding management method according to claim 1, characterized in that: In step 5, the contour line and center line of the pig feature map are extracted, the envelope polygon of the pig feature map is generated, the distance between the contour line and the envelope polygon in the direction perpendicular to the center line is calculated, and the characteristic data of the pig feature map is determined according to the extreme value of the distance, wherein the characteristic data includes ear root characteristic points p1 and p2, shoulder characteristic points p3 and p4, abdomen characteristic points p5 and p6, buttocks characteristic points p7 and p8, tail root characteristic points p9 and p10. 10 .
7. The digital breeding management method according to claim 6, characterized in that: Ear tag n corresponds to the body size parameter set U of the pig n ={x1,x2,x3,x4,x5,x6,x7,x8}, x1= |p1-p2|, x2= |p3-p4|, x3=|p5-p6|, x4=|p7-p8|, x5=|p9-p 10 |, x6=(|p3-p5|+|p4-p6|) / 2, x7=(|p5-p7|+|p6-p8|) / 2, x8=(| p7-p9|+|p8-p 10 |) / 2, morphological parameter set , p0 is the position data of the ear tag.
8. A digital aquaculture management system for implementing the digital aquaculture management method according to claim 1, characterized in that: include: A feeding device, a monitoring device, a reader, a signal transmitter, a plurality of ear tags, an image processing unit, a storage unit, a first analysis unit and a second analysis unit, wherein: Feeding equipment is located in each feeding area; The monitoring device is used to obtain the video stream of the feeding area; Each ear tag corresponds to one pig; The reader is used to identify the ear tags in the signal coverage area; The signal transmitter is used to generate the position data of the ear tag; The image processing unit is used to extract the pig feature map of the video stream and construct a body size parameter set and a morphology parameter set; The storage unit is used to store a body size parameter set and a morphology parameter set; The first analysis unit is used to predict the feeding behavior of the pigs based on the morphological parameter set and the position data of the feeding equipment; The second analysis unit is used to generate a first expected atlas and a second expected atlas of lost ear tags, and determine corresponding pig feature maps.
