Poultry state real-time monitoring system and method based on machine vision
Through a poultry status monitoring system based on machine vision, using infrared cameras and deep learning technology to evaluate the abnormal behavior and body temperature of poultry in real time, solving the problem of difficult to quickly and accurately monitor in the existing technology, and realizing timely prevention and diagnosis and treatment of poultry diseases , reducing the economic losses of breeding enterprises.
Patent Information
- Application Number
- CN202411075129.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-22
AI Technical Summary
It is difficult for the existing technology to quickly and accurately monitor poultry status in real time, especially to identify abnormal behaviors, body temperature and feeding status of poultry on a large scale, which leads to difficulties in early detection of diseases and affects the economic losses of breeding enterprises.
Adopt a real-time poultry state monitoring system based on machine vision, including infrared cameras, monitoring modules and judgment and evaluation modules. Through video data preprocessing, model training and alarm modules, YOLOv4 target recognition network and depth separable convolutional network combined with hybrid domain attention Force mechanism, build a status monitoring model, evaluate poultry status in real time and issue alarms.
Real-time assessment of poultry status is achieved, timely prevention of diseases, reduce economic losses of breeding enterprises, and improve the accuracy and efficiency of monitoring.
Smart Images

Figure CN119007074A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of poultry status monitoring, and in particular to a poultry status real-time monitoring system and method based on machine vision. Background Art
[0002] With the rapid development of modern livestock and poultry farming, animal welfare farming and livestock and poultry group health have received extensive attention. In livestock and poultry farming, morphology, body temperature, and feeding are important physiological indicators for measuring the health of livestock and poultry, and their changes directly reflect the health of animals.
[0003] In most infectious diseases, abnormal body temperature is often an important warning. The perceived temperature of poultry refers to the temperature corresponding to its behavioral response to changes in temperature in the environment and its behavioral response in an ideal environment. Monitoring and analyzing the body temperature of farm animals such as pigs, cattle, and chickens can effectively detect early symptoms of the disease, and can promptly notify the breeding staff to deal with it, reducing the economic losses of the breeding company. In addition, farm animals such as pigs, cattle, and chickens will have abnormal eating behaviors when they are sick. If they are discovered early, the occurrence of the disease can be prevented in advance, and the feed can be checked as soon as possible to see if there is a problem. Therefore, it is important to monitor the morphology, body temperature, and eating process of poultry and to promptly judge abnormal behaviors.
[0004] In the existing traditional monitoring methods, the images captured by the camera are often group images. Due to their similar appearance, it is difficult to distinguish a specific one from the video. The image recognition method is used to analyze the number of times and time of feeding of poultry in the image, but the number and time of feeding cannot well judge whether the feeding status of poultry is abnormal; at the same time, the traditional manual recognition method is highly subjective and difficult to monitor in real time and on a large scale. Therefore, it is very difficult to identify, and how to quickly and accurately monitor the status of poultry in real time is still a difficulty.
[0005] Therefore, it is an urgent problem for those skilled in the art to propose a real-time monitoring system and method for poultry status based on machine vision to solve the difficulties existing in the prior art. Summary of the invention
[0006] In view of this, the present invention provides a real-time monitoring system and method for poultry status based on machine vision, which realizes real-time evaluation of the status of poultry, is conducive to timely prevention and diagnosis of poultry diseases, and reduces property losses.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] A real-time monitoring system for poultry status based on machine vision, comprising: an infrared camera, a monitoring module, a judgment and evaluation module, and an alarm module connected in sequence;
[0009] infrared cameras to collect video data of poultry;
[0010] Monitoring module, used to monitor abnormal behavior, posture, temperature, and eating status of poultry;
[0011] A judgment and evaluation module is used to judge and evaluate poultry based on their posture, temperature, and eating status;
[0012] The alarm module is used to alarm the poultry with abnormalities according to the judgment and evaluation results.
[0013] A method for real-time monitoring of poultry status based on machine vision, using the above-mentioned real-time monitoring system for poultry status based on machine vision, comprises the following steps:
[0014] S1. Acquiring data: acquiring poultry video data and obtaining image data within a target time period;
[0015] S2. Data processing: preprocessing the acquired image data, and dividing the preprocessed image data into a training set and a test set;
[0016] S3. Model training: input the training set into the state monitoring model, update the model weight parameters through the loss function, and obtain the trained state monitoring model after several trainings;
[0017] S4. Judgment and evaluation: input the test set into the trained state monitoring model to judge and evaluate the state of poultry;
[0018] S5. Result alarm: Alarm the poultry with abnormalities according to the judgment and evaluation results.
[0019] Optionally, in S1, an infrared camera is used to obtain poultry video data, and video segments to be analyzed within a target time period are selected to obtain image data corresponding to each moment.
[0020] Optionally, in S2, multiple rectangular frames are used to mark the positions of all poultry in the image data; multiple key points of each poultry are marked; and an action category is defined for each poultry;
[0021] The image data is processed by rotating, cropping and mirroring operations so that each rectangular frame completely contains each poultry, and the side of the rectangular frame is tangent to the edge of the outline of the poultry.
[0022] Optionally, in S2, the image data obtained after preprocessing is divided into a 70% training set and a 30% test set.
[0023] Optionally, the state monitoring model in S3 is based on the YOLOv4 target recognition network, introduces a deep separable convolutional network, and integrates a mixed domain attention mechanism optimization model to construct a poultry target state monitoring model.
[0024] Optionally, the model weight parameters are updated in S3 through the cross entropy loss function.
[0025] It can be seen from the above technical solution that compared with the prior art, the present invention provides a real-time monitoring system and method for poultry status based on machine vision, which has the following beneficial effects: the state of poultry is judged by using the state monitoring model through the morphology, temperature, and feeding changes of poultry in multiple frames of images in the video data, thereby realizing real-time evaluation of the state of poultry, which is beneficial to the timely prevention and diagnosis of poultry diseases and the reduction of property losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0027] Figure 1 A structural block diagram of a poultry status real-time monitoring system based on machine vision provided by the present invention;
[0028] Figure 2 A flow chart of a method for real-time monitoring of poultry status based on machine vision provided by the present invention;
[0029] Figure 3 The state monitoring model architecture diagram provided by the present invention;
[0030] Figure 4 The depth-separable convolution graph provided by the present invention;
[0031] Figure 5 Workflow diagram of the mixed-domain attention mechanism provided by the present invention. DETAILED DESCRIPTION
[0032] 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.
[0033] Reference Figure 1As shown, the present invention discloses a real-time monitoring system for poultry status based on machine vision, comprising: an infrared camera, a monitoring module, a judgment and evaluation module, and an alarm module connected in sequence;
[0034] infrared cameras to collect video data of poultry;
[0035] Monitoring module, used to monitor abnormal behavior, posture, temperature, and eating status of poultry;
[0036] A judgment and evaluation module is used to judge and evaluate poultry based on their posture, temperature, and eating status;
[0037] The alarm module is used to alarm the poultry with abnormalities according to the judgment and evaluation results.
[0038] and Figure 1 Corresponding to the above system, the embodiment of the present invention also provides a method for real-time monitoring of poultry status based on machine vision, the flow chart of which is as follows: Figure 2 As shown, the following steps are included:
[0039] S1. Acquiring data: acquiring poultry video data and obtaining image data within a target time period;
[0040] S2. Data processing: preprocessing the acquired image data, and dividing the preprocessed image data into a training set and a test set;
[0041] S3. Model training: input the training set into the state monitoring model, update the model weight parameters through the loss function, and obtain the trained state monitoring model after several trainings;
[0042] S4. Judgment and evaluation: input the test set into the trained state monitoring model to judge and evaluate the state of poultry;
[0043] S5. Result alarm: Alarm the poultry with abnormalities according to the judgment and evaluation results.
[0044] Furthermore, in S1, an infrared camera is used to obtain poultry video data, and video segments to be analyzed within a target time period are selected to obtain image data corresponding to each moment.
[0045] Furthermore, in S2, multiple rectangular frames are used to mark the positions of all poultry in the image data; multiple key points of each poultry are marked; and an action category is defined for each poultry;
[0046] The image data is processed by rotating, cropping and mirroring operations so that each rectangular frame completely contains each poultry, and the side of the rectangular frame is tangent to the edge of the outline of the poultry.
[0047] Furthermore, in S2, the image data obtained after preprocessing is divided into a 70% training set and a 30% test set.
[0048] Furthermore, the state monitoring model in S3 is based on the YOLOv4 target recognition network, introduces a deep separable convolutional network, and integrates the mixed domain attention mechanism optimization model to construct a poultry target state monitoring model.
[0049] Specifically, the structure of the YOLOv4 target recognition network mainly includes the backbone feature extraction network (CSPDarkNet53), spatial pyramid pooling network (SPP) and path aggregation network (PANet). CSPDarkNet53 is responsible for feature extraction and cross-stage fusion of the input training set images, and extracts the image features P 5 ((13×13) is passed into the SPP network; the SPP network is used to fully integrate the image features to obtain significant context features; and then combined with the image features P extracted by CSPDarkNet53 3 ((52×52),P 4 ((26×26)) Feature fusion is performed in PANet to further improve the feature extraction and positioning capabilities and obtain the final recognition result.
[0050] The lightweight feature extraction network MobileNetv3 is used instead of CSPDarkNet53 to integrate the hybrid domain attention mechanism (CBAM) into PANet. The state monitoring model architecture is as follows: Figure 3 shown.
[0051] In order to reduce the huge number of parameters of the YOLOv4 network and improve the detection speed, the lightweight feature extraction network MobileNetv3 is used instead of CSPDarkNet53 to achieve the purpose of reducing the number of parameters, reducing the amount of calculation and improving the detection speed.
[0052] In addition, the ordinary convolution with a kernel size of 3×3 in PANet is replaced with a depth-wise separable convolution, and the number of network parameters is further reduced by changing the convolution method.
[0053] Depthwise separable convolution is divided into channel-wise convolution and point-wise convolution, such as Figure 4As shown in the figure, the input is a C×H×3 feature map, and after convolution with a 3×3 convolution kernel, a C×H×N feature map is output. The process of standard convolution is to convolve N 3×3 convolution kernels with each channel of the input feature map, and finally obtain a new feature map with N channels; while the depthwise separable convolution first uses three 3×3 convolution kernels to convolve with each channel of the input feature map, respectively, to obtain a feature map with an input channel equal to the output channel, and then uses N 1×1 convolution kernels to convolve this feature map to obtain a new feature map with N channels.
[0054] The workflow of CBAM is as follows: Figure 5 As shown in the figure. CBAM is a simple and effective feed-forward convolutional attention module neural network that combines spatial and channel attention modules. After inputting the feature map generated by the feature extraction network, CBAM will infer the attention map along two independent dimensions, channel and space, and then multiply the attention map with the input features for adaptive feature refinement mapping. CBAM is a lightweight universal module that can be seamlessly integrated into any convolutional neural network architecture with negligible overhead and can be trained end-to-end.
[0055] Furthermore, the model weight parameters are updated in S3 through the cross entropy loss function.
[0056] Specifically, in S5, alarm information of abnormal poultry is received via a mobile phone APP in the form of a text message.
[0057] In a specific embodiment, an infrared camera is used to obtain video data of chickens eating, and video clips to be analyzed within the chicken eating time period are selected to obtain image data corresponding to each moment; multiple rectangular frames are used to mark the positions of all chickens in the image data; multiple key points of each chicken are then marked; a beak tip pecking action is defined for each chicken; and the image data is processed by rotation, cropping and mirroring operations so that each rectangular frame completely contains each chicken, and the edge of the rectangular frame is tangent to the edge of the chicken's outline. 500 image data are pre-adopted to input the state monitoring model, and the model weight parameters are updated through the cross entropy loss function. After several trainings, a trained state monitoring model is obtained. Image data is classified through rapid modeling and testing, the state of poultry is judged and evaluated, and abnormal poultry is alarmed.
[0058] In another specific embodiment, the process of obtaining the trained state monitoring model in S3 may be:
[0059] S31, input the training set into the state monitoring model for K iteration training;
[0060] S32, measuring the nth iteration training result through the loss function and calculating the minimized loss function of the nth iteration training result, and adjusting the learning rate of the n+1th iteration training according to the minimized loss function;
[0061] S33. Generate a trained state monitoring model according to the training results of K times of iterative training.
[0062] Specifically, by minimizing the classification cross entropy and constraining the learning rate of the neural network model training, the predicted value can be close to the true value.
[0063] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0064] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A real-time monitoring system for poultry status based on machine vision, It is characterized in that include: The infrared camera, monitoring module, judgment and evaluation module, and alarm module are connected in sequence; infrared cameras to collect video data of poultry; Monitoring module, used to monitor abnormal behavior, posture, temperature, and eating status of poultry; A judgment and evaluation module is used to judge and evaluate poultry based on their posture, temperature, and eating status; The alarm module is used to alarm the poultry with abnormalities according to the judgment and evaluation results.
2. A real-time monitoring method for poultry status based on machine vision, It is characterized in that The poultry status real-time monitoring system based on machine vision described in claim 1 comprises the following steps: S1. Acquiring data: acquiring poultry video data and obtaining image data within a target time period; S2. Data processing: preprocessing the acquired image data, and dividing the preprocessed image data into a training set and a test set; S3. Model training: input the training set into the state monitoring model, update the model weight parameters through the loss function, and obtain the trained state monitoring model after several trainings; S4. Judgment and evaluation: input the test set into the trained state monitoring model to judge and evaluate the state of poultry; S5. Result alarm: Alarm the poultry with abnormalities according to the judgment and evaluation results.
3. A method for real-time monitoring of poultry status based on machine vision according to claim 2, It is characterized in that In S1, an infrared camera is used to obtain poultry video data, and video segments to be analyzed within a target time period are selected to obtain image data corresponding to each moment.
4. The method for real-time monitoring of poultry status based on machine vision according to claim 2, It is characterized in that In S2, multiple rectangular frames are used to mark the positions of all poultry in the image data; Then mark multiple key points of each poultry; then define an action category for each poultry; The image data is processed by rotating, cropping and mirroring operations so that each rectangular frame completely contains each poultry, and the side of the rectangular frame is tangent to the edge of the outline of the poultry.
5. The method for real-time monitoring of poultry status based on machine vision according to claim 2, It is characterized in that In S2, the image data obtained after preprocessing is divided into a 70% training set and a 30% test set.
6. The method for real-time monitoring of poultry status based on machine vision according to claim 2, It is characterized in that The state monitoring model in S3 is based on the YOLOv4 target recognition network, introduces a deep separable convolutional network, and integrates the mixed domain attention mechanism optimization model to construct a poultry target state monitoring model.
7. The method for real-time monitoring of poultry status based on machine vision according to claim 2, It is characterized in that In S3, the model weight parameters are updated through the cross entropy loss function.
Citation Information
Patent Citations
A method for monitoring poultry quantity in a breeding farm based on depth learning analysis
CN109241941A
Livestock image target detection method and device based on lightweight YOLOv4
CN113537244A
Method and system for identifying individual identities of sheep flock in sheep house based on YOLOv4
CN114529840A
Poultry behavior analysis method based on computer vision
CN115147918A
Livestock and poultry body temperature monitoring system and method with wearable sensors and infrared cameras
WO2024001791A1
