Real-time monitoring method and device for health state of free-range broiler chicken

The target detection model is used to extract and fuse features of chicken flock images to determine the posture and detection frame of broiler chickens, solving the problems of high monitoring cost and low accuracy in the existing technology, and realizing automated and accurate monitoring of the health status of free-range broiler chickens. .

CN118658175AActive Publication Date: 2024-09-17SOUTH CHINA AGRICULTURAL UNIVERSITY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410558701.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-09-17
Estimated Expiration
2044-05-07

AI Technical Summary

Technical Problem

In the existing technology, manual inspection is time-consuming and labor-intensive and has a high misdiagnosis rate, while physical and chemical testing is expensive and unsuitable for the breeding industry, making it difficult to effectively monitor the health status of free-range broilers.

Method used

Using a target detection model, through feature extraction, fusion and detection of chicken images, the posture and detection frame of each chicken are obtained to determine its health status and realize automated monitoring. The model includes a feature extraction module, a feature fusion module and a detection module. It uses MobileViTv3 and CA attention mechanisms, combined with GradCAM, to improve the accurate recognition of broiler postures.

Benefits of technology

It realizes the automatic detection of the health status of free-range broilers, improves the identification accuracy, reduces monitoring costs, and is suitable for the real-time monitoring needs of the breeding industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658175A
    Figure CN118658175A
Patent Text Reader

Abstract

The invention relates to a method and a device for monitoring the health state of free-range broilers in real time. The method comprises the following steps: acquiring a chicken flock image of the free-range broilers; inputting the chicken flock image into a target detection model to obtain a posture and a detection frame of the free-range broiler chicken in the chicken flock image; and determining the health state of the free-range broiler chicken based on the posture and the detection frame. Therefore, the health state of the free-range broiler chicken can be automatically detected. On the other hand, when the target detection model detects the free-ranging broiler chickens in the chicken flock image, the features of different scales in the chicken flock image are extracted firstly, and then the features of different scales are fused to obtain a scale feature map with multi-scale information; and finally, detecting the scale feature map to obtain the posture and the detection frame of each chicken. Therefore, attention to key parts of the body of the free-range broiler chicken can be realized, the similar postures of the free-range broiler chicken can be accurately recognized, and the recognition accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of image processing, and in particular to a method and device for real-time monitoring of the health status of free-range broiler chickens. Background Art

[0002] The avian influenza epidemic is an important factor inhibiting the development of the poultry industry. Among the relevant technologies, the prevention of avian influenza epidemics is generally based on physical and chemical testing and manual inspections.

[0003] Manual inspection is time-consuming and labor-intensive, and misdiagnosis often occurs. Although physical and chemical testing has a high accuracy rate, it is expensive and is not suitable for the aquaculture industry. Summary of the invention

[0004] The purpose of the present invention is to provide a method and device for real-time monitoring of the health status of free-range broiler chickens to solve the above technical problems.

[0005] In order to achieve the above-mentioned object, the present disclosure provides a method for real-time monitoring of the health status of free-range broiler chickens in a first aspect, the method comprising: Get images of free-range broiler chickens; Inputting the chicken flock image into a target detection model to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image; Determining the health status of the free-range broiler chicken based on the posture and the detection frame; The target detection model includes a feature extraction module, a feature fusion module and a detection module. The target detection model is used to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image through the following operations: Extracting features of different scales from the image of the flock of chickens by means of the feature extraction module to obtain scale feature maps of different scales; Performing feature fusion processing on the scale feature maps of different scales through the feature fusion module to obtain a multi-scale feature map; The detection module determines the posture and detection frame of each free-range broiler chicken in the chicken flock image according to the multi-scale feature map.

[0006] Optionally, the feature extraction module includes a first feature extraction submodule, a second feature extraction submodule, a first feature enhancement submodule and a third feature extraction submodule, and the feature extraction module is used to extract features of different scales on the chicken flock image to obtain scale feature maps of different scales, including: Performing first scale feature extraction on the chicken flock image through the first feature extraction submodule to obtain a first scale feature map; Performing global feature extraction on the first scale feature map by the second feature extraction submodule to obtain a second scale feature map; Performing feature enhancement processing on the second-scale feature map by using the first feature enhancement submodule to obtain a third-scale feature map; The third scale feature map is subjected to feature extraction by the third feature extraction submodule to obtain a fourth scale feature map.

[0007] Optionally, the first feature enhancement submodule includes a first attention mechanism unit, a first cross-stage partial connection unit, a first convolution unit, a second attention mechanism unit, and a second cross-stage partial connection unit, and the feature enhancement submodule is used to perform feature enhancement processing on the second scale feature map to obtain a third scale feature map, including: Performing weighted processing on the second-scale feature map by the first attention mechanism unit to obtain a first-scale feature submap; Performing feature enhancement processing on the first scale feature sub-graph through the first cross-stage partial connection unit to obtain a second scale feature sub-graph; Performing feature extraction processing on the second scale feature subgraph by the first convolution unit to obtain a third scale feature subgraph; Performing weighted processing on the third-scale feature subgraph by the second attention mechanism unit to obtain a fourth-scale feature subgraph; The fourth-scale feature submap is subjected to feature enhancement processing by the second cross-stage partial connection unit to obtain a third-scale feature submap.

[0008] Optionally, the third feature extraction submodule includes a second convolution unit, a third attention mechanism unit, a spatial pyramid pooling unit, and a fourth attention mechanism unit, and the third feature extraction submodule is used to extract features from the third scale feature map to obtain a fourth scale feature map, including: Performing feature extraction processing on the third scale feature map by the second convolution unit to obtain a fifth scale feature submap; Performing weighted processing on the fifth scale feature subgraph by the third attention mechanism unit to obtain a sixth scale feature subgraph; Performing feature extraction processing of different scales on the sixth-scale feature sub-image by the spatial pyramid pooling unit to obtain a seventh-scale feature sub-image; The seventh-scale feature submap is weightedly processed by the fourth attention mechanism unit to obtain a fourth-scale feature map.

[0009] Optionally, the feature fusion module includes a feature fusion submodule and a second feature enhancement submodule, and the feature fusion module performs feature fusion processing on the scale feature maps of different scales to obtain a multi-scale feature map, including: Performing feature fusion processing on the first scale feature map, the third scale feature map, and the fourth scale feature map through the feature fusion submodule to obtain a first fused feature map; The first fused feature map is subjected to feature enhancement processing by the second feature adding submodule to obtain a multi-scale feature map.

[0010] Optionally, the feature fusion submodule includes a third cross-stage partial connection unit, a third convolution unit, a fourth cross-stage partial connection unit, a fourth convolution unit and a fifth attention mechanism unit, and the feature fusion submodule performs feature fusion processing on the first scale feature map, the third scale feature map and the fourth scale feature map to obtain a first fused feature map, including: Performing feature enhancement processing on the fourth scale feature map through the third cross-stage partial connection unit to obtain an eighth scale feature submap, and performing upsampling processing on the eighth scale feature submap to obtain a ninth scale feature submap; Performing feature fusion processing on the ninth scale feature subgraph and the third scale feature subgraph through the third convolution unit to obtain a first fused feature subgraph, and performing feature extraction processing on the first fused feature subgraph to obtain a second fused feature subgraph; Performing feature enhancement processing on the second fused feature subgraph through the fourth cross-stage partial connection unit to obtain a third fused feature subgraph, and performing upsampling processing on the third fused feature subgraph to obtain a fourth fused feature subgraph; Performing feature fusion processing on the fourth fused feature sub-graph and the first scale feature sub-graph through the fourth convolution unit to obtain a fifth fused feature sub-graph, and performing feature extraction processing on the fifth fused feature sub-graph to obtain a sixth fused feature sub-graph; The sixth fused feature subgraph is weightedly processed by the fifth attention mechanism unit to obtain a first fused feature graph.

[0011] Optionally, the second feature enhancement submodule includes a fifth cross-stage partial connection unit, a feature extraction unit, a sixth attention mechanism unit, a sixth cross-stage partial connection unit, a fifth convolution unit, and a seventh attention mechanism unit, and the second feature addition submodule performs feature enhancement processing on the first fused feature map to obtain a multi-scale feature map, including: Performing feature enhancement processing on the first fused feature map through the fifth cross-stage partial connection unit to obtain a second fused feature map; Performing global feature extraction on the second fused feature map by the feature extraction unit to obtain a third fused feature map; Performing feature fusion processing on the first fused feature map and the third fused feature map through the sixth attention mechanism unit to obtain a fourth fused feature map, and performing weighted processing on the fourth fused feature map to obtain a fifth fused feature map; Performing feature enhancement processing on the fifth fused feature map through the sixth cross-stage partial connection unit to obtain a sixth fused feature map; Performing feature extraction processing on the sixth fused feature map through the fifth convolution unit to obtain a seventh fused feature map; The seventh fusion feature map is weightedly processed by the seventh attention mechanism unit to obtain a multi-scale feature map.

[0012] Optionally, the target detection model is trained in the following manner: Acquire a sample chicken flock image, a first label and a second label, wherein the first label is used to indicate a real detection frame of the free-range broiler chickens in the sample chicken flock image, and the second label is used to indicate the posture of the free-range broiler chickens in the sample chicken flock image; Inputting the sample chicken flock image into the target detection model to obtain a predicted detection frame of free-range broiler chickens in the sample chicken flock image; Determine a first loss function value according to the predicted detection box and the first label, and determine a second loss function value according to the predicted detection box and the second label; Update the parameters of the target detection model according to the first loss function value and the second loss function value.

[0013] Optionally, the first loss function value is determined by the following formula:

[0014]

[0015] in, represents the first loss function value, It represents the parameter of controlling the degree of suppression of outliers. A represents the predicted detection box, B represents the real detection box, b represents the center point of the predicted detection box, represents the center point of the real detection box, represents the Euclidean distance between the real detection box and the predicted detection box, and c represents the diagonal distance of the minimum bounding box containing the predicted detection box and the real detection box.

[0016] A second aspect of the present disclosure provides a device for real-time monitoring of the health status of free-range broiler chickens, the device comprising: Mobile devices; An image acquisition device, disposed on the mobile device; The processor is used to control the movement of the mobile device so that the image acquisition device located on the mobile device acquires images at different positions, and executes any one of the methods in the first aspect based on the acquired images.

[0017] Through the above technical scheme, the image of a flock of free-range broiler chickens can be directly input into the target detection model, so as to obtain the detection frame and posture of each chicken in the flock image, and then the health status of each chicken can be determined according to the detection frame and posture of each chicken. In this way, the automatic detection of the health status of free-range broiler chickens can be achieved. On the other hand, when the target detection model detects the free-range broiler chickens in the flock image, it first extracts the features of different scales in the flock image, and then fuses the features of different scales to obtain a scale feature map with multi-scale information, and finally obtains the posture and detection frame of each chicken by detecting the scale feature map. In this way, it is possible to focus on the key parts of the body of free-range broiler chickens, accurately recognize similar postures of free-range broiler chickens, and improve the recognition accuracy.

[0018] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings: Figure 1 is a flow chart of a method for real-time monitoring of the health status of free-range broiler chickens according to an exemplary embodiment of the present disclosure; Figure 2 is a schematic diagram showing the effect of a CA attention mechanism according to an exemplary embodiment of the present disclosure; Figure 3 is a structural block diagram of a target detection model according to an exemplary embodiment of the present disclosure; Figure 4 is a schematic diagram of a training process of a target detection model according to an exemplary embodiment of the present disclosure; Figure 5 is a structural schematic diagram of a device for real-time monitoring of the health status of free-range broiler chickens according to an exemplary embodiment of the present disclosure; Figure 6 is a structural schematic diagram of an image acquisition device according to an exemplary embodiment of the present disclosure; Figure 7 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure; Figure 8is a block diagram of another electronic device according to an exemplary embodiment of the present disclosure.

[0020] Description of Reference Numerals 1. First mobile device; 2. Second mobile device; 3. Image acquisition device; 4. Base; 5. First fixed plate; 6. Temperature and humidity sensor; 7. Power supply; 8. Camera; 9. Second fixed plate; 10. Processor. DETAILED DESCRIPTION

[0021] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0022] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0023] Poultry diseases not only cause economic losses to the breeding industry, but more seriously, the resulting influenza also poses a threat to human health. Therefore, poultry diseases are becoming a hot topic of social concern. At present, the means of poultry monitoring are mainly physical and chemical testing and manual inspection. Manual inspection is a preliminary diagnosis of the health status of poultry by breeders by observing the characteristics of poultry posture, feathers, combs, feces and sounds. Manual observation is time-consuming and laborious, and misdiagnosis often occurs. Physical and chemical testing requires experts and is expensive, so it is not suitable for the breeding industry.

[0024] In view of this, the embodiments of the present disclosure provide a method and device for real-time monitoring of the health status of free-range broiler chickens to overcome the above-mentioned technical problems.

[0025] The embodiments of the present disclosure are further explained below with reference to the accompanying drawings.

[0026] Figure 1 is a flow chart of a method for real-time monitoring of the health status of free-range broiler chickens according to an exemplary embodiment of the present disclosure, referring to Figure 1 , the method may include the following steps: S101: Acquire an image of a flock of free-range broiler chickens.

[0027] Since the overhead camera can only obtain the top view of the broiler, it is impossible to capture the specific postures of the broiler's legs and head, resulting in the broiler's postures being mainly standing, drinking water, eating, etc., and it is impossible to obtain more accurate broiler postures. Therefore, in this embodiment, the image of the free-range broiler is obtained by the side camera.

[0028] S102: Input the chicken flock image into a target detection model to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image.

[0029] Among them, the target detection model can be a detection model in the relevant technology, or it can be a model that is an improvement on the detection model in the relevant technology. The embodiments of the present disclosure do not impose any restrictions on this.

[0030] For example, the target detection model in this embodiment can be an improved model of YOLOv5 (You only look once v5) in the related art. Specifically, in the YOLOv5 model in the related art, the backbone network (BackBone) all uses the C3 (Concentrated-Comprehensive Convolution Block) module in the traditional CNN (Convolutional Neural Networks) network structure. Because the convolution layer inside C3 is too simple, there is a problem of missed detection in global target detection, especially in this application scenario, due to the inconsistent size of free-range broilers, it is easy to miss detection. At the same time, due to the simple body structure of broilers, there are as many as 12 postures that need to be detected, which leads to the problem of too high similarity between postures, which makes it very difficult to accurately detect the model. Therefore, this embodiment introduces MobileViTv3 and CA (CoordinateAttention) modules based on the YOLOv5 model, and replaces the second C3 module in the backbone network and the medium target detection head in the neck network (Neck) with MobileViTv3 to utilize the characteristics of the Transformer in MobileViTv3 to extract global features of the image. Since CA has the advantage of paying attention to targets in both spatial and channel dimensions, adaptive learning of channel weights helps the model to effectively focus on useful channel information. At the same time, the GradCAM (Gradient-weighted Class Activation Mapping) gradient calculation method is used, and the important areas of concern can be clearly displayed according to its results, such as Figure 2 As shown in the figure, key positions and detailed information can be focused on in various scenarios, not only can all targets be located, but also accurate recognition of similar postures of broilers can be achieved. Therefore, by adding CA modules to the backbone network and the neck network, the CA module's sensitive attention to targets in terms of direction and position can be used to improve the accurate recognition of broiler postures when broilers are densely packed. The improved model is recorded as MCA-YOLOv5, and its structure can be shown as follows Figure 3 shown.

[0031] In order to enable MCA-YOLOv5 to output the posture and detection frame of each free-range broiler chicken in the chicken flock image based on the input chicken flock image, MCA-YOLOv5 needs to be trained using training data.

[0032] For example, Figure 4 As shown, we can first construct the total number Zhang's multi-scene, multi-variety, and multi-angle free-range broiler image dataset, of which the number of indoor free-range images is The number of outdoor free-range images is The number of outdoor fenced free-range images is Zhang. Then, the broiler postures and broiler detection frames in the free-range broiler images in the free-range broiler image dataset are manually annotated to obtain a training set. Finally, the training set is randomly divided into a training set, a test set, and a validation set in a 7:2:1 manner, and MCA-YOLOv5 is trained based on the training set, the test set, and the validation set. Specifically, the training set is used for MCA-YOLOv5 training, the validation set is used to determine the optimal hyperparameters of MCA-YOLOv5, and the test set is used to determine the prediction effect of MCA-YOLOv5. When the prediction effect of MCA-YOLOv5 reaches the preset prediction effect, the MCA-YOLOv5 training is considered to be completed.

[0033] When training MCA-YOLOv5 with a training set, the free-range broiler images, annotated broiler postures, and broiler detection frames in the training set can be input into MCA-YOLOv5 to obtain a predicted broiler detection frame, and then the first loss function value is determined based on the predicted broiler detection frame and the annotated broiler detection frame, and the second loss function value is determined based on the predicted broiler detection frame and the annotated broiler posture, and finally the parameters of MCA-YOLOv5 are updated based on the first loss function value and the second loss function value. In other words, the target detection model can be trained in the following way: A sample chicken flock image, a first label and a second label are obtained, wherein the first label is used to indicate a real detection frame of free-range broilers in the sample chicken flock image, and the second label is used to indicate a real posture of the free-range broilers in the sample chicken flock image; the sample chicken flock image is input into the target detection model to obtain a predicted detection frame of the free-range broilers in the sample chicken flock image; a first loss function value is determined based on the predicted detection frame and the first label, and a second loss function value is determined based on the predicted detection frame and the second label; and the parameters of the target detection model are updated based on the first loss function value and the second loss function value.

[0034] It should be understood that in the free-range broiler images, the number of healthy broilers is significantly greater than the number of unhealthy broilers, that is, the broiler postures representing healthy broilers are significantly greater than the broiler postures representing unhealthy broilers, which leads to the problem of sample category imbalance. At the same time, due to the simple structure of broilers and the diversity of their behaviors, the problem of difficult and easy samples also arises. To overcome the above two problems, this embodiment introduces the Focal-loss loss function, which is expressed as follows:

[0035] Given an offset variable , express location, express location, Represents the displacement deviation loss value, then the gradient of the Focal loss function can be shown as follows:

[0036] Combining the DIOU loss function with the Focal-loss loss function, we can Replace with , Represents the loss value of the DIOU loss function, and the calculation formula is as follows:

[0037] After replacement is no longer a constant, but is infinitely close to 0. is also close to 0, so after multiplication, the overall gradient will be smaller, weakening the reweighting effect To solve this problem, the IOU value is used to reweight the DIOU loss and obtain the final required Focal-DIOU function relationship as follows:

[0038] In the formula , It is a parameter that controls the degree of suppression of outliers.

[0039] That is to say, in a possible way, the first loss function value can be determined by the following formula:

[0040]

[0041] in, represents the first loss function value, It represents the parameter of controlling the degree of suppression of outliers.A represents the predicted detection box, B represents the real detection box, b Represents the center point of the predicted detection box, represents the center point of the real detection box, Represents the Euclidean distance between the real detection box and the predicted detection box, c Represents the diagonal distance between the minimum bounding box containing the predicted detection box and the true detection box.

[0042] After the target detection model is trained using the above training method, the chicken flock image can be input into the target detection model to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image.

[0043] S103: Determine the health status of the free-range broiler chicken based on the posture and the detection frame.

[0044] For example, when the posture is standing, eating, drinking, running, plucking feathers, fighting, resting, flapping wings and walking, the health state of the free-range broiler is determined to be healthy. When the posture is standing with the neck shrunk, lame or burying the wings, the health state of the free-range broiler is determined to be unhealthy.

[0045] The target detection model includes a feature extraction module, a feature fusion module and a detection module. The target detection model is used to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image through the following operations: The feature extraction module performs feature extraction of different scales on the chicken flock image to obtain scale feature maps of different scales; the feature fusion module performs feature fusion processing on the scale feature maps of different scales to obtain a multi-scale feature map; the detection module determines the posture and detection frame of each free-range broiler in the chicken flock image according to the multi-scale feature map.

[0046] In order to more clearly understand the real-time monitoring method for the health status of free-range broiler chickens in the present disclosure, the processing process of the target detection model on the chicken flock image is described in detail below.

[0047] In a possible implementation, the feature extraction module includes a first feature extraction submodule, a second feature extraction submodule, a first feature enhancement submodule and a third feature extraction submodule, and the feature extraction module is used to extract features of different scales on the chicken flock image to obtain scale feature maps of different scales, including: The first scale feature extraction is performed on the chicken flock image through the first feature extraction submodule to obtain a first scale feature map; the second scale feature extraction submodule is used to perform global feature extraction on the first scale feature map to obtain a second scale feature map; the first feature enhancement submodule is used to perform feature enhancement processing on the second scale feature map to obtain a third scale feature map; the third feature extraction submodule is used to perform feature extraction on the third scale feature map to obtain a fourth scale feature map.

[0048] For example, Figure 3 As shown, the first feature extraction submodule can be composed of three CBS (Cross-Stage-Partial-connections) and one C3 (Concentrated-Comprehensive ConvolutionBlock). Therefore, after the chicken flock image is transmitted to the first feature extraction submodule, it can be processed by CBS1, CBS2, C3 and CBS3 in sequence to obtain the first scale feature map.

[0049] The second feature extraction submodule can be composed of MobileViTv3, so that after the first scale feature map is transmitted to the second feature extraction submodule, the characteristics of the Transformer in MobileViTv3 can be used to extract the global features of the first scale feature map to obtain the second scale feature map.

[0050] The first feature enhancement submodule may be composed of two CAs (Coordinate Attention, attention mechanism), two CBSs and one C3, so that after the second-scale feature map is transmitted to the first feature enhancement submodule, it may be processed by CA1, CBS1, C3, CA2 and CBS2 in sequence to obtain a third-scale feature map. That is to say, the first feature enhancement submodule in this embodiment may include a first attention mechanism unit, a first cross-stage partial connection unit, a first convolution unit, a second attention mechanism unit and a second cross-stage partial connection unit, and the feature enhancement processing of the second-scale feature map by the feature enhancement submodule to obtain the third-scale feature map may include: The second-scale feature map is weightedly processed by the first attention mechanism unit to obtain a first-scale feature submap; the first cross-stage partial connection unit is used to perform feature enhancement processing on the first-scale feature submap to obtain a second-scale feature submap; the first convolution unit is used to perform feature extraction processing on the second-scale feature submap to obtain a third-scale feature submap; the third-scale feature submap is weightedly processed by the second attention mechanism unit to obtain a fourth-scale feature submap; the fourth-scale feature submap is feature enhanced by the second cross-stage partial connection unit to obtain a third-scale feature map.

[0051] The third feature extraction submodule may be composed of a C3, a SPPF (Spatial Pyramid Pooling) and two CAs, so that after the third scale feature map is transmitted to the third feature extraction submodule, it may be processed by C3, CA1, SPPF and CA2 in sequence to obtain a fourth scale feature map. That is to say, the third feature extraction submodule in this embodiment may include a second convolution unit, a third attention mechanism unit, a spatial pyramid pooling unit and a fourth attention mechanism unit, and the third scale feature map is extracted by the third feature extraction submodule to obtain a fourth scale feature map, including: The third-scale feature map is subjected to feature extraction processing by the second convolution unit to obtain a fifth-scale feature submap; the fifth-scale feature submap is subjected to weighted processing by the third attention mechanism unit to obtain a sixth-scale feature submap; the sixth-scale feature submap is subjected to feature extraction processing of different scales by the spatial pyramid pooling unit to obtain a seventh-scale feature submap; the seventh-scale feature submap is subjected to weighted processing by the fourth attention mechanism unit to obtain a fourth-scale feature map.

[0052] In a possible implementation, the feature fusion module includes a feature fusion submodule and a second feature enhancement submodule, and performing feature fusion processing on the scale feature maps of different scales by the feature fusion module to obtain a multi-scale feature map may include: The first scale feature map, the third scale feature map and the fourth scale feature map are subjected to feature fusion processing by the feature fusion submodule to obtain a first fused feature map; and the first fused feature map is subjected to feature enhancement processing by the second feature addition submodule to obtain a multi-scale feature map.

[0053] For example, Figure 3As shown, the feature fusion submodule can be composed of two CBS, two C3 and one CA, so that after the first scale feature map, the third scale feature map and the fourth scale feature map are transmitted to the feature fusion submodule, they can be processed by CBS1, C31, CBS2, C32 and CA to obtain a first fused feature map. That is to say, the feature fusion submodule in this embodiment includes a third cross-stage partial connection unit, a third convolution unit, a fourth cross-stage partial connection unit, a fourth convolution unit and a fifth attention mechanism unit, and the feature fusion submodule performs feature fusion processing on the first scale feature map, the third scale feature map and the fourth scale feature map to obtain a first fused feature map, which may include: The fourth scale feature map is subjected to feature enhancement processing by the third cross-stage partial connection unit to obtain an eighth scale feature submap, and the eighth scale feature submap is subjected to upsampling processing to obtain a ninth scale feature submap; the ninth scale feature submap and the third scale feature map are subjected to feature fusion processing by the third convolution unit to obtain a first fused feature submap, and the first fused feature submap is subjected to feature extraction processing to obtain a second fused feature submap; the second fused feature submap is subjected to feature enhancement processing by the fourth cross-stage partial connection unit to obtain a third fused feature submap, and the third fused feature submap is subjected to upsampling processing to obtain a fourth fused feature submap; the fourth fused feature submap and the first scale feature map are subjected to feature fusion processing by the fourth convolution unit to obtain a fifth fused feature submap, and the fifth fused feature submap is subjected to feature extraction processing to obtain a sixth fused feature submap; the sixth fused feature submap is subjected to weighted processing by the fifth attention mechanism unit to obtain a first fused feature map.

[0054] The second feature adding submodule may be composed of two CBS, one MobileViTv3, two CAs and one C3, whereby after the first fused feature map is transmitted to the second feature adding submodule, it may be processed by CBS1, MobileViTv3, CA1, CBS2, C3 and CA2 in sequence to obtain a multi-scale feature map. That is to say, the second feature enhancement submodule in this embodiment includes a fifth cross-stage partial connection unit, a feature extraction unit, a sixth attention mechanism unit, a sixth cross-stage partial connection unit, a fifth convolution unit and a seventh attention mechanism unit, and the feature enhancement processing of the first fused feature map by the second feature adding submodule to obtain a multi-scale feature map may include: The first fused feature map is subjected to feature enhancement processing through the fifth cross-stage partial connection unit to obtain a second fused feature map; the second fused feature map is subjected to global feature extraction through the feature extraction unit to obtain a third fused feature map; the first fused feature map and the third fused feature map are subjected to feature fusion processing through the sixth attention mechanism unit to obtain a fourth fused feature map, and the fourth fused feature map is subjected to weighted processing to obtain a fifth fused feature map; the fifth fused feature map is subjected to feature enhancement processing through the sixth cross-stage partial connection unit to obtain a sixth fused feature map; the sixth fused feature map is subjected to feature extraction processing through the fifth convolution unit to obtain a seventh fused feature map; the seventh fused feature map is subjected to weighted processing through the seventh attention mechanism unit to obtain a multi-scale feature map.

[0055] It is worth noting that, except for the number 3 in C3, the numbers in the other modules, submodules or units indicate the order. For example, CA1 in the second feature adding submodule indicates the first CA in the second feature adding submodule, and CBS2 in the second feature adding submodule indicates the second CBS in the second feature adding submodule.

[0056] Through the above technical scheme, the image of a flock of free-range broiler chickens can be directly input into the target detection model, so as to obtain the detection frame and posture of each chicken in the flock image, and then the health status of each chicken can be determined according to the detection frame and posture of each chicken. In this way, the automatic detection of the health status of free-range broiler chickens can be achieved. On the other hand, when the target detection model detects the free-range broiler chickens in the flock image, it first extracts the features of different scales in the flock image, and then fuses the features of different scales to obtain a scale feature map with multi-scale information, and finally obtains the posture and detection frame of each chicken by detecting the scale feature map. In this way, it is possible to focus on the key parts of the body of free-range broiler chickens, accurately recognize similar postures of free-range broiler chickens, and improve the recognition accuracy.

[0057] Based on the same concept, the embodiment of the present disclosure also provides a device for real-time monitoring of the health status of free-range broiler chickens, which may include: Mobile devices; The mobile device may be any device that enables the image acquisition device to acquire images at different locations, and the embodiments of the present disclosure do not impose any limitation on this.

[0058] For example, the mobile device may be Figure 5As shown, it includes a base 4, a first moving device 1 and a second moving device 2, wherein the first moving device 1 is arranged on the base 5 and is used to move up and down along the base 5; the second moving device 2 is arranged on the first moving device 1 and is used to move left and right along the first moving device 1. Therefore, when the image acquisition device 3 is arranged on the second moving device 2, the image acquisition device 3 can acquire images at different positions by moving the first moving device 1 up and down and / or the second moving device 2 left and right.

[0059] An image acquisition device 3, arranged on the mobile device; For example, the image acquisition device 3 may be as follows: Figure 6 As shown, it includes a first fixing plate 5, a second fixing plate 9, a power supply 7 and a camera 8. Among them, the first fixing plate 5 is arranged on the second mobile device 2, the camera 8 is arranged on the first fixing plate 5 through the second fixing plate 9, and the power supply 7 is arranged on the first fixing plate 5 and is electrically connected to the camera 8. Therefore, when the first mobile device 1 drives the second mobile device 2 to move up and down, the image acquisition device 3 can follow the second mobile device 2 to move up and down, and / or, when the second mobile device 2 moves left and right, the image acquisition device 3 can follow the second mobile device 2 to move left and right, thereby realizing image acquisition of different positions.

[0060] The processor 10 is used to control the movement of the mobile device so that the image acquisition device 3 located on the mobile device acquires images at different positions, and executes any step of the above-mentioned method for real-time monitoring of the health status of free-range broilers based on the acquired images.

[0061] Through the above technical solution, the image acquisition device 3 can realize free movement in four directions, so that the breeder can not only track one or more free-range broilers through the real-time monitoring device for the health status of free-range broilers, but also realize large-scale monitoring based on a single camera, thereby reducing the monitoring cost. In addition, in the real-time monitoring method for the health status of free-range broilers, the image of the free-range broiler flock can be directly input into the target detection model, so as to obtain the detection frame and posture of each chicken in the flock image, and then the health status of each chicken can be determined according to the detection frame and posture of each chicken. In this way, the automatic detection of the health status of free-range broilers can be realized. On the other hand, when the target detection model detects the free-range broilers in the flock image, it first extracts the features of different scales in the flock image, and then fuses the features of different scales to obtain a scale feature map with multi-scale information, and finally obtains the posture and detection frame of each chicken by detecting the scale feature map. In this way, it is possible to pay attention to the key parts of the body of free-range broilers, accurately recognize similar postures of free-range broilers, and improve the recognition accuracy.

[0062] In a possible implementation manner, in order to timely understand the environmental conditions of free-range broiler chickens, a temperature and humidity sensor 6 is also provided on the mobile device.

[0063] Based on the same concept, the embodiment of the present disclosure also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processing device, the steps of any of the above-mentioned methods for real-time monitoring of the health status of free-range broilers are implemented.

[0064] Based on the same concept, the present disclosure also provides an electronic device, which may include: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of any of the above-mentioned methods for real-time monitoring of the health status of free-range broiler chickens.

[0065] Based on the same concept, an embodiment of the present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for real-time monitoring of the health status of free-range broilers.

[0066] Figure 7 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Figure 7 As shown, the electronic device 700 may include: a processor 701 , a memory 702 . The electronic device 700 may also include one or more of a multimedia component 703 , an input / output (I / O) interface 704 , and a communication component 705 .

[0067] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned method for real-time monitoring of the health status of free-range broilers. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include, for example, instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.

[0068] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned method for real-time monitoring of the health status of free-range broilers.

[0069] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned method for real-time monitoring of the health status of free-range broilers are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions may be executed by the processor 701 of the electronic device 700 to complete the above-mentioned method for real-time monitoring of the health status of free-range broilers.

[0070] Figure 8 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be provided as a server. Figure 8 The electronic device 800 includes a processor 822, which may be one or more, and a memory 832 for storing a computer program executable by the processor 822. The computer program stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 822 may be configured to execute the computer program to perform the above-mentioned method for real-time monitoring of the health status of free-range broilers.

[0071] In addition, the electronic device 800 may further include a power supply component 826 and a communication component 850, wherein the power supply component 826 may be configured to perform power management of the electronic device 800, and the communication component 850 may be configured to implement communication of the electronic device 800, for example, wired or wireless communication. In addition, the electronic device 1900 may further include an input / output (I / O) interface 858. The electronic device 800 may operate based on an operating system stored in the memory 832.

[0072] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned method for real-time monitoring of the health status of free-range broilers are implemented. For example, the non-transitory computer-readable storage medium may be the above-mentioned memory 832 including program instructions, and the above-mentioned program instructions may be executed by the processor 822 of the electronic device 800 to complete the above-mentioned method for real-time monitoring of the health status of free-range broilers.

[0073] In another exemplary embodiment, a computer program product is also provided, which includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned method for real-time monitoring of the health status of free-range broiler chickens when executed by the programmable device.

[0074] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0075] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0076] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for real-time monitoring of the health status of free-range broiler chickens, characterized in that: The method comprises: Get images of free-range broiler chickens; Inputting the chicken flock image into a target detection model to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image; Based on the posture and the detection frame, determining the health status of the free-range broiler; The target detection model includes a feature extraction module, a feature fusion module and a detection module. The target detection model is used to obtain the posture and detection frame of the free-range broiler chickens in the chicken flock image through the following operations: Extracting features of different scales from the image of the flock of chickens by means of the feature extraction module to obtain scale feature maps of different scales; Performing feature fusion processing on the scale feature maps of different scales through the feature fusion module to obtain a multi-scale feature map; The detection module determines the posture and detection frame of each free-range broiler chicken in the chicken flock image according to the multi-scale feature map.

2. The method for real-time monitoring of the health status of free-range broiler chickens according to claim 1, characterized in that: The feature extraction module includes a first feature extraction submodule, a second feature extraction submodule, a first feature enhancement submodule and a third feature extraction submodule. The feature extraction module extracts features of different scales from the chicken flock image to obtain scale feature maps of different scales, including: Performing first scale feature extraction on the chicken flock image through the first feature extraction submodule to obtain a first scale feature map; Performing global feature extraction on the first scale feature map by the second feature extraction submodule to obtain a second scale feature map; Performing feature enhancement processing on the second-scale feature map by using the first feature enhancement submodule to obtain a third-scale feature map; The third scale feature map is subjected to feature extraction by the third feature extraction submodule to obtain a fourth scale feature map.

3. The method for real-time monitoring of the health status of free-range broiler chickens according to claim 2, characterized in that: The first feature enhancement submodule includes a first attention mechanism unit, a first cross-stage partial connection unit, a first convolution unit, a second attention mechanism unit, and a second cross-stage partial connection unit. The feature enhancement submodule performs feature enhancement processing on the second scale feature map to obtain a third scale feature map, including: Performing weighted processing on the second-scale feature map by the first attention mechanism unit to obtain a first-scale feature submap; Performing feature enhancement processing on the first scale feature sub-graph through the first cross-stage partial connection unit to obtain a second scale feature sub-graph; Performing feature extraction processing on the second scale feature subgraph by the first convolution unit to obtain a third scale feature subgraph; Performing weighted processing on the third-scale feature subgraph by the second attention mechanism unit to obtain a fourth-scale feature subgraph; The fourth-scale feature submap is subjected to feature enhancement processing by the second cross-stage partial connection unit to obtain a third-scale feature submap.

4. The method for real-time monitoring of the health status of free-range broiler chickens according to claim 2, characterized in that: The third feature extraction submodule includes a second convolution unit, a third attention mechanism unit, a spatial pyramid pooling unit and a fourth attention mechanism unit, and the third feature extraction submodule extracts features from the third scale feature map to obtain a fourth scale feature map, including: Performing feature extraction processing on the third scale feature map by the second convolution unit to obtain a fifth scale feature submap; Performing weighted processing on the fifth scale feature subgraph by the third attention mechanism unit to obtain a sixth scale feature subgraph; Performing feature extraction processing of different scales on the sixth-scale feature sub-image by the spatial pyramid pooling unit to obtain a seventh-scale feature sub-image; The seventh-scale feature submap is weightedly processed by the fourth attention mechanism unit to obtain a fourth-scale feature map.

5. The method for real-time monitoring of the health status of free-range broiler chickens according to claim 4, characterized in that: The feature fusion module includes a feature fusion submodule and a second feature enhancement submodule, and the feature fusion module performs feature fusion processing on the scale feature maps of different scales to obtain a multi-scale feature map, including: Performing feature fusion processing on the first scale feature map, the third scale feature map, and the fourth scale feature map through the feature fusion submodule to obtain a first fused feature map; The first fused feature map is subjected to feature enhancement processing by the second feature adding submodule to obtain a multi-scale feature map.

6. The method for real-time monitoring of the health status of free-range broiler chickens according to claim 5, characterized in that: The feature fusion submodule includes a third cross-stage partial connection unit, a third convolution unit, a fourth cross-stage partial connection unit, a fourth convolution unit and a fifth attention mechanism unit. The feature fusion submodule performs feature fusion processing on the first scale feature map, the third scale feature map and the fourth scale feature map to obtain a first fused feature map, including: Performing feature enhancement processing on the fourth scale feature map through the third cross-stage partial connection unit to obtain an eighth scale feature submap, and performing upsampling processing on the eighth scale feature submap to obtain a ninth scale feature submap; Performing feature fusion processing on the ninth scale feature subgraph and the third scale feature subgraph through the third convolution unit to obtain a first fused feature subgraph, and performing feature extraction processing on the first fused feature subgraph to obtain a second fused feature subgraph; Performing feature enhancement processing on the second fused feature subgraph through the fourth cross-stage partial connection unit to obtain a third fused feature subgraph, and performing upsampling processing on the third fused feature subgraph to obtain a fourth fused feature subgraph; Performing feature fusion processing on the fourth fused feature sub-graph and the first scale feature sub-graph through the fourth convolution unit to obtain a fifth fused feature sub-graph, and performing feature extraction processing on the fifth fused feature sub-graph to obtain a sixth fused feature sub-graph; The sixth fused feature subgraph is weightedly processed by the fifth attention mechanism unit to obtain a first fused feature subgraph.

7. The method for real-time monitoring of the health status of free-range broilers according to claim 5, characterized in that: The second feature enhancement submodule includes a fifth cross-stage partial connection unit, a feature extraction unit, a sixth attention mechanism unit, a sixth cross-stage partial connection unit, a fifth convolution unit, and a seventh attention mechanism unit. The second feature addition submodule performs feature enhancement processing on the first fused feature map to obtain a multi-scale feature map, including: Performing feature enhancement processing on the first fused feature map through the fifth cross-stage partial connection unit to obtain a second fused feature map; Performing global feature extraction on the second fused feature map by the feature extraction unit to obtain a third fused feature map; Performing feature fusion processing on the first fused feature map and the third fused feature map through the sixth attention mechanism unit to obtain a fourth fused feature map, and performing weighted processing on the fourth fused feature map to obtain a fifth fused feature map; Performing feature enhancement processing on the fifth fused feature map through the sixth cross-stage partial connection unit to obtain a sixth fused feature map; Performing feature extraction processing on the sixth fused feature map through the fifth convolution unit to obtain a seventh fused feature map; The seventh fusion feature map is weightedly processed by the seventh attention mechanism unit to obtain a multi-scale feature map.

8. The method for real-time monitoring of the health status of free-range broiler chickens according to any one of claims 1 to 7, characterized in that: The target detection model is trained in the following way: Acquire a sample chicken flock image, a first label and a second label, wherein the first label is used to indicate a real detection frame of the free-range broiler chickens in the sample chicken flock image, and the second label is used to indicate a real posture of the free-range broiler chickens in the sample chicken flock image; Inputting the sample chicken flock image into the target detection model to obtain a predicted detection frame of free-range broiler chickens in the sample chicken flock image; Determine a first loss function value according to the predicted detection box and the first label, and determine a second loss function value according to the predicted detection box and the second label; Update the parameters of the target detection model according to the first loss function value and the second loss function value.

9. The method for real-time monitoring of the health status of free-range broiler chickens according to claim 8, characterized in that: The first loss function value is determined by the following formula: in, represents the first loss function value, It represents the parameter of controlling the degree of suppression of outliers. A represents the predicted detection box, B represents the real detection box, b Represents the center point of the predicted detection box, represents the center point of the real detection box, represents the Euclidean distance between the real detection box and the predicted detection box, and c represents the diagonal distance of the minimum bounding box containing the predicted detection box and the real detection box.

10. A real-time monitoring device for the health status of free-range broiler chickens, characterized in that: The device comprises: Mobile devices; An image acquisition device, disposed on the mobile device; A processor is used to control the movement of the mobile device so that the image acquisition device located on the mobile device acquires images at different positions, and executes the method according to any one of claims 1 to 9 based on the acquired images.

Citation Information

Patent Citations

  • Chicken flock activity amount real-time estimation method and chicken flock activity amount real-time estimation system based on multi-target tracking

    CN111680587A

  • Chicken flock counting method based on deep learning and application

    CN112861666A

  • Diseased chicken visual identification model construction and application method based on multi-region deep feature fusion

    CN113221864A

  • Cage rearing broiler chicken state detection and counting system based on deep learning

    CN116665129A

  • Lightweight improved YOLOv5-based cage rearing broiler chicken health state identification method

    CN116805415A