Animal husbandry veterinary medication information safety management method and system and medium
By analyzing the body temperature data and drug use information of livestock and poultry in the farm, evaluating the effectiveness and importance of drug use prevention measures, the problems of confidentiality and low resource utilization of animal husbandry and veterinary medicine information are solved, and efficient utilization of resources and safe protection of information are achieved.
Patent Information
- Application Number
- CN202510592642.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-06-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The confidentiality, reliability, resource utilization and safety of animal husbandry and veterinary drug information is low. The existing technology fails to effectively distinguish the disease prevention effects of different drug prevention measures, resulting in unreasonable resource allocation.
By obtaining the temperature data sequence of livestock and poultry in the farm and the drug use information sequence, combining the temperature changes and distances of livestock and poultry in the breeding sub-region under drug use prevention measures, the possibility of livestock and poultry infection in each external temperature change section is determined, the target livestock and poultry are selected and the effectiveness and confidentiality of drug use prevention measures are evaluated, and the length of the encryption key of drug use information is determined based on this.
It has achieved optimized resource allocation according to the disease prevention effects of different drug use prevention measures, and improved the confidentiality, resource utilization and safety of animal husbandry and veterinary drug information.
Smart Images

Figure CN120108637A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, system and medium for managing animal husbandry and veterinary medicine information security. Background Art
[0002] At a time when the livestock breeding industry is booming, the management of livestock and veterinary drug information is extremely important. Livestock and veterinary drug information refers to the complete record of drugs used by veterinarians during the growth of livestock and poultry. In breeding practice, breeders often add Chinese medicinal materials such as astragalus and codonopsis to feed to enhance the immunity of pigs and effectively reduce the chance of illness. Since the preventive medication measures taken by breeders in each stage of the farm are the core technology of a farm, it is very necessary to keep confidential the preventive medication measures taken by breeders at each stage.
[0003] In some scenarios, the same confidentiality level is uniformly applied to farmers' preventive medication measures at different stages, without fully considering that different preventive medication measures have significant differences in disease prevention effects under the same external environment. This situation leads to irrational resource allocation, with some measures with general preventive effects occupying too many confidentiality resources, while those key measures with excellent preventive effects and significant impact on breeding benefits have not received sufficient confidentiality strength protection. This unreasonable confidentiality method is not only not conducive to the efficient use of resources, but also makes it difficult to effectively protect the core technology of the farm, resulting in low confidentiality reliability, resource utilization and security of livestock and veterinary medication information. Summary of the invention
[0004] In order to solve the technical problems of low confidentiality reliability, resource utilization and security of animal husbandry and veterinary drug information, the purpose of the present invention is to provide a method, system and medium for security management of animal husbandry and veterinary drug information. The technical solutions adopted are as follows: In a first aspect, an embodiment of the present invention provides a method for secure management of livestock and veterinary medication information, comprising: obtaining a temperature data sequence and a medication information sequence of livestock and poultry in a farm during the breeding process; determining the possibility of livestock and poultry in the breeding sub-area under the medication prevention measures being infected with the disease in each external temperature change segment based on the temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area, and selecting livestock and poultry with a possibility greater than a first threshold as target livestock and poultry that are not affected by the external environment and are infected with the disease; determining the effectiveness of the medication prevention measures based on a first number of livestock and poultry in the breeding sub-area under the medication prevention measures and a second number of target livestock and poultry; determining the confidentiality importance of the current medication prevention measures based on the effectiveness of the current medication prevention measures and the effectiveness of other medication prevention measures, and determining the key length for encrypting the medication information of the medication prevention measures based on the confidentiality importance.
[0005] Optionally, determining the possibility of livestock and poultry in the breeding sub-area under the medication prevention measures being infected with the disease in each external temperature change segment according to the temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area includes: recording the time period in which the temperature data of multiple consecutive moments in the body temperature data sequence continuously increases as a temperature rising segment, and recording the time period in which the temperature data of multiple consecutive moments in the body temperature data sequence continuously decreases as a temperature falling segment; determining the first change consistency of the body temperature of the livestock and poultry and the temperature of the breeding sub-area where they are located according to the third number of livestock and poultry in the same temperature rising segment in the same breeding sub-area under each medication prevention measure in the medication information sequence and the first number of livestock and poultry in the breeding sub-area; determining the first change consistency of the body temperature of the livestock and poultry and the temperature of the breeding sub-area where they are located under the medication prevention measures according to the first change consistency, the second change consistency and the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas. the third change consistency of the temperature between the breeding sub-area where the poultry is located and other breeding sub-areas, and the second change consistency is the change consistency of the body temperature of livestock and poultry with the temperature of other breeding sub-areas; when the third change consistency is greater than the second threshold, it is determined that the external temperature of the livestock and poultry changes within the time corresponding to the temperature rise segment under the medication prevention measures, and the external temperature change segment is obtained; in each external temperature change segment, the reaction time of the livestock and poultry under the medication prevention measures is determined; according to the reaction time of different livestock and poultry in the breeding sub-area in the pairwise external temperature change segments, the physical differences of the livestock and poultry in the breeding sub-area under the medication prevention measures in the pairwise external temperature change segments are determined; according to the fourth change consistency and physical differences of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication prevention measures, the possibility of the livestock and poultry in the breeding sub-area under the medication prevention measures being infected with the disease in each external temperature change segment.
[0006] Optionally, based on the third number of livestock and poultry in the same temperature rise segment in the same breeding sub-area under each medication prevention measure in the medication information sequence and the first number of livestock and poultry in the breeding sub-area, determining the first change consistency between the body temperature of the livestock and poultry and the temperature of the breeding sub-area in which they are located includes: determining a first ratio between the third number and the first number as the first change consistency.
[0007] Optionally, determining the third change consistency of the temperature of the breeding sub-area where the livestock and poultry are located and other breeding sub-areas under drug prevention measures based on the first change consistency, the second change consistency and the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas includes: calculating the absolute value of the first difference between the first change consistency and the second change consistency, and normalizing the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas to obtain a first normalized value; calculating the first product between the first normalized value and the absolute value of the first difference; and normalizing the superposition of each first product to obtain a third change consistency.
[0008] Optionally, determining the physical differences of livestock and poultry in the breeding sub-area in pairwise external temperature change sections under drug prevention measures based on the reaction times of different livestock and poultry in the breeding sub-area in pairwise external temperature change sections includes: calculating the absolute value of the second difference in the reaction time of each pair of livestock and poultry in the breeding sub-area in the same external temperature change section, and normalizing the absolute value of the second difference to obtain a second normalized value; determining a weight coefficient based on the reaction time of each pair of livestock and poultry in the pairwise external temperature change sections, and calculating the second product between the second normalized value and the weight coefficient; and superimposing each second product to obtain the physical difference.
[0009] Optionally, determining the possibility of livestock and poultry in the breeding sub-area being infected with the disease in each external temperature change segment under the medication preventive measures based on the fourth change consistency of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication preventive measures and the body differences includes: calculating the absolute value of the third difference between the fourth change consistency of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication preventive measures, and normalizing the inverse of the absolute value of the third difference to obtain a third normalized value; calculating the third product between the third normalized value and the body difference, and superimposing and normalizing each third product to obtain the possibility.
[0010] Optionally, determining the effectiveness of the drug prevention measures based on the first number of livestock and poultry in the breeding sub-area under the drug prevention measures and the second number of target livestock and poultry includes: determining a second ratio between the second number and the first number of target livestock and poultry as the incidence rate of the breeding sub-area under the drug prevention measures; calculating the average incidence rate and variance of the incidence rate of all breeding sub-areas under the drug prevention measures; and performing inverse proportional normalization on the fourth product of the average incidence rate and the variance to obtain effectiveness.
[0011] Optionally, determining the confidentiality importance of the current medication precautions based on the effectiveness of the current medication precautions and the effectiveness of other medication precautions includes: superimposing the effectiveness of other medication precautions to obtain superimposed effectiveness; and determining a third ratio between the effectiveness of the current medication precautions and the superimposed effectiveness as the confidentiality importance of the current medication precautions.
[0012] In a second aspect, an embodiment of the present invention provides a livestock and veterinary drug information security management system, comprising: a processor and a memory; wherein the memory is used to store computer programs that can be run on the processor; the processor is used to execute the program stored in the memory to implement the steps of the livestock and veterinary drug information security management method mentioned in the first aspect.
[0013] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the livestock and veterinary drug information security management method mentioned in the first aspect are implemented.
[0014] The present invention has the following beneficial effects: first, the body temperature data sequence and medication information sequence of livestock and poultry in a breeding farm during the breeding process are obtained; then, according to the body temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area, the possibility of livestock and poultry in the breeding sub-area under the medication prevention measure being infected with the disease in each external temperature change segment is determined, and livestock and poultry with a possibility greater than a first threshold are selected as target livestock and poultry that are not affected by the external environment and are infected with the disease; secondly, according to the first number of livestock and poultry in the breeding sub-area under the medication prevention measure and the second number of target livestock and poultry, the effectiveness of the medication prevention measure is determined; finally, according to the effectiveness of the current medication prevention measure and the effectiveness of other medication prevention measures, the confidentiality importance of the current medication prevention measure is determined, and based on the confidentiality importance, the key length for encrypting the medication information of the medication prevention measure is determined.
[0015] In this way, the embodiment of the present invention can determine the effectiveness of each medication prevention measure according to the body temperature data sequence and medication information sequence of each livestock and poultry in the farm during the breeding process, and then determine the confidentiality importance of each medication prevention measure based on the effectiveness, and determine the key length for the medication information of each medication prevention measure based on the confidentiality importance, so that different key lengths are set according to the different disease prevention effects of different medication prevention measures, so that different medication prevention measures are classified and encrypted, achieving efficient use of resources, more effective protection of the core technology of the farm, and improving the confidentiality reliability, resource utilization and security of livestock and veterinary medication information. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A flowchart of a method for managing livestock and veterinary medicine information security provided by one embodiment of the present invention; Figure 2 A schematic diagram of the structure of a livestock and veterinary medicine information security management system provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a livestock and veterinary medicine information security management method, system and medium proposed by the present invention, its specific implementation method, structure, characteristics and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0019] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0020] The specific scenario targeted by the embodiments of the present invention is that livestock and poultry are susceptible to respiratory diseases when the seasons change, so breeders will take preventive medication measures at fixed times each year during the process of breeding livestock and poultry. For example, in the autumn and winter, breeders will not only place insulation measures such as heaters in the pig house, but also add Chinese medicinal materials such as astragalus and codonopsis to the pig feed to improve the pig's immunity, thereby reducing the possibility of pigs contracting diseases. Moreover, when the amount and proportion of Chinese medicine added to the pig feed are different under the same external environment, the preventive medication measures will have different effects on the prevention of pig diseases. Therefore, the embodiments of the present invention keep confidential to varying degrees the preventive medication measures taken by breeders for diseases in each external environment.
[0021] The specific scheme of the livestock and veterinary medicine information security management method provided by the present invention is described in detail below in conjunction with the accompanying drawings.
[0022] Embodiment 1: See also Figure 1 , which shows a flow chart of a method for managing livestock and veterinary medicine information security provided by an embodiment of the present invention, including: S101, obtaining the body temperature data sequence and medication information sequence of livestock and poultry in the breeding farm during the breeding process.
[0023] Specifically, the types of livestock and poultry include but are not limited to pigs, sheep, and horses. The body temperature data sequence refers to the body temperature sequence of each livestock and poultry collected during the breeding process according to the custom-set monitoring interval. The medication information sequence refers to the sequence of medication information used when implementing medication preventive measures for each livestock and poultry during the breeding process.
[0024] Furthermore, the breeding farm includes multiple breeding sub-areas. For example, when the livestock and poultry are pigs, the breeding farm includes multiple pig houses, each of which includes multiple pig pens, and each pig pen feeds multiple pigs. The embodiment of the present invention takes the livestock and poultry as pigs and the breeding sub-area as pig pens as an example to illustrate the technical solution of the embodiment of the present invention.
[0025] Furthermore, the embodiment of the present invention obtains the body temperature data sequence of each live pig in each pig house in the breeding farm during the breeding process and the medication information sequence of each pig house's medication prevention measures. Since the external environment will change in winter, and the medication prevention measures are determined based on the external environment, the medication prevention measures in the pig house will also change with the changes in the external environment. Among them, the medication prevention measures in the pig house refer to the amount and proportion of Chinese medicinal materials such as astragalus and codonopsis added to the pig feed to improve the pig's immunity.
[0026] S102, based on the body temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area, determine the possibility of livestock and poultry in the breeding sub-area under medication prevention measures being infected with the disease in each external temperature change segment, and select livestock and poultry with a possibility greater than a first threshold as target livestock and poultry that are not affected by the external environment and are infected with the disease.
[0027] Specifically, breeders will add Chinese medicinal herbs such as astragalus and codonopsis to pig feed in winter to improve pig immunity as a drug prevention measure to reduce the incidence of diseases in pigs in winter. Since the incidence of diseases in pigs under different drug prevention measures is different under the same external environment, the embodiment of the present invention calculates the preventive effect of each drug prevention measure on the disease under each external environment. Then, according to the number of pigs infected with the disease under each drug prevention measure, the disease prevention effect of each drug prevention measure is obtained. Since the external environment will continue to fluctuate under each drug prevention measure, some pigs that become ill in the drug prevention measures are infected with the disease due to changes in the external temperature. Therefore, the embodiment of the present invention calculates the possibility that each pig infected with the disease is not affected by the external temperature, and obtains pigs that are not infected with the disease due to changes in the external temperature. When the outside temperature changes, the indoor temperature of the pig house will also change. The pigs will respond to the change in indoor temperature by adjusting their own body temperature. Pigs with different physical fitness have different reaction times to the change in outside temperature. Therefore, the embodiment of the present invention determines whether the pigs are infected with the disease due to the change in the outside temperature based on the difference between the reaction time of each pig infected with the disease after the most recent change in the outside temperature before the pig was found to be infected with the disease and the reaction time of the pigs after other changes in the outside temperature, and then obtains the preventive effect of each medication preventive measure on the disease.
[0028] Further, as an optional embodiment of the present invention, according to the body temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area, determining the possibility of livestock and poultry in the breeding sub-area being infected with the disease in each external temperature change segment under the medication prevention measures includes: recording the time period in which the temperature data of multiple consecutive moments in the body temperature data sequence continuously increases as a temperature rising segment, and recording the time period in which the temperature data of multiple consecutive moments in the body temperature data sequence continuously decreases as a temperature falling segment; determining the first change consistency of the body temperature of the livestock and poultry and the temperature of the breeding sub-area where they are located according to the third number of livestock and poultry in the same temperature rising segment in the same breeding sub-area under each medication prevention measure in the medication information sequence and the first number of livestock and poultry in the breeding sub-area; determining the first change consistency according to the first change consistency, the second change consistency and the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas. The third change consistency of the temperature of the breeding sub-area where the livestock and poultry are located and other breeding sub-areas under the medication prevention measures, and the second change consistency is the change consistency of the body temperature of the livestock and poultry and the temperature of other breeding sub-areas; when the third change consistency is greater than the second threshold, it is determined that the external temperature of the livestock and poultry changes within the time corresponding to the temperature rise segment under the medication prevention measures, and the external temperature change segment is obtained; in each external temperature change segment, the reaction time of the livestock and poultry under the medication prevention measures is determined; according to the reaction time of different livestock and poultry in the breeding sub-area in the pairwise external temperature change segments, the physical differences of the livestock and poultry in the breeding sub-area under the medication prevention measures in the pairwise external temperature change segments are determined; according to the fourth change consistency and physical differences of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication prevention measures, the possibility of the livestock and poultry in the breeding sub-area under the medication prevention measures being infected with the disease in each external temperature change segment.
[0029] Specifically, under normal circumstances, the body temperature of pigs is constantly fluctuating up and down, and the time when the body temperature of different pigs fluctuates upward or downward is different, that is, at the same time, the body temperature of some pigs is changing upward while the body temperature of some pigs is changing downward. However, when the outside temperature changes, the temperature inside the pig house will change, so that the body temperature of the pigs in the pig house will change in the same direction for a period of time to cope with the change in the temperature of the pig house. Therefore, the embodiment of the present invention obtains the time period when the outside temperature changes based on the body temperature data sequence of all pigs in the pig house. Among them, if there are continuous temperature changes in a pig's body temperature data sequence, (Empirical value) If the value of a temperature data is constantly increasing or decreasing, the corresponding time period is recorded as a temperature rise section or a temperature drop section. When the pigs in the pig house are infected with a disease, the body temperature of the infected pigs will change in one direction within a period of time, that is, the infected pigs will also have a temperature rise section or a temperature drop section. However, when the body temperature of a sick pig changes in one direction, the body temperature of other healthy pigs will not change in one direction. Therefore, the embodiment of the present invention obtains the time period when the external temperature changes based on the temperature rise sections and temperature drop sections of multiple pigs in a pig house. One pig house contains multiple pig pens.
[0030] Further, as an optional embodiment of the present invention, determining the first change consistency between the body temperature of livestock and poultry and the temperature of the breeding sub-area in which they are located based on the third number of livestock and poultry in the same temperature rise segment in the same breeding sub-area under each medication prevention measure in the medication information sequence and the first number of livestock and poultry in the breeding sub-area includes: determining a first ratio between the third number and the first number as the first change consistency.
[0031] Specifically, the embodiment of the present invention is based on the Precautions under medication The first pig Take the temperature rise section as an example, and use the following formula to calculate the Precautions under medication The first pig In the temperature rise section The consistency of the first change in the temperature of the pig pen where the first pig is located: In the formula, Indicated in Precautions under medication The first pig In the temperature rise section The consistency of the first change in temperature of the pigpen where the pig is located. Indicates Precautions under medication The first number of pigs in the pigsty where the head pig is located. Indicated in The first medication precautions and Each pig is in its The temperature rise section and Piglet is the third number of pigs in a pen.
[0032] in, The larger the value is, the more it conforms to the characteristic that when the outside temperature changes, the body temperature of multiple pigs in the pig house will change at the same time, that is, Precautions under medication The first pig During the time corresponding to a temperature rise period, it is more likely that the external environment of the pig house will change.
[0033] Furthermore, when a pig is infected with an infectious disease, one pig may infect healthy pigs around it, causing the temperature of multiple pigs in a pigsty to change in the same direction, but when a pig is infected with a disease, multiple pigs in a pigsty will not be infected in a short period of time. Therefore, as an optional embodiment of the present invention, according to the first change consistency, the second change consistency and the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas, determining the third change consistency of the temperature of the breeding sub-area where the livestock and poultry are located and other breeding sub-areas under the drug prevention measure includes: Calculating the absolute value of the first difference between the first change consistency and the second change consistency, and normalizing the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas to obtain a first normalized value; A first product between the first normalized value and the absolute value of the first difference is calculated; each first product is superimposed and normalized to obtain a third change consistency.
[0034] Specifically, the embodiment of the present invention is based on the Precautions under medication The first pig Take the temperature rise section as an example, and use the following formula to calculate the Precautions under medication The consistency of the third change in temperature between the pigpen where the first pig is and the other pigpens: In the above formula, Indicated in Precautions under medication The first pig In the temperature rise section The third consistency of the temperature change between the pigpen where the head pig is located and other pigpens in the same pig house. Indicates the number of pig pens in a pig house. Indicates the other pig pens The pigsty and the The distance between the pigsties. Indicated in Precautions under medication The first pig In the temperature rise section The consistency of the first change in temperature of the pigpen where the pig is located. Indicated in Precautions under medication The first pig In the temperature rise section, the The first pig in the pigpen The second consistency of the change in temperature of the pig pens. Represents the weight normalization function, which is used to Perform normalization. Represents the absolute value function, which is used to Take the absolute value. Represents the inverse normalization function, which is used to Perform normalization.
[0035] Among them, the embodiment of the present invention is based on the distance between each pigpen and other pigpens. As a weight parameter, it avoids the phenomenon that when a pig is infected with a disease, it will infect the pigs around it. The smaller the value, the more likely it is that changes in external temperature will affect the pigs in the pig house.
[0036] Furthermore, because some pig pens in the pig house are close to windows or some pig pens face the sun, different pig pens in the pig house are affected differently by changes in the external environment. When the effects of two changes in external temperature on the pig house are similar, the effects of these two changes in the external environment on the pig pens in the pig house are also similar, that is, the consistency of the temperature changes of each pig house and other pig houses when the external environment changes for these two times is also similar. Therefore, according to the consistency of the temperature changes of each pig house and other pig houses when the external environment changes each time, the impact of each change in the external environment on the pig house is quantified.
[0037] Furthermore, the embodiment of the present invention presets a second threshold ,like , then in Disease prevention measures The first pig The outside temperature changes during the time corresponding to the temperature rise segment. Thus, multiple outside temperature change segments are obtained. Among them, the second threshold value can be determined according to actual experience, and the embodiment of the present invention does not limit it here.
[0038] Furthermore, when the external environment changes, the temperature of each pig in the pig house will also change, and when the external environment changes, the possibility of pigs being infected with diseases is greater. Therefore, the embodiment of the present invention calculates the impact of the changes in the external environment on each pig infected with the disease based on the similarity between the changes in the body temperature of each pig before and after the external environment changes and the changes in the body temperature of other pigs before and after the external environment changes. Since the physical fitness of each pig is different from that of other pigs, when the external environment changes, different pigs react at different times. When pigs are infected with diseases, the physical fitness of the pigs will change, resulting in differences in the time it takes for healthy pigs and unhealthy pigs to react to changes in the external environment; therefore, the embodiment of the present invention obtains the impact of the changes in the external environment on each pig infected with the disease based on the differences in the time it takes for each pig to react when the external environment changes multiple times.
[0039] Furthermore, each time the external environment changes, the specific steps of the time for each pig in each pigpen of a pig house to respond are as follows: When the external environment changes for the first time, In the external temperature change period, the first The pigsty is The body temperature of the first pig starts to move up or down continuously. Pigsty No. The reaction time of the first pig is Pig in the The difference between the collection time of the first data in the continuous upward data segment or the continuous downward data segment corresponding to the external temperature change and the collection time of the first data in the continuous data segment of the pig that first reacts in the same pigsty. Among them, the embodiment of the present invention is based on the collection time of the first body temperature data in a monotonically changing body temperature sequence of each pig in each pigsty. The pig whose first body temperature data changes first is the pig that reacts first in the pigsty. For example, assuming the Pigsty No. The temperature of the first pig continued to change for 40 seconds. Pigsty No. The temperature of the first pig was continuously changed for 60 seconds. The temperature of the first pig to respond among all the pigs in the pigpen starts to change continuously at 30 seconds. The reaction time of the first pig is 10s. The reaction time of a pig is 30s.
[0040] Furthermore, as an optional embodiment of the present invention, according to the reaction times of different livestock and poultry in the breeding sub-area in the pairwise external temperature change sections, determining the physical differences of livestock and poultry in the breeding sub-area under drug prevention measures in the pairwise external temperature change sections includes: calculating the absolute value of the second difference in the reaction time of each pair of livestock and poultry in the breeding sub-area in the same external temperature change section, and normalizing the absolute value of the second difference to obtain a second normalized value; determining a weight coefficient according to the reaction time of each pair of livestock and poultry in the pairwise external temperature change sections, and calculating the second product between the second normalized value and the weight coefficient; and superimposing each second product to obtain the physical difference.
[0041] Specifically, the embodiment of the present invention is based on the The first step of the pig house under the preventive measures of drug use The first Pig in the The external temperature change section and the Body differences during the external temperature change period: In the above formula, Indicates The first step of the pig house under the preventive measures of drug use The first Pig in the Before and after the external temperature change period Body differences before the external temperature changes. Indicates The first step of the pig house under the preventive measures of drug use The pigsty is in The number of live pigs contained in each external temperature change period. Represents the weight normalization function, which is used to Perform normalization. Indicates The first step of the pig house under the preventive measures of drug use The pigsty is in When the external temperature changes Pig and The absolute value of the second difference in the reaction time of the first pig. Indicates The first step of the pig house under the preventive measures of drug use The pigsty is in When the external temperature changes Pig and The weight coefficient of the absolute value of the second difference in the reaction time of the first pig.
[0042] Furthermore, in the embodiment of the present invention, when determining the weight coefficient At this time, if The first step of the pig house under the preventive measures of drug use The pigsty is in The first In the external temperature change section The reaction time of the first pig was greater than or less than that of the The reaction time of the pigs . If The first step of the pig house under the preventive measures of drug use The pigsty is in The first In the external temperature change section The reaction time of the first pig is greater than that of the second pig. The reaction time of the first pig was shorter than that of the second pig. The reaction time of the pigs .
[0043] Among them, if the body temperature of one pig always changes before the other pig in the two external temperature change sections, then the possibility of changes in the physical fitness of the two pigs is small. . The larger the value of The difference in reaction time during the external temperature change period is large, so if the two pigs The external temperature change section and the The sequence of reaction times for each external temperature change segment has changed, which can better reflect the changes in the pig's physical fitness.
[0044] Further, as an optional embodiment of the present invention, according to the fourth change consistency of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication prevention measures and the body differences, determining the possibility of livestock and poultry in the breeding sub-area being infected with the disease in each external temperature change segment under the medication prevention measures includes: calculating the absolute value of the third difference between the fourth change consistency of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication prevention measures, and normalizing the inverse of the absolute value of the third difference to obtain a third normalized value; calculating the third product between the third normalized value and the body difference, and superimposing and normalizing each third product to obtain the possibility.
[0045] Specifically, the embodiment of the present invention is based on the The first The first Pig in the As an example, the following formula is used to calculate the The first The first Pig in the The probability of contracting a disease during each external temperature change period: In the above formula, Indicates The first step of the pig house under the preventive measures of drug use The first Pig in the The possibility of contracting a disease during each period of external temperature change. Indicated in The first The external temperature change section The fourth consistency of changes in temperature between a pigpen and other pigpens. Indicated in The first The external temperature change section The fourth consistency of changes in temperature between a pigpen and other pigpens. Represents the absolute value function, which is used to Take the absolute value. Represents the normalization function, which is used to Perform normalization. Indicates The first step of the pig house under the preventive measures of drug use The first Pig in the Before and after the external temperature change period Body differences before the external temperature changes. Function is used to Perform normalization.
[0046] Among them, due to the changes in the outside temperature, some pig pens in the pig house Therefore, the embodiment of the present invention is based on Confirm the weight of the comparison results in each comparison process.
[0047] Furthermore, the first threshold value is preset in the embodiment of the present invention. ,like , then the infected pig is not infected by the change of the external environment, and it is recorded as a pig that is not affected by the external environment and is infected with the disease, that is, the target livestock and poultry. So far, all the pigs that are not affected by the external environment and are infected with the disease are obtained.
[0048] S103, determining the effectiveness of the medication prevention measure according to the first number of livestock and poultry in the breeding sub-area and the second number of target livestock and poultry under the medication prevention measure.
[0049] Specifically, after all the pigs that are not affected by the external environment and are infected with the disease are determined through the above-mentioned embodiment of the present invention, the embodiment of the present invention determines the effectiveness of the preventive medication measures based on the morbidity rate of the pigs in each pigsty.
[0050] Further, as an optional embodiment of the present invention, determining the effectiveness of the drug prevention measures based on the first number of livestock and poultry in the breeding sub-area under the drug prevention measures and the second number of target livestock and poultry includes: determining a second ratio between the second number and the first number of target livestock and poultry as the incidence rate of the breeding sub-area under the drug prevention measures; calculating the average incidence rate and variance of the incidence rate of all breeding sub-areas under the drug prevention measures; and performing inverse proportional normalization processing on the fourth product of the average incidence rate and the variance to obtain effectiveness.
[0051] Specifically, the embodiment of the present invention is based on the first The pigsty is in Take the first preventive measure of medication as an example, and use the following formula to calculate the first The pigsty is in The incidence of each medication precaution: In the above formula, Indicates the first The pigsty is in The incidence rate under each medication precaution. Indicates that the pig house should be Precautions when taking medication The first number of pigs contained in a pigsty. Indicates that the pig house should be Precautions when taking medication The second number of pigs in a pigpen that are not affected by the outside world and are infected with the disease.
[0052] At this point, the morbidity rate of pigs in each pen in each pig house under each drug prevention measure was obtained.
[0053] Further, the embodiment of the present invention uses the following formula to calculate Effectiveness of individual preventive medication measures: In the above formula, Indicates The effectiveness of preventive medication measures. Indicates that all the pig pens in the pig house are in the The mean incidence rate under each medication precaution. Indicates that all the pig pens in the pig house are in the The variance of the incidence rate under each medication prevention measure.
[0054] in, The smaller the value, the more likely the pigs in the pig house are The incidence rate under the preventive medication measure is lower, indicating that The more effective the preventive medication measure. The smaller the value, the Each preventive medication measure takes into account the different factors that affect different pig pens in the pig house. So far, the effectiveness of each preventive medication measure has been obtained.
[0055] S104, determining the confidentiality importance of the current medication precautions according to the effectiveness of the current medication precautions and the effectiveness of other medication precautions, and determining the length of a key for encrypting medication information of the medication precautions based on the confidentiality importance.
[0056] Specifically, after obtaining the effectiveness of the medication precautions, the embodiment of the present invention compares it with the effectiveness of other medication precautions to determine its confidentiality importance. Among them, as an optional embodiment of the present invention, determining the confidentiality importance of the current medication precautions according to the effectiveness of the current medication precautions and the effectiveness of other medication precautions includes: superimposing the effectiveness of other medication precautions to obtain the superimposed effectiveness; determining the third ratio between the effectiveness of the current medication precautions and the superimposed effectiveness as the confidentiality importance of the current medication precautions.
[0057] Specifically, the embodiment of the present invention uses the following formula to calculate the confidentiality importance of the current medication precautions: In the above formula, Indicates that breeders Importance of confidentiality in medication precautions. Indicates The effectiveness of preventive medication measures. Indicates The effectiveness of preventive medication measures. Indicates the number of preventive medication measures taken by farmers.
[0058] Furthermore, after obtaining the importance of confidentiality of individual medication precautions to the breeder, the embodiment of the present invention uses the AES advanced encryption standard to keep confidential the medical information corresponding to the breeder's medication precautions. Among them, the total key length of all medication precautions acceptable to the breeder is multiplied by the confidentiality importance of each medication precaution to obtain the key length when the medical information of the medication precautions is encrypted using the AES advanced encryption standard, and then the key is customized based on the key length and the medical information of the medication precautions is encrypted. The total key length of all medication precautions acceptable to the breeder can be customized according to actual conditions, and the embodiment of the present invention does not limit it here.
[0059] The embodiment of the present invention can determine the effectiveness of each medication prevention measure according to the body temperature data sequence and medication information sequence of each livestock and poultry in the farm during the breeding process, and then determine the confidentiality importance of each medication prevention measure based on the effectiveness, and determine the key length for the medication information of each medication prevention measure based on the confidentiality importance, so that different key lengths are set according to the different disease prevention effects of different medication prevention measures, so that different medication prevention measures are classified and encrypted, achieving efficient use of resources, more effective protection of the core technology of the farm, and improving the confidentiality reliability, resource utilization and security of animal husbandry medication information.
[0060] Embodiment 2: Corresponding to the livestock and veterinary drug information security management method provided in the above embodiment, based on the same technical concept, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, the steps of the livestock and veterinary drug information security management method mentioned in the above embodiment are implemented.
[0061] It should be noted that the computer-readable storage medium provided by the embodiment of the present invention and the livestock and veterinary drug information security management method provided by the embodiment of the present invention are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned livestock and veterinary drug information security management method, and has the same or similar beneficial effects, and the repeated parts will not be repeated.
[0062] Embodiment three: Corresponding to the livestock and veterinary medicine information security management method provided in the above embodiment, based on the same technical concept, the embodiment of the present invention also provides a livestock and veterinary medicine information security management system, which is used to execute the livestock and veterinary medicine information security management method. Figure 2 A schematic diagram of a livestock and veterinary medicine information security management system provided by another embodiment of the present invention is shown in FIG. Figure 2The livestock and veterinary drug information security management system may have relatively large differences due to different configurations or performances, and may include one or more processors 201 and memory 202, the memory 202 is used to store computer programs that can be run on the processor 201, and the processor 201 is used to execute the program stored in the memory 202 to achieve the above Figure 1 The memory 202 may be a temporary storage or a permanent storage. The application stored in the memory 202 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the livestock and veterinary drug information security management system.
[0063] Furthermore, the processor 201 can be configured to communicate with the memory 202, and execute a series of computer executable instructions in the memory 202 on the livestock and veterinary drug information safety management system. The livestock and veterinary drug information safety management system can also include one or more power supplies 203, one or more wired or wireless network interfaces 204, one or more input and output interfaces 205, and one or more keyboards 206.
[0064] Specifically in this embodiment, the livestock and veterinary drug information security management system includes a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve the above Figure 1 The various steps in the method embodiment are similar to those in the method embodiment, and have the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present invention will not be described in detail here.
[0065] It should be noted that the livestock and veterinary medication information security management system provided by the embodiment of the present invention and the livestock and veterinary medication information security management method provided by the embodiment of the present invention are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned livestock and veterinary medication information security management method, and has the same or similar beneficial effects, and the repeated parts will not be repeated.
[0066] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0067] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for the security management of animal husbandry and veterinary medicine information, characterized in that: The animal husbandry and veterinary medicine information security management method comprises: Obtain the body temperature data sequence and medication information sequence of livestock and poultry in the breeding farm during the breeding process; According to the body temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area, determine the possibility of the livestock and poultry in the breeding sub-area being infected with the disease under the medication prevention measure in each external temperature change section, and select the livestock and poultry with the possibility greater than the first threshold as the target livestock and poultry that are not affected by the external environment and are infected with the disease; Determining the effectiveness of the medication prevention measure according to the first number of livestock and poultry in the breeding sub-area and the second number of the target livestock and poultry under the medication prevention measure; The confidentiality importance of the current medication precautions is determined according to the effectiveness of the current medication precautions and the effectiveness of other medication precautions, and the length of the key for encrypting the medication information of the medication precautions is determined based on the confidentiality importance.
2. The method for security management of animal husbandry and veterinary medicine information according to claim 1, characterized in that: The method of determining the possibility of the livestock and poultry in the breeding sub-area being infected with a disease in each external temperature change section under the medication prevention measures according to the temperature data sequence of each livestock and poultry in the breeding sub-area under each medication prevention measure in the medication information sequence and the distance between each breeding sub-area comprises: The time period during which the temperature data of multiple consecutive moments in the body temperature data sequence continuously increases is recorded as a temperature rising period, and the time period during which the temperature data of multiple consecutive moments in the body temperature data sequence continuously decreases is recorded as a temperature decreasing period; Determine a first change consistency between the body temperature of the livestock and poultry and the temperature of the breeding sub-area where the livestock and poultry are located according to a third number of livestock and poultry in the same temperature rising section in the same breeding sub-area under each medication prevention measure in the medication information sequence and the first number of livestock and poultry in the breeding sub-area; Determine, according to the first change consistency, the second change consistency and the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas, a third change consistency of the temperature of the breeding sub-area where the livestock and poultry are located and other breeding sub-areas under the medication prevention measure, wherein the second change consistency is the change consistency of the body temperature of the livestock and poultry and the temperature of other breeding sub-areas; When the third change consistency is greater than the second threshold, determining that the external temperature of the livestock and poultry changes during the time corresponding to the temperature rise segment under the medication prevention measure, and obtaining the external temperature change segment; In each of the external temperature change sections, determining the reaction time of the livestock and poultry under the medication prevention measures; Determining the physical differences of the livestock and poultry in the breeding sub-area in the pairwise external temperature change sections under the medication prevention measures according to the reaction times of the different livestock and poultry in the breeding sub-area in the pairwise external temperature change sections; According to the fourth change consistency of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication prevention measures and the body differences, the possibility of the livestock and poultry in the breeding sub-area being infected with the disease in each external temperature change segment under the medication prevention measures is determined.
3. The method for managing the information security of animal husbandry and veterinary medicines according to claim 2, characterized in that: The determining of the first change consistency between the body temperature of the livestock and poultry and the temperature of the breeding sub-area where the livestock and poultry are located according to the third number of livestock and poultry in the same temperature rising section in the same breeding sub-area under each medication prevention measure in the medication information sequence and the first number of livestock and poultry in the breeding sub-area comprises: A first ratio between the third amount and the first amount is determined as the first change consistency.
4. The method for security management of animal husbandry and veterinary medicine information according to claim 2, characterized in that: Determining the third change consistency of the temperature between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas under the medication prevention measure based on the first change consistency, the second change consistency and the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas includes: Calculating an absolute value of a first difference between the first change consistency and the second change consistency, and normalizing the distance between the breeding sub-area where the livestock and poultry are located and other breeding sub-areas to obtain a first normalized value; Calculating a first product between the first normalized value and the absolute value of the first difference; The first products are superimposed and normalized to obtain the third change consistency.
5. The method for managing livestock and veterinary medicine information security according to claim 2, characterized in that: The method of determining the physical differences of the livestock and poultry in the breeding sub-area in the two-by-two external temperature change sections under the medication prevention measures according to the reaction times of the different livestock and poultry in the breeding sub-area in the two-by-two external temperature change sections includes: Calculating the absolute value of the second difference in reaction time of each pair of livestock and poultry in the breeding sub-area in the same external temperature change section, and normalizing the absolute value of the second difference to obtain a second normalized value; Determine a weight coefficient according to the reaction time of each pair of livestock and poultry in each pair of external temperature change sections, and calculate a second product between the second normalized value and the weight coefficient; The second products are superimposed to obtain the body difference.
6. The method for managing livestock and veterinary medicine information security according to claim 2, characterized in that: The determination of the possibility of the livestock and poultry in the breeding sub-area being infected with the disease in each external temperature change segment under the medication prevention measure according to the fourth change consistency of the temperature between the breeding sub-area and other breeding sub-areas in each external temperature change segment under the medication prevention measure and the body difference comprises: Calculating the absolute value of the third difference between the fourth change consistency of the temperature of the breeding sub-area and other breeding sub-areas in the two-by-two external temperature change sections under the medication prevention measure, and normalizing the reciprocal of the absolute value of the third difference to obtain a third normalized value; A third product between the third normalized value and the body difference is calculated, and each of the third products is superimposed and normalized to obtain the possibility.
7. The method for security management of animal husbandry and veterinary medicine information according to claim 1, characterized in that: The determining the effectiveness of the medication prevention measure according to the first number of livestock and poultry in the breeding sub-area and the second number of the target livestock and poultry under the medication prevention measure includes: Determine a second ratio between the second number and the first number of the target livestock and poultry as the incidence rate of the breeding sub-area under the drug prevention measure; Calculate the mean incidence and variance of the incidence rate under the said drug prevention measures in all the breeding sub-areas; The fourth product of the mean incidence rate and the variance is inversely normalized to obtain the effectiveness.
8. The method for security management of animal husbandry and veterinary medicine information according to claim 1, characterized in that: The importance of maintaining confidentiality of the current medication precautions based on the effectiveness of the current medication precautions and the effectiveness of other medication precautions includes: The effectiveness of the other medication prevention measures is superimposed to obtain superimposed effectiveness; A third ratio between the effectiveness of the current medication precautions and the superimposed effectiveness is determined as the confidentiality importance of the current medication precautions.
9. A livestock and veterinary medicine information security management system, characterized in that: include: A processor and a memory; wherein the memory is used to store a computer program that can be run on the processor; A processor is used to execute the program stored in the memory to implement the steps of the livestock and veterinary drug information security management method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for secure management of livestock and veterinary drug information as described in any one of claims 1 to 8.