Qingyuan chicken health monitoring method

Through video surveillance and attitude recognition algorithms, the attitude abnormality of chickens is automatically judged, which solves the problem of low timeliness of manual observation in the existing technology, and realizes efficient and instant automated monitoring of chickens' health.

CN119547759APending Publication Date: 2025-03-04厦门农芯数字科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411156941.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the prior art, it is possible to determine whether the chicken is sick by manually observing the movement status of the chicken, which is less time-sensitive and lacks an automated judgment system based on the chicken posture.

Method used

A Qingyuan chicken health monitoring method is proposed. Through video monitoring and posture recognition algorithm, the five node information of the chicken bones is obtained, and whether the chicken is in the 'an abnormal trembling state of the head' or 'anchored claw split state' is used, and an automated warning is carried out.

Benefits of technology

It realizes automatic identification and monitoring of chicken health, improves efficiency and immediacy, and can promptly detect abnormal health of chickens and prevent patients from spreading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119547759A_ABST
    Figure CN119547759A_ABST
Patent Text Reader

Abstract

The invention provides a Qingyuan chicken health monitoring method, which comprises the following steps: S1, dividing activity areas of a chicken house, and performing video monitoring on each activity area; s2, obtaining the number of chickens in each activity area at a preset time interval, and carrying out number statistics; s3, counting the change rate of the number of the chickens in different time periods in each activity area, judging whether the change rate of the number of the chickens in each activity area is smaller than a set threshold value K1 or not, if yes, entering step S4, and if not, entering step S2; and steps S4 and S5. According to the method, the activity degree of the chicken flocks is judged, and when the activity degree of the chicken flocks is too low, whether the postures of the chickens in the chicken flocks are abnormal or not is obtained through a posture recognition algorithm, namely, the head abnormal shaking state or the chicken claw split state exists, so that whether the chickens suffer from diseases or not is judged, and unattended automatic recognition and monitoring of chicken flocks' health are achieved; and the efficiency and instantaneity are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of chicken breeding methods, and in particular to a Qingyuan chicken health monitoring method. Background Art

[0002] Common diseases in chickens include Marek's disease, Newcastle disease, avian influenza, infectious bursal disease, etc. The above diseases can cause abnormal postures in chickens. In the prior art, it is generally determined whether a chicken is sick by manually observing the movement state of the chicken and whether the chicken has abnormal posture. This method is very time-consuming and there is no system or method in the prior art to determine whether a chicken is sick based on the chicken's posture. Summary of the invention

[0003] In view of the deficiencies in the prior art, the purpose of the present invention is to propose a Qingyuan chicken health monitoring method to solve the problems mentioned in the above background technology section.

[0004] The present invention is achieved through the following technical solutions:

[0005] A Qingyuan chicken health monitoring method comprising:

[0006] S1. Divide the activity areas of the chicken house and conduct video surveillance on each activity area;

[0007] S2. Obtain the number of chickens in each activity area at predetermined intervals and perform a number count;

[0008] S3. Count the change rate of the number of chickens in each activity area at different time periods to determine whether the change rate of the number of chickens in each activity area is less than the set threshold K. 1 If yes, go to step S4, otherwise go to step S2;

[0009] S4, using the posture recognition algorithm, obtain the change rate of the number of chickens is less than the set threshold K 1 Output all frames of the corresponding video clips in the activity area of ​​the chicken bones in all frames, including the parietal bone, clavicle, left metatarsal bone, right metatarsal bone, and coccyx;

[0010] S5. Determine whether the chicken is in a "head abnormal trembling state" or a "chicken claw splitting state" based on the information of the five joint points of the chicken's skeleton. If so, determine that the chickens are in an abnormal health state and issue an early warning. Otherwise, proceed to step S2.

[0011] The beneficial effects of the present invention are as follows: the present invention first determines the activity of the chickens. When the activity of the chickens is too low, a posture recognition algorithm is used to determine whether the chickens in the chickens have abnormal postures, that is, whether there is an "abnormal head trembling state" or a "chicken claw split state", thereby determining whether the chickens are sick, and realizing unattended automatic identification and monitoring of the health of the chickens, greatly improving efficiency and immediacy. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 The present invention provides a flow chart of a Qingyuan chicken health monitoring method.

[0013] Figure 2 The figure is a schematic diagram of the positions of five joints of the chicken skeleton of the present invention, namely, the parietal bone, clavicle, left metatarsal bone, right metatarsal bone and coccyx. DETAILED DESCRIPTION

[0014] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0015] A Qingyuan chicken health monitoring method comprising:

[0016] S1. Divide the activity area of ​​the chicken house and conduct video surveillance on each activity area. The video surveillance can use a video image sensor or a camera.

[0017] S2. Obtain the number of chickens in each activity area at predetermined intervals and perform a number count.

[0018] S3. Count the change rate of the number of chickens in each activity area at different time periods to determine whether the change rate of the number of chickens in each activity area is less than the set threshold K. 1 If yes, go to step S4, otherwise go to step S2.

[0019] S4, using the posture recognition algorithm, obtain the change rate of the number of chickens is less than the set threshold K 1 The activity area of ​​​​the corresponding video clips in all frames outputs the five joints of the chicken bones in all frames, including the parietal bone, clavicle, left metatarsal bone, right metatarsal bone, and coccyx. Among them, if Figure 2 As shown, the parietal bone is at position 1, the clavicle is at position 2, the left metatarsal is at position 3, the right metatarsal is at position 4, and the coccyx is at position 5.

[0020] S5. Determine whether the chicken is in a "head abnormal trembling state" or a "chicken claw splitting state" based on the information of the five joint points of the chicken's skeleton. If so, determine that the chickens are in an abnormal health state and issue an early warning. Otherwise, proceed to step S2.

[0021] When the following situation exists, in different time periods described in step S3, the number of chickens in the A activity area moving to the B activity area is equal to the number of chickens in the B activity area moving to the A activity area. For example, in the time period, assuming that only 50 chickens in the A activity area run to the B activity area, assuming that only 50 chickens in the B activity area run to the A activity area, at this time, the overall activity of the chickens is sufficient, but the calculated change rate of the number of chickens in the two activity areas is zero, which will lead to the possibility of misjudgment.

[0022] In order to avoid the possibility of the above-mentioned misjudgment, the present invention avoids it by adding step S23 between steps S2 and S3.

[0023] Step S23 specifically includes the following steps:

[0024] S231, taking some chickens to tie trackers;

[0025] S232, track the trajectories of the chickens with the trackers, and count the number of chickens that have crossed the activity area. When the ratio of the chickens whose activity areas have changed to the chickens whose activity areas have not changed is less than the set threshold K2, go to step S3, otherwise go to step S232.

[0026] Through steps S231 and S232, some chickens in the flock are selected as the number of sample chickens N for tracking, and then the track is generated. It is determined that there are chickens n crossing the activity area in the sample chickens N, and the sample change rate K fact =n / (Nn), when K fact <K 2 , then go to step S3. As a preferred embodiment, K 2 The value can be any specific value between 0.05 and 0.3.

[0027] For example: Assume that the total number of chickens raised is 500, and 50 chickens are selected as sample chickens N. Assume that the activity areas of 5 chickens n change, then K fact =5 / 45=0.11, then most of the sample chickens are also in an inactive state. At this time, the activity of the entire flock is judged through step S3, which can reduce the calculation amount of the Qingyuan chicken health monitoring method of the present invention and avoid the possibility of misjudgment of the activity of the flock simply relying on step S3.

[0028] In step S4, the five joint points of the chicken skeleton are obtained by the following formula:

[0029]

[0030] In the formula, C i represents the coordinates of each joint point, M represents the number of feature points corresponding to the joint point, α ij represents the influence weight of feature point j on each joint point i, F j represents the position of feature point j.

[0031] The specific steps can refer to the following embodiments.

[0032] In the input image I, the feature map is first extracted through a convolutional neural network (CNN), assuming that the size of the feature map is 64x64.

[0033] Using the information in the feature map, the parietal joint point P is calculated through a fully connected layer k Assume that P k The coordinates are (30,45).

[0034] Define a weight matrix W k , where each element W ij Represents the influence weight of feature point j on parietal joint point i.

[0035] Assume that the number of feature points M is 10 and the weight matrix W k The size is 10x10.

[0036] Calculate the position F of each feature point j j , assuming that the coordinates of feature point j are (20,35).

[0037] By formula C i =Σ(α ij *F j ), where α ij Represents the influence weight of feature point j on parietal joint point i, and calculates the coordinates C of the parietal joint point i .

[0038] Assume α ij The value of C is 1, i =1*(20,35)=(2,5).

[0039] In this way, the coordinates of all parietal joints can be obtained.

[0040] Finally, these coordinates are compared with the input image I to verify the accuracy of the calculation results.

[0041] The whole process can be implemented by writing Python code, using the NumPy library for matrix operations and the OpenCV library for image processing.

[0042] Through this method, the precise location of the parietal joints can be achieved, and basic data can be provided for subsequent bone analysis.

[0043] And according to the above method, 5 joint points of the chicken skeleton are obtained, which include the parietal bone, clavicle, left metatarsal bone, right metatarsal bone, and coccygeal vertebra.

[0044] Further, in step S4, the step of judging whether the chicken is in a "head abnormal trembling state" according to the information of the five joint points of the chicken skeleton specifically includes:

[0045] When acquiring the first frame, the coordinate system connection line between the parietal joint point and the clavicle joint point;

[0046] When acquiring the second frame, the coordinate system connection line between the parietal joint point and the clavicle joint point;

[0047] Calculate the swing angle θ of the line connecting the two coordinate systems in the first frame and the second frame 1 , swing θ 1 When it is greater than the set value, it is counted once, and the swing angle θ of the coordinate system connecting the adjacent frames in the video clip is calculated by analogy. n , when the total number of times counted exceeds the set value, it is judged that the chicken is in a "state of abnormal head trembling";

[0048] Among them, the swing angle θ 1 Obtained through the following formula:

[0049]

[0050] Where, the coordinates of the chicken parietal joint point in the first frame are P 1 =(x 1 ,y 1 ), the coordinates of the clavicle joint are Q 1 =(x 2 ,y 2 ), the coordinates of the chicken parietal joint point in the second frame are P 2 =(x 3 ,y 3 ), the coordinates of the clavicle joint are Q 1 =(x 4 ,y 4 ).

[0051] In one embodiment, in step S4, assuming that each acquired video segment is 10 to 20 seconds long, 24 frames are generated per second, and the swing angle θ is set n If the swing angle is greater than the setting θ, it will be recorded once. θ is set to 5°. In each second of video, assuming the swing angle θ nIf the number of times greater than θ exceeds 12 times, the chicken's swinging frequency is abnormal, which is why it is determined that the chicken has an "abnormal head shaking state."

[0052] Symptoms of common infectious diseases in chickens, such as Newcastle disease and Mycoplasma synoviae, include neurological symptoms such as head tremors and twisted necks. Therefore, when a chicken has an "abnormal head tremor", it indicates that the chicken may have the above health problems. In order to avoid the above sick chickens infecting the entire flock, farmers should be reminded to pay attention to the health of the flock.

[0053] In step S4, the step of judging whether the chicken is in the "chicken claw split state" according to the information of the five joint points of the chicken skeleton specifically includes:

[0054] The distance d between the left metatarsal joint and the coccygeal joint is obtained by the following formula: left_foot

[0055]

[0056] In the formula, x left_foot and left_foot Represent the x and y coordinates of the left metatarsal joint, respectively. tail and tai Respectively represent the x and y coordinates of the coccygeal joint;

[0057] The distance between the right metatarsal joint and the coccygeal joint is obtained by the following formula: t _ foot

[0058]

[0059] In the formula, x t _ foot andyrigh t _ foot Respectively represent the x and y coordinates of the right metatarsal joint, xtai l and ytai l Respectively represent the x and y coordinates of the coccygeal joint;

[0060] When dlef t _ foot and drip t _ foot When at least one value exceeds the set threshold, that is, the distance from the left metatarsal joint to the coccygeal joint or the right metatarsal joint to the coccygeal joint is greater than the set threshold, the chicken is in the split state, and the chicken is judged to be in the "split state". The set threshold is related to the monitored chicken age, chicken breed, etc.

[0061] Symptoms of common infectious diseases in chickens, such as Marek's disease, encephalomyelitis, and mycoplasma synoviae, include loss of control of the sciatic nerve and brachial nerve, which leads to movement disorders and paralysis in sick chickens. The "splits" posture is a typical symptom of sciatic nerve damage. Therefore, when chickens have "splits", it indicates that the chickens may have the above health problems. In order to avoid the above sick chickens infecting the entire flock, farmers are reminded to pay attention to the health of the flock.

[0062] As an extended embodiment, in step S4, it is also possible to determine whether the chicken is in a "curled up state" based on the information of the five joint points of the chicken skeleton. If so, the health of the chicken flock is determined to be abnormal and an early warning is issued, otherwise, the process goes to step S2.

[0063] The information of the five joints of the chicken skeleton is used to determine whether the chicken is in a "curled up state", which is obtained by the following formula:

[0064] △y=ytop-ytail

[0065] Where Δy represents the y-coordinate difference between the parietal joint and the coccygeal joint, ytop represents the y-coordinate of the parietal joint, and ytai l Represents the y-coordinate of the coccygeal joint point.

[0066] When Δy is less than the set threshold, it indicates that the parietal joint and the coccyx are too close, and the chicken is judged to be in a "curled state". The set threshold is related to the monitored chicken age, chicken breed, etc.

[0067] Furthermore, by calculating the ratio of the number of frames in which the chickens are in a "curled up state" to the total number of frames in the acquired video, when the ratio exceeds a set value, for example, more than 70% of the time, the chickens are in a "curled up state", the alarm level of the abnormal health warning of the chicken flock is further increased.

[0068] Common infectious diseases in chickens such as enterotoxin syndrome, Newcastle disease, E. coli or salmonella infection can easily cause chickens to be listless, unwilling to move, paralyzed in both legs, lying still, and staying in a "curled up state" for a long time. Therefore, when chickens are in a "curled up state" for a long time, it indicates that the chickens may have the above health problems. In order to avoid the above sick chickens infecting the entire flock, farmers should be reminded to pay attention to the health of the flock.

[0069] In order to further determine whether the chicken has health abnormalities, step S5 further includes step S6:

[0070] S6. Use an image segmentation algorithm to extract the comb and wattle areas of the chicken in the "curled up state" from the video frame, and then use a color recognition algorithm to determine whether the color of the comb and wattle of the chicken is abnormal. If the color of the comb or wattle is abnormal, such as white or purple, the alarm level of abnormal health of the chicken flock is further increased.

[0071] Specifically, the RGB color values ​​of the comb and wattle regions can be obtained based on the acquired image data, and the color feature information of the comb can be obtained through these values. The above color values ​​are converted into the HSV color space to obtain hue, saturation and brightness parameters that are more suitable for analysis, and determine whether the color of the comb and wattle is within the healthy range.

[0072] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0073] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0074] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A Qingyuan chicken health monitoring method, characterized in that: include: S1. Divide the activity areas of the chicken house and conduct video surveillance on each activity area; S2. Obtain the number of chickens in each activity area at predetermined intervals and perform a number count; S3, counting the change rate of the number of chickens in each activity area in different time periods, and judging whether the change rate of the number of chickens in each activity area is less than the set threshold value K1, if yes, proceed to step S4, otherwise proceed to step S2; S4, using a posture recognition algorithm, obtaining all frames in the corresponding video clip in the activity area where the change rate of the number of chickens is less than a set threshold value K1, and outputting five joint points of the chicken bones in all frames, including the parietal bone, clavicle, left metatarsal bone, right metatarsal bone, and coccyx; S5. Determine whether the chicken is in "abnormal head shaking state" or "chicken claw split state" based on the information of the five joint points of the chicken skeleton. If so, determine that the chicken flock is in abnormal health and issue an early warning, otherwise proceed to step S2.

2. The Qingyuan chicken health monitoring method according to claim 1, characterized in that: In step S4, the five joint points of the chicken skeleton are obtained by the following formula: In the formula, C i represents the coordinates of each joint point, M represents the number of feature points corresponding to the joint point, α ij represents the influence weight of feature point j on each joint point i, F j represents the position of feature point j.

3. The Qingyuan chicken health monitoring method according to claim 1, characterized in that: In step S4, the step of judging whether the chicken is in a "head abnormal trembling state" according to the information of the five joint points of the chicken skeleton specifically includes: When acquiring the first frame, the coordinate system connection line between the parietal joint point and the clavicle joint point; When acquiring the second frame, the coordinate system connection line between the parietal joint point and the clavicle joint point; Calculate the swing angle θ1 of the line connecting the two coordinate systems in the first frame and the second frame. When the swing θ1 is greater than the set value, count it once, and calculate the swing angle θ of the line connecting the coordinate systems of adjacent frames in the video clip by analogy. n , when the total number of times counted exceeds the set value, it is judged that the chicken is in the "abnormal head trembling state"; Among them, the swing angle θ1 is obtained by the following formula: Wherein, the coordinates of the chicken parietal joint point in the first frame are P1=(x1, y1), the coordinates of the clavicle joint point are Q1=(x2, y2), the coordinates of the chicken parietal joint point in the second frame are P2=(x3, y3), and the coordinates of the clavicle joint point are Q1=(x4, y4).

4. The Qingyuan chicken health monitoring method according to claim 1, characterized in that: In step S4, the step of judging whether the chicken is in the "chicken claw split state" according to the information of the five joint points of the chicken skeleton specifically includes: The distance d between the left metatarsal joint and the coccygeal joint is obtained by the following formula: left_foot In the formula, x left_foot and left_foot Represent the x and y coordinates of the left metatarsal joint, respectively. tail and tai Respectively represent the x and y coordinates of the coccygeal joint; The distance d between the right metatarsal joint and the coccygeal joint is obtained by the following formula: right_foot , In the formula, x right_foot and right_foot Represent the x and y coordinates of the right metatarsal joint, respectively. tail and tail Respectively represent the x and y coordinates of the coccygeal joint; When left_foot and d right_foot When at least one value exceeds the set threshold, the chicken is judged to be in the "chicken claw split state".

5. The Qingyuan chicken health monitoring method according to claim 1, characterized in that: Also included between steps S2 and S3 is step S23, Step S23 specifically includes the following steps: S231, taking some chickens to tie trackers; S232, track the trajectories of the chickens with the trackers, and count the number of chickens that have crossed the activity area. When the ratio of the chickens whose activity areas have changed to the chickens whose activity areas have not changed is less than the set threshold K2, go to step S3, otherwise go to step S232.

6. The Qingyuan chicken health monitoring method according to claim 5, characterized in that: In step S23, the number of chickens with trackers is recorded as N, and the number of chickens with changes in their activity areas is recorded as n. Then the sample change rate K fact =n / (Nn), when K fact <K2, then go to step S3.

Citation Information

Patent Citations

  • Abnormal laying hen identification method and device

    CN111652084A

  • Piglet health condition monitoring method and system based on image recognition

    CN116725521A

  • Early Alert System and Method for Livestock Disease Detection

    US20120326862A1

  • Artificial intelligence-based method and device for extracting abnormal behavior patterns of livestock

    WO2023054822A1