Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, an electronic device and a storage medium for herd number statistics, which establish an individual file for target livestock, perform herd grouping and herd number statistics by establishing a herd database and a herd number statistical model of the target livestock, and are convenient to operate and accurate in statistical result.
In a first aspect, the present application provides a method for herd number statistics, the method including:
establishing a database and a quantity statistical model about the target livestock group aiming at target livestock; the database comprises individual profile information of the target livestock;
monitoring the growth and development process of the target livestock, and updating the individual archive information of the target livestock in a database according to the individual growth and development state of the target livestock;
determining the growth and development state of each target livestock on the first statistical date by combining the first statistical date and the individual profile information of the target livestock;
and determining the number of first herds in a statistical state corresponding to the livestock herd statistical demand from the target livestock according to the growth and development state of each target livestock at the first statistical date based on the livestock herd statistical demand of the first statistical date.
In some embodiments of the present application, the method further includes:
determining a second herd number at a second statistical date in the statistical state corresponding to the livestock herd statistical need based on the first herd number at the first statistical date in the statistical state and the individual profile information in the database.
In some technical solutions of the present application, the livestock individual profile information includes: the individual information, the growth and development state, the death information, the elimination information and the flow information of the target livestock;
the monitoring the growth and development process of the target livestock and updating the individual profile information of the target livestock in a database according to the individual growth and development state of the target livestock comprises the following steps:
updating the death information of each target livestock according to the death condition of the target livestock;
updating the elimination information of each target livestock according to the elimination condition of each target livestock;
and updating the flow information of each target livestock according to the flow condition of the target livestock.
In some embodiments of the present application, the growth state includes a theoretical growth state and an actual growth state;
the determining the growth and development state of each target livestock at the first statistical date by combining the first statistical date and the individual profile information of the target livestock comprises the following steps:
determining the theoretical growth and development state of the target livestock according to the individual information and the growth and development information of the target livestock;
adjusting the theoretical growth and development state of the target livestock based on the actual growth and development period, the death information, the elimination information and the flow information of the target livestock to obtain the actual growth and development state of the target livestock;
and determining the actual growth and development state of the target livestock at the first statistical date according to the growth and development information of the target livestock.
In some embodiments of the present invention, the determining, from the target livestock, a first herd number in a statistical state corresponding to the statistical demand of the livestock herd based on the statistical demand of the livestock herd on the first statistical date according to the growth and development state of each of the target livestock on the first statistical date includes:
determining a statistical state corresponding to the livestock herd statistical demand according to the livestock herd statistical demand acquired by the first statistical date;
determining a first herd in the statistical state from the target livestock according to the actual growth and development state of each target livestock at the first statistical date;
and calculating the number of the first herd to complete statistics.
In some embodiments of the present application, the growth state includes a theoretical growth state; the individual profile information includes: individual information and growth cycle of the target livestock; said determining a second herd number at a second statistical date in said statistical state corresponding to said livestock herd statistical need based on said first herd number at said first statistical date and individual profile information in said database, comprising:
calculating a statistical interval between the first statistical date and the second statistical date according to the first statistical date and the second statistical date;
calculating the growth and development state of each target livestock at the second statistical date according to the statistical interval and the growth and development state of each target livestock at the first statistical date;
and determining the number of second herds which are in the statistical requirement of the livestock herd on the second statistical date according to the number of the first herds and the growth and development state of each target livestock on the second statistical date.
In some embodiments of the present application, the determining the second herd number in the statistical requirement on the second statistical date according to the first herd number and the growth and development status of each target livestock on the second statistical date includes:
subtracting the number of the target livestock corresponding to the livestock herd statistical demand decreased by the second statistical date from the number of the target livestock corresponding to the livestock herd statistical demand corresponding to the first statistical date to obtain a second herd number at the livestock herd statistical demand on the second statistical date.
In a second aspect, the present application provides an apparatus for herd number statistics, the apparatus comprising:
an establishing module for establishing a database of target livestock related to the target livestock for the target livestock; the database comprises individual profile information of each of the target livestock;
the updating module is used for monitoring the growth and development condition of each target livestock in the target livestock and updating the individual archive information of the target livestock in the database according to the growth and development condition of each target livestock;
the first determining module is used for determining the growth and development state of each target livestock on a first statistical date by combining the first statistical date and the individual profile information of the target livestock;
and the second determining module is used for determining the number of the first herd in a statistical state corresponding to the livestock herd statistical demand from the target livestock according to the growth and development state of each target livestock on the first statistical date based on the livestock herd statistical demand on the first statistical date.
In a third aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for herd number statistics described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for herd number statistics described above.
The technical scheme provided by the implementation regulations of the application can have the following beneficial effects: the method comprises the steps of establishing a livestock group database and a quantity statistical model of target livestock; the herd database comprises division standards of all herds of the target livestock and individual archive information of all target livestock; then, monitoring the growth and development condition of each target livestock in the target livestock, and updating individual archive information of the target livestock in a database according to the growth condition of each target livestock; then, determining the growth and development state of each target livestock on the first statistical date by combining the first statistical date and the individual profile information of the target livestock; finally, determining the number of first herds in a statistical state corresponding to the livestock herd statistical demand from the target livestock according to the growth and development state of each target livestock at the first statistical date based on the livestock herd statistical demand of the first statistical date; according to the method and the device, the individual archives are established for the target livestock, grouping and herd quantity statistics are carried out by establishing the herd database and the herd quantity statistics model of the target livestock, the operation is convenient, and the statistical result is more accurate.
In order to make the aforementioned and other objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
At present, the method of artificial statistics, counting and layer-by-layer reporting is still used for livestock breeding statistics and classification and quantity statistics monitoring of animal husbandry.
The method for artificial statistics, counting and layer-by-layer reporting of the classification and quantity statistics monitoring of livestock breeding statistics and animal husbandry has the following defects:
the statistical method is not scientific: lack of complete and scientific statistical management system, and is not suitable for the requirements of strengthening and improving macroscopic regulation and accelerating the construction of modern animal husbandry.
The statistical method is not standardized: the method lacks of uniform statistical standard and statistical format, and the statistical content is scattered and disordered and is difficult to classify and summarize systematically.
The statistical data has large difference and poor timeliness: the statistical standards are not uniform, the difference is large, the transmission of statistical data is slow, and the timeliness is poor.
The statistical data accuracy is low: the standard is not uniform, the data is not accurate, and false data and forged data are falsified.
Statistical data are not very applicable: the statistical method is unscientific and non-standard, the statistical data has poor timeliness and low accuracy, and the application of the statistical data to the scientific decision and the macroscopic regulation of the production fluctuation, the market fluctuation and the macroscopic economic operation of the livestock breeding industry is influenced.
According to the invention, the cultured livestock types and the livestock groups are scientifically and standard divided and the quantity statistics is carried out, so that the dynamic management and the quantity statistics of different types and different livestock groups such as feeding, epidemic prevention, diseases, death, elimination, fence storage, fence discharge, milk yield, feeding efficiency and the like are realized, the culture efficiency is improved, the culture cost is reduced, the effectiveness and the accuracy of the statistical data of the livestock are ensured, and a scientific decision basis is provided for the production fluctuation, the market fluctuation and the macroscopic economic operation regulation and control of the livestock breeding industry. The technical problem to be solved is as follows:
establishing an individual birth management file of livestock: establishing a birth management file of the livestock one-target-one-livestock and individual information of the livestock, wherein the information of the livestock birth file is associated with information or data including but not limited to feeding, epidemic prevention, disease diagnosis and treatment, death, elimination, stock-keeping, marketing, milk production, finance, insurance and the like of livestock breeding, and the data is prevented from being inaccurate, falsified and forged.
Establishing a scientific and complete livestock herd division standard, dynamic management and quantity statistical model: according to the characteristics of different types, categories, growth and development periods and the like of the livestock, a scientific and complete livestock herd division standard, dynamic management and quantity statistical model is established.
Promoting a dynamic management system for dividing the standard of the livestock groups and counting the number: the unified and standard herd dividing standard and the dynamic management system for the number statistics are popularized, the real-time sharing of herd number statistical data among departments, organizations, enterprises, individuals and the like is realized, and the problems of large data statistical difference and poor timeliness are solved.
The sharing of the statistical data of the herd is realized, and the utilization value of the statistical data is improved: the statistical data sharing of management departments, breeding enterprises, breeding industry chain enterprises (feeds, vaccines, veterinary drugs, breeding equipment, finance, insurance and the like), breeding service organizations, individuals and the like is realized through the livestock population number statistical dynamic management system, and the application of the livestock population number statistical data to the scientific decision and macro regulation and control fields of livestock breeding industry, markets and macro economic operation is improved.
The embodiment of the application provides a herd number counting method, a herd number counting device, an electronic device and a storage medium, and is described by the embodiment.
Fig. 1 is a schematic flow chart illustrating a method for quantity statistics according to an embodiment of the present application, wherein the method includes steps S101-S104; specifically, the method comprises the following steps:
s101: establishing a database and a quantity statistical model about the target livestock group aiming at target livestock; the database comprises individual profile information of the target livestock;
s102: monitoring the growth and development process of the target livestock, and updating the individual archive information of the target livestock in a database according to the individual growth and development state of the target livestock;
s103: determining the growth and development state of each target livestock on the first statistical date by combining the first statistical date and the individual profile information of the target livestock;
s104: and determining the number of first herds in a statistical state corresponding to the livestock herd statistical demand from the target livestock according to the growth and development state of each target livestock at the first statistical date based on the livestock herd statistical demand of the first statistical date.
Some embodiments of the present application are described in detail below. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
S101: establishing a database and a quantity statistical model about the target livestock group aiming at target livestock; the database includes individual profile information for the target livestock.
The present application is directed to a target livestock, establishing a database about the target livestock included in the target livestock. The target livestock includes, but is not limited to, live pigs, cattle, sheep, horses, donkeys, deer, etc. After the target livestock is selected, the application establishes databases aiming at the target livestock herd, wherein the databases comprise databases respectively established according to different livestock species, such as pigs, cattle, buffalo, goats, sheep and the like; a variety database of various livestock, such as beef cattle, e.g., Simmental cattle, Charolais cattle, Limonisin cattle, Hafote cattle, Angus cattle, etc.; a category database of various livestock such as bull, cow, beef cattle, boar, sow, pork pig, etc.; a growth and development information database of various livestock, such as a slaughtering growth cycle, an estrus period, a gestation period, a lactation period, a dry period and the like; a database of growth and development stages of each type of livestock, such as lactating calves, weaning calves, young adult cows, large adult cows, piglets, fattening pigs, etc.; a livestock individual information database, such as livestock species, breed, category, date of birth, hurdle, and the like.
In order to facilitate data processing and statistics, the individual archive information of each livestock is established in the database. The individual profile information of a livestock includes all information of the livestock from birth to death. For example, the individual profile information includes individual information, growth and development information, death information, culling information, and flow information. The individual information includes individual identification, type, breed, category, date of birth, hurdle, and the like of the livestock. The growth and development information comprises growth time and the like corresponding to each growth stage of the livestock after birth. The death information, culling information, and flow information of the target livestock affect the number of the target livestock herd. The flow information characterizes whether it is within a statistical range, including, for example, turning, selling, slaughtering, etc. of the livestock.
S102: monitoring the growth and development process of the target livestock, and updating the individual archive information of the target livestock in a database according to the individual growth and development state of the target livestock.
After the database of the target livestock is established, it is necessary to monitor the growth and development of each of the target livestock. And then, correspondingly updating individual profile information of each target livestock in a database according to the respective growth and development conditions of each target livestock.
The monitoring of the growth and development of the target livestock includes monitoring of the death condition, the elimination condition, the flow condition and the like of the target livestock. When the statistics of the target livestock are performed, generally, only the target livestock in a survival state need to be counted. The application is also applicable if the number of death target livestock needs to be counted. The flow situation here includes whether the target livestock is still within the range to be counted. For example, if a certain livestock is sold, the livestock no longer needs to be counted. For another example, if a livestock is slaughtered, the livestock no longer needs to be statistically rated. If the target livestock is transferred from one stall to another stall, the livestock is still within the range of the statistics to be needed.
After the death condition, the elimination condition and the flowing condition of the target livestock are obtained through monitoring, updating the individual information of the target livestock according to the specific condition of each object; and updating the flow information of each target livestock according to the flow condition of the livestock. And storing the updated information in the individual profile information of the target livestock.
S103: and determining the growth and development state of each target livestock at the first statistical date by combining the first statistical date and the individual profile information of the target livestock.
The growth state in the present application includes a growth stage, a statistical range, and the like.
According to the method, after the individual file information of the target livestock is updated, the growth and development states of the target livestock are determined when the first statistical date is determined. The growth development state in the present application includes a theoretical growth development state and an actual growth development state. The theoretical growth and development state represents that the object is always in a normal growth environment from the beginning of statistics, and the interference of human factors and environmental factors is avoided. The actual growth and development state represents the growth and development condition of target livestock, and the interference of artificial factors and environmental factors such as death, elimination and the like may exist.
As shown in fig. 2, the present application is divided into three steps when determining the growth and development status of each target livestock on the first statistical date:
s201: determining the theoretical growth and development state of the target livestock according to the individual information and the growth and development information of the target livestock;
s202: adjusting the theoretical growth and development state of the target livestock based on the growth and development information, the death information, the elimination information and the flow information of the target livestock to obtain the actual growth and development state of the target livestock;
s203: and determining the actual growth and development state of the target livestock at the first statistical date according to the growth and development information of the target livestock.
The method firstly determines the theoretical growth and development state of the target livestock, and the theoretical growth and development state of the target livestock is determined as follows: according to the birth date of the target livestock and each growth cycle corresponding to the target livestock, the theoretical growth and development state of the target livestock can be determined. For example, the calves are 6 months (180 days, 90 days in lactation, 90 days in weaning period), the birth date of a certain calf is 2022 year No. 1 month 1, and 90 days from 2022 year No. 4 month 1 day, the target livestock is the calves in weaning period.
After the theoretical growth and development state of the target livestock is determined, the application also needs to adjust the theoretical growth and development state of the target livestock according to the actual situation, namely the growth and development condition and the flow information of the target livestock, and the adjusted theoretical growth and development state is used as the actual growth and development state of the target livestock. For example, in the growing process of a certain livestock, the estrus of the livestock is delayed under the influence of environmental factors, and the associated pregnancy, lactation and the like are changed. For another example, a livestock is eliminated after a certain period of growth (not reaching the growth cycle), and the growth state of the livestock is stopped.
After the growth and development information of the target livestock is determined, the actual growth and development state of the target livestock at the first statistical date can be determined by comparing and analyzing the first statistical date and the growth and development information of the target livestock.
S104, determining the first herd number in the statistical state corresponding to the livestock herd statistical demand from the target livestock according to the growth and development state of each target livestock at the first statistical date based on the livestock herd statistical demand of the first statistical date.
After determining the actual growth and development state of each target livestock on the first statistical date, acquiring the livestock herd statistical requirement. The statistical requirements of the livestock herd include statistics of the growth and development stages of the target livestock herd (for example, adolescence, adulthood, pregnancy, lactation, fattening period, etc.), statistics of the target livestock hurdle amount, and the like.
After the livestock herd statistical requirements are obtained, the natural language analysis needs to be carried out on the livestock herd statistical requirements, the statistical state corresponding to the livestock herd statistical requirements is determined from the livestock herd statistical requirements, and then the number of the target livestock in the statistical state is determined from the target livestock, so that the statistics can be completed.
For example, the statistical requirement of the acquired livestock herd is "how many cows are in lactation period in the barn", natural language analysis is performed on the statistical requirement of the livestock herd to determine that the statistical state is in lactation period, the cows in lactation period are found from the target livestock, and then the number is calculated.
In the embodiment of the present application, as an optional embodiment, a statistical model of the number of herds in different ages, ages in months and time periods of days of the same category or the same category is established according to growth and development information, reproduction and fertility characteristics, etc. of various livestock and various categories of livestock, and in specific implementation, the statistical model of the number of herds includes the following three statistical dynamic models of the number of herds, and other models can be evolved based on the three statistical dynamic models of the number of herds:
a herd number statistical model ∑ (statistics date-set date of birth, growth and development or reproduction of individual livestock) < (less than) set standard data or parameters of growth and development or growth period end of the herd-statistics date herd sales number (or slaughter number) -statistics date herd death number-statistics date herd culling number, the model being used for including, but not limited to, statistics of livestock stocking amount, slaughter amount, pregnancy number, lactation number and the like;
for example, a statistical model of herd numbers applies: the standard data of the pork pig stock is from the birth date to the 180 th day (1-180 days), the period of the pork pig stock is 180 days, and according to the birth date and the statistical date of the pork pig, the pork pig stock quantity on the statistical date ∑ Σ [ the statistical date-the individual birth date of the pork pig ] < the standard data of the stock end 180 ] -the pork pig sales quantity on the statistical date-the pork pig death quantity on the statistical date-the pork pig culling quantity on the statistical date are calculated; the standard data of the pregnancy of the cattle is from the conception date to the 283 th day (1-283 days), the pregnancy is 283 days, and according to the conception date and the statistical date of the cows, the number of pregnant cows on the statistical date ═ sigma (statistical date-cow conception date) < standard data of the end of the pregnancy 283 ] is calculated, the number of sold pregnant cows on the statistical date-the number of dead pregnant cows on the statistical date-the number of eliminated pregnant cows on the statistical date; the standard data of the lactation period of the cows are from the birth date to the 305 th day (1-305 days), the lactation period is 305 days, and according to the birth date and the statistical date of the cows, the number of the milking cows on the statistical date ═ Σ (statistical date-cow parturition date) < standard data 305 of the lactation period end-the number of the milking cows on the statistical date sold-the number of the milking cows on the statistical date dead-the number of the milking cows on the statistical date rejected is calculated.
A herd number statistical model, namely Σ [ the statistical date-the setting date of the birth, growth and development or reproduction of livestock individuals ] < (less than) the set standard starting point data or parameter of the growth and development or growth period of the previous herd ] - [ the statistical date-the setting date of the birth, growth and development or reproduction of livestock individuals ] < (less than) the set standard starting point data or parameter of the growth and development or growth period of the herd ] - [ the statistical date of sale (or the number of slaughtering) of the herd at the statistical date-the statistical date of death number of the herd-the statistical date of elimination number of the herd at the statistical date;
or when the standard starting data or parameter of the growth development or growth period of the herd is 1, the herd number statistical model ∑ (sum [ statistical date-set date of birth, growth development or reproduction of individual livestock) < (less than) the standard starting data or parameter of the growth development or growth period of the last herd set ] -statistical date sales number (or marketing number) of the herd-statistical date death number of the herd-statistical date elimination number of the herd, the model is used for counting the number of individual growth development stages or periods of the livestock, and the like;
for example, a statistical model of herd numbers applies: according to the growth and development process characteristics of the dairy cows, different growth and development stages are divided, including but not limited to lactating calves (time period: 1-90 days of birth), weaning calves (time period: 91-180 days of birth), calves (time period: 181-360 days of birth) and the like; according to the statistical date and the cow delivery date, calculating the quantity of calves in the weaning period of the statistical date ═ Σ [ the statistical date-the birth date of the cow individual ] < the standard starting point data 181 of the previous herd development period ] - [ sigma [ the statistical date-the birth date of the cow individual ] < the standard starting point data 91 of the herd development period ] - [ the statistical date-the sale quantity of calves in the herd-the death quantity of calves in the herd-the culling quantity of calves in the herd on the statistical date.
The growth or time period of the lactating calf is divided into: the method comprises the steps of (1) birth for 1-90 days, starting from the development section of a herd to the 1 st day, calculating the number of calves in the lactation period on the statistical date ═ Σ (statistical date-individual birth date of cow) < standard starting point data 91 of the development section of the previous herd-the number of sold calves in the herd on the statistical date-the number of dead calves in the herd on the statistical date-the number of eliminated calves in the herd on the statistical date according to the statistical date and the delivery date of cows.
A herd number statistical model ═ Σ [ statistical date-set date of birth, growth and development or reproduction of livestock individual ] > (greater than) standard data or parameter of growth and development or end of growth period of the previous herd ] - [ statistical date sales number (or number of slaughters) of this herd ] -statistical date death number of this herd-statistical date elimination number of this herd, the model is used for including, but not limited to, statistics of the number of growth and development stages or periods of livestock, and the like;
for example, a statistical model of herd numbers applies: the adult cows are all cows from the day of first birth, the standard data of the gestation period of the cows are from the day of conception to the 283 th day (1-283 days), the gestation period is 283 days, the first pregnant cow is an adult cow (delivered), and according to the statistical date and the gestation period of the cows, the number of the adult cows on the statistical date is sigma (statistical date-cow conception date) > standard data of pregnancy ending 283 ], the number of the adult cows on the statistical date is the number of the herd, the number of the adult cows on the statistical date is the number of the adult cows on the statistical date, and the number of the adult cows on the statistical date is the number of the herd.
After the first herd number in the statistical state on the first statistical date is counted, the growth and development state of the target livestock can be calculated according to the first herd number on the first statistical date and the individual archive information in the database, and the second herd number in the statistical state corresponding to the statistical requirement of the livestock herd on the second statistical date can be obtained through calculation. That is, the present application can dynamically analyze the number of target livestock.
Dynamic analysis of livestock herd: according to the statistics of target livestock herd data, the analysis includes, but is not limited to, the number change dynamics of different growth development and breeding stages of various livestock, livestock varieties, livestock types and various livestock types can provide basis for breeding industry, market regulation and control, and scientific decision on macroscopic economic operation and macroscopic regulation and control.
The dynamic analysis of the present application characterizes statistics on the number of target livestock herds. In making herd number statistics for target livestock, the present application first calculates a statistical interval between a first statistical date and a second statistical date. The statistical interval here characterizes the time of the interval between the first statistical date and the second statistical date. After the statistical interval between the first statistical date and the second statistical date is calculated, the growth state of each target livestock on the second statistical date can be calculated by adding or subtracting the time corresponding to the corresponding statistical interval based on the growth state of the target livestock on the first statistical date. And after the growth and development state of each target livestock on the second statistical date is obtained, obtaining the herd number of the target livestock corresponding to the livestock herd statistical demand on the second statistical date, and subtracting the number of the objects corresponding to the livestock herd statistical demand reduced by the second statistical date to obtain the second herd number in the statistical state on the second statistical date.
In the embodiment of the present application, as an optional embodiment, the livestock database: respectively establishing databases according to different livestock species, such as pigs, cattle, buffalos, goats, sheep and the like; a breed database of various livestock such as cow breeds Simmental cattle, Charolly cattle, Limonisin cattle, Haford cattle, Angus cattle, etc.; a category database of various livestock such as bull, cow, beef cattle, boar, sow, pork pig, etc.; a growth and development information database of each kind of livestock, such as a lactation calf, a weaning calf, a young adult cow, a big adult cow, a piglet, a fattening pig, a slaughter growth cycle, an estrus period, a pregnancy period, a lactation period, a dry period, and the like; a livestock individual information database, such as livestock species, breed, category, date of birth, hurdle, and the like.
The herd number statistical model is ∑ (statistical date-setting date of individual birth, growth and development or reproduction of livestock) < (less than) the set standard starting point data or parameter of the previous herd growth and development or growth period) [ [ statistical date-setting date of individual birth, growth and development or reproduction of livestock) < (less than) the set standard starting point data or parameter of the herd growth and development or growth period ] - [ statistical date sales number (or slaughter number) of the herd at statistical date-death number of the herd at statistical date-culling number of the herd at statistical date.
The statistical date of the number of weaned calves is as follows: 12/19/2021; the birth time period of the lactation calf is as follows: day 1-90; weaned calf birth time period: days 91-180; the birth time period of the small-bred cattle: 181-360 days.
The date of birth of a dairy animal in a certain farm is: a, 2021, 3 months and 27 days; b, 4, 8 months in 2021; c, 22 months 4 in 2021; d, 5 months and 17 days 2021; e, 21 months 7 in 2021; f, 28 months 7 in 2021; g, 8 months and 7 days 2021; h, 8 months and 12 days 2021; i, 8 months and 18 days 2021; j, 23 months 8 in 2021; k, 9 months and 3 days 2021; l, 9 months and 12 days 2021; m, 2021, 9 months and 18 days; n, 23 months 9 in 2021; o, 9 months and 30 days 2021; p, 10 months and 6 days 2021; q, 10 months and 15 days 2021; r, 10 months and 24 days 2021; s, 2021, 10 months and 29 days; t, 11 months and 3 days 2021; u, 11 months 11 days 2021; w, 11/19/2021; x, 11 months, 29 days 2021; y, 12 months and 7 days 2021; z, 12 months and 16 days 2021.
12/19/2021: the sale quantity of the weaned calves is 2, the death quantity of the weaned calves is 0, and the culling quantity of the weaned calves is 1.
Counting 12 and 19 days in 2021, wherein the number of weaned calves is sigma (2021.12.19-dairy stock birth date) < 181) sigma (2021.12.19-dairy stock birth date) < 91) 2-0-1;
=(E+F+G+H+I+J+L+M+N+O+P+Q+R+S+T+U+V+W+X+Y+Z)-(N+O+P+Q+R+S+T+U+V+W+X+Y+Z)-2-0-1
=21-8-2-0-1
=10
it should be noted that the symbol "Σ" in this application represents a statistical quantity.
Fig. 3 is a schematic structural diagram of an apparatus for herd number statistics provided in an embodiment of the present application, the apparatus including:
an establishing module for establishing a database of target livestock related to the target livestock for the target livestock; the database comprises individual profile information of each of the target livestock;
the updating module is used for monitoring the growth and development condition of each target livestock in the target livestock and updating the individual archive information of the target livestock in the database according to the growth and development condition of each target livestock;
the first determining module is used for determining the growth and development state of each target livestock on a first statistical date by combining the first statistical date and the individual profile information of the target livestock;
and the second determining module is used for determining the number of the first herd in a statistical state corresponding to the livestock herd statistical demand from the target livestock according to the growth and development state of each target livestock on the first statistical date based on the livestock herd statistical demand on the first statistical date.
A third determining module, configured to determine, based on the first herd number in the statistical state on the first statistical date and the individual profile information in the database, a second herd number in the statistical state corresponding to the livestock herd statistical demand on a second statistical date.
The individual profile information includes: the individual information, the growth and development information, the death information, the elimination information and the flow information of the target livestock; the updating module is used for monitoring the growth and development condition of each target livestock in the target livestock and updating the individual profile information of the target livestock in the database according to the growth and development condition of each target livestock, and comprises:
updating the death information of each target livestock according to the death condition of the target livestock;
updating the elimination information of each target livestock according to the elimination condition of each target livestock;
and updating the flow information of each target livestock according to the flow condition of the target livestock.
The growth development state comprises a theoretical growth development state and an actual growth development state; a first determining module, configured to, when determining the growth and development state of each target livestock on the first statistical date by combining the first statistical date and the individual profile information of the target livestock, include:
determining the theoretical growth and development state of the target livestock according to the individual information and the growth and development information of the target livestock;
adjusting the theoretical growth and development state of the target livestock based on the death information, elimination information and flow information of the target livestock to obtain the actual growth and development state of the target livestock;
and determining the actual growth and development state of the target livestock at the first statistical date according to the growth and development information of the target livestock.
A third determination module, when configured to determine a second herd number at a second statistical date in the statistical state corresponding to the livestock herd statistical need based on the first herd number at the first statistical date in the statistical state and the individual profile information in the database, comprising:
calculating a statistical interval between the first statistical date and the second statistical date according to the first statistical date and the second statistical date;
calculating the growth and development state of each target livestock at the second statistical date according to the statistical interval and the growth and development state of each target livestock at the first statistical date;
and determining the number of second herds which are in the statistical requirement of the livestock herd on the second statistical date according to the number of the first herds and the growth and development state of each target livestock on the second statistical date.
Determining a second herd number at the statistical requirement of the livestock herd on the second statistical date according to the first herd number and the growth and development state of each target livestock on the second statistical date, comprising:
subtracting the number of the target livestock corresponding to the livestock herd statistical demand decreased by the second statistical date from the number of the target livestock corresponding to the livestock herd statistical demand corresponding to the first statistical date to obtain a second herd number at the livestock herd statistical demand on the second statistical date.
As shown in fig. 4, an embodiment of the present application provides an electronic device for performing the method for herd number statistics in the present application, the device includes a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for herd number statistics.
In particular, the memory and the processor may be general purpose memory and processor, and are not specifically limited herein, and the method of herd number statistics described above can be performed when the processor runs a computer program stored in the memory.
Corresponding to the method of herd number statistics in the present application, an embodiment of the present application further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of herd number statistics described above.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc., on which a computer program can be executed that is capable of performing the above-described method of herd number statistics.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and 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. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The 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.
In addition, functional units in the embodiments provided in the present application 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 functions, if implemented in the form of software functional units 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 application or portions thereof that substantially contribute to the prior art may 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 application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.