Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All that will be made by those skilled in the art without undue burden will now be explicitly and fully described in connection with the drawings of embodiments of the present invention based on the embodiments of the present invention, and it is apparent that the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In animal husbandry, it is necessary to monitor and track the growth state of a biological asset, and when the growth state of the biological asset is monitored and tracked, it is necessary to accurately identify the identity of the biological asset. To this end, embodiments of the present application provide a method, apparatus, device, and storage medium for monitoring a growth state of a biological asset. To solve the above problems.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart of a method for monitoring a growth status of a biological asset according to an embodiment of the present application, and as shown in fig. 1, the method for monitoring a growth status of a biological asset according to an embodiment of the present application includes steps S100 to S400.
Step S100, obtaining serial numbers of electronic ear tags worn by the biological assets, and generating identity marks of the biological assets based on all the serial numbers.
Wherein the electronic ear tag includes, but is not limited to, a body temperature sensor and a motion sensor.
It should be noted that, the method for generating the identity of each biological asset based on all the serial numbers is described in detail below, and is not described herein.
Step 200, for each biological asset, associating an electronic ear tag worn by the biological asset with an identity of the biological asset.
Step S300, for each biological asset, acquiring the physiological state information of the biological asset in real time through an electronic ear tag worn by the biological asset, marking the physiological state information with a time tag to obtain target physiological state information, and storing the target physiological state information into a database built in the electronic ear tag.
Step 400, for each biological asset, acquiring historical physiological status information of the biological asset from the database through the identity of the biological asset at preset time of each day, and evaluating the growth status of the biological asset based on the historical physiological status information.
It will be appreciated that the historical physiological state information is the target physiological state information stored in the database.
It can be appreciated that, because the electronic ear tag worn by the biological asset is associated with the identity of the biological asset, the historical physiological state information of the biological asset can be obtained by identifying the identity of the biological asset, and specifically, the historical physiological state information of the biological asset can be obtained by clicking the identity of the biological asset in the cultivation APP or the cultivation applet downloaded by the terminal device. It will also be appreciated that, for each of the biological assets, the binding relationship of the identity of the biological asset to the electronic ear tag worn by the biological asset is stored in a database built in the electronic ear tag worn by the biological asset, and the terminal device is communicatively connected to each of the electronic ear tags worn by the biological asset.
It can be appreciated that the identity of each biological asset generated in step S100 is less likely to be acquired by an unauthorized person, so that the physiological status information of the biological asset is ensured not to be stolen by the unauthorized person, and the security of the physiological status information of the biological asset is improved.
According to the method provided by the embodiment, the identification mark of each biological asset is generated through the serial number of the electronic ear tag worn by each biological asset, the electronic ear tag worn by each biological asset is bound with the identification mark, the historical physiological state information of the biological asset is obtained in the database of the electronic ear tag through the identification mark, and the growth state of the biological asset is evaluated based on the historical physiological state information, so that on one hand, the safety of the physiological state information of the biological asset is improved, on the other hand, the problem of high culture cost caused when the growth data of the biological asset are obtained through manually scanning the graphic code on the electronic ear tag worn by the biological asset is solved, and on the other hand, the full-automatic monitoring of the growth state of the biological asset is realized.
In some embodiments, the generating the identity of each of the biological assets based on all of the serial numbers includes the steps of:
synthesizing all the serial numbers into an initial matrix based on a preset synthesis mode, and generating a transposed matrix of the initial matrix;
judging whether the transposed matrix is a square matrix or not;
if the transposed matrix is not a square matrix, matrix elements are added to the transposed matrix based on a preset matrix element adding rule, and a target matrix is obtained; wherein the target matrix is a square matrix;
and generating the identity of each biological asset based on the initial matrix and the target matrix.
For example, if the last two digits of each serial number are digits, the method of synthesizing all serial numbers into the initial matrix based on the preset synthesis method may be to sequentially arrange each serial number from top to bottom according to the order of the two digits formed by the last two digits of each serial number, and specifically, the serial number corresponding to the smallest two digits may be arranged in the first row of the initial matrix.
For example, the serial numbers of the electronic ear tag a, the electronic ear tag B, the electronic ear tag C, the electronic ear tag D and the electronic ear tag E are QWE12, RTY34, ASD56, FGH78, PLM83, YGC72, respectively, and the initial matrix is shown in formula (1):
;
the transposed matrix is shown in formula (2):
it may be appreciated that, in this embodiment, when the transposed matrix is not a square matrix, by adding matrix elements to the transposed matrix to change the transposed matrix into a square matrix, to obtain the target matrix, each element position of the initial matrix may have a corresponding element position in the target matrix.
In some embodiments, adding matrix elements to the transpose matrix based on a preset matrix element addition rule to obtain a target matrix includes:
judging the size relation between the number of rows and the number of columns of the transposed matrix;
if the number of columns is larger than the number of rows, determining that the transposed matrix is changed into a square matrix with the size of the number of columns, and judging the row number of the added matrix vacancy in the square matrix;
searching a target number consistent with the row number of the matrix empty space in the square matrix in a preset standard coding table; wherein the standard coding table comprises a character column and a number column;
deleting the characters corresponding to the target number in the standard coding table to obtain a first character space, moving each character in front of the first character space backwards by one character space to obtain a second character space, and inserting the characters corresponding to the target number into the second character space to obtain a target coding table;
for each added matrix empty position, determining the row number and the column number of the added matrix empty position in the target matrix, calculating the product of the row number and the column number of the matrix empty position in the target matrix, and taking the character corresponding to the number of the unit number of the product in the target coding table as the target character corresponding to the added matrix empty position to obtain the target matrix.
Table 1 standard encoding table:
table 2 target encoding table:
for example, table 1 is the standard encoding table, the transposed matrix is shown in formula (2), and since the number of columns is larger than the number of rows in formula (2), it is determined that the transposed matrix is a square matrix with the size of the number of columns, the number of columns of the transposed matrix is 6, the number of rows of the transposed matrix is 5, and the row number of the added matrix space in the square matrix is 6, that is, the target number is 6, it is known from table 1 that the character corresponding to the target number is G, and G is added to the character column of table 1Initial position, deleting G from the character string, and moving the numbers after the initial position and before G backward to obtain a target coding table as shown in Table 2, wherein the matrix empty space comprises matrix empty space 6,1 Matrix empty space 6,2 Matrix empty space 6,3 Matrix empty space 6,4 Matrix empty space 6,5 Sum matrix nulling 6,6 Matrix nulling 6,1 Matrix empty space 6,2 Matrix empty space 6,3 Matrix empty space 6,4 Matrix empty space 6,5 Sum matrix nulling 6,6 The products between row and column numbers are 6, 12, 18, 24, 30 and 36, respectively, as can be seen from Table 2 6,1 Matrix empty space 6,2 Matrix empty space 6,3 Matrix empty space 6,4 Matrix empty space 6,5 Sum matrix nulling 6,6 And F, B, I, D, G, F, respectively, and the obtained target matrix is shown in formula (3).
According to the embodiment, the target matrix is obtained by combining the characteristics of the transposed matrix with the preset standard coding table, so that the unpredictability of the target matrix is improved, the cracking difficulty of the identity of the biological asset is further improved, the difficulty of an unauthorized person to obtain the identity of the biological asset is increased, and the safety of the physiological state information of the biological asset is further improved.
;
In some embodiments, the generating the identity of each of the biological assets based on the initial matrix and the target matrix includes the steps of:
for each biological asset, acquiring a first row and column number corresponding to each character in the serial number corresponding to the biological asset in the initial matrix, and acquiring a second row and column number corresponding to each number in the serial number corresponding to the biological asset in the initial matrix;
respectively extracting first elements corresponding to each first row and column number from the target matrix, and sequencing each extracted first element based on the position of each extracted first element in the target matrix to obtain a first element sequence;
respectively extracting second elements corresponding to each second rank number from the target matrix, and sequencing each extracted second element based on the position of each extracted second element in the target matrix to obtain a second element sequence;
extracting characters in the first element sequence, and sequentially arranging the extracted characters to obtain a character sequence;
extracting numbers in the second element sequence, and sequentially arranging the extracted numbers to obtain a number sequence;
and sequentially inserting each number in the number sequence into a designated position of the character sequence to obtain the identity of the biological asset.
It is understood that the serial number corresponding to the biological asset refers to the serial number of the electronic ear tag worn by the biological asset.
By adopting the embodiment to set the identity for each biological asset, the unpredictability of the identity of the biological asset can be improved, so that the security of the physiological state information of the biological asset is improved.
In some embodiments, the historical physiological state information includes historical temperature information of the biological asset and historical number of steps of the biological asset, the evaluating the growth state of the biological asset based on the historical physiological state information includes:
calculating the temperature fluctuation value of the biological asset on the same day based on the historical temperature information, and comparing the temperature fluctuation value with a preset temperature fluctuation value;
calculating a fluctuation value of the walking steps of the biological asset on the same day based on the historical walking steps information, and comparing the fluctuation value of the walking steps with a preset fluctuation value of the walking steps;
and if the body temperature fluctuation value is not greater than the preset body temperature fluctuation value and the walking step number fluctuation value is not greater than the preset walking step number fluctuation value, judging that the growth state of the biological asset is good.
Illustratively, the method of calculating the temperature fluctuation value of the biological asset on the same day based on the historical temperature information is as follows:
biological body temperature fluctuation value = { |t 0 -[∑(T 1 +T 2 +T 3 ...+T 30 )/30]| }/approximately 30 balance average body temperature x 100%;
wherein T is 0 For the temperature value, T, of the biological asset at the preset time of the day 1 、T 2 、T 3 ...T 30 A body temperature value at the preset time of approximately 30 days for the biological asset.
Illustratively, the method for calculating the fluctuation value of the walking steps of the biological asset on the same day based on the historical walking steps information comprises the following steps:
fluctuation value of walking step number= { |d 0 -[∑(D 1 +D 2 +D 3 ...+D 7 )/7]I/average number of steps in near 7 days x 100%;
wherein D is 0 For the number of steps taken on the day of the biological asset, D 1 、D 2 、D 3 D7 is the number of steps taken by the biological asset in approximately seven days.
It is understood that the number of steps taken on the day of the biological asset refers to the number of steps taken during the period from the preset time of the previous day to the preset time of the day of the biological asset.
According to the method provided by the embodiment, when the body temperature fluctuation value is not larger than the preset body temperature fluctuation value and the walking step number fluctuation value is not larger than the preset walking step number fluctuation value, the growth state of the biological asset is judged to be good, the growth state of the biological asset can be strictly judged, the biological asset can be timely treated when the growth state of the biological asset is slightly abnormal, and the occurrence of the condition that the biological asset is casualty due to the fact that the biological asset is not timely treated when the biological asset is abnormal is prevented, so that economic loss is reduced.
Referring to fig. 2, fig. 2 is a schematic block diagram illustrating a structure of a growth status monitoring device 100 for a biological asset according to an embodiment of the present application, and as shown in fig. 2, the growth status monitoring device 100 for a biological asset includes:
the first obtaining module 110 is configured to obtain serial numbers of electronic ear tags worn by the biological assets, and generate identity identifiers of the biological assets based on all the serial numbers.
And the association module 120 is configured to associate, for each biological asset, an electronic ear tag worn by the biological asset with an identity of the biological asset.
The second obtaining module 130 is configured to obtain, for each biological asset, physiological status information of the biological asset in real time through an electronic ear tag worn by the biological asset, tag the physiological status information with a time tag, obtain target physiological status information, and store the target physiological status information in a database built in the electronic ear tag.
A third obtaining module 140, configured to obtain, for each of the biological assets, historical physiological status information of the biological asset from the database at a preset time of each day through an identity of the biological asset, and evaluate a growth status of the biological asset based on the historical physiological status information.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing embodiment of the method for monitoring the growth status of a biological asset, which is not described herein again.
The growth state monitoring apparatus 100 of biological assets provided by the above-described embodiments may be implemented in the form of a computer program that can be run on the terminal device 200 as shown in fig. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a structure of a terminal device 200 according to an embodiment of the present application, where the terminal device 200 includes a processor 201 and a memory 202, and the processor 201 and the memory 202 are connected through a system bus 203, and the memory 202 may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store a computer program. The computer program comprises program instructions which, when executed by the processor 201, cause the processor 201 to perform any of the methods of monitoring the growth status of a biological asset described above.
The processor 201 is used to provide computing and control capabilities supporting the operation of the overall terminal device 200.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by the processor 201, causes the processor 201 to perform any of the methods of monitoring the growth status of a biological asset described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation of the terminal device 200 related to the present application, and that a specific terminal device 200 may include more or less components than those shown in the drawings, or may combine some components, or have a different arrangement of components.
It should be appreciated that the processor 201 may be a central processing unit (Central Processing Unit, CPU), and the processor 201 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In some embodiments, the processor 201 is configured to execute a computer program stored in the memory to implement the following steps:
acquiring serial numbers of electronic ear tags worn by all biological assets, and generating identity marks of all the biological assets based on all the serial numbers;
for each biological asset, associating an electronic ear tag worn by the biological asset with an identity of the biological asset;
for each biological asset, acquiring the physiological state information of the biological asset in real time through an electronic ear tag worn by the biological asset, marking the physiological state information with a time tag to obtain target physiological state information, and storing the target physiological state information into a database arranged in the electronic ear tag;
for each biological asset, acquiring historical physiological state information of the biological asset from the database through the identity of the biological asset at preset time of each day, and evaluating the growth state of the biological asset based on the historical physiological state information.
It should be noted that, for convenience and brevity of description, the specific working process of the terminal device 200 described above may refer to the corresponding process of the method for monitoring the growth status of the biological asset, which is not described herein.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to implement a method for monitoring a growth state of a biological asset as provided by embodiments of the present application.
The computer readable storage medium may be an internal storage unit of the terminal device 200 of the foregoing embodiment, for example, a hard disk or a memory of the terminal device 200. The computer readable storage medium may also be an external storage device of the terminal device 200, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which the terminal device 200 is equipped with.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.