CN116681876A - Fecal state scoring device for diagnosing gastrointestinal health of animals - Google Patents

Fecal state scoring device for diagnosing gastrointestinal health of animals Download PDF

Info

Publication number
CN116681876A
CN116681876A CN202310955745.2A CN202310955745A CN116681876A CN 116681876 A CN116681876 A CN 116681876A CN 202310955745 A CN202310955745 A CN 202310955745A CN 116681876 A CN116681876 A CN 116681876A
Authority
CN
China
Prior art keywords
animal
feces
module
fecal
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310955745.2A
Other languages
Chinese (zh)
Other versions
CN116681876B (en
Inventor
李斌
纪宝锋
周孟创
赵宇亮
赵文文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Intelligent Equipment Technology Research Center of Beijing Academy of Agricultural and Forestry Sciences
Original Assignee
Intelligent Equipment Technology Research Center of Beijing Academy of Agricultural and Forestry Sciences
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Intelligent Equipment Technology Research Center of Beijing Academy of Agricultural and Forestry Sciences filed Critical Intelligent Equipment Technology Research Center of Beijing Academy of Agricultural and Forestry Sciences
Priority to CN202310955745.2A priority Critical patent/CN116681876B/en
Publication of CN116681876A publication Critical patent/CN116681876A/en
Application granted granted Critical
Publication of CN116681876B publication Critical patent/CN116681876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/255Detecting or recognising potential candidate objects based on visual cues, e.g. shapes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/30ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A40/00Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
    • Y02A40/70Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in livestock or poultry

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Public Health (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Pathology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Epidemiology (AREA)
  • Primary Health Care (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a fecal state scoring device for diagnosing gastrointestinal health of animals, which relates to the technical field of animal cultivation, and comprises: the image acquisition module is arranged above the animal shed and is used for acquiring depth images below the animal shed; wherein the depth image comprises animal feces; the image processing module is used for acquiring shape information of animal feces according to the depth image, wherein the shape information of the animal feces comprises the ratio of the feces height to the feces bottom surface area; the health diagnosis module is used for determining the dryness degree score of the animal feces according to the ratio of the feces height to the feces bottom surface area; and judging the gastrointestinal health of the animal according to the dryness and dilution degree scores of the animal feces. The invention realizes the identification of animal feces and has higher accuracy; the intestinal health state of animals is reflected, the detection efficiency is improved, and the manual labor is liberated; the fecal status scoring device provided by the invention has guiding significance for actual feeding of animals.

Description

Fecal state scoring device for diagnosing gastrointestinal health of animals
Technical Field
The invention relates to the technical field of animal breeding, in particular to a fecal status scoring device for diagnosing gastrointestinal health of animals.
Background
Gastrointestinal health of animals is of great importance in animal farming. The evaluation of the morphological characteristic change of the excrement can provide gastrointestinal health information of animals, which is beneficial to scientifically managing daily ration formulas of the animals and improving animal feeding efficiency.
At present, the gastrointestinal health diagnosis of animal feces mainly depends on the observation of animal feces conditions by breeders, so that the gastrointestinal health of animals is diagnosed. With the large-scale and intensive development of animal cultivation, the daily detection of animal faeces conditions becomes a difficult problem. In the actual cultivation process, the manual detection method consumes a great deal of manpower and time, and cannot be practically applied to modern large-scale cattle farms.
Disclosure of Invention
The invention provides a fecal status scoring device for diagnosing gastrointestinal health of animals, which is used for solving the problem that the daily detection of the fecal status of the animals in the prior art consumes a great deal of manpower and time.
The invention provides a fecal status scoring device for diagnosing gastrointestinal health of an animal, comprising: the image acquisition module is arranged above the animal shed and is used for acquiring depth images below the animal shed; wherein the depth image comprises animal feces; the image processing module is connected with the image acquisition module and is used for acquiring shape information of animal feces according to the depth image, wherein the shape information of the animal feces comprises the ratio of the feces height to the feces bottom surface area; the health diagnosis module is connected with the image processing module and is used for determining the dryness degree score of the animal feces according to the ratio of the feces height to the feces bottom surface area; and judging the gastrointestinal health of the animal according to the dryness and dilution degree scores of the animal feces.
According to the fecal state scoring device for diagnosing the gastrointestinal health of the animal, the image processing module comprises a target image module, a shape information judging module and a ratio processing module; the target image module is used for dividing animal waste in the depth image according to the target frame and reserving the animal waste in the target frame to obtain a target image; the shape information judging module is used for obtaining the height of the animal feces based on the distance between the top of the animal feces in the target image and the ground; obtaining the area of the bottom surface of the animal feces based on the number of pixel points occupied by the bottom surface of the animal feces in the target image and a corresponding coefficient, wherein the corresponding coefficient represents the corresponding relation between the area of each pixel point in the depth image and the actual area; and the ratio processing module is used for obtaining the ratio of the fecal height to the fecal bottom surface area based on the fecal height and the fecal bottom surface area.
According to the fecal state scoring device for diagnosing gastrointestinal health of animals, the image acquisition module comprises a detection module and a depth camera; the detection module is used for detecting whether animal feces exist below the animal shed by using a YOLOv5 algorithm; and the depth camera is used for shooting a depth image comprising animal feces when the detection module detects that the animal feces exist below the animal shed.
According to the fecal status scoring device for diagnosing gastrointestinal health of animals, the image processing module further comprises a background separation module, wherein the background separation module is used for: obtaining a maximum distance for segmentation according to the distance from the depth camera to the ground; converting the target image into an array of distance values, searching the minimum non-zero value in the array, and adding a preset constant to the minimum non-zero value to obtain the minimum distance for segmentation; a distance threshold range of the target image is set based on the maximum distance for the segmentation process and the minimum distance for the segmentation process, and animal feces in the target image are separated from the ground background based on the distance threshold range.
According to the fecal status scoring device for diagnosing gastrointestinal health of animals provided by the invention, the background separation module is further used for: and setting a target image area outside the distance threshold range to be white, and setting a target image area within the distance threshold range to be black so as to separate animal feces from ground background in the target image.
According to the fecal state scoring device for diagnosing the gastrointestinal health of animals, the shape information judging module comprises a fecal bottom surface area identifying module; the fecal bottom surface area recognition module is used for scanning pixels of the target image from left to right and from top to bottom one by one, and if the scanned pixels are black, the number of the target pixels is increased by one; if the scanned pixel color is displayed as white, the number of target pixels is not changed; the number of the pixel points occupied by the bottom surface of the animal feces is the number of target pixels obtained after all the pixel points of the target image are scanned; and obtaining the area of the bottom surface of the animal feces based on the number of pixel points occupied by the bottom surface of the animal feces in the target image and the corresponding coefficient.
According to the fecal state scoring device for diagnosing the gastrointestinal health of the animal, the shape information judging module further comprises a fecal height identifying module; the fecal height identification module is used for obtaining a first distance from the top of the animal feces to the image acquisition module and a second distance from the ground to the image acquisition module based on the target image; the fecal height is obtained based on the first distance and the second distance.
According to the fecal status scoring device for diagnosing the gastrointestinal health of the animals, the greater the ratio of the fecal height to the fecal bottom surface area is, the drier the animal feces is; the smaller the ratio of the fecal height to the fecal floor area, the thinner the animal feces.
According to the fecal status scoring device for diagnosing gastrointestinal health of animals, the health diagnosis module comprises a dryness degree scoring module; the dry and thin degree scoring module is used for training according to the ratio of the height of the sample excrement to the area of the bottom surface of the excrement and the corresponding sample dry and thin degree score label to obtain a first comparison relation; the animal feces dryness score was determined based on the first control relationship and the ratio of feces height to feces floor area.
According to the fecal state scoring device for diagnosing the gastrointestinal health of the animal, the health diagnosis module further comprises a gastrointestinal health determination module; the gastrointestinal health determining module is used for training according to the dryness degree score of the sample animal feces and the corresponding sample gastrointestinal health label to obtain a second control relation; the gastrointestinal health of the animal is determined based on the second control relationship and the animal feces dryness score.
The invention provides a fecal status scoring device for diagnosing gastrointestinal health of animals, which comprises: the image acquisition module is arranged above the animal shed and is used for acquiring depth images below the animal shed; wherein the depth image comprises animal feces; the image processing module is connected with the image acquisition module and is used for acquiring shape information of animal feces according to the depth image, wherein the shape information of the animal feces comprises the ratio of the feces height to the feces bottom surface area; the health diagnosis module is connected with the image processing module and is used for determining the dryness degree score of the animal feces according to the ratio of the feces height to the feces bottom surface area; and judging the gastrointestinal health of the animal according to the dryness and dilution degree scores of the animal feces. Through the mode, the animal feces is identified, and the method has high accuracy; the intestinal health state of animals is reflected, the detection efficiency is improved, and the manual labor is liberated; the fecal status scoring device provided by the invention has guiding significance for actual feeding of animals.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view showing the construction of an embodiment of a fecal status scoring device for diagnosing gastrointestinal health in an animal according to the present invention;
FIG. 2 is a schematic diagram of the mounting position of an embodiment of a depth camera according to the present invention;
FIG. 3 is a schematic view of one embodiment of the fecal form of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a fecal status scoring device for diagnosing gastrointestinal health in an animal according to the present invention;
FIG. 5 is a flow chart of an embodiment of a stool condition identification method for diagnosing gastrointestinal health in an animal in accordance with the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As used herein, spatially relative terms, such as "below," "lower," "above," "upper," "lower," "left," "right," and the like, may be used herein for ease of description to describe one element or feature's relationship to another element or feature as illustrated in the figures. Spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. The device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
The invention provides a fecal status scoring device for diagnosing gastrointestinal health of animals, which can realize intelligent identification of animal feces and diagnosis of intestinal health of animals, discover abnormal animal feces in time and inform raising personnel.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a fecal status scoring device for diagnosing gastrointestinal health of an animal according to the present invention, wherein the fecal status scoring device for diagnosing gastrointestinal health of an animal comprises: an image acquisition module 110, an image processing module 120, and a health diagnosis module 130.
The image acquisition module 110 is arranged above the animal shed and is used for acquiring depth images below the animal shed; wherein the depth image comprises animal feces.
The image processing module 120 is connected to the image acquisition module, and is used for acquiring shape information of animal feces according to the depth image, wherein the shape information of the animal feces comprises a ratio of the feces height to the feces bottom surface area.
The health diagnosis module 130 is connected with the image processing module and is used for determining the dryness degree score of the animal feces according to the ratio of the feces height to the feces bottom surface area; and judging the gastrointestinal health of the animal according to the dryness and dilution degree scores of the animal feces.
The fecal status scoring device for diagnosing the gastrointestinal health of the animal provided by the embodiment realizes the identification of the animal feces and has higher accuracy; the intestinal health state of animals is reflected, the detection efficiency is improved, and the manual labor is liberated; the fecal status scoring device provided by the invention has guiding significance for actual feeding of animals.
Optionally, the image acquisition module comprises a detection module and a depth camera; referring to fig. 2, fig. 2 is a schematic view illustrating an installation position of a depth camera according to an embodiment of the invention. The detection module is used for detecting whether animal feces exist below the animal shed by using a YOLOv5 algorithm; and the depth camera is used for shooting a depth image comprising animal feces when the detection module detects that the animal feces exist below the animal shed.
YOLOv5 is a depth recognition algorithm for object detection that allows neural networks to retain more spatial information at higher levels of feature layers. In the embodiment, the YOLOv5 algorithm is used for detecting whether animal feces exist below the animal shed, so that the detection precision is improved, and the detection speed can be improved.
The depth camera is also called as a 3D camera, and can detect the depth of field distance of a shooting space. The distance from each point in the image to the camera is obtained through the depth camera, and the three-dimensional space coordinate of each point in the image can be obtained by adding the two-dimensional coordinate of the point in the 2D image.
As shown in fig. 2, the depth camera is placed right above the animal shed, and can shoot a depth image including animal feces from top to bottom.
The embodiment provides a stool state scoring device for diagnosing gastrointestinal health of animals, which utilizes a deep learning algorithm to detect cow stools, combines a deep camera to obtain cow stool shape information, realizes intelligent identification of animal stools, and further obtains gastrointestinal health information of animals. If an abnormal result is detected, the abnormal result can be fed back to the raising personnel, so that the aims of timely monitoring the intestinal health of animals, reducing economic loss and reducing labor cost are fulfilled.
In one embodiment, the image processing module comprises a target image module, a shape information judging module and a ratio processing module; the target image module is used for dividing animal waste in the depth image according to the target frame and reserving the animal waste in the target frame to obtain a target image; the shape information judging module is used for obtaining the height of the animal feces based on the distance between the top of the animal feces in the target image and the ground; obtaining the area of the bottom surface of the animal feces based on the number of pixel points occupied by the bottom surface of the animal feces in the target image and a corresponding coefficient, wherein the corresponding coefficient represents the corresponding relation between the area of each pixel point in the depth image and the actual area; and the ratio processing module is used for obtaining the ratio of the fecal height to the fecal bottom surface area based on the fecal height and the fecal bottom surface area.
In one embodiment, the image processing module further comprises a background separation module for: obtaining a maximum distance for segmentation according to the distance from the depth camera to the ground; converting the target image into an array of distance values, searching the minimum non-zero value in the array, and adding a preset constant to the minimum non-zero value to obtain the minimum distance for segmentation; a distance threshold range of the target image is set based on the maximum distance for the segmentation process and the minimum distance for the segmentation process, and animal feces in the target image are separated from the ground background based on the distance threshold range.
In one embodiment, the background separation module is further to: and setting a target image area outside the distance threshold range to be white, and setting a target image area within the distance threshold range to be black so as to separate animal feces from ground background in the target image.
In one embodiment, the shape information determination module includes a fecal floor area identification module; the fecal bottom surface area recognition module is used for scanning pixels of the target image from left to right and from top to bottom one by one, and if the scanned pixels are black, the number of the target pixels is increased by one; if the scanned pixel color is displayed as white, the number of target pixels is not changed; the number of the pixel points occupied by the bottom surface of the animal feces is the number of target pixels obtained after all the pixel points of the target image are scanned; and obtaining the area of the bottom surface of the animal feces based on the number of pixel points occupied by the bottom surface of the animal feces in the target image and the corresponding coefficient.
In one embodiment, the shape information determination module further comprises a stool height identification module; the fecal height identification module is used for obtaining a first distance from the top of the animal feces to the image acquisition module and a second distance from the ground to the image acquisition module based on the target image; the fecal height is obtained based on the first distance and the second distance.
Referring to fig. 3, fig. 3 is a schematic view of an embodiment of the fecal shape of the present invention.
It can be seen that the fecal bottom surface area S and the fecal height h of animal feces can be obtained through the fecal bottom surface area identification module and the fecal height identification module, and the ratio I of the fecal height to the fecal bottom surface area can be calculated according to the fecal bottom surface area S and the fecal height h of animal feces, wherein the specific calculation formula is as follows:
the higher the fecal height is, the smaller the fecal bottom surface area is, the larger the ratio I of the fecal height to the fecal bottom surface area is, and the drier the animal feces is; conversely, the lower the fecal height, the greater the floor area, and the smaller the ratio I of fecal height to fecal floor area, the more dilute the animal feces.
In one embodiment, the health diagnostic module includes a lean degree scoring module; the dry and thin degree scoring module is used for training according to the ratio of the height of the sample excrement to the area of the bottom surface of the excrement and the corresponding sample dry and thin degree score label to obtain a first comparison relation; the animal feces dryness score was determined based on the first control relationship and the ratio of feces height to feces floor area.
In one embodiment, the health diagnostic module further comprises a gastrointestinal health determination module; the gastrointestinal health determining module is used for training according to the dryness degree score of the sample animal feces and the corresponding sample gastrointestinal health label to obtain a second control relation; the gastrointestinal health of the animal is determined based on the second control relationship and the animal feces dryness score.
Referring to fig. 4-5, fig. 4 is a schematic structural diagram of another embodiment of a fecal status scoring device for diagnosing gastrointestinal health of an animal according to the present invention, and fig. 5 is a flowchart of an embodiment of a fecal status identifying method for diagnosing gastrointestinal health of an animal according to the present invention.
The image acquisition module comprises a detection module and a depth camera, the image processing module comprises a target image module, a background separation module, a shape information module and a ratio processing module, and the health diagnosis module comprises a dryness and weakness degree scoring module and a gastrointestinal health determining module.
In this example, the gastrointestinal health of cows is taken as an example to identify the fecal status of cows. As shown in fig. 5, the steps of the fecal status recognition method for diagnosing gastrointestinal health of an animal, comprising: acquiring a fecal image dataset; detecting cow dung; separating a background; acquiring the height and the area of the excrement; calculating the ratio of the height area of the excrement; comparing with a judging standard; obtaining a cow fecal score; and reporting the detection result.
Specifically, after a plurality of cow dung image samples are obtained, cow dung can be classified into five categories by referring to cow dung scoring standards, specifically as follows:
and placing the depth camera right above the cowshed, and shooting the cow dung image from top to bottom. The YOLOv5 algorithm is used for detection, and only the ground is detected whether cow dung exists. When the dairy cow dung on the ground is detected, the shape information of the dairy cow dung is obtained by utilizing the depth image shot by the depth camera. Firstly, ground background separation is needed to be carried out on the depth image, the detected cow dung is segmented according to the target frame, and only the image in the target frame is reserved.
Since the camera is fixed in height, the maximum distance of the segmentation can be obtained according to the distance from the camera to the ground;
the minimum distance for segmenting the cow dung is obtained, the depth image can be converted into an array of distance values, the minimum non-zero value in the array is searched, and a constant is added to the value, so that the minimum distance for segmenting is obtained, the depth image distance threshold can be set, the area outside the threshold is set to be white, the area in the threshold is set to be black, and the cow dung image can be separated from the background, and only the cow dung part of the depth image is reserved.
As can be seen from the table above, the method for scoring dairy cow dung mainly depends on the difference of the dryness and the dilution of the dairy cow dung, so that the method uses the depth camera to acquire the shape information of the dairy cow dung so as to judge the dryness and the dilution of the dairy cow dung. The first distance from the top of the cow dung to the depth camera can be obtained from the segmented cow dung depth imageSecond distance of ground to depth cameraThe height of the cow dung can be calculated by subtracting the two distanceshThe method comprises the following steps: />
After the height of the dairy cow dung is obtained, the area of the dairy cow dung bottom surface is calculated, and as the placement position of the depth camera is fixed, the corresponding relation k between the area of each pixel point in the image and the actual area in the image can be calculated according to similar internal parameters, and therefore the area of the dairy cow dung bottom surface can be obtained only by calculating the number of the pixel points occupied by the dairy cow dung bottom surface. For the split cow manure imageScanning pixels from left to right from top to bottom, and if the color is black, considering the cow dung as cow dung, and adding one to the number of target pixels; if the color appears white, it is considered as background and the target pixel number is not changed. Number of target pixelsThe calculation formula is as follows:
the calculation formula of the dairy cow faeces bottom surface area S is as follows:
wherein, the liquid crystal display device comprises a liquid crystal display device,is the gray value of a pixel in the image. The gray value ranges from 0 to 255, wherein the gray value of white is 255 and the gray value of black is 0.
The separated cow dung depth image is combined to obtain the cow dung height h and the cow dung bottom surface area s, and the ratio I of the cow dung height to the ground area is calculated, namely:
above, the embodiment provides the intelligent scoring device for diagnosing the intestinal health of the cattle, reflects the intestinal health of the cattle, realizes the identification and classification scoring of the cattle feces, completes the timely monitoring of the intestinal health of the cattle, and has guiding significance for the actual feeding of the cattle; according to the embodiment, the faeces state information is extracted by using the faeces depth image of the cattle, the faeces height and the bottom surface area are calculated to finish scoring the faeces of the cattle, intelligent large-scale faeces identification of the cattle is realized, economic losses of the cattle due to long-term illness are reduced, and welfare cattle raising is realized; the cow dung depth image is used for extracting the dung state information, so that the method has higher accuracy; the large-scale intelligent identification of the cow dung can be completed without manual operation of cow farm breeders, so that the detection efficiency is improved, and the labor force is liberated; provides an identification and classification scheme for an intelligent cattle farm cattle manure detection system.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A fecal status scoring device for diagnosing gastrointestinal health in an animal, comprising:
the image acquisition module is arranged above the animal shed and is used for acquiring depth images below the animal shed; wherein the depth image comprises animal feces;
the image processing module is connected with the image acquisition module and is used for acquiring shape information of animal feces according to the depth image, wherein the shape information of the animal feces comprises a ratio of the feces height to the feces bottom surface area;
the health diagnosis module is connected with the image processing module and is used for determining the dryness degree score of the animal feces according to the ratio of the feces height to the feces bottom surface area; and judging the gastrointestinal health of the animal according to the dryness and weakness degree score of the animal feces.
2. The stool state scoring device for diagnosing gastrointestinal health in an animal according to claim 1, wherein the image processing module includes a target image module, a shape information judgment module, and a ratio processing module;
the target image module is used for dividing the animal waste in the depth image according to a target frame and reserving the animal waste in the target frame to obtain a target image;
the shape information judging module is used for obtaining the fecal height based on the distance between the top of the animal fecal in the target image and the ground; obtaining the area of the bottom surface of the animal feces based on the number of pixel points occupied by the bottom surface of the animal feces in the target image and a corresponding coefficient, wherein the corresponding coefficient represents the corresponding relation between the area of each pixel point in the depth image and the actual area;
the ratio processing module is used for obtaining the ratio of the fecal height to the fecal bottom surface area based on the fecal height and the fecal bottom surface area.
3. The stool state scoring device for diagnosing gastrointestinal health in an animal of claim 2, wherein the image acquisition module includes a detection module and a depth camera;
the detection module is used for detecting whether the animal feces exist below the animal shed or not by using a YOLOv5 algorithm;
the depth camera is used for shooting a depth image comprising animal feces when the detection module detects that the animal feces exist below the animal shed.
4. The stool state scoring device for diagnosing gastrointestinal health in an animal according to claim 3, wherein the image processing module further comprises a background separation module for:
obtaining a maximum distance for segmentation processing according to the distance from the depth camera to the ground;
converting the target image into an array of distance values, searching a minimum non-zero value in the array, and adding a preset constant to the minimum non-zero value to obtain a minimum distance for segmentation;
setting a distance threshold range of the target image based on the maximum distance for the segmentation process and the minimum distance for the segmentation process, and separating animal feces in the target image from a ground background based on the distance threshold range.
5. The stool state scoring device for diagnosing gastrointestinal health in an animal according to claim 4, wherein the background separation module is further configured to:
and setting a target image area outside the distance threshold range to be white, and setting a target image area within the distance threshold range to be black so as to separate animal feces from ground background in the target image.
6. The stool state scoring device for diagnosing gastrointestinal health in an animal according to claim 5, wherein the shape information determination module includes a stool floor area identification module;
the fecal bottom surface area identification module is used for scanning pixels of the target image one by one from left to right and from top to bottom, and if the scanned pixels are black, the number of the target pixels is increased by one; if the scanned pixel color is displayed as white, the number of target pixels is not changed; the number of the pixel points occupied by the bottom surface of the animal feces is the number of target pixels obtained after all the pixel points of the target image are scanned; and obtaining the fecal bottom surface area based on the number of pixel points occupied by the bottom surface of the animal fecal in the target image and the corresponding coefficient.
7. The stool state scoring device for diagnosing gastrointestinal health in an animal according to any one of claims 2-6, wherein the shape information determination module further includes a stool height identification module;
the fecal height identification module is used for obtaining a first distance from the top of the animal fecal to the image acquisition module and a second distance from the ground to the image acquisition module based on the target image; the stool height is obtained based on the first distance and the second distance.
8. The stool state scoring device for diagnosing gastrointestinal health in an animal according to claim 1,
the larger the ratio of the fecal height to the fecal bottom surface area, the drier the animal feces; the smaller the ratio of the fecal height to the fecal floor area, the thinner the animal feces.
9. The stool state scoring device for diagnosing gastrointestinal health in an animal of claim 8, wherein the health diagnosis module includes a dryness scoring module;
the dry and thin degree scoring module is used for training according to the ratio of the height of the sample excrement to the area of the bottom surface of the excrement and the corresponding sample dry and thin degree score label to obtain a first comparison relation; determining a dryness score for the animal litter based on the first control relationship and the ratio of the litter height to the litter floor area.
10. The stool state scoring device for diagnosing gastrointestinal health in an animal according to claim 9, wherein the health diagnostic module further comprises a gastrointestinal health determination module;
the gastrointestinal health determining module is used for training according to the dryness and weakness degree scores of the sample animal feces and the corresponding sample gastrointestinal health labels to obtain a second control relation; determining gastrointestinal health of the animal based on the second control relationship and the animal feces dryness score.
CN202310955745.2A 2023-08-01 2023-08-01 Fecal state scoring device for diagnosing gastrointestinal health of animals Active CN116681876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310955745.2A CN116681876B (en) 2023-08-01 2023-08-01 Fecal state scoring device for diagnosing gastrointestinal health of animals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310955745.2A CN116681876B (en) 2023-08-01 2023-08-01 Fecal state scoring device for diagnosing gastrointestinal health of animals

Publications (2)

Publication Number Publication Date
CN116681876A true CN116681876A (en) 2023-09-01
CN116681876B CN116681876B (en) 2023-10-31

Family

ID=87782270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310955745.2A Active CN116681876B (en) 2023-08-01 2023-08-01 Fecal state scoring device for diagnosing gastrointestinal health of animals

Country Status (1)

Country Link
CN (1) CN116681876B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160081575A1 (en) * 2013-11-15 2016-03-24 Yibing Wu A life maintenance mode, a brain inhibition therapy and a personal health information platform
CN105574899A (en) * 2015-12-15 2016-05-11 浙江大学 Feces monitoring method and system for cage chicken
CN107942043A (en) * 2017-11-23 2018-04-20 北京林业大学 The grade assignment of stable breeding woods musk deer fecal character and its application in disease of digestive tract is detected
CN111709333A (en) * 2020-06-04 2020-09-25 南京农业大学 Traceability early warning system and health monitoring method based on abnormal excrement of cage-raised chickens
CN116484916A (en) * 2023-04-27 2023-07-25 青岛兔爱动物科技有限公司 Chicken health state detection method and method for building detection model thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160081575A1 (en) * 2013-11-15 2016-03-24 Yibing Wu A life maintenance mode, a brain inhibition therapy and a personal health information platform
CN105574899A (en) * 2015-12-15 2016-05-11 浙江大学 Feces monitoring method and system for cage chicken
CN107942043A (en) * 2017-11-23 2018-04-20 北京林业大学 The grade assignment of stable breeding woods musk deer fecal character and its application in disease of digestive tract is detected
CN111709333A (en) * 2020-06-04 2020-09-25 南京农业大学 Traceability early warning system and health monitoring method based on abnormal excrement of cage-raised chickens
CN116484916A (en) * 2023-04-27 2023-07-25 青岛兔爱动物科技有限公司 Chicken health state detection method and method for building detection model thereof

Also Published As

Publication number Publication date
CN116681876B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
Zheng et al. Automatic recognition of lactating sow postures from depth images by deep learning detector
Wongsriworaphon et al. An approach based on digital image analysis to estimate the live weights of pigs in farm environments
Fang et al. Comparative study on poultry target tracking algorithms based on a deep regression network
Jun et al. Estimating pig weights from images without constraint on posture and illumination
US11568541B2 (en) System for high performance, AI-based dairy herd management and disease detection
Subedi et al. Tracking pecking behaviors and damages of cage-free laying hens with machine vision technologies
CN108830144A (en) A kind of milking sow gesture recognition method based on improvement Faster-R-CNN
CN114638536A (en) Animal health monitoring method and system based on artificial intelligence
CN110532899B (en) Sow antenatal behavior classification method and system based on thermal imaging
CN111507179A (en) Live pig feeding behavior analysis method
CN111767794A (en) Cage-rearing poultry abnormal behavior detection method and detection system based on machine vision
Wang et al. Towards re-identification for long-term tracking of group housed pigs
CN112528823B (en) Method and system for analyzing batcharybus movement behavior based on key frame detection and semantic component segmentation
CN115830490A (en) Multi-target tracking and behavior statistical method for herd health pigs
CN114898405B (en) Portable broiler chicken anomaly monitoring system based on edge calculation
Lamping et al. ChickenNet-an end-to-end approach for plumage condition assessment of laying hens in commercial farms using computer vision
CA3230401A1 (en) Systems and methods for the automated monitoring of animal physiological conditions and for the prediction of animal phenotypes and health outcomes
CN116295022A (en) Pig body ruler measurement method based on deep learning multi-parameter fusion
Pacheco et al. Deep learning-based model classifies thermal conditions in dairy cows using infrared thermography
Bello et al. Mask YOLOv7-based drone vision system for automated cattle detection and counting
CN116681876B (en) Fecal state scoring device for diagnosing gastrointestinal health of animals
Evangelista et al. Detection of japanese quails (coturnix japonica) in poultry farms using yolov5 and detectron2 faster r-cnn
Sivamani et al. Automatic posture detection of pigs on real-time using Yolo framework
TWI778762B (en) Systems and methods for intelligent aquaculture estimation of the number of fish
CN113989745A (en) Non-contact monitoring method for feeding condition of ruminants

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant