CN109886826A - Livestock cultivation circulation method for tracing, electronic device and storage medium based on block chain - Google Patents

Livestock cultivation circulation method for tracing, electronic device and storage medium based on block chain Download PDF

Info

Publication number
CN109886826A
CN109886826A CN201910008196.1A CN201910008196A CN109886826A CN 109886826 A CN109886826 A CN 109886826A CN 201910008196 A CN201910008196 A CN 201910008196A CN 109886826 A CN109886826 A CN 109886826A
Authority
CN
China
Prior art keywords
livestock
identity
back end
database
insuring
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
CN201910008196.1A
Other languages
Chinese (zh)
Other versions
CN109886826B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910008196.1A priority Critical patent/CN109886826B/en
Publication of CN109886826A publication Critical patent/CN109886826A/en
Application granted granted Critical
Publication of CN109886826B publication Critical patent/CN109886826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The present invention relates to a kind of, and the livestock based on block chain cultivates circulation method for tracing, electronic device and storage medium, this method comprises: obtaining identity ID of the facial feature information as the livestock of every livestock of insuring by imaging device, it is that every livestock generates a back end in block catenary system, each back end includes biological information of insuring, the database of health status of insuring and breeding environment information of insuring, periodically the growth data of livestock are updated into block catenary system, meet and butchers the livestock of requirement and butchered, segmentation generates unique two dimensional code, and establish the incidence relation of back end corresponding with the livestock, the animal-related data of transport simultaneously and shops's sale, which uploads in block catenary system, forms complete livestock database.The present invention is tracked the livestock life period of insuring using block chain technology, realizes livestock information symmetrical and safety.

Description

Livestock cultivation circulation method for tracing, electronic device and storage medium based on block chain
Technical field
The present invention relates to block chain technical field more particularly to a kind of livestock cultivation circulation tracking sides based on block chain Method, electronic device and storage medium.
Background technique
In today of rapid economic development, China's industrialization and Urbanization Progress are still rapid, but agricultural modernization The problems such as development lags significantly behind other countries, and food safety not can guarantee, and agricultural resource wastes, is agricultural production in fact after all Caused by product unbalanced supply-demand, and imbalance is then because the producer and disappearing in agricultural production, circulation, three big links of consumption Expense person cannot achieve information symmetrical.
The development and application of block chain technology then can effectively solve the problems, such as this, and block chain is exactly with decentralization and to go to trust The mode of change carrys out collective's dimension by computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Protect the technical solution in an authentic data library.
Block chain has the characteristics that distort, during the entire process of can guarantee agricultural production, circulation, consumption, all productions Raw data are all recorded truly, and can be traced, securely and reliably.
Summary of the invention
The purpose of the present invention is to provide a kind of livestocks to cultivate circulation method for tracing, electronic device and storage medium, it is intended to The livestock life period of insuring is tracked using block chain technology, realizes livestock information symmetrical and safety.
To achieve the above object, the present invention provides a kind of electronic device, and the electronic device includes memory and processor, The livestock cultivation circulation tracing program that can be run on the processor, the livestock cultivation circulation are stored in the memory Tracing program realizes following steps when being executed by the processor:
Node construction step: body of the facial feature information as the livestock of every livestock of insuring is obtained by imaging device Part ID is that every livestock generates a back end in block catenary system based on identity ID, and each back end includes throwing Protect the database of biological information, health status of insuring and breeding environment information of insuring;
First state recording step: face is periodically carried out to every livestock by livestock face identification system trained in advance Identification will confirm that the growth data of every livestock of identity ID are updated to block catenary system identity ID to confirm identity ID In the corresponding database of the back end of representative, the growth data of the livestock include the activity condition of every livestock, feed Situation, constitution situation and medicining condition;
Second state recording step: the livestock information state after record livestock quarantine meets and butchers the livestock of requirement and slaughtered It kills, after segmentation, is that each decomposition position of livestock generates unique two dimensional code, establishes the two dimensional code with the slaughter animals described The incidence relation of corresponding back end in block catenary system;
Information aggregation step: record every each decomposition position transportation data during transportation of slaughter animals and Sales data after reaching sale shops, and upload in the block catenary system in the database of corresponding back end, shape At complete livestock database.
Preferably, wherein the livestock face identification system trained in advance is twin neural network model, including first Convolutional neural networks model, the second convolution neural network model, it is described by livestock face identification system trained in advance to every Livestock carry out face recognition to confirm identity ID the following steps are included:
Feature extraction is carried out to the preceding livestock face image once got using the first convolution neural network model, is obtained First facial eigenvectors;
Feature extraction is carried out using the second convolution neural network model face image current to livestock, is exported corresponding Second facial eigenvectors;
The vector distance for calculating first facial eigenvectors and the second facial eigenvectors, using the vector distance as Similarity value confirms the current livestock face image and the preceding domestic animal once got when the similarity value is more than preset threshold Raise the face image that face image is common identity ID livestock;
After livestock identity ID confirmation, schemed with the livestock face once got before the current face image replacement of livestock Picture, and extracted from the current face image of livestock and obtain updated second facial eigenvectors.
Preferably, the second state recording step further include:
The identity ID that livestock is confirmed by livestock face identification system, after meeting the livestock for butchering requirement and being butchered, The life state of the livestock is updated to butcher in the database of the back end;
If the quarantine result of livestock, which is not met, butchers requirement, by the life of livestock in the database of the back end State is updated to quarantine unqualified.
Preferably, when the livestock cultivation circulation tracing program is executed by the processor, in second state recording Before step, following steps are also executed:
If it is dead that livestock occurs in breeding process, the identity of the death livestock is determined using livestock face identification system ID, and the life state of the death livestock is revised as dead;And
If the cause of death of dead livestock reaches Claims Resolution standard, Claims Resolution side's amount of money is drawn by the intelligent contract of block chain Enter policy-holder.
In addition, to achieve the above object, the present invention also provides a kind of, and the livestock based on block chain cultivates circulation method for tracing, Applied to electronic device, this method comprises:
S1: identity ID of the facial feature information as the livestock of every livestock of insuring is obtained by imaging device, is based on Identity ID is that every livestock generates a back end in block catenary system, and each back end includes biological characteristic of insuring The database of information, health status of insuring and breeding environment information of insuring;
S2: face recognition is periodically carried out to every livestock to confirm identity by livestock face identification system trained in advance ID will confirm that the growth data of every livestock of identity ID update the back end represented to the block catenary system identity ID In corresponding database, the growth data of the livestock include the activity condition of every livestock, feed situation, constitution situation and Medicining condition;
S3: the livestock information state after record livestock quarantine, meet butcher requirement livestock butchered, divide after, for domestic animal Each decomposition position of poultry generates unique two dimensional code, establish the two dimensional code with the slaughter animals phase in the block catenary system The incidence relation for the back end answered;
S4: it records every and each decomposition position transportation data during transportation of slaughter animals and has reached sale door Sales data behind shop, and upload in the block catenary system in the database of corresponding back end, form complete domestic animal Raise database.
Preferably, wherein the livestock face identification system trained in advance is twin neural network model, including first Convolutional neural networks model, the second convolution neural network model, it is described by livestock face identification system trained in advance to every Livestock carry out face recognition to confirm identity ID the following steps are included:
Feature extraction is carried out to the preceding livestock face image once got using the first convolution neural network model, is obtained First facial eigenvectors;
Feature extraction is carried out using the second convolution neural network model face image current to livestock, is exported corresponding Second facial eigenvectors;
The vector distance for calculating first facial eigenvectors and the second facial eigenvectors, using the vector distance as Similarity value confirms the current livestock face image and the preceding domestic animal once got when the similarity value is more than preset threshold Raise the face image that face image is common identity ID livestock;
After livestock identity ID confirmation, schemed with the livestock face once got before the current face image replacement of livestock Picture, and extracted from the current face image of livestock and obtain updated second facial eigenvectors.
Preferably, the second state recording step further include:
The identity ID that livestock is confirmed by livestock face identification system, after meeting the livestock for butchering requirement and being butchered, The life state of the livestock is updated to butcher in the database of the back end;
If the quarantine result of livestock, which is not met, butchers requirement, by the life of livestock in the database of the back end State is updated to quarantine unqualified.
Preferably, further comprising the steps of before the S3 step:
If it is dead that livestock occurs in breeding process, the identity of the death livestock is determined using livestock face identification system ID, and the life state of the death livestock is revised as dead;And
If the cause of death of dead livestock reaches Claims Resolution standard, Claims Resolution side's amount of money is drawn by the intelligent contract of block chain Enter policy-holder.
Preferably, this method further include:
The request for responding two dimensional code described in scanning input, reads from the database of the block catenary system corresponding data node The relevant information for taking the matched slaughter animals of the two dimensional code, shows user.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Storage medium is stored with livestock cultivation circulation tracing program, and the livestock cultivation circulation tracing program can be executed by processor as above Described in any item livestock cultivation circulation method for tracing based on block chain.
The beneficial effects of the present invention are: passing through block catenary system, the livestock face identification system based on deep learning training Intelligence tracking is realized to livestock whole life cycle of insuring, guarantees that truthful data is not tampered in livestock breeding process, realizes life The information symmetrical and data safety of production person and consumer.
Detailed description of the invention
Fig. 1 is the schematic diagram of one embodiment of electronic device of the present invention;
Fig. 2 is that the present invention is based on the flow charts that the livestock of block chain cultivates circulation one embodiment of method for tracing.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
As shown in fig.1, being the schematic diagram of one embodiment of electronic device of the present invention.Electronic device 1 is that one kind can be according to The instruction for being previously set or storing, the automatic equipment for carrying out numerical value calculating and/or information processing.The electronic device 1 can be with It is computer, is also possible to single network server, the server group of multiple network servers composition or based on cloud computing The cloud being made of a large amount of hosts or network server, wherein cloud computing is one kind of distributed computing, by a group loose couplings Computer set composition a super virtual computer.
In the present embodiment, electronic device 1 may include, but be not limited only to, and can be in communication with each other connection by system bus Memory 11, processor 12, network interface 13, memory 11 are stored with the livestock cultivation circulation that can be run on the processor 12 and chase after Track program 10.It should be pointed out that Fig. 1 illustrates only the electronic device 1 with component 11-13, it should be understood that not It is required that implement all components shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes the readable storage medium storing program for executing of memory and at least one type.Inside save as the fortune of electronic device 1 Row provides caching;Readable storage medium storing program for executing can be for if flash memory, hard disk, multimedia card, card-type memory are (for example, SD or DX memory Deng), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electric erasable can compile Journey read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. it is non-volatile Storage medium.In some embodiments, readable storage medium storing program for executing can be the internal storage unit of electronic device 1, such as the electronics The hard disk of device 1;In further embodiments, the external storage which is also possible to electronic device 1 is set Plug-in type hard disk that is standby, such as being equipped on electronic device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..In the present embodiment, the readable storage medium storing program for executing of memory 11 Commonly used in storing in the operating system and types of applications software that are installed on electronic device 1, such as storage one embodiment of the invention Livestock cultivation circulation tracing program etc..In addition, memory 11 can be also used for temporarily storing and export or will be defeated Various types of data out.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control electricity The overall operation of sub-device 1, such as execute control relevant to other equipment progress data interaction or communication and processing Deng.In the present embodiment, the processor 12 is for running the program code stored in the memory 11 or processing data, example Such as run livestock cultivation circulation tracing program.
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the electronic device 1 and other electronic equipments.
The livestock cultivation circulation tracing program is stored in memory 11, including the computer being stored in memory 11 Readable instruction, the computer-readable instruction can be executed by processor 12, the method to realize each embodiment of the application.
In one embodiment, following step is realized when above-mentioned livestock cultivation circulation tracing program is executed by the processor 12 It is rapid:
Node construction step: the face of every livestock of insuring is obtained by imaging device (such as camera, CCD camera etc.) Identity ID of portion's characteristic information as the livestock is that every livestock generates a data in block catenary system based on identity ID Node, each back end include the database of biological information, health status of insuring and breeding environment information of insuring of insuring;
Wherein, database is to come tissue, storage and management data according to data structure, and establish and set in computer storage It is standby upper.The block catenary system reminds existing information by the further data authenticity validating of common recognition mechanism, avoids weight Information is recorded, garbled information is fed back, to there is false information not to save, information data can not distort after being known together.
Common recognition mechanism is that the mathematical algorithm established between different nodes and trust, obtain equity is realized in block catenary system.
First state recording step: face is periodically carried out to every livestock by livestock face identification system trained in advance Identification will confirm that the growth data of every livestock of identity ID are updated to block catenary system identity ID to confirm identity ID In the corresponding database of the back end of representative, the growth data of the livestock include the activity condition of every livestock, feed Situation, constitution situation and medicining condition;
Wherein, it is in new data item or record, replacement data file or database that data, which update (data revision), The process of corresponding legacy data item or record." object resource manager " and T-SQL sentence can be used in data update Two ways is realized.
Object resource manager be SQL Server Management Studio provide for database engine, The function of object is managed in Analysis Services, Integration Services and Reporting Services example Energy;
T-SQL, that is, Transact-SQL is enhanced edition of the SQL on Microsoft SQL Server, it is for allowing The dominant language that application program and SQL Server are linked up.
Second state recording step: the livestock information state after record livestock quarantine meets and butchers the livestock of requirement and slaughtered It kills, after segmentation, is that each decomposition position of livestock generates unique two dimensional code, establishes the two dimensional code with the slaughter animals described The incidence relation of corresponding back end in block catenary system;
The two dimensional code is with certain specific geometric figure according to certain rules in the black of plane (on two-dimensional directional) distribution White alternate graphic recording data symbol information;Composition computer-internal logical foundations are dexterously utilized in code compilation The concept of " 0 ", " 1 " bit stream indicates text numerical information using several geometrical bodies corresponding with binary system, passes through Image input device or photoelectric scanning device automatically identifying and reading are to realize automatic processing of information: it has some total of barcode technology Property: every kind of code system has its specific character set;Each character occupies certain width;With certain verifying function etc..Simultaneously Also have to the information automatic identification function and the processing rotationally-varying point of figure that do not go together.
Information aggregation step: record every each decomposition position transportation data during transportation of slaughter animals and Sales data after reaching sale shops, and upload in the block catenary system in the database of corresponding back end, shape At complete livestock database;
Wherein, transportation data includes: departure place, destination, real time position, the vehicles, pork refrigerated state;
Sales data includes: the affiliated position of the pork, weight, price, the time experienced from butchering to selling.
Further, in the present embodiment, the livestock face identification system trained in advance is twin neural network mould Type, including the first convolution neural network model, the second convolution neural network model, it is described to be known by livestock face trained in advance Other system face recognition is carried out to confirm identity ID to every livestock the following steps are included:
Feature extraction is carried out to the preceding livestock face image once got using the first convolution neural network model, is obtained First facial eigenvectors;
Feature extraction is carried out using the second convolution neural network model face image current to livestock, is exported corresponding Second facial eigenvectors;
The vector distance for calculating first facial eigenvectors and the second facial eigenvectors, using the vector distance as Similarity value confirms the current livestock face image and the preceding domestic animal once got when the similarity value is more than preset threshold Raise the face image that face image is common identity ID livestock;
After livestock identity ID confirmation, schemed with the livestock face once got before the current face image replacement of livestock Picture, and extracted from the current face image of livestock and obtain updated second facial eigenvectors.
Further, in the present embodiment, the second state recording step further include:
The identity ID that livestock is confirmed by livestock face identification system, after meeting the livestock for butchering requirement and being butchered, The life state of the livestock is updated to butcher in the database of the back end;
If the quarantine result of livestock, which is not met, butchers requirement, by the life of livestock in the database of the back end State is updated to quarantine unqualified.
The quarantine includes quarantining after quarantining and kill before killing, wherein quarantine includes 4 aspects before killing, is respectively as follows:
It sees, the inspection to sensitivity response is judgement disease and is good for one of accurate method.The coat of healthy livestock and Skin is glossy, and being full of animal spirits is quick on the draw, and new line is looked around everywhere, and the spirit for the livestock that has an attack of one's old illness is depressed, slow in reacting, under ear It hangs down, head is not lifted, eye semi-closure, and asoscope drying does not moisten, and is walked slow or is stood transfixed to the ground;
It listens, mainly breath sound, ring tone, cough.By auscultation with stethoscope, general health livestock vesicular breath sounds is in The sound of similar " furan furan ", when air-breathing understand, when expiration is faint;When suffer from an inflammation of the lungs, pulmonary emphysema, pleuropneumonia when vesicluar sound breathing it is different Often;Healthy livestock ring tone be lightly hem and dam cry, the cry for the livestock that has an attack of one's old illness is hoarse droning, groan etc.;Cough sound pitch when flu It is high, it is coarse, repeatedly generally sprayed without phlegm foam;
It touches, touches body surface perception skin with hand and subcutaneously change, healthy livestock skin surface softness, high resilience, no oedema, The variation such as rash block, wind-puff.Body surface lymph node mainly checks livestock throat and superficial cervical lymphnode, according to size, form, temperature, quick Sensitivity and activity are checked.Apparent swelling, heat pain are had as livestock suffers from streptococcosis lymph, fluctuation occurs in surface. Clinically usually livestock inguinal lymph nodes is carried out to check whether enlargement;
Inspection, emphasis be detection body temperature because body temperature be raised and lowered be livestock illness important symbol.To cannot make a definite diagnosis The livestock that has an attack of one's old illness need to carry out laboratory routine inspection, and there is specific aim immunology quick diagnosis.It checks and confirms through quarantine officer Anxious government official, which should be provided, for the livestock that non-malignant infectious disease must be killed suddenly proves, is sent to suddenly government official workshop and makees suddenly to kill, when for examining after government official It is convenient to check offer.
Quarantine includes 12 steps after government official, is respectively as follows: 1, dissect both sides of the head submandibular lymph nodes;2, dissect two before decaptitating Masseter outside side;3, dissect bronchial lymph nodes;4, dissect ventricle and pericardium;5, dissect portal lymph node;6, dissect mesenterium Lymph node;7, dissect superficial inguinal lymph nodes;8, dissect deep inguinal lymph nodes, bone endolymph knot;9, dissect vastus medialis; 10, dissect psoas muscle;11, dissect kidney;12, trichina checks.
Further, in the present embodiment, when the livestock cultivation circulation tracing program is executed by the processor, in institute Before stating the second state recording step, following steps are also executed:
If it is dead that livestock occurs in breeding process, the identity of the death livestock is determined using livestock face identification system ID, and the life state of the death livestock is revised as dead;And
If the cause of death of dead livestock reaches Claims Resolution standard, Claims Resolution side's amount of money is drawn by the intelligent contract of block chain Enter policy-holder.
The intelligence contract is a set of promise defined in digital form, and promise controls digital asset and contains contract The rights and duties of participant's agreement, are executed automatically by computer system.
Intelligent contract program is more than the computer program that can be performed automatically, and inherently a system participates in Person responds the information received, can receive and store value, can also be sent out information and value.It can manage Solution, the people that this program can be trusted just as one can temporarily take care of assets, always execute behaviour according to prior rule Make.
Compared with prior art, the present invention proposes to know by block catenary system, the livestock face based on deep learning training Other system realizes intelligence tracking to livestock whole life cycle of insuring, and guarantees that truthful data is not tampered in livestock breeding process, Realize the information symmetrical and data safety of producers and consumers.
As shown in fig.2, for the present invention is based on the flow charts that the livestock of block chain cultivates circulation one embodiment of method for tracing. Method includes the following steps:
S1: the facial feature information of every livestock of insuring is obtained by imaging device (such as camera, CCD camera etc.) It is that every livestock generates a back end in block catenary system based on identity ID, each as the identity ID of the livestock Back end includes the database of biological information, health status of insuring and breeding environment information of insuring of insuring;
Wherein, database is to come tissue, storage and management data according to data structure, and establish and set in computer storage It is standby upper.The block catenary system reminds existing information by the further data authenticity validating of common recognition mechanism, avoids weight Information is recorded, garbled information is fed back, to there is false information not to save, information data can not distort after being known together.
Common recognition mechanism is that the mathematical algorithm established between different nodes and trust, obtain equity is realized in block catenary system.
S2: face recognition is periodically carried out to every livestock to confirm identity by livestock face identification system trained in advance ID will confirm that the growth data of every livestock of identity ID update the back end represented to the block catenary system identity ID In corresponding database, the growth data of the livestock include the activity condition of every livestock, feed situation, constitution situation and Medicining condition;
Wherein, it is in new data item or record, replacement data file or database that data, which update (data revision), The process of corresponding legacy data item or record." object resource manager " and T-SQL sentence can be used in data update Two ways is realized.
Object resource manager be SQL Server Management Studio provide for database engine, The function of object is managed in Analysis Services, Integration Services and Reporting Services example Energy;
T-SQL, that is, Transact-SQL is enhanced edition of the SQL on Microsoft SQL Server, it is for allowing The dominant language that application program and SQL Server are linked up.
S3: the livestock information state after record livestock quarantine, meet butcher requirement livestock butchered, divide after, for domestic animal Each decomposition position of poultry generates unique two dimensional code, establish the two dimensional code with the slaughter animals phase in the block catenary system The incidence relation for the back end answered;
The two dimensional code is with certain specific geometric figure according to certain rules in the black of plane (on two-dimensional directional) distribution White alternate graphic recording data symbol information;Composition computer-internal logical foundations are dexterously utilized in code compilation The concept of " 0 ", " 1 " bit stream indicates text numerical information using several geometrical bodies corresponding with binary system, passes through Image input device or photoelectric scanning device automatically identifying and reading are to realize automatic processing of information: it has some total of barcode technology Property: every kind of code system has its specific character set;Each character occupies certain width;With certain verifying function etc..Simultaneously Also have to the information automatic identification function and the processing rotationally-varying point of figure that do not go together.
S4: it records every and each decomposition position transportation data during transportation of slaughter animals and has reached sale door Sales data behind shop, and upload in the block catenary system in the database of corresponding back end, form complete domestic animal Raise database;
Wherein, transportation data includes: departure place, destination, real time position, the vehicles, pork refrigerated state;
Sales data includes: the affiliated position of the pork, weight, price, the time experienced from butchering to selling.
Further, in the present embodiment, the livestock face identification system trained in advance is twin neural network mould Type, including the first convolution neural network model, the second convolution neural network model, it is described to be known by livestock face trained in advance Other system face recognition is carried out to confirm identity ID to every livestock the following steps are included:
Feature extraction is carried out to the preceding livestock face image once got using the first convolution neural network model, is obtained First facial eigenvectors;
Feature extraction is carried out using the second convolution neural network model face image current to livestock, is exported corresponding Second facial eigenvectors;
The vector distance for calculating first facial eigenvectors and the second facial eigenvectors, using the vector distance as Similarity value confirms the current livestock face image and the preceding domestic animal once got when the similarity value is more than preset threshold Raise the face image that face image is common identity ID livestock;
After livestock identity ID confirmation, schemed with the livestock face once got before the current face image replacement of livestock Picture, and extracted from the current face image of livestock and obtain updated second facial eigenvectors.
Further, in the present embodiment, the S3 step further include:
The identity ID that livestock is confirmed by livestock face identification system, after meeting the livestock for butchering requirement and being butchered, The life state of the livestock is updated to butcher in the database of the back end;
If the quarantine result of livestock, which is not met, butchers requirement, by the life of livestock in the database of the back end State is updated to quarantine unqualified.
The quarantine includes quarantining after quarantine and government official before killing, wherein being respectively as follows: in terms of quarantine includes 4 before killing
It sees, the inspection to sensitivity response is judgement disease and is good for one of accurate method.The coat of healthy livestock and Skin is glossy, and being full of animal spirits is quick on the draw, and new line is looked around everywhere, and the spirit for the livestock that has an attack of one's old illness is depressed, slow in reacting, under ear It hangs down, head is not lifted, eye semi-closure, and asoscope drying does not moisten, and is walked slow or is stood transfixed to the ground;
It listens, mainly breath sound, ring tone, cough.By auscultation with stethoscope, general health livestock vesicular breath sounds is in The sound of similar " furan furan ", when air-breathing understand, when expiration is faint;When suffer from an inflammation of the lungs, pulmonary emphysema, pleuropneumonia when vesicluar sound breathing it is different Often;Healthy livestock ring tone be lightly hem and dam cry, the cry for the livestock that has an attack of one's old illness is hoarse droning, groan etc.;Cough sound pitch when flu It is high, it is coarse, repeatedly generally sprayed without phlegm foam;
It touches, touches body surface perception skin with hand and subcutaneously change, healthy livestock skin surface softness, high resilience, no oedema, The variation such as rash block, wind-puff.Body surface lymph node mainly checks livestock throat and superficial cervical lymphnode, according to size, form, temperature, quick Sensitivity and activity are checked.Apparent swelling, heat pain are had as livestock suffers from streptococcosis lymph, fluctuation occurs in surface. Clinically usually livestock inguinal lymph nodes is carried out to check whether enlargement;
Inspection, emphasis be detection body temperature because body temperature be raised and lowered be livestock illness important symbol.To cannot make a definite diagnosis The livestock that has an attack of one's old illness need to carry out laboratory routine inspection, and there is specific aim immunology quick diagnosis.It checks and confirms through quarantine officer Anxious government official, which should be provided, for the livestock that non-malignant infectious disease must be killed suddenly proves, is sent to suddenly government official workshop and makees suddenly to kill, when for examining after government official It is convenient to check offer.
Quarantine includes 12 steps after government official, is respectively as follows: 1, dissect both sides of the head submandibular lymph nodes;2, dissect two before decaptitating Masseter outside side;3, dissect bronchial lymph nodes;4, dissect ventricle and pericardium;5, dissect portal lymph node;6, dissect mesenterium Lymph node;7, dissect superficial inguinal lymph nodes;8, dissect deep inguinal lymph nodes, bone endolymph knot;9, dissect vastus medialis; 10, dissect psoas muscle;11, dissect kidney;12, trichina checks.
Further, in the present embodiment, this method is before the S3 step, can with the following steps are included:
If it is dead that livestock occurs in breeding process, the identity of the death livestock is determined using livestock face identification system ID, and the life state of the death livestock is revised as dead;And
If the cause of death of dead livestock reaches Claims Resolution standard, Claims Resolution side's amount of money is drawn by the intelligent contract of block chain Enter policy-holder.
The intelligence contract is a set of promise defined in digital form, and promise controls digital asset and contains contract The rights and duties of participant's agreement, are executed automatically by computer system.
Intelligent contract program is more than the computer program that can be performed automatically, and inherently a system participates in Person responds the information received, can receive and store value, can also be sent out information and value.It can manage Solution, the people that this program can be trusted just as one can temporarily take care of assets, always execute according to prior rule Operation.
Further, in the present embodiment, this method is further comprising the steps of:
The request for responding two dimensional code described in scanning input, reads from the database of the block catenary system corresponding data node The relevant information for taking the matched slaughter animals of the two dimensional code, shows user.
For example, consumer decomposes the two dimensional code on position (such as pork) using the livestock to be bought of mobile phone scanning, it can To obtain the relevant information of the associated pig-breeding process of the two dimensional code.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has livestock to support Circulation tracing program is grown, the livestock cultivation circulation tracing program can be executed by processor the domestic animal as described above based on block chain It raises and grows circulation method for tracing.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of electronic device, which is characterized in that the electronic device includes memory and processor, is stored in the memory There is the livestock that can be run on the processor cultivation circulation tracing program, the livestock cultivation circulation tracing program is by the place Reason device realizes following steps when executing:
Node construction step: identity of the facial feature information as the livestock of every livestock of insuring is obtained by imaging device ID is that every livestock generates a back end in block catenary system based on identity ID, and each back end includes insuring The database of biological information, health status of insuring and breeding environment information of insuring;
First state recording step: face recognition is periodically carried out to every livestock by livestock face identification system trained in advance To confirm identity ID, it will confirm that the growth data of every livestock of identity ID are updated to the block catenary system identity ID and represent The corresponding database of back end in, the growth data of the livestock include the activity condition of every livestock, feed situation, Constitution situation and medicining condition;
Second state recording step: record livestock quarantine after livestock information state, meet butcher requirement livestock butchered, point After cutting, it is that each decomposition position of livestock generates unique two dimensional code, establishes the two dimensional code and the slaughter animals in the block The incidence relation of corresponding back end in catenary system;
Information aggregation step: each decomposition position transportation data and arrival during transportation of every slaughter animals is recorded Sales data after selling shops, and upload in the block catenary system in the database of corresponding back end, it has been formed Whole livestock database.
2. electronic device according to claim 1, which is characterized in that wherein, the livestock face recognition trained in advance System is twin neural network model, including the first convolution neural network model, the second convolution neural network model are described to pass through Livestock face identification system trained in advance face recognition is carried out to confirm identity ID to every livestock the following steps are included:
Feature extraction is carried out to the preceding livestock face image once got using the first convolution neural network model, obtains first Facial eigenvectors;
Feature extraction, output corresponding second are carried out using the second convolution neural network model face image current to livestock Facial eigenvectors;
The vector distance for calculating first facial eigenvectors and the second facial eigenvectors, using the vector distance as similar Angle value confirms the current livestock face image and the preceding livestock face once got when the similarity value is more than preset threshold Portion's image is the face image of common identity ID livestock;
After livestock identity ID confirmation, the livestock face image once got before being replaced with the current face image of livestock, and It is extracted in the face image current from livestock and obtains updated second facial eigenvectors.
3. electronic device according to claim 1, which is characterized in that the second state recording step further include:
The identity ID that livestock is confirmed by livestock face identification system, after meeting the livestock for butchering requirement and being butchered, described The life state of the livestock is updated to butcher in the database of back end;
If the quarantine result of livestock, which is not met, butchers requirement, by the life state of livestock in the database of the back end It is updated to quarantine unqualified.
4. electronic device according to claim 1, which is characterized in that the livestock cultivation circulation tracing program is by the place When managing device execution, before the second state recording step, following steps are executed:
If it is dead that livestock occurs in breeding process, the identity ID of the death livestock is determined using livestock face identification system, and The life state of the death livestock is revised as dead;And
If the cause of death of dead livestock reaches Claims Resolution standard, Claims Resolution side's amount of money is divided by the intelligent contract of block chain and is thrown Guarantor side.
5. a kind of livestock cultivation circulation method for tracing based on block chain, is applied to electronic device, which is characterized in that this method packet It includes:
S1: obtaining identity ID of the facial feature information as the livestock of every livestock of insuring by imaging device, is based on the body Part ID is that every livestock generates a back end in block catenary system, and each back end includes biological characteristic letter of insuring It ceases, the database of health status of insuring and breeding environment information of insuring;
S2: periodically carrying out face recognition to every livestock by livestock face identification system trained in advance to confirm identity ID, It will confirm that the growth data of every livestock of identity ID update the back end phase represented to the block catenary system identity ID In corresponding database, the growth data of the livestock include the activity condition of every livestock, feed situation, constitution situation and use Medicine situation;
S3: livestock information state after record livestock quarantine, meet butcher requirement livestock butchered, divide after, for livestock Each decomposition position generates unique two dimensional code, and it is corresponding in the block catenary system with the slaughter animals to establish the two dimensional code The incidence relation of back end;
S4: every each decomposition position transportation data during transportation of slaughter animals and after reaching sale shops is recorded Sales data, and upload in the block catenary system in the database of corresponding back end, form complete livestock number According to library.
6. the livestock cultivation circulation method for tracing according to claim 5 based on block chain, which is characterized in that wherein, institute Stating livestock face identification system trained in advance is twin neural network model, including the first convolution neural network model, second Convolutional neural networks model, it is described that face recognition is carried out to every livestock with true by livestock face identification system trained in advance Recognize identity ID the following steps are included:
Feature extraction is carried out to the preceding livestock face image once got using the first convolution neural network model, obtains first Facial eigenvectors;
Feature extraction, output corresponding second are carried out using the second convolution neural network model face image current to livestock Facial eigenvectors;
The vector distance for calculating first facial eigenvectors and the second facial eigenvectors, using the vector distance as similar Angle value confirms the current livestock face image and the preceding livestock face once got when the similarity value is more than preset threshold Portion's image is the face image of common identity ID livestock;
After livestock identity ID confirmation, the livestock face image once got before being replaced with the current face image of livestock, and It is extracted in the face image current from livestock and obtains updated second facial eigenvectors.
7. the livestock cultivation circulation method for tracing according to claim 5 based on block chain, which is characterized in that described second State recording step further include:
The identity ID that livestock is confirmed by livestock face identification system, after meeting the livestock for butchering requirement and being butchered, described The life state of the livestock is updated to butcher in the database of back end;
If the quarantine result of livestock, which is not met, butchers requirement, by the life state of livestock in the database of the back end It is updated to quarantine unqualified.
8. the livestock cultivation circulation method for tracing according to claim 5 based on block chain, which is characterized in that in the S3 Before step, comprising the following steps:
If it is dead that livestock occurs in breeding process, the identity ID of the death livestock is determined using livestock face identification system, and The life state of the death livestock is revised as dead;And
If the cause of death of dead livestock reaches Claims Resolution standard, Claims Resolution side's amount of money is divided by the intelligent contract of block chain and is thrown Guarantor side.
9. the livestock cultivation circulation method for tracing according to claim 5 based on block chain, which is characterized in that this method is also Include:
The request for responding two dimensional code described in scanning input, reading from the database of the block catenary system corresponding data node should The relevant information of the matched slaughter animals of two dimensional code, shows user.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has livestock cultivation Circulate tracing program, and the livestock cultivation circulation tracing program can be executed by processor such as any one of claim 5-9 institute The livestock cultivation circulation method for tracing based on block chain stated.
CN201910008196.1A 2019-01-04 2019-01-04 Block chain-based livestock breeding circulation tracking method, electronic device and storage medium Active CN109886826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910008196.1A CN109886826B (en) 2019-01-04 2019-01-04 Block chain-based livestock breeding circulation tracking method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910008196.1A CN109886826B (en) 2019-01-04 2019-01-04 Block chain-based livestock breeding circulation tracking method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN109886826A true CN109886826A (en) 2019-06-14
CN109886826B CN109886826B (en) 2023-07-28

Family

ID=66925589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910008196.1A Active CN109886826B (en) 2019-01-04 2019-01-04 Block chain-based livestock breeding circulation tracking method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN109886826B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908326A (en) * 2019-11-25 2020-03-24 广东省海洋工程装备技术研究所 Intelligent fishing ground system based on digital twins and working method thereof
CN112364371A (en) * 2020-10-16 2021-02-12 杭州甘道智能科技有限公司 Block chain-based vaccine transfer monitoring device and method
CN113905035A (en) * 2021-09-29 2022-01-07 上海万向区块链股份公司 Block chain-based biological data non-homogenization mapping system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9084411B1 (en) * 2014-04-10 2015-07-21 Animal Biotech Llc Livestock identification system and method
CN107657459A (en) * 2017-09-06 2018-02-02 翔创科技(北京)有限公司 Auth method, settlement of insurance claim method, source tracing method, storage medium and the electronic equipment of livestock
CN107766807A (en) * 2017-09-30 2018-03-06 平安科技(深圳)有限公司 Electronic installation, insure livestock recognition methods and computer-readable recording medium
CN108389061A (en) * 2018-03-19 2018-08-10 平安科技(深圳)有限公司 Electronic device, the livestock insurance Claims Resolution method based on block chain and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9084411B1 (en) * 2014-04-10 2015-07-21 Animal Biotech Llc Livestock identification system and method
CN107657459A (en) * 2017-09-06 2018-02-02 翔创科技(北京)有限公司 Auth method, settlement of insurance claim method, source tracing method, storage medium and the electronic equipment of livestock
CN107766807A (en) * 2017-09-30 2018-03-06 平安科技(深圳)有限公司 Electronic installation, insure livestock recognition methods and computer-readable recording medium
CN108389061A (en) * 2018-03-19 2018-08-10 平安科技(深圳)有限公司 Electronic device, the livestock insurance Claims Resolution method based on block chain and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908326A (en) * 2019-11-25 2020-03-24 广东省海洋工程装备技术研究所 Intelligent fishing ground system based on digital twins and working method thereof
CN112364371A (en) * 2020-10-16 2021-02-12 杭州甘道智能科技有限公司 Block chain-based vaccine transfer monitoring device and method
CN112364371B (en) * 2020-10-16 2024-04-16 杭州甘道智能科技有限公司 Vaccine transfer monitoring device and method based on block chain
CN113905035A (en) * 2021-09-29 2022-01-07 上海万向区块链股份公司 Block chain-based biological data non-homogenization mapping system

Also Published As

Publication number Publication date
CN109886826B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US9521829B2 (en) Livestock identification and monitoring
JP6824199B2 (en) Systems and methods for identifying individual animals based on back images
Harley et al. Evaluating the prevalence of tail biting and carcase condemnations in slaughter pigs in the Republic and Northern Ireland, and the potential of abattoir meat inspection as a welfare surveillance tool
CN109886826A (en) Livestock cultivation circulation method for tracing, electronic device and storage medium based on block chain
CN109255297A (en) animal state monitoring method, terminal device, storage medium and electronic equipment
KR102315991B1 (en) Device and system for managing livestck remotly using artificial intelligence
Sant’Ana et al. Weighing live sheep using computer vision techniques and regression machine learning
CN108805238A (en) A kind of beef cattle breeding and food safety trace back system
CN107038592A (en) It is a kind of that business model of the big data platform as core is reviewed using government's quality monitoring
CN111753697B (en) Intelligent pet management system and management method thereof
JP2021135956A (en) Livestock disease management system, livestock disease management server, livestock disease management method, and livestock disease management program
WO2019138329A1 (en) Method and system, based on the use of deep learning techniques, for the univocal biometric identification of an animal
CN107833145A (en) The database building method and source tracing method of livestock, storage medium and electronic equipment
CN110728242A (en) Image matching method and device based on portrait recognition, storage medium and application
Milburn et al. The freegan challenge to veganism
Haldar et al. Application of information and electronic technology for best practice management in livestock production system
JP7360496B2 (en) Judgment system
CN116760719A (en) Method for constructing intelligent cultivation multi-mode internet of things information collection and early warning model
Wang et al. A method for individual identification of dairy cows based on deep learning
US20210019553A1 (en) Information processing apparatus, control method, and program
KR102458005B1 (en) System for providing agist service for animaml right and small farm business
CN115035570A (en) Pet relaxing method and device, computer equipment and storage medium
Thakur et al. Digitalization of livestock farms through blockchain, big data, artificial intelligence, and Internet of Things
CN107256608A (en) A kind of cultivation safety-protection system that can be remotely captured based on mobile Internet
Neethirajan Digitalization of animal farming

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