Farm risk prediction method, device, equipment and storage medium
By obtaining the location information and risk factors of the farm and inputting the risk prediction model, the problem of the inability to quickly and accurately obtain the risk situation of the farm in the existing technology is solved, and the efficiency and accuracy of epidemic prevention and control are improved.
Patent Information
- Application Number
- CN202010130757.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-02-28
AI Technical Summary
Existing technology cannot quickly and accurately obtain the risk status of farms, resulting in poor animal epidemic prevention and control effects.
By obtaining the location information of the farm, the target geographical range is determined, the risk influencing factors are screened, the risk prediction model is input to calculate the risk coefficient, and then the risk level is predicted, and target prevention and control measures are formulated according to the preset prevention and control plan.
It improves the efficiency and accuracy of risk prediction on farms, enables rapid response to the spread of the epidemic, and ensures the pertinence and effectiveness of epidemic prevention and control work.
Smart Images

Figure CN111126720B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device, equipment and storage medium for predicting risks in a farm. Background Art
[0002] African swine fever is an acute, febrile, highly contagious animal disease of pigs caused by the African swine fever virus, with a mortality rate of up to 100%. Since the first case of African swine fever in China was confirmed by the China Animal Health and Epidemiology Center, African swine fever outbreaks have occurred in some provinces of China, causing serious losses. Once an animal infectious disease like African swine fever is discovered, it is necessary to take quick and accurate prevention and control measures to prevent the continued expansion of the epidemic and cause adverse effects on all aspects of society. In order to make quick and accurate prevention and control measures, it is necessary to quickly and accurately understand the risk situation of each farm. However, the current situation is that for the risk assessment of farms, experts need to conduct on-site inspections of the farms for assessment, or rely on farmers to report risk information on the farms. However, the expert on-site inspection plan is obviously inefficient and difficult to cope with sudden and rapidly spreading epidemics; farmers' active reporting may result in farmers concealing breeding risk information, and farmers also find it difficult to accurately estimate risks, resulting in low accuracy of risk assessment. The inability to quickly and accurately obtain the risk situation of farms will lead to poor prevention and control results. Summary of the invention
[0003] The main purpose of the present invention is to provide a farm risk prediction method, device, equipment and storage medium, aiming to solve the problem that the risk situation of farms cannot be quickly and accurately obtained for animal epidemics, resulting in poor prevention and control results.
[0004] To achieve the above object, the present invention provides a method for predicting risk in a breeding farm, and the method comprises the following steps:
[0005] Acquire first location information of a breeding farm to be predicted, and determine a target geographical range corresponding to the breeding farm to be predicted based on the first location information;
[0006] According to the preset second position information of each risk influencing factor, select target influencing factors that fall within the target geographical range from each risk influencing factor;
[0007] Obtain the impact data corresponding to the target impact factor, and input the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted.
[0008] Optionally, the target influencing factors include a target waterway network and a target breeding farm, and the step of obtaining the influencing data corresponding to the target influencing factors includes:
[0009] Determine a waterway network density characteristic value of the target geographical range according to the second location information of the target waterway network and the target geographical range;
[0010] Determine a farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range;
[0011] The waterway network density characteristic value and the farm density characteristic value are used as the influencing data.
[0012] Optionally, the step of determining the farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range includes:
[0013] Determining the breeding farm area of the target breeding farm according to the second location information of the target breeding farm;
[0014] Determining the total breeding capacity of the target breeding farm according to the area of the breeding farm and a preset corresponding relationship between the area and the breeding capacity;
[0015] The farm density characteristic value of the target geographical range is calculated based on the total breeding quantity and the area of the target geographical range.
[0016] Optionally, the step of determining the waterway network density characteristic value of the target geographical range according to the second location information of the target waterway network and the target geographical range includes:
[0017] Determine the waterway network length or waterway network area of the target waterway network according to the second position information of the target waterway network;
[0018] The characteristic value of the waterway network density of the target geographical range is calculated based on the length of the waterway network and the area of the target geographical range, or the characteristic value of the waterway network density of the target geographical range is calculated based on the area of the waterway network and the area of the target geographical range.
[0019] Optionally, the risk prediction model includes preset weight values corresponding to each of the impact data, and the step of inputting the impact data into the preset risk prediction model to obtain the risk prediction result of the farm to be predicted includes:
[0020] Inputting each of the impact data into the risk prediction model, so as to call the risk prediction model to calculate the risk coefficient of the farm to be predicted based on the weight value and each of the impact data;
[0021] The risk coefficient is used as the risk prediction result of the farm to be predicted, or after the risk level is determined according to the risk coefficient and the preset corresponding relationship between the coefficient and the level, the risk level is used as the risk prediction result of the farm to be predicted.
[0022] Optionally, before the step of screening target influencing factors falling within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor, the step further includes:
[0023] Inputting the map to be identified into the influencing factor detection model to obtain the classification category of each pixel point in the map to be identified, wherein the influencing factor detection model is pre-trained;
[0024] Determining target pixel points belonging to risk influencing factors from each of the pixel points based on the classification category;
[0025] The actual position of each target pixel is determined according to the scale of the map to be identified, and the second position information of each risk influencing factor is obtained based on the actual position.
[0026] Optionally, the risk influencing factors include a waterway network, and before the step of inputting the map to be identified into the influencing factor detection model to obtain the classification category of each pixel point in the map to be identified, the step further includes:
[0027] The semantic segmentation model to be trained is initially trained using positive training data, wherein the positive training data includes a plurality of pre-collected remote sensing satellite maps containing waterway networks, and waterway network annotation data corresponding to each remote sensing map satellite;
[0028] Adopting negative training data, or using the negative training data and the positive training data to adjust the semantic segmentation model after preliminary training, wherein the negative training data includes a plurality of pre-collected remote sensing satellite maps that do not include waterway networks;
[0029] When it is detected that the adjusted model to be trained meets the preset model conditions, the adjusted semantic segmentation model is used as the influencing factor detection model, otherwise the step is executed again based on the adjusted semantic segmentation model: the semantic segmentation model to be trained is preliminarily trained using positive example training data.
[0030] Optionally, after the step of obtaining the impact data corresponding to the target impact factor and inputting the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted, the step further includes:
[0031] According to the risk prediction result, a target prevention and control plan for the farm to be predicted is determined from various preset prevention and control plans, and the target prevention and control plan is output.
[0032] To achieve the above object, the present invention further provides a farm risk prediction device, the farm risk prediction device comprising:
[0033] An acquisition module, used for acquiring first location information of a breeding farm to be predicted, and determining a target geographical range corresponding to the breeding farm to be predicted based on the first location information;
[0034] A screening module, configured to screen target influencing factors that fall within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor;
[0035] The prediction module is used to obtain the impact data corresponding to the target impact factor, and input the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted.
[0036] To achieve the above-mentioned purpose, the present invention also provides a farm risk prediction device, which includes: a memory, a processor, and a farm risk prediction program stored in the memory and executable on the processor, and the farm risk prediction program, when executed by the processor, implements the steps of the farm risk prediction method as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a farm risk prediction program is stored. When the farm risk prediction program is executed by a processor, the steps of the farm risk prediction method as described above are implemented.
[0038] In the present invention, by obtaining the first position information of the farm to be predicted, the target geographical range corresponding to the farm to be predicted is determined according to the first position information; according to the preset second position information of each risk influencing factor, the target influencing factor falling into the target geographical range is screened from each risk influencing factor; the impact data of the target influencing factor is input into the risk prediction model to obtain the risk prediction result of the farm to be predicted. In the present invention, for the farms to be predicted in various places, the impact data of the risk influencing factors corresponding to the target geographical range of the farm to be predicted is obtained, and a risk prediction model is set to process the impact data, so that the risk prediction result of the farm to be predicted can be obtained; there is no need for experts to conduct on-site inspections of the situation of each farm, thereby improving the efficiency of risk prediction of the farm, and being more able to cope with the situation of rapid spread of the epidemic; compared with the solution of farmers actively reporting risk situations, the unified risk prediction model is adopted in this embodiment, which can more accurately predict the risk situation of each farm; based on the fast and accurate risk prediction results, the epidemic prevention and control work can be carried out more quickly and in a targeted manner to avoid the epidemic from getting out of control. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of the process of the first embodiment of the method for predicting risk in a farm according to the present invention;
[0041] Figure 3 Functional schematic module diagram of a preferred embodiment of the farm risk prediction device of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0045] It should be noted that the farm risk prediction device in the embodiment of the present invention can be a smart phone, a personal computer, a server and other devices, and no specific limitation is made here.
[0046] like Figure 1 As shown, the farm risk prediction device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0047] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the farm risk prediction device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0048] like Figure 1As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a farm risk prediction program. The operating system is a program for managing and controlling device hardware and software resources, and supports the operation of the farm risk prediction program and other software or programs.
[0049] exist Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the farm risk prediction program stored in the memory 1005 and perform the following operations:
[0050] Acquire first location information of a breeding farm to be predicted, and determine a target geographical range corresponding to the breeding farm to be predicted based on the first location information;
[0051] According to the preset second position information of each risk influencing factor, select target influencing factors that fall within the target geographical range from each risk influencing factor;
[0052] Obtain the impact data corresponding to the target impact factor, and input the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted.
[0053] Furthermore, the target influencing factors include a target waterway network and a target breeding farm, and the step of obtaining the influencing data corresponding to the target influencing factors includes:
[0054] Determine a waterway network density characteristic value of the target geographical range according to the second location information of the target waterway network and the target geographical range;
[0055] Determine a farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range;
[0056] The waterway network density characteristic value and the farm density characteristic value are used as the influencing data.
[0057] Furthermore, the step of determining the farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range includes:
[0058] Determining the breeding farm area of the target breeding farm according to the second location information of the target breeding farm;
[0059] Determining the total breeding capacity of the target breeding farm according to the area of the breeding farm and a preset corresponding relationship between the area and the breeding capacity;
[0060] The farm density characteristic value of the target geographical range is calculated based on the total breeding quantity and the area of the target geographical range.
[0061] Furthermore, the step of determining the waterway network density characteristic value of the target geographical range according to the second location information of the target waterway network and the target geographical range includes:
[0062] Determine the waterway network length or waterway network area of the target waterway network according to the second position information of the target waterway network;
[0063] The characteristic value of the waterway network density of the target geographical range is calculated based on the length of the waterway network and the area of the target geographical range, or the characteristic value of the waterway network density of the target geographical range is calculated based on the area of the waterway network and the area of the target geographical range.
[0064] Furthermore, the risk prediction model includes preset weight values corresponding to the respective impact data, and the step of inputting the impact data into the preset risk prediction model to obtain the risk prediction result of the farm to be predicted includes:
[0065] Inputting each of the impact data into the risk prediction model, so as to call the risk prediction model to calculate the risk coefficient of the farm to be predicted based on the weight value and each of the impact data;
[0066] The risk coefficient is used as the risk prediction result of the farm to be predicted, or after the risk level is determined according to the risk coefficient and the preset corresponding relationship between the coefficient and the level, the risk level is used as the risk prediction result of the farm to be predicted.
[0067] Furthermore, before the step of screening the target influencing factors falling within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor, the processor 1001 may also be used to call the farm risk prediction program stored in the memory 1005 to perform the following operations:
[0068] Inputting the map to be identified into the influencing factor detection model to obtain the classification category of each pixel point in the map to be identified, wherein the influencing factor detection model is pre-trained;
[0069] Determining target pixel points belonging to risk influencing factors from each of the pixel points based on the classification category;
[0070] The actual position of each target pixel is determined according to the scale of the map to be identified, and the second position information of each risk influencing factor is obtained based on the actual position.
[0071] Furthermore, the risk influencing factors include a waterway network. Before the step of inputting the map to be identified into the influencing factor detection model to obtain the classification category of each pixel point in the map to be identified, the processor 1001 can also be used to call the farm risk prediction program stored in the memory 1005 to perform the following operations:
[0072] The semantic segmentation model to be trained is initially trained using positive training data, wherein the positive training data includes a plurality of pre-collected remote sensing satellite maps containing waterway networks, and waterway network annotation data corresponding to each remote sensing map satellite;
[0073] Adopting negative training data, or using the negative training data and the positive training data to adjust the semantic segmentation model after preliminary training, wherein the negative training data includes a plurality of pre-collected remote sensing satellite maps that do not include waterway networks;
[0074] When it is detected that the adjusted model to be trained meets the preset model conditions, the adjusted semantic segmentation model is used as the influencing factor detection model, otherwise the step is executed again based on the adjusted semantic segmentation model: the semantic segmentation model to be trained is preliminarily trained using positive example training data.
[0075] Further, after the step of obtaining the impact data corresponding to the target impact factor and inputting the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted, the processor 1001 can also be used to call the farm risk prediction program stored in the memory 1005 to perform the following operations:
[0076] According to the risk prediction result, a target prevention and control plan for the farm to be predicted is determined from various preset prevention and control plans, and the target prevention and control plan is output.
[0077] Based on the above structure, various embodiments of the farm risk prediction method are proposed.
[0078] Reference Figure 2 , Figure 2 This is a flow chart of the first embodiment of the farm risk prediction method of the present invention.
[0079] The embodiments of the present invention provide embodiments of a method for predicting farm risks. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here. The execution subjects of each embodiment of the method for predicting farm risks of the present invention may be devices such as smart phones, personal computers, and servers. For ease of description, the execution subjects are omitted in the following embodiments. In this embodiment, the method for predicting farm risks includes:
[0080] Step S10, obtaining first location information of a breeding farm to be predicted, and determining a target geographical range corresponding to the breeding farm to be predicted based on the first location information;
[0081] For a farm that needs to predict risks, the location information of the farm can be obtained first, and the farm can be used as a farm to be predicted. Among them, the risk can refer to the extent to which the farm may be affected when an animal infectious disease such as swine fever spreads. There are many ways to obtain the location information of the farm; for example, it can be obtained from a map, and based on the obtained electronic map data, the relevant information of the farm can be extracted from the map data, including the location information of the farm; it can also be extracted from the farm data reported by the breeder or the farm data collected in advance; there can also be other methods, which are not listed here one by one. The farm can be regarded as a point (the center point of the farm), and the location information is the location information of the point; or the farm can be regarded as an area, and the location information is the location information of the area. The location information can be the longitude and latitude of the farm, or the coordinates in a pre-established specific coordinate system, etc.
[0082] Based on the first location information of the farm to be predicted, the target geographical range corresponding to the farm to be predicted is determined. It should be noted that for the farm to be predicted, in order to predict the risk of the farm, the principle adopted in this embodiment is that the relevant data of the area around the farm can be used as the basis for judging the risk of the farm, and the target geographical range can be the area around the farm determined. Specifically, a variety of methods can be used to determine the area; for example, a radius value can be set in advance, with the farm as the center of the circle and the radius value as the radius, and the circular area divided can be used as the target geographical range corresponding to the farm. According to the location information of the farm and the radius value, the location of the target geographical area can be determined; it can also be the farm as the center of the rectangle, and the matrix side length value can be set in advance to divide a matrix area as the target geographical range of the farm; there are other feasible methods. Different methods can be used to determine the target geographical range according to different actual application scenarios, which are not listed here one by one.
[0083] Step S20, screening target influencing factors that fall within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor;
[0084] Various types of risk influencing factors can be specified in advance, such as farms, water networks, road networks and villages, etc., which are different types of influencing factors. Among them, water networks can refer to rivers and lakes of various sizes, etc., and road networks can refer to various types of roads, such as national highways, expressways, etc. In the following, water networks and road networks are collectively referred to as "water network", which can mean that water networks and road networks are treated as a whole or separately. Data of various risk influencing factors in an area can be collected in advance. For example, data of risk influencing factors of a certain city or district can be collected, that is, data of various farms, data of various water networks, data of various road networks, etc. in this area can be collected; the data can specifically include the location, size, etc. of risk influencing factors, and the data is different according to the type of risk influencing factors. For example, the collected farm data can include the location information, area and output of the farm, etc., and the collected water network data can include the location information and length of the water network. The collection of these data can be directly extracted from electronic map data.
[0085] After obtaining the data of each risk influencing factor, the target influencing factors that fall into the target geographical range are screened from each risk influencing factor according to the second position information of each risk influencing factor. Specifically, for each risk influencing factor, it can be determined whether the second position information of the risk influencing factor is within the target geographical range. If so, it is determined that the risk influencing factor is within the target geographical range. If not, it is determined that the risk influencing factor is not within the target geographical range; the risk influencing factors determined to be within the target geographical range are taken as target influencing factors. That is, it is necessary to determine which farms, water networks, etc. in an area are within the target geographical range corresponding to the farms to be predicted. For example, when the location information is longitude and latitude, the location of the target geographical range can be composed of a longitude interval and a latitude interval. Then it is necessary to determine whether the longitude of each risk influencing factor falls within the longitude interval and whether the latitude falls within the latitude interval. If both fall within, it is determined that the risk influencing factor falls within the target geographical range.
[0086] Step S30, obtaining the impact data corresponding to the target impact factor, and inputting the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted.
[0087] Obtain the impact data corresponding to the target influencing factor, input the impact data into the preset risk prediction model, and obtain the risk prediction result of the farm to be predicted. Specifically, a risk prediction model can be set in advance. The risk prediction model can be a model structure such as a linear model or a neural network model. If it is a neural network model, it is necessary to train the neural network model in advance, and take the model obtained after training to perform risk prediction. The training process of the neural network model can refer to the existing neural network model training process, which will not be described in detail here. The setting principle of the risk prediction model is: when the input data represents the target influencing factors within the target geographical range, the more and denser, the output risk prediction result represents the higher risk of the farm to be predicted. The input data of the risk prediction model can be set according to the situation, and the input data is called impact data. The impact data of the target influencing factor can be different according to the type of the target influencing factor; for example, for a farm, the impact data can be the total area of the farm within the target geographical range, and for a waterway network, the impact data can be the total area of the waterway network within the target geographical range.
[0088] The impact data is input into the risk prediction model, and after the risk prediction model processes the impact data, the risk prediction result of the farm to be predicted is output. The risk prediction result can be in various forms, for example, it can be a score or a level. The risk level corresponding to various scores or levels can be pre-specified, for example, the score is 0 to 10 points, and the risk level gradually increases from 0 to 10.
[0089] In this embodiment, by obtaining the first location information of the farm to be predicted, the target geographical range corresponding to the farm to be predicted is determined according to the first location information; according to the preset second location information of each risk influencing factor, the target influencing factor falling into the target geographical range is screened from each risk influencing factor; the impact data of the target influencing factor is input into the risk prediction model to obtain the risk prediction result of the farm to be predicted. In this embodiment, for the farms to be predicted in various places, the impact data of the risk influencing factors within the target geographical range corresponding to the farm to be predicted is obtained, and a risk prediction model is set to process the impact data, so that the risk prediction result of the farm to be predicted can be obtained; there is no need for experts to conduct on-site inspections of each farm, thereby improving the efficiency of risk prediction of the farm, and being more able to cope with the rapid spread of the epidemic; compared with the solution of farmers actively reporting risk conditions, the unified risk prediction model used in this embodiment can more accurately predict the risk conditions of each farm; based on the fast and accurate risk prediction results, the epidemic prevention and control work can be carried out more quickly and in a targeted manner to avoid the epidemic from getting out of control.
[0090] Furthermore, after step S30, the method further includes:
[0091] Step S40, determining a target prevention and control plan for the farm to be predicted from various preset prevention and control plans according to the risk prediction result, and outputting the target prevention and control plan.
[0092] Furthermore, different prevention and control plans can be set in advance for different risk prediction results. When the risk prediction results of the farm to be predicted are obtained, the appropriate prevention and control plan is matched from each prevention and control plan according to the risk prediction results, and the matched prevention and control plan is determined as the target prevention and control plan of the farm to be predicted, and the target prevention and control plan can be output. The output method can be output to a display screen for display, or it can be output in voice mode. The output method can be set differently according to the specific application scenario. By directly outputting and displaying the prevention and control plan of the farm to be predicted, the user can intuitively know the prevention and control plan, so as to carry out prevention and control work according to the prevention and control plan. In particular, for users who need to take prevention and control measures but do not know what prevention and control means are available, or do not understand the risk situation of the farm, such as farmers, or residents around the farm, it is also very convenient to directly obtain the prevention and control means that match the risk situation of the farm, which is more conducive to the development of prevention and control work.
[0093] The risk prediction method based on this embodiment can be actually applied in the form of mobile phone or computer application software, so that users can input relevant information of the farm to be predicted, such as location information, based on the installed application, and directly obtain the risk prediction results of the farm to be predicted, or even the prevention and control plan.
[0094] Further, based on the above-mentioned first embodiment, a second embodiment of the farm risk prediction method of the present invention is proposed. In this embodiment, the target influencing factors include a target waterway network and a target farm. The step of obtaining the influencing data corresponding to the target influencing factors in step S30 includes:
[0095] Step S301, determining a waterway network density characteristic value of the target geographical range according to the second location information of the target waterway network and the target geographical range;
[0096] Further, in this embodiment, the target influencing factors may be target waterway networks and target breeding farms. That is, the types of risk influencing factors may include waterway networks and breeding farms. After the target breeding farms and target waterway networks falling within the target geographical range are determined, the impact data of the target breeding farms and target waterway networks may be obtained.
[0097] Specifically, the waterway density characteristic value of the target geographical range is determined according to the second location information of the target waterway network and the target geographical range. There are many ways to calculate the waterway density characteristic value, for example, it can be the result obtained by dividing the total area of the target waterway network by the total area of the target geographical range.
[0098] Further, step S301 includes:
[0099] Step S3011, determining the waterway network length or waterway network area of the target waterway network according to the second position information of the target waterway network;
[0100] Step S3012, calculating the characteristic value of the waterway network density of the target geographical range according to the length of the waterway network and the area of the target geographical range, or calculating the characteristic value of the waterway network density of the target geographical range according to the area of the waterway network and the area of the target geographical range.
[0101] Specifically, the length or area of the target waterway network can be determined according to the second position information of the target waterway network, and the calculation process of the area and length can be as follows: the total area of the target geographical range can be determined according to the position information of the target geographical range, such as the total area of the target geographical range can be calculated according to the longitude and latitude interval of the target geographical range; the length of the target waterway network can be determined according to the second position information of the target waterway network. For example, a river or a road can be represented by the longitude and latitude of two points. In this case, the length of the river or road is calculated according to the longitude and latitude of the two points, and the lengths of all rivers or roads are added to obtain the length of the target waterway network; the total area of the target waterway network can also be determined according to the second position information of the target waterway network. For example, a river or a road can be represented by a longitude and latitude interval. In this case, the area of the river or road is calculated according to the longitude and latitude interval, and the areas of all rivers or roads are added to obtain the total area of the target waterway network.
[0102] The characteristic value of the waterway network density may be a result obtained by dividing the total area of the target waterway network by the total area of the target geographical range, or may be a result obtained by dividing the length of the target waterway network by the total area of the target geographical range.
[0103] Step S302, determining a farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range;
[0104] The farm density characteristic value of the target geographical range is determined according to the second location information of the target farm and the target geographical range. Specifically, the farm density characteristic value may be a result obtained by dividing the total area of the target farm by the total area of the target geographical range. The total area of the target farm may be calculated by: each target farm may be represented by a longitude and latitude interval, and the area of each target farm is calculated according to the longitude and latitude interval, and then the areas are added together to obtain the total area of the target farm.
[0105] Step S303: taking the waterway network density characteristic value and the farm density characteristic value as the influencing data.
[0106] The characteristic values of waterway network density and farm density are used as the influencing data of the target influencing factors, that is, the characteristic values of waterway network density and farm density are input into the risk prediction model to obtain the risk prediction results of the farms to be predicted.
[0107] In this embodiment, by calculating the farm density characteristic values and waterway network density characteristic values of the target geographical range corresponding to the farms to be predicted, the farm density characteristic values and waterway network density characteristic values are input into the risk prediction model, and the risk prediction results of the farms to be predicted are calculated, so as to predict the risks of the farms based on the density characteristics of the farms and waterway networks in the target geographical range, and combine the actual infectious characteristics of animal infectious diseases, so that the predicted risk prediction results are more accurate.
[0108] Furthermore, the step S302 includes:
[0109] Step S3021, determining the breeding farm area of the target breeding farm according to the second location information of the target breeding farm;
[0110] The farm density characteristic value can also be the result of dividing the total breeding capacity of the target farm by the total area of the target geographical range, that is, the farm density characteristic value can be the breeding density. The total breeding capacity of the target farm can be calculated as:
[0111] The breeding farm area of the target breeding farm is determined according to the second position information of the target breeding farm, that is, the total area calculation process of the target breeding farm.
[0112] Step S3022, determining the total breeding capacity of the target breeding farm according to the area of the breeding farm and the preset corresponding relationship between the area and the breeding capacity;
[0113] The corresponding relationship between the area of the farm and the breeding capacity can be set in advance, for example, one pig is produced per 1.5 square meters. The total breeding capacity of the target farm is determined based on the calculated farm area of the target farm and the corresponding relationship. For example, if the farm area is 150 square meters, according to the above example, the total breeding capacity of the target farm is 100 pigs.
[0114] Step S3023, calculating the farm density characteristic value of the target geographical range according to the total breeding quantity and the area of the target geographical range.
[0115] The farm density characteristic value of the target geographical range is calculated based on the total breeding volume and the total area of the target geographical range. Specifically, the total breeding volume can be divided by the total area, and the result is used as the farm density characteristic value.
[0116] Furthermore, the risk prediction model includes preset weight values corresponding to the respective impact data, and the step of inputting the impact data into the preset risk prediction model to obtain the risk prediction result of the farm to be predicted in step S30 includes:
[0117] Step S304, inputting each of the impact data into the risk prediction model, so as to call the risk prediction model to calculate the risk coefficient of the farm to be predicted based on the weight value and each of the impact data;
[0118] Furthermore, the risk prediction model can be a linear model, including weight values corresponding to various influencing data. For example, when the influencing data are characteristic values of farm density and water network density, the weights corresponding to the characteristic values of farm density, water network density and road network density can be set respectively.
[0119] After obtaining the impact data of the target influencing factors, each impact data is input into the risk prediction model to call the risk prediction model to calculate the risk coefficient of the farm to be predicted based on each weight value and each impact data. Specifically, each impact data can be multiplied by the corresponding weight value, and then the multiplication results are added, and the added result is used as the risk coefficient, that is, the essence of the risk prediction model can be a linear model. It should be noted that each weight value in the risk prediction model can be set according to specific experience.
[0120] Step S305, using the risk coefficient as the risk prediction result of the farm to be predicted, or after determining the risk level according to the risk coefficient and the preset corresponding relationship between the coefficient and the level, using the risk level as the risk prediction result of the farm to be predicted.
[0121] After obtaining the risk coefficient, the risk coefficient can be directly used as the risk prediction result of the farm to be predicted. Alternatively, the correspondence between the risk coefficient and the level is preset. For example, the risk coefficient is sorted from low to high, the lowest 1 / 4 is divided into the first level, 1 / 4-1 / 2 is divided into the second level, 1 / 2-3 / 4 is divided into the third level, and the highest 1 / 4 is divided into the fourth level. It should be noted that the number of levels and the dividing line of each level can be selected according to specific experience. According to the obtained risk coefficient and the correspondence between the coefficient and the level, determine which risk level the risk coefficient corresponds to, and use the determined risk level as the risk prediction result of the farm to be predicted. Depending on the actual needs of the user, the risk prediction results may be different, and the risk level may be more intuitive for some users, which is more conducive to users to make targeted prevention and control plans.
[0122] Further, based on the above first and second embodiments, a third embodiment of the farm risk prediction method of the present invention is proposed. In this embodiment, the farm risk prediction method further includes:
[0123] Step S50, inputting the map to be identified into an influencing factor detection model to obtain the classification category of each pixel in the map to be identified, wherein the influencing factor detection model is pre-trained;
[0124] The data of each risk influencing factor may be collected in advance. In this embodiment, the collection method may be: an influencing factor detection model may be pre-trained, and the influencing factor detection model is used to identify the risk influencing factors in the map. The influencing factor detection model may be a multi-classification model, which is used to identify which of the multiple risk influencing factors each pixel in the map belongs to; the influencing factor detection model may also be a binary classification model, which is used to identify whether each pixel in the map belongs to a certain risk influencing factor. The influencing factor detection model may adopt a commonly used image target detection model, such as the semantic image segmentation model DeepLab-v3+.
[0125] The map of the area where the farm to be predicted is located is used as the map to be identified, and the map to be identified is input into the influencing factor detection model to obtain the classification category of each pixel in the map to be identified. The classification category is used to indicate which risk influencing factor the corresponding pixel belongs to, or to indicate whether the corresponding pixel belongs to a certain risk impact type.
[0126] Step S60, determining a target pixel point belonging to a risk influencing factor from each of the pixel points based on the classification category;
[0127] According to the classification category of each pixel point, the target pixel points belonging to the risk influencing factors are determined from each pixel point. That is, according to the classification category, determine which pixel points belong to the risk influencing factors. If there are multiple classifications, it is also necessary to determine which type of risk influencing factors the pixel points belonging to the risk influencing factors belong to. For example, when the multiple classifications include four categories: non-risk influencing factors, farms, water networks, and road networks, then according to the classification category of each pixel point, determine which pixels belong to each category.
[0128] Step S70, determining the actual position of each target pixel according to the scale of the map to be identified, and obtaining second position information of each risk influencing factor based on the actual position.
[0129] According to the scale of the map to be identified, the actual position of each target pixel is determined. Specifically, according to the scale of the map to be identified, it can be determined how much actual area each pixel represents, and then according to the longitude and latitude interval of the map to be identified, the longitude and latitude interval of each target pixel can be determined. Since each target pixel corresponds to each risk influencing factor, the longitude and latitude interval of the target pixel can be used as the longitude and latitude interval of the corresponding risk influencing factor, and the longitude and latitude interval is used as the location information of the risk influencing factor.
[0130] It should be noted that for the pixel points belonging to the farm identified in the map to be identified, when the area actually corresponding to a pixel point is relatively small, a pixel point may represent a breeding house (i.e., a unit smaller than a breeding farm). At this time, a clustering algorithm can be used to cluster the multiple identified pixel points, or to cluster the longitude and latitude intervals corresponding to the multiple pixel points, and cluster multiple breeding houses with close distances into one breeding farm. The clustering algorithm can adopt a commonly used clustering algorithm, such as the nearest neighbor clustering method. The longitude and latitude of the breeding farm can be the center of the cluster, and the breeding capacity of the breeding farm can be the sum of the breeding capacity of all breeding houses within the cluster range.
[0131] Furthermore, the risk influencing factors include a waterway network, and the farm risk prediction method further includes:
[0132] Step A10, using positive training data to perform preliminary training on the semantic segmentation model to be trained, wherein the positive training data includes a plurality of pre-collected remote sensing satellite maps containing waterway networks, and waterway network annotation data corresponding to each remote sensing map satellite;
[0133] In this embodiment, the risk influencing factors may include water and road networks, and the influencing factor detection model may be a multi-classification model composed of a semantic segmentation model. The output results of the influencing factor detection model are preset to be three categories: not a risk influencing factor, a water network, and a road network. The training method of the influencing factor detection model may be as follows:
[0134] Collect multiple remote sensing satellite maps containing waterway networks in advance, and collect the annotation data of the waterway networks in the remote sensing satellite maps, that is, the waterway network annotation data. The waterway network annotation data can be a mask map corresponding to the remote sensing satellite image. The mask map contains the classification category corresponding to each pixel point of the remote sensing satellite image, such as 0 indicates that the pixel point does not belong to the risk influencing factor, 1 indicates that the pixel point belongs to the water network, and 2 indicates that the pixel point belongs to the road network. The mask map can use different colors to represent different categories. Use multiple remote sensing satellite maps containing waterway networks and the waterway network annotation data as positive training data.
[0135] First, the positive training data is used to perform preliminary training on the semantic segmentation model to be trained. The preliminary training process can adopt the existing machine learning model training process.
[0136] Step A20, using negative training data, or using the negative training data and the positive training data to adjust the semantic segmentation model after preliminary training, wherein the negative training data includes a plurality of pre-collected remote sensing satellite maps that do not contain waterway networks;
[0137] Collect multiple remote sensing satellite maps that do not contain waterway networks in advance as negative training data. The ratio of negative training data to positive training data can be set according to actual experience. For example, the negative training data can be one-tenth of the positive training data. After the preliminary training, the negative training data and the above-mentioned positive training data are used together to adjust the semantic segmentation model after the preliminary training, or the negative training data is used alone to adjust the semantic segmentation model after the preliminary training. The adjustment at this time can be fine-tuning. Specifically, fine-tuning is to use positive training data and negative training data together for training, and the training process can also use the training process of the existing machine learning model. It should be noted that during fine-tuning, the hyperparameters of the model can be adjusted according to the ratio of positive training data to negative training data, and fine-tuning training can be performed after the adjustment. For example, when the negative training data can be one-tenth of the positive training data, the learning rate in the fine-tuning stage can also be set to one-tenth of the preliminary training stage.
[0138] Step A30, when it is detected that the adjusted model to be trained meets the preset model conditions, the adjusted semantic segmentation model is used as the influencing factor detection model, otherwise the step is executed again based on the adjusted semantic segmentation model: the semantic segmentation model to be trained is preliminarily trained using positive example training data.
[0139] The fine-tuned semantic segmentation model is used as an influencing factor detection model so that the influencing factor detection model can be used to detect risk influencing factors in the future.
[0140] Check whether the adjusted semantic segmentation model meets the preset model conditions. If it meets the preset model conditions, the adjusted semantic segmentation model is used as the influencing factor detection model, so that the influencing factor detection model can be used to detect risk influencing factors in the future. Otherwise, if it does not meet the preset model conditions, the adjusted semantic segmentation model is preliminarily trained with positive example training data, and then adjusted training is performed until it is detected that it meets the preset model conditions. Among them, the preset model conditions can be conditions set in advance according to the performance requirements of the model, such as the convergence of the model's loss function can be used as a condition, or commonly used objective indicators of detection model performance can be used as conditions, such as accuracy, recall rate and IOU (Intersection over Union, intersection ratio) and other objective indicators. Among them, the calculation method of each objective indicator can refer to the existing indicator calculation method, which will not be described in detail here.
[0141] In this embodiment, by pre-training an influencing factor detection model, the map to be identified is detected and identified, and the data of each risk influencing factor in the map to be identified is obtained, so that the risk influencing factors of each region can be obtained intelligently and quickly, and the risk prediction efficiency of the farm to be predicted is improved. In addition, for some data of risk influencing factors that cannot be extracted from the map data, they can be detected by the influencing factor detection model, so that the data of risk influencing factors is more comprehensive, and then the data based on risk prediction is more accurate and comprehensive, so that the risk prediction result is more accurate.
[0142] In addition, by first using positive training data to preliminarily train the model, and then using both positive training data and negative training data to fine-tune the preliminarily trained model, that is, using negative examples to correct the deviation and reduce the false detection of the model. In addition, by fine-tuning the model with both positive training data and negative training data, it is avoided that the training effect of the positive training data is covered by using only negative training data.
[0143] In addition, the present invention also provides a farm risk prediction device, referring to Figure 3 , the farm risk prediction device comprises:
[0144] An acquisition module 10 is used to acquire first location information of a breeding farm to be predicted, and determine a target geographical range corresponding to the breeding farm to be predicted based on the first location information;
[0145] A screening module 20, configured to screen target influencing factors that fall within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor;
[0146] The prediction module 30 is used to obtain the impact data corresponding to the target impact factor, and input the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted.
[0147] Furthermore, the target influencing factors include a target waterway network and a target breeding farm, and the prediction module 30 includes:
[0148] A first determining unit, configured to determine a waterway network density characteristic value of the target geographical range according to the second location information of the target waterway network and the target geographical range;
[0149] A second determining unit, configured to determine a farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range;
[0150] The third determination unit is used to use the waterway network density characteristic value and the farm density characteristic value as the influencing data.
[0151] Further, the second determining unit includes:
[0152] A first determining subunit, configured to determine a breeding farm area of the target breeding farm according to the second location information of the target breeding farm;
[0153] A second determination subunit is used to determine the total breeding capacity of the target breeding farm according to the area of the breeding farm and a preset corresponding relationship between the area and the breeding capacity;
[0154] The first calculation subunit is used to calculate the farm density characteristic value of the target geographical range according to the total breeding quantity and the area of the target geographical range.
[0155] Further, the first determining unit includes:
[0156] A third determining subunit is used to determine the waterway network length or waterway network area of the target waterway network according to the second position information of the target waterway network;
[0157] The second determination subunit is used to calculate the waterway network density characteristic value of the target geographical range according to the waterway network length and the area of the target geographical range, or to calculate the waterway network density characteristic value of the target geographical range according to the waterway network area and the area of the target geographical range.
[0158] Furthermore, the risk prediction model includes preset weight values corresponding to the impact data, and the prediction module 30 includes:
[0159] An input unit, used for inputting each of the impact data into the risk prediction model, so as to call the risk prediction model to calculate the risk coefficient of the farm to be predicted based on the weight value and each of the impact data;
[0160] The fourth determination unit is used to use the risk coefficient as the risk prediction result of the farm to be predicted, or after determining the risk level according to the risk coefficient and the preset corresponding relationship between the coefficient and the level, use the risk level as the risk prediction result of the farm to be predicted.
[0161] Furthermore, the farm risk prediction device also includes:
[0162] An input module, used for inputting a map to be identified into an influencing factor detection model to obtain a classification category of each pixel point in the map to be identified, wherein the influencing factor detection model is pre-trained;
[0163] A first determination module, configured to determine a target pixel point belonging to a risk influencing factor from each of the pixel points based on the classification category;
[0164] The second determination module is used to determine the actual position of each target pixel according to the scale of the map to be identified, and obtain the second position information of each risk influencing factor based on the actual position.
[0165] Furthermore, the risk influencing factors include a waterway network, and the farm risk prediction device further includes:
[0166] A preliminary training module, used for performing preliminary training on the semantic segmentation model to be trained using positive training data, wherein the positive training data includes a plurality of pre-collected remote sensing satellite maps containing waterway networks and waterway network annotation data;
[0167] An adjustment module, using negative training data, or using the negative training data and the positive training data to adjust the semantic segmentation model after preliminary training, wherein the negative training data includes a plurality of pre-collected remote sensing satellite maps that do not contain waterway networks;
[0168] The third determination module, when it is detected that the adjusted model to be trained meets the preset model conditions, uses the adjusted semantic segmentation model as the influencing factor detection model, otherwise the step is executed again based on the adjusted semantic segmentation model: using positive example training data to perform preliminary training on the semantic segmentation model to be trained.
[0169] Furthermore, the farm risk prediction device also includes:
[0170] The output module is used to determine the target prevention and control plan of the farm to be predicted from various preset prevention and control plans according to the risk prediction result, and output the target prevention and control plan.
[0171] The expanded contents of the specific implementation manner of the farm risk prediction device of the present invention are basically the same as the various embodiments of the above-mentioned farm risk prediction method, and will not be elaborated here.
[0172] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a farm risk prediction program is stored. When the farm risk prediction program is executed by a processor, the steps of the farm risk prediction method described below are implemented.
[0173] The various embodiments of the farm risk prediction device and computer-readable storage medium of the present invention can all refer to the various embodiments of the farm risk prediction method of the present invention, and will not be repeated here.
[0174] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0175] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0177] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for predicting risk in a farm, characterized in that: The farm risk prediction method comprises the following steps: Acquire first location information of a breeding farm to be predicted, and determine a target geographical range corresponding to the breeding farm to be predicted based on the first location information; According to the preset second position information of each risk influencing factor, target influencing factors falling within the target geographical range are screened from the risk influencing factors, wherein multiple types of risk influencing factors are preset; Obtaining the impact data corresponding to the target impact factor, and inputting the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted, wherein the impact data of the target impact factor varies according to the type of the target impact factor, and the risk refers to the extent of the impact that the farm may suffer in the event of the spread of an animal infectious disease; Before the step of screening target influencing factors falling within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor, the method further includes: Inputting the map to be identified into the influencing factor detection model to obtain the classification category of each pixel point in the map to be identified, wherein the influencing factor detection model is pre-trained; Determining target pixel points belonging to risk influencing factors from each of the pixel points based on the classification category; Determine the actual position of each target pixel according to the scale of the map to be identified, and obtain second position information of each risk influencing factor based on the actual position; The target influencing factors include a target waterway network and a target breeding farm, and the step of obtaining the influencing data corresponding to the target influencing factors includes: Determine a waterway network density characteristic value of the target geographical range according to the second position information of the target waterway network and the target geographical range, wherein the waterway network density characteristic value is a result obtained by dividing the total length of the target waterway network by the total area of the target geographical range, or a result obtained by dividing the total area of the target waterway network by the total area of the target geographical range; wherein the total area of the target geographical range is determined according to the position information of the target geographical range, and the total length of the target waterway network is determined according to the second position information of the target waterway network, a river or a road is represented by the longitude and latitude of two points, and the length of the river or road is calculated according to the longitude and latitude of the two points, and the lengths of all rivers or roads are added to obtain the total length of the target waterway network; or, determine the total area of the target waterway network according to the second position information of the target waterway network, a river or a road is represented by a longitude and latitude interval, and the area of the river or road is calculated according to the longitude and latitude interval, and the areas of all rivers or roads are added to obtain the total area of the target waterway network; Determine a farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range; The waterway network density characteristic value and the farm density characteristic value are used as the influencing data.
2. The farm risk prediction method according to claim 1, characterized in that: The step of determining the farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range comprises: Determining the breeding farm area of the target breeding farm according to the second location information of the target breeding farm; Determining the total breeding capacity of the target breeding farm according to the area of the breeding farm and a preset corresponding relationship between the area and the breeding capacity; The farm density characteristic value of the target geographical range is calculated based on the total breeding quantity and the area of the target geographical range.
3. The farm risk prediction method according to claim 1, characterized in that: The risk prediction model includes preset weight values corresponding to the impact data, and the step of inputting the impact data into the preset risk prediction model to obtain the risk prediction result of the farm to be predicted includes: Inputting each of the impact data into the risk prediction model, so as to call the risk prediction model to calculate the risk coefficient of the farm to be predicted based on the weight value and each of the impact data; The risk coefficient is used as the risk prediction result of the farm to be predicted, or after the risk level is determined according to the risk coefficient and the preset corresponding relationship between the coefficient and the level, the risk level is used as the risk prediction result of the farm to be predicted.
4. The farm risk prediction method according to claim 1, characterized in that: The risk influencing factors include a waterway network. Before the step of inputting the map to be identified into the influencing factor detection model to obtain the classification category of each pixel point in the map to be identified, the step further includes: The semantic segmentation model to be trained is initially trained using positive training data, wherein the positive training data includes a plurality of pre-collected remote sensing satellite maps containing waterway networks, and waterway network annotation data corresponding to each remote sensing map satellite; Adopting negative training data, or using the negative training data and the positive training data to adjust the semantic segmentation model after preliminary training, wherein the negative training data includes a plurality of pre-collected remote sensing satellite maps that do not include waterway networks; When it is detected that the adjusted model to be trained meets the preset model conditions, the adjusted semantic segmentation model is used as the influencing factor detection model, otherwise the step is executed again based on the adjusted semantic segmentation model: the semantic segmentation model to be trained is preliminarily trained using positive example training data.
5. The farm risk prediction method according to any one of claims 1 to 4, characterized in that: After the step of obtaining the impact data corresponding to the target impact factor and inputting the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted, the method further includes: According to the risk prediction result, a target prevention and control plan for the farm to be predicted is determined from various preset prevention and control plans, and the target prevention and control plan is output.
6. A farm risk prediction device, characterized in that: The farm risk prediction device comprises: An acquisition module, used for acquiring first location information of a breeding farm to be predicted, and determining a target geographical range corresponding to the breeding farm to be predicted based on the first location information, wherein multiple types of risk influencing factors are preset; A screening module, configured to screen target influencing factors that fall within the target geographical range from the risk influencing factors according to the preset second location information of each risk influencing factor; A prediction module is used to obtain the impact data corresponding to the target impact factor, and input the impact data into a preset risk prediction model to obtain the risk prediction result of the farm to be predicted, wherein the impact data of the target impact factor varies according to the type of the target impact factor, and the risk refers to the extent of the impact that the farm may suffer in the event of the spread of animal infectious diseases; The farm risk prediction device also includes: An input module, used for inputting a map to be identified into an influencing factor detection model to obtain a classification category of each pixel point in the map to be identified, wherein the influencing factor detection model is pre-trained; A first determination module, configured to determine a target pixel point belonging to a risk influencing factor from each of the pixel points based on the classification category; A second determination module is used to determine the actual position of each target pixel according to the scale of the map to be identified, and obtain second position information of each risk influencing factor based on the actual position; The target influencing factors include target waterway network and target breeding farm, and the prediction module includes: A first determination unit is used to determine a waterway network density characteristic value of the target geographical range according to the second position information of the target waterway network and the target geographical range, wherein the waterway network density characteristic value is a result obtained by dividing the total length of the target waterway network by the total area of the target geographical range, or a result obtained by dividing the total area of the target waterway network by the total area of the target geographical range; wherein the total area of the target geographical range is determined according to the position information of the target geographical range, the total length of the target waterway network is determined according to the second position information of the target waterway network, a river or a road is represented by the longitude and latitude of two points, the length of the river or road is calculated according to the longitude and latitude of the two points, the lengths of all rivers or roads are added together to obtain the total length of the target waterway network; or, the total area of the target waterway network is determined according to the second position information of the target waterway network, a river or a road is represented by a longitude and latitude interval, the area of the river or road is calculated according to the longitude and latitude interval, the areas of all rivers or roads are added together to obtain the total area of the target waterway network; A second determining unit, configured to determine a farm density characteristic value of the target geographical range according to the second location information of the target farm and the target geographical range; The third determination unit is used to use the waterway network density characteristic value and the farm density characteristic value as the influencing data.
7. A farm risk prediction device, characterized in that: The farm risk prediction device includes: a memory, a processor, and a farm risk prediction program stored in the memory and executable on the processor. When the farm risk prediction program is executed by the processor, the steps of the farm risk prediction method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a farm risk prediction program, which, when executed by a processor, implements the steps of the farm risk prediction method according to any one of claims 1 to 5.
