CN113962336B - Real-time cattle face ID coding method - Google Patents

Real-time cattle face ID coding method Download PDF

Info

Publication number
CN113962336B
CN113962336B CN202110899600.6A CN202110899600A CN113962336B CN 113962336 B CN113962336 B CN 113962336B CN 202110899600 A CN202110899600 A CN 202110899600A CN 113962336 B CN113962336 B CN 113962336B
Authority
CN
China
Prior art keywords
processing
data
path
cattle
real
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.)
Active
Application number
CN202110899600.6A
Other languages
Chinese (zh)
Other versions
CN113962336A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110899600.6A priority Critical patent/CN113962336B/en
Publication of CN113962336A publication Critical patent/CN113962336A/en
Application granted granted Critical
Publication of CN113962336B publication Critical patent/CN113962336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01KANIMAL HUSBANDRY; CARE OF BIRDS, FISHES, INSECTS; FISHING; REARING OR BREEDING ANIMALS, NOT OTHERWISE PROVIDED FOR; NEW BREEDS OF ANIMALS
    • A01K11/00Marking of animals
    • A01K11/006Automatic identification systems for animals, e.g. electronic devices, transponders for animals

Abstract

The invention discloses a real-time cattle face ID coding method, which comprises a data preprocessing stage and a cattle face recognition stage; the invention can utilize image recognition technology and any portable equipment to carry out non-invasive ID confirmation on the cattle; the method can confirm the body of the cattle only by collecting the front face of the cattle with the highest exposure probability, and has higher collection speed, stronger instantaneity and better production landing capability compared with the similar method; the invention adopts the real-time image segmentation and illumination self-adaption technology, greatly reduces the influence caused by background noise and illumination non-uniformity, and ensures that the system has better robustness in a non-standard environment.

Description

Real-time cattle face ID coding method
Technical Field
The invention relates to the technical field of image identification coding, in particular to a real-time cattle face ID coding method.
Background
With the development of animal husbandry, corresponding insurance claims are generated for the livestock which are correspondingly cultivated, when the livestock is in infringement, the whole animal is evaluated and then the claim is settled, but the claim has certain deviation, the individual calculation is more complex, meanwhile, when in infringement, the image obtained on site of the individual has obvious mismatching with the original recorded image due to various damages, meanwhile, the original robustness of the existing system is poor, and then the operability of the image is poor in the running process, so that the real-time cattle face ID coding method is proposed.
Disclosure of Invention
The invention aims to provide a real-time cow face ID coding method so as to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions:
the real-time cattle face ID coding method comprises a data preprocessing stage and a cattle face recognition stage;
the data preprocessing stage comprises the following steps:
s101, preprocessing data;
s102, acquiring a frame of a camera;
s103, processing the cow frame images;
s104, acquiring a preprocessed image;
the face recognition stage comprises the following steps:
s201, correcting the posture of the cattle and amplifying the front face of the obtained preprocessed frame images;
s202, TTA processing and AI vector coding are carried out on the corrected and amplified frame images;
s203, performing Canopy noise data filtering processing on the image data obtained in the S202;
s204, performing cow self-adaptive weighted coding on the image data subjected to noise filtering.
According to the technical scheme, S103 is divided into three branches for processing:
firstly, carrying out cattle face positioning on an acquired frame, pre-matting an cattle image in the frame, and finally carrying out quality analysis and illumination analysis;
the second branch is used for firstly carrying out gesture recognition on the acquired frame, and then carrying out gesture filtering;
a third branch for dividing the acquired frame into images;
and (3) carrying out picture validity verification on the output signal of the first branch and the output signal of the second branch, and integrating the verification result and the output signal of the third branch to obtain an original value posture preprocessing picture, original posture data and original cow positioning data.
According to the above technical scheme, the AI vector coding in step S202 is divided into three parts, namely Target Dropout, depthwise Region Attention and Key Attention.
According to the above technical solution, the Target Dropout part divides the input image signal into two paths for processing, one path is to copy the feature map, and the other path is to average and pool the image signal, then perform channel attention processing, then perform saliency map screening, and sequentially perform NMS processing and Drop Block Mask Map processing, and then integrate the copied feature map for output.
According to the above technical solution, the Depthwise Region Attention part of the operation steps are to process the input image signal in three paths:
path one: subjecting the image signal to Featmap Depthwise 3 ×3Conv processing;
path two: carrying out channel guidance pooling on the image information;
and path III: performing GEMPooling processing on the image information;
and integrating the output data of the first path with the output data of the second path, performing characteristic splicing and sparse attention processing on the output data of the third path, performing BNNock processing on the processed data, and finally outputting the processed data.
According to the technical scheme, the Key attribute part comprises the following operation steps:
a) Carrying out Key Query processing;
b) Performing multi-head attention treatment;
c) Performing Layer Norm treatment;
d) Performing Lambda Attention treatment;
e) And outputting the processing result.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention can utilize image recognition technology and any portable equipment to carry out non-invasive ID confirmation on the cattle.
2. The method can confirm the body of the cattle only by collecting the front face of the cattle with the highest exposure probability, and has higher collection speed, stronger instantaneity and better production landing capability compared with the similar method.
3. The invention adopts the real-time image segmentation and illumination self-adaption technology, greatly reduces the influence caused by background noise and illumination non-uniformity, and ensures that the system has better robustness in a non-standard environment.
Drawings
FIG. 1 is an overall flow diagram of the present invention;
FIG. 2 is a schematic diagram of a neural network at the data preprocessing stage according to the present invention;
FIG. 3 is a block diagram of a neural network process flow in accordance with the present invention;
fig. 4 is a block diagram of AI vector coding flow in the present invention.
Description of the embodiments
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but 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.
Examples
Referring to fig. 1-4, the present invention provides a technical solution: the real-time cattle face ID coding method comprises a data preprocessing stage and a cattle face recognition stage;
the data preprocessing stage comprises the following steps:
s101, preprocessing data;
s102, acquiring a frame of a camera;
s103, processing the cow frame images;
s104, acquiring a preprocessed image;
the face recognition stage comprises the following steps:
s201, correcting the posture of the cattle and amplifying the front face of the obtained preprocessed frame images;
s202, TTA processing and AI vector coding are carried out on the corrected and amplified frame images;
s203, performing Canopy noise data filtering processing on the image data obtained in the S202;
s204, performing cow self-adaptive weighted coding on the image data subjected to noise filtering.
Specifically, S103 is divided into three branches for processing:
firstly, carrying out cattle face positioning on an acquired frame, pre-matting an cattle image in the frame, and finally carrying out quality analysis and illumination analysis;
the second branch is used for firstly carrying out gesture recognition on the acquired frame, and then carrying out gesture filtering;
a third branch for dividing the acquired frame into images;
and (3) carrying out picture validity verification on the output signal of the first branch and the output signal of the second branch, and integrating the verification result and the output signal of the third branch to obtain an original value posture preprocessing picture, original posture data and original cow positioning data.
Specifically, the AI vector code in step S202 is divided into three parts, target Dropout, depthwise Region Attention and Key Attention.
Specifically, the Target Dropout part includes the steps of dividing an input image signal into two paths for processing, wherein one path is a duplicate feature map, the other path is to firstly average pool the image signal, then perform channel attention processing, then perform saliency map screening, sequentially perform NMS processing and Drop Block Mask Map processing, and then integrate the duplicate feature map for output.
Specifically, the Depthwise Region Attention part operates to perform three-path processing on an input image signal:
path one: subjecting the image signal to Featmap Depthwise 3 ×3Conv processing;
path two: carrying out channel guidance pooling on the image information;
and path III: performing GEMPooling processing on the image information;
and integrating the output data of the first path with the output data of the second path, performing characteristic splicing and sparse attention processing on the output data of the third path, performing BNNock processing on the processed data, and finally outputting the processed data.
Specifically, the Key Attention part comprises the following operation steps:
a) Carrying out Key Query processing;
b) Performing multi-head attention treatment;
c) Performing Layer Norm treatment;
d) Performing Lambda Attention treatment;
e) And outputting the processing result.
In the description of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "secured" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Standard parts used in the invention can be purchased from the market, special-shaped parts can be customized according to the description of the specification and the drawings, the specific connection modes of all parts adopt conventional means such as mature bolts, rivets, welding and the like in the prior art, machines, parts and equipment adopt conventional models in the prior art, and circuit connection adopts conventional connection modes in the prior art, so that the details are not described.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (5)

1. The real-time cow face ID coding method is characterized by comprising a data preprocessing stage and a cow face recognition stage;
the data preprocessing stage comprises the following steps:
s101, preprocessing data;
s102, acquiring a frame of a camera;
s103, processing the cow frame images, and dividing the cow frame images into three branches for processing:
firstly, carrying out cattle face positioning on an acquired frame, pre-matting an cattle image in the frame, and finally carrying out quality analysis and illumination analysis;
the second branch is used for firstly carrying out gesture recognition on the acquired frame, and then carrying out gesture filtering;
a third branch for dividing the acquired frame into images;
the output signal of the first branch and the output signal of the second branch are subjected to picture validity verification, and a verification result is integrated with the output signal of the third branch to obtain an original value posture preprocessing picture, original posture data and original cow positioning data;
s104, acquiring a preprocessed image;
the face recognition stage comprises the following steps:
s201, correcting the posture of the cattle and amplifying the front face of the obtained preprocessed frame images;
s202, TTA processing and AI vector coding are carried out on the corrected and amplified frame images;
s203, performing Canopy noise data filtering processing on the image data obtained in the S202;
s204, performing cow self-adaptive weighted coding on the image data subjected to noise filtering.
2. The real-time bovine front face ID encoding method according to claim 1, wherein: the AI vector coding in step S202 is divided into three parts, target Dropout, depthwise Region Attention and Key Attention.
3. The real-time bovine front face ID encoding method according to claim 2, wherein: the Target Dropout part is operated by dividing an input image signal into two paths for processing, wherein one path is a copy characteristic diagram, the other path is to firstly average pool the image signal, then carry out channel attention processing, then carry out saliency map screening, sequentially carry out NMS processing and Drop Block Mask Map processing, and then integrate the copy characteristic diagram output.
4. The real-time bovine front face ID encoding method according to claim 2, wherein: the Depthwise Region Attention part of the operation steps are to perform three paths of processing on the input image signal:
path one: subjecting the image signal to Featmap Depthwise 3 ×3Conv processing;
path two: carrying out channel guidance pooling on the image information;
and path III: performing GEMPooling processing on the image information;
and integrating the output data of the first path with the output data of the second path, performing characteristic splicing and sparse attention processing on the output data of the third path, performing BNNock processing on the processed data, and finally outputting the processed data.
5. The real-time bovine front face ID encoding method according to claim 2, wherein: the Key Attention part comprises the following operation steps:
a) Carrying out Key Query processing;
b) Performing multi-head attention treatment;
c) Performing Layer Norm treatment;
d) Performing Lambda Attention treatment;
e) And outputting the processing result.
CN202110899600.6A 2021-08-06 2021-08-06 Real-time cattle face ID coding method Active CN113962336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110899600.6A CN113962336B (en) 2021-08-06 2021-08-06 Real-time cattle face ID coding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110899600.6A CN113962336B (en) 2021-08-06 2021-08-06 Real-time cattle face ID coding method

Publications (2)

Publication Number Publication Date
CN113962336A CN113962336A (en) 2022-01-21
CN113962336B true CN113962336B (en) 2023-11-24

Family

ID=79460450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110899600.6A Active CN113962336B (en) 2021-08-06 2021-08-06 Real-time cattle face ID coding method

Country Status (1)

Country Link
CN (1) CN113962336B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167110A (en) * 1999-12-08 2001-06-22 Matsushita Electric Ind Co Ltd Picture retrieving method and its device
JP2015173605A (en) * 2014-03-13 2015-10-05 富士通株式会社 Specification method, specific program, specification device and specification system
CN108921026A (en) * 2018-06-01 2018-11-30 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of animal identification
CN109002769A (en) * 2018-06-22 2018-12-14 深源恒际科技有限公司 A kind of ox face alignment schemes and system based on deep neural network
CN109190477A (en) * 2018-08-02 2019-01-11 平安科技(深圳)有限公司 Settlement of insurance claim method, apparatus, computer equipment and storage medium based on the identification of ox face
CN109284737A (en) * 2018-10-22 2019-01-29 广东精标科技股份有限公司 A kind of students ' behavior analysis and identifying system for wisdom classroom
CN110298291A (en) * 2019-06-25 2019-10-01 吉林大学 Ox face and ox face critical point detection method based on Mask-RCNN
CN110472487A (en) * 2019-07-03 2019-11-19 平安科技(深圳)有限公司 Living body user detection method, device, computer equipment and storage medium
CN110610125A (en) * 2019-07-31 2019-12-24 平安科技(深圳)有限公司 Ox face identification method, device, equipment and storage medium based on neural network
CN111368657A (en) * 2020-02-24 2020-07-03 京东数字科技控股有限公司 Cow face identification method and device
US10757914B1 (en) * 2019-04-17 2020-09-01 National Taiwan University Feeding analysis system
CN112540671A (en) * 2019-09-20 2021-03-23 辉达公司 Remote operation of a vision-based smart robotic system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4113457A1 (en) * 2014-01-07 2023-01-04 ML Netherlands C.V. Dynamic updating of composite images
US11189368B2 (en) * 2014-12-24 2021-11-30 Stephan HEATH Systems, computer media, and methods for using electromagnetic frequency (EMF) identification (ID) devices for monitoring, collection, analysis, use and tracking of personal data, biometric data, medical data, transaction data, electronic payment data, and location data for one or more end user, pet, livestock, dairy cows, cattle or other animals, including use of unmanned surveillance vehicles, satellites or hand-held devices
US10162308B2 (en) * 2016-08-01 2018-12-25 Integem Inc. Methods and systems for photorealistic human holographic augmented reality communication with interactive control in real-time
US11069210B2 (en) * 2017-06-28 2021-07-20 Amazon Technologies, Inc. Selecting a video frame for notification using audio/video recording and communication devices

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167110A (en) * 1999-12-08 2001-06-22 Matsushita Electric Ind Co Ltd Picture retrieving method and its device
JP2015173605A (en) * 2014-03-13 2015-10-05 富士通株式会社 Specification method, specific program, specification device and specification system
CN108921026A (en) * 2018-06-01 2018-11-30 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of animal identification
CN109002769A (en) * 2018-06-22 2018-12-14 深源恒际科技有限公司 A kind of ox face alignment schemes and system based on deep neural network
CN109190477A (en) * 2018-08-02 2019-01-11 平安科技(深圳)有限公司 Settlement of insurance claim method, apparatus, computer equipment and storage medium based on the identification of ox face
CN109284737A (en) * 2018-10-22 2019-01-29 广东精标科技股份有限公司 A kind of students ' behavior analysis and identifying system for wisdom classroom
US10757914B1 (en) * 2019-04-17 2020-09-01 National Taiwan University Feeding analysis system
CN110298291A (en) * 2019-06-25 2019-10-01 吉林大学 Ox face and ox face critical point detection method based on Mask-RCNN
CN110472487A (en) * 2019-07-03 2019-11-19 平安科技(深圳)有限公司 Living body user detection method, device, computer equipment and storage medium
CN110610125A (en) * 2019-07-31 2019-12-24 平安科技(深圳)有限公司 Ox face identification method, device, equipment and storage medium based on neural network
CN112540671A (en) * 2019-09-20 2021-03-23 辉达公司 Remote operation of a vision-based smart robotic system
CN111368657A (en) * 2020-02-24 2020-07-03 京东数字科技控股有限公司 Cow face identification method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种新的基于Hu不变矩的猪只姿态识别方法;王海涛;王芳;田建艳;张聪;;黑龙江畜牧兽医(23);22-25+293 *
基于条件迭代更新随机森林的非约束人脸特征点精确定位;刘袁缘;谢忠;周顺平;刘郑;王伟明;刘秀平;饶伟;;计算机辅助设计与图形学学报(10);117-126 *

Also Published As

Publication number Publication date
CN113962336A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
Shi et al. Sequential deep trajectory descriptor for action recognition with three-stream CNN
CN108875821A (en) The training method and device of disaggregated model, mobile terminal, readable storage medium storing program for executing
CN111666838B (en) Improved residual error network pig face identification method
CN109635728B (en) Heterogeneous pedestrian re-identification method based on asymmetric metric learning
Hu et al. A two-stage unsupervised approach for low light image enhancement
WO2021104124A1 (en) Method, apparatus and system for determining confinement pen information, and storage medium
US20210133513A1 (en) System and method for classifying image data
Gaihua et al. A serial-parallel self-attention network joint with multi-scale dilated convolution
CN110751621A (en) Breast cancer auxiliary diagnosis method and device based on deep convolutional neural network
CN115546046A (en) Single image defogging method fusing frequency and content characteristics
CN113962336B (en) Real-time cattle face ID coding method
CN112287893B (en) Sow lactation behavior identification method based on audio and video information fusion
CN112861855A (en) Group-raising pig instance segmentation method based on confrontation network model
CN116416678A (en) Method for realizing motion capture and intelligent judgment by using artificial intelligence technology
CN116205924A (en) Prostate segmentation algorithm based on U2-Net
CN112818950B (en) Lip language identification method based on generation of countermeasure network and time convolution network
CN114764827A (en) Mulberry leaf disease and insect pest detection method under self-adaptive low-illumination scene
CN112580786B (en) Neural network construction method for reiD and training method thereof
CN112435177B (en) Recursive infrared image non-uniform correction method based on SRU and residual error network
CN112188234B (en) Image processing and live broadcasting method and related devices
CN112396637A (en) Dynamic behavior identification method and system based on 3D neural network
CN110958449A (en) Three-dimensional video subjective perception quality prediction method
CN112733714B (en) VGG network-based automatic crowd counting image recognition method
CN112329497A (en) Target identification method, device and equipment
WO2022126355A1 (en) Image-based processing method and device

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