Movatterモバイル変換


[0]ホーム

URL:


CN112990014A - Pig weight estimation method, system, device and storage medium - Google Patents

Pig weight estimation method, system, device and storage medium
Download PDF

Info

Publication number
CN112990014A
CN112990014ACN202110276456.0ACN202110276456ACN112990014ACN 112990014 ACN112990014 ACN 112990014ACN 202110276456 ACN202110276456 ACN 202110276456ACN 112990014 ACN112990014 ACN 112990014A
Authority
CN
China
Prior art keywords
pig
dimensional
weight
picture
neural network
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.)
Pending
Application number
CN202110276456.0A
Other languages
Chinese (zh)
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.)
Shenzhen Xiwei Intelligent Technology Co ltd
Original Assignee
Shenzhen Xiwei Intelligent Technology Co ltd
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 Shenzhen Xiwei Intelligent Technology Co ltdfiledCriticalShenzhen Xiwei Intelligent Technology Co ltd
Priority to CN202110276456.0ApriorityCriticalpatent/CN112990014A/en
Publication of CN112990014ApublicationCriticalpatent/CN112990014A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention relates to a pig weight estimation method, a pig weight estimation system, pig weight estimation equipment and a storage medium. The method comprises the following steps: a pig model is constructed by utilizing three-dimensional simulation, and then a large amount of two-dimensional projection pictures and three-dimensional pig weight data are constructed in a projection mode to train a deep learning model. Acquiring a two-dimensional picture of a pig acquired by a camera; and inputting a pre-trained neural network model according to the parameters of the camera, the pig variety and the two-dimensional picture to obtain an estimated value of the weight of the pig. According to the method for estimating the weight of the pig, provided by the embodiment of the invention, under the conditions of different pig varieties and camera parameters, the estimated value of the weight of the pig can be accurately obtained through the two-dimensional picture of the pig by adopting a machine learning method, so that the pig breeding efficiency is improved.

Description

Pig weight estimation method, system, device and storage medium
Technical Field
The invention relates to the field of image recognition, in particular to a pig weight estimation method, a pig weight estimation system, pig weight estimation equipment and a storage medium.
Background
In the field of pig farming, the weight of pigs needs to be monitored regularly in order to better understand their growth, for example, changes in weight. In the prior art, the weight of a pig is estimated mainly by a manual measurement mode such as an electronic scale, which requires a large amount of labor, and for this problem, a method for indirectly estimating the weight of the pig by an image through a computer vision technology is also provided at present, and basically, the weight of the pig is estimated by using a two-dimensional picture of the pig, and the estimation process is as follows: the pixel area- > physical area- > estimation of physical weight of the pig, but the estimation is to estimate the weight of the pig by only two-dimensional area, and the estimation accuracy is poor.
Disclosure of Invention
In view of the above technical problems, the present invention provides a method, system, device and storage medium for estimating pig weight
The technical scheme for solving the technical problems is as follows:
on the basis of the technical scheme, the invention can be further improved as follows.
A method of estimating pig weight, comprising:
acquiring a two-dimensional picture of a pig acquired by a camera;
and inputting a pre-trained neural network model according to the parameters of the camera, the pig variety and the two-dimensional picture to obtain an estimated value of the weight of the pig.
Further, the training method of the neural network model specifically includes:
constructing three-dimensional pig models with various postures and shapes through three-dimensional modeling;
projecting a two-dimensional picture corresponding to each pig three-dimensional model through different visual angles, obtaining a corresponding binary picture according to the two-dimensional picture, and constructing a corresponding data pair of the pig three-dimensional model and the binary picture;
and taking each binary image, the visual height of the binary image and the pig variety as input of a neural network model, taking the weight of the pig corresponding to the corresponding three-dimensional pig model as output, and training the neural network model until the neural network model is converged.
Further, the parameter of the camera is a camera height.
In order to achieve the above object, the present invention further provides a pig weight estimation system, including:
the picture acquisition module is used for acquiring a two-dimensional picture of the pig acquired by the camera;
and the weight estimation module is used for inputting a pre-trained neural network model according to the parameters of the camera, the breed of the pig and the two-dimensional picture to obtain an estimated value of the weight of the pig.
Further, the training method of the neural network model specifically includes:
constructing three-dimensional pig models with various postures and shapes through three-dimensional modeling;
projecting a two-dimensional picture corresponding to each pig three-dimensional model through different visual angles, obtaining a corresponding binary picture according to the two-dimensional picture, and constructing a corresponding data pair of the pig three-dimensional model and the binary picture;
and taking each binary image, the visual height of the binary image and the pig variety as input of a neural network model, taking the weight of the pig corresponding to the corresponding three-dimensional pig model as output, and training the neural network model until the neural network model is converged.
Further, the parameter of the camera is a camera height.
The present invention also provides a terminal device, including:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method described above.
The invention also provides a non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the above-described method.
The invention has the beneficial effects that:
according to the pig weight estimation method provided by the invention, under the conditions of different pig varieties and camera parameters, the estimation value of the pig weight can be accurately obtained through the two-dimensional picture of the pig by adopting a machine learning method, so that the pig breeding efficiency is improved.
Drawings
Fig. 1 is a flowchart of a pig weight estimation method according to an embodiment of the present invention;
FIG. 2 is a real overhead view of a pig;
FIG. 3 is a three-dimensional model of a pig;
FIG. 4 is a two-dimensional picture of a pig and its corresponding binary picture;
fig. 5 is a block diagram of a pig weight estimation system according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a pig weight estimation method according to an embodiment of the present invention.
As shown in fig. 1, the method includes:
110. and acquiring a two-dimensional picture of the pig acquired by the camera.
Specifically, a pig image acquisition system can be set up, a pig in the pigsty is shot through a downward shooting camera, and an actual downward shooting image of the pig is shown in fig. 2.
120. And inputting a pre-trained neural network model according to the parameters of the camera, the pig variety and the two-dimensional picture to obtain an estimated value of the weight of the pig.
Specifically, the training method of the neural network model specifically includes:
a. constructing three-dimensional pig models with various postures and shapes through three-dimensional modeling;
specifically, as shown in fig. 3, the software such as maya can be used to construct a three-dimensional model by scanning and collecting three-dimensional data of a pig, and meanwhile, the breed and weight of the pig need to be recorded as a training data set;
b. projecting a two-dimensional picture corresponding to each pig three-dimensional model through different visual angles, obtaining a corresponding binary picture according to the two-dimensional picture, and constructing a corresponding data pair of the pig three-dimensional model and the binary picture as shown in FIG. 4;
obtaining a binary image according to a two-dimensional image belongs to the prior art, and is not described in detail in this embodiment.
c. And taking each binary image, the visual height of the binary image and the pig variety as input of a neural network model, taking the weight of the pig corresponding to the corresponding three-dimensional pig model as output, and training the neural network model until the neural network model is converged.
After the training of the neural network model is completed through the process, the height of a camera of the image acquisition system is used as the visual height, a binary image converted from a two-dimensional image shot by the camera is combined, and a pre-known pig breed is input into the trained neural network model together, so that the weight estimation value of the pig can be obtained.
According to the method for estimating the weight of the pig, provided by the embodiment of the invention, under the conditions of different pig varieties and camera parameters, the estimated value of the weight of the pig can be accurately obtained through the two-dimensional picture of the pig by adopting a machine learning method, so that the pig breeding efficiency is improved.
The principles of the functional modules in the system are explained in detail in the above description, and the following description is omitted for brevity.
As shown in fig. 5, the system includes:
the picture acquisition module is used for acquiring a two-dimensional picture of the pig acquired by the camera;
and the weight estimation module is used for inputting a pre-trained neural network model according to the parameters of the camera, the breed of the pig and the two-dimensional picture to obtain an estimated value of the weight of the pig.
Optionally, in this embodiment, the training method of the neural network model specifically includes:
constructing three-dimensional pig models with various postures and shapes through three-dimensional modeling;
projecting a two-dimensional picture corresponding to each pig three-dimensional model through different visual angles, obtaining a corresponding binary picture according to the two-dimensional picture, and constructing a corresponding data pair of the pig three-dimensional model and the binary picture;
and taking each binary image, the visual height of the binary image and the pig variety as input of a neural network model, taking the weight of the pig corresponding to the corresponding three-dimensional pig model as output, and training the neural network model until the neural network model is converged.
Optionally, in this embodiment, the parameter of the camera is a camera height.
An embodiment of the present invention provides a terminal device, including:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method described above.
Embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to perform the above-described method.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," 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 invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the modules and units in the above described system embodiment may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

CN202110276456.0A2021-03-152021-03-15Pig weight estimation method, system, device and storage mediumPendingCN112990014A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110276456.0ACN112990014A (en)2021-03-152021-03-15Pig weight estimation method, system, device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110276456.0ACN112990014A (en)2021-03-152021-03-15Pig weight estimation method, system, device and storage medium

Publications (1)

Publication NumberPublication Date
CN112990014Atrue CN112990014A (en)2021-06-18

Family

ID=76335156

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110276456.0APendingCN112990014A (en)2021-03-152021-03-15Pig weight estimation method, system, device and storage medium

Country Status (1)

CountryLink
CN (1)CN112990014A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115731236A (en)*2022-12-162023-03-03广东岭秀农业科技有限公司Egg weight detection method and device based on deep learning

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20190228218A1 (en)*2018-01-252019-07-25X Development LlcFish biomass, shape, and size determination
CN110672189A (en)*2019-09-272020-01-10北京海益同展信息科技有限公司Weight estimation method, device, system and storage medium
JP2020106422A (en)*2018-12-272020-07-09Nttテクノクロス株式会社Weight estimation device, weight estimation method, and program
CN112184791A (en)*2020-09-292021-01-05成都希盟泰克科技发展有限公司Yak weight prediction method based on CNN-LSTM neural network
WO2021019457A2 (en)*2019-07-312021-02-04Singh Mahender PalWeight estimation of broilers using 3d computer vision and artificial intelligence
US20210045361A1 (en)*2017-11-062021-02-18Dairy Tech, Inc.System and method of estimating livestock weight

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20210045361A1 (en)*2017-11-062021-02-18Dairy Tech, Inc.System and method of estimating livestock weight
US20190228218A1 (en)*2018-01-252019-07-25X Development LlcFish biomass, shape, and size determination
JP2020106422A (en)*2018-12-272020-07-09Nttテクノクロス株式会社Weight estimation device, weight estimation method, and program
WO2021019457A2 (en)*2019-07-312021-02-04Singh Mahender PalWeight estimation of broilers using 3d computer vision and artificial intelligence
CN110672189A (en)*2019-09-272020-01-10北京海益同展信息科技有限公司Weight estimation method, device, system and storage medium
CN112184791A (en)*2020-09-292021-01-05成都希盟泰克科技发展有限公司Yak weight prediction method based on CNN-LSTM neural network

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BAOCHEN SUN等: "Generating Large Scale Image Datasets from 3D CAD Models", 《CVPR 2015 WORKSHOP ON THE FUTURE OF DATASETS IN VISION》, pages 1 - 3*
初梦苑等: "基于三维重建的奶牛体重预估方法", 《农业机械学报》, vol. 51, no. 1, pages 378 - 384*
武尧: "母猪体尺、体重检测评估系统开发研究", 《中国优秀硕士学位论文全文数据库 (农业科技辑)》, no. 7, pages 050 - 91*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115731236A (en)*2022-12-162023-03-03广东岭秀农业科技有限公司Egg weight detection method and device based on deep learning

Similar Documents

PublicationPublication DateTitle
CN110426112B (en)Live pig weight measuring method and device
US8351656B2 (en)Remote contactless stereoscopic mass estimation system
Tzikas et al.Variational Bayesian sparse kernel-based blind image deconvolution with Student's-t priors
CN113112504A (en)Plant point cloud data segmentation method and system
CN113822982A (en)Human body three-dimensional model construction method and device, electronic equipment and storage medium
CN113449570A (en)Image processing method and device
CN111161090B (en)Method, device and system for determining containment column information and storage medium
CN109255297A (en)animal state monitoring method, terminal device, storage medium and electronic equipment
CN108961269A (en)Pig weight measuring method and system based on image
CN109636826A (en)Live pig weight method for measurement, server and computer readable storage medium
CN111386075A (en)Livestock weight measuring system and livestock weight measuring method using same
CN112257564B (en)Aquatic product quantity statistical method, terminal equipment and storage medium
CN109086696B (en)Abnormal behavior detection method and device, electronic equipment and storage medium
CN113989538B (en) Chicken flock uniformity estimation method, device, system and medium based on depth image
CN110175503A (en)Length acquisition methods, device, settlement of insurance claim system, medium and electronic equipment
CN113628182A (en)Fish weight automatic estimation method and device, electronic equipment and storage medium
CN113643229A (en)Image composition quality evaluation method and device
CN113343840A (en)Object identification method and device based on three-dimensional point cloud
CN112990014A (en)Pig weight estimation method, system, device and storage medium
CN119302650A (en) An intelligent patient posture monitoring system based on deep learning
CN119723322A (en) Aloe disease grading system and method based on improved Deeplab v3+
CN112784713A (en)Pig weight estimation method, system, equipment and storage medium based on image
CN117011885A (en)Image stitching and target recognition method and system based on sea cucumber acquisition
KR20240130474A (en)Measurement system and measurement method for individual body shpape of livestock
CN111814536B (en)Culture monitoring method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20210618


[8]ページ先頭

©2009-2025 Movatter.jp