Breeding ecological analysis early warning method, device, medium and terminal equipment
1. A culture ecological analysis early warning method is characterized by comprising the following steps:
acquiring a remote sensing image of an under-forest ecological circle through an unmanned aerial vehicle;
carrying out regional division on different captive breeding areas in the remote sensing image to obtain a broiler captive breeding area, an earthworm captive breeding area and a live pig captive breeding area;
performing characteristic identification on the broiler rearing area to obtain a soil gradient value, a broiler rearing area value, a herd coverage value and a broiler number value in the broiler rearing area, and calculating a first comfort value;
performing characteristic identification on the earthworm containment region to obtain a soil gradient value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region, and calculating a second comfort value;
carrying out feature recognition on the live pig captive breeding area to obtain a soil gradient value, a live pig captive area value, a water source distance value and a live pig number value in the live pig captive breeding area, and calculating a third comfort value;
and calculating a first early warning value according to the first comfort value, the second comfort value and the third comfort value, and sending a first early warning signal when the first early warning value exceeds an early warning threshold value.
2. The culture ecology analysis early warning method of claim 1, further comprising:
calculating a first fertilizer output value according to the broiler number value;
calculating a second fertilizer output value according to the live pig number value;
calculating a first fertilizer consumption value according to the earthworm quantity value;
and when the sum of the first fertilizer output value and the second fertilizer output value is not equal to the first fertilizer consumption value, sending a second early warning signal.
3. The culture ecological analysis early warning method of claim 1, wherein the calculation formula of the first comfort value is as follows:
wherein k is1Is a first comfort value, S1Is the area value of the broiler rearing in pens, m1Is a broiler number value, and v is a grass coverage value;
P1the value of the slope of the soil in the broiler chicken captive breeding area is P1Greater than a first predetermined slope value, P1Taking the value as 1; otherwise, P1Taking the value of 0;
a1and a2Is a constant.
4. The method for analyzing and warning breeding ecology according to claim 1, wherein the step of performing feature recognition on the earthworm containment region to obtain a soil slope value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region and calculating a second comfort value further comprises:
and acquiring a soil humidity value in the earthworm containment region, and calculating a second comfort value according to the soil slope value, the soil humidity value, the earthworm containment area value and the earthworm quantity value in the earthworm containment region.
5. The culture ecological analysis early warning method of claim 4, wherein the second comfort value is calculated by the following formula:
wherein k is2Is a second comfort value, S2Is the value of the earthworm breeding area m2Is the number value of earthworms, a3Is a constant;
P2the slope value of the soil in the earthworm confinement region is equal to or less than P when the second preset slope value is equal to or less than P2Not more than the first preset gradient value, P2Taking the value as 1; otherwise, P2Taking the value of 0;
t is a soil humidity value, and when T is larger than a preset humidity value, the T value is 1; otherwise, the value of T is taken to be 0.
6. The culture ecological analysis early warning method of claim 1, wherein the step of performing feature recognition on the live pig housing area to obtain a soil slope value, a live pig housing area value, a water source distance value and a live pig number value in the live pig housing area and calculating a third comfort value further comprises:
and obtaining an illumination intensity value in the live pig captive breeding area, and calculating a third comfort value according to the illumination intensity value, the soil gradient value, the live pig captive area value, the water source distance value and the live pig number value in the live pig captive breeding area.
7. The culture ecological analysis early warning method of claim 6, wherein the calculation formula of the third comfort value is as follows:
wherein k is3Is the third comfort value, S3Area value of housing for live pig, m3Is a number value of live pigs, a4Is a constant;
P3the value of the slope of the soil in the live pig captive area is P3< second predetermined gradient value, P3Taking the value as 1; otherwise, P3Taking the value of 0;
l is the illumination intensity value, and when L is smaller than the preset illumination value, the value of L is 1; otherwise, the value of L is 0;
h is the distance value of the water source, and when H is smaller than a preset distance value, the H value is 1; otherwise, the value of H is taken to be 0.
8. The utility model provides a breed ecological analysis early warning device which characterized in that includes:
the image acquisition module is used for acquiring a remote sensing image of the under-forest ecological circle through the unmanned aerial vehicle;
the region division module is used for carrying out region division on different captive breeding regions in the remote sensing image to obtain a broiler captive breeding region, an earthworm captive breeding region and a live pig captive breeding region;
the first calculation module is used for carrying out feature recognition on the broiler captive breeding area to obtain a soil slope value, a broiler captive breeding area value, a grass coverage value and a broiler number value in the broiler captive breeding area, and calculating a first comfort value;
the second calculation module is used for carrying out feature recognition on the earthworm containment region to obtain a soil slope value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region and calculating a second comfort value;
the third calculation module is used for carrying out feature recognition on the live pig captive breeding area to obtain a soil gradient value, a live pig captive area value, a water source distance value and a live pig number value in the live pig captive breeding area and calculating a third comfort value;
the first early warning module is used for calculating a first early warning value according to the first comfort value, the second comfort value and the third comfort value, and sending a first early warning signal when the first early warning value exceeds an early warning threshold value.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program controls a device in which the computer readable storage medium is located to execute the culture ecology analysis early warning method according to any one of claims 1 to 7 when being executed.
10. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the culture ecology analysis pre-warning method of any one of claims 1-7 when executing the computer program.
Background
The under-forest economy mainly refers to under-forest planting industry, breeding industry, collection industry, forest tourism and health-care industry developed by taking forest land resources and forest ecological environment as the basis. The under forest breeding industry also comprises under forest breeding of broilers, earthworms, live pigs and the like. In actual cultivation, the same under-forest ecological pen usually comprises a broiler chicken captive breeding area, an earthworm captive breeding area and a live pig captive breeding area. Wherein, the earthworms are suitable for living in the soil with higher water content, and the slope of the soil is not too high; the broiler chickens are suitable for living in places with higher soil gradient and are used to feed on weeds in the areas; live pigs need to live in areas close to the water source and with high shading. In addition, in the under-forest ecosphere, when the total amount of the excrement generated by the broilers and the pigs is just equal to the total amount of the fertilizer consumed by the earthworms, the balance of the ecological resources is optimal.
In the prior art, forest workers often determine the setting position and the range of each captive breeding area in an under-forest ecological ring according to years of farming and breeding operation experiences of breeding personnel, and whether the current ecological ring reaches an early warning state or not is not intelligently judged by means of big data and scientific and technological strength. The existing artificial experience-based containment culture method is lack of accuracy, when a certain biological reproduction in a containment culture area develops to a certain extent, ecological resources in a forest are unbalanced, the condition of excessive reproduction or blocked reproduction occurs, and the balance of the ecological resources cannot be optimal, while the existing artificial experience-based containment culture method cannot timely and accurately determine the early warning state of the ecological containment culture so as to enable workers to adjust the containment culture strategy.
With the development of the unmanned aerial vehicle technology, the unmanned aerial vehicle remote sensing technology can realize the automatic, intelligent and dedicated rapid acquisition of space remote sensing information of national resources, natural environments, earthquake-stricken areas and the like, and the application technology of remote sensing data processing, modeling and application analysis is completed; however, none of the prior art solutions apply the unmanned aerial vehicle technology to the under-forest complex ecology, which is a strong driving force to solve the under-forest complex ecological strategy.
Disclosure of Invention
The invention provides a culture ecology analysis early warning method which can timely and accurately determine the early warning state of an ecological circle so as to enable workers to adjust a captive culture strategy.
In order to solve the technical problem, an embodiment of the present invention provides a breeding ecological analysis early warning method, including:
acquiring a remote sensing image of an under-forest ecological circle through an unmanned aerial vehicle;
carrying out regional division on different captive breeding areas in the remote sensing image to obtain a broiler captive breeding area, an earthworm captive breeding area and a live pig captive breeding area;
performing characteristic identification on the broiler rearing area to obtain a soil gradient value, a broiler rearing area value, a herd coverage value and a broiler number value in the broiler rearing area, and calculating a first comfort value;
performing characteristic identification on the earthworm containment region to obtain a soil gradient value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region, and calculating a second comfort value;
carrying out feature recognition on the live pig captive breeding area to obtain a soil gradient value, a live pig captive area value, a water source distance value and a live pig number value in the live pig captive breeding area, and calculating a third comfort value;
and calculating a first early warning value according to the first comfort value, the second comfort value and the third comfort value, and sending a first early warning signal when the first early warning value exceeds an early warning threshold value.
As a preferred scheme, the culture ecological analysis early warning method further comprises the following steps:
calculating a first fertilizer output value according to the broiler number value;
calculating a second fertilizer output value according to the live pig number value;
calculating a first fertilizer consumption value according to the earthworm quantity value;
and when the sum of the first fertilizer output value and the second fertilizer output value is not equal to the first fertilizer consumption value, sending a second early warning signal.
Preferably, the first comfort value is calculated by the following formula:
wherein k is1Is a first comfort value, S1Is meatArea value of chicken rearing in pens, m1Is a broiler number value, and v is a grass coverage value;
P1the value of the slope of the soil in the broiler chicken captive breeding area is P1Greater than a first predetermined slope value, P1Taking the value as 1; otherwise, P1Taking the value of 0;
a1and a2Is a constant.
As a preferred scheme, the step of performing feature recognition on the earthworm containment region to obtain a soil slope value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region, and calculating a second comfort value further includes:
and acquiring a soil humidity value in the earthworm containment region, and calculating a second comfort value according to the soil slope value, the soil humidity value, the earthworm containment area value and the earthworm quantity value in the earthworm containment region.
Preferably, the second comfort value is calculated by the following formula:
wherein k is2Is a second comfort value, S2Is the value of the earthworm breeding area m2Is the number value of earthworms, a3Is a constant;
P2the slope value of the soil in the earthworm confinement region is equal to or less than P when the second preset slope value is equal to or less than P2Not more than the first preset gradient value, P2Taking the value as 1; otherwise, P2Taking the value of 0;
t is a soil humidity value, and when T is larger than a preset humidity value, the T value is 1; otherwise, the value of T is taken to be 0.
As a preferred scheme, the step of performing feature recognition on the live pig housing area to obtain a soil gradient value, a live pig housing area value, a water source distance value and a live pig number value in the live pig housing area, and calculating a third comfort value further includes:
and obtaining an illumination intensity value in the live pig captive breeding area, and calculating a third comfort value according to the illumination intensity value, the soil gradient value, the live pig captive area value, the water source distance value and the live pig number value in the live pig captive breeding area.
Preferably, the third comfort value is calculated by the following formula:
wherein k is3Is the third comfort value, S3Area value of housing for live pig, m3Is a number value of live pigs, a4Is a constant;
P3the value of the slope of the soil in the live pig captive area is P3< second predetermined gradient value, P3Taking the value as 1; otherwise, P3Taking the value of 0;
l is the illumination intensity value, and when L is smaller than the preset illumination value, the value of L is 1; otherwise, the value of L is 0;
h is the distance value of the water source, and when H is smaller than a preset distance value, the H value is 1; otherwise, the value of H is taken to be 0.
As a preferred scheme, the calculation formula of the first early warning value is as follows:
wherein k is0Is the first warning value, k1Is a first comfort value, k2Is the second comfort value, k3Is a third comfort value; a is5、a6、a7And a8Are all constants.
Correspondingly, another embodiment of the present invention further provides a device for analyzing and warning breeding ecology, comprising:
the image acquisition module is used for acquiring a remote sensing image of the under-forest ecological circle through the unmanned aerial vehicle;
the region division module is used for carrying out region division on different captive breeding regions in the remote sensing image to obtain a broiler captive breeding region, an earthworm captive breeding region and a live pig captive breeding region;
the first calculation module is used for carrying out feature recognition on the broiler captive breeding area to obtain a soil slope value, a broiler captive breeding area value, a grass coverage value and a broiler number value in the broiler captive breeding area, and calculating a first comfort value;
the second calculation module is used for carrying out feature recognition on the earthworm containment region to obtain a soil slope value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region and calculating a second comfort value;
the third calculation module is used for carrying out feature recognition on the live pig captive breeding area to obtain a soil gradient value, a live pig captive area value, a water source distance value and a live pig number value in the live pig captive breeding area and calculating a third comfort value;
the first early warning module is used for calculating a first early warning value according to the first comfort value, the second comfort value and the third comfort value, and sending a first early warning signal when the first early warning value exceeds an early warning threshold value.
As a preferred scheme, the culture ecological analysis early warning device further comprises:
the first output module is used for calculating a first fertilizer output value according to the broiler number value;
the second output module is used for calculating a second fertilizer output value according to the live pig number value;
the first consumption module is used for calculating a first fertilizer consumption value according to the earthworm quantity value;
and the second early warning module is used for sending a second early warning signal when the sum of the first fertilizer output value and the second fertilizer output value is not equal to the first fertilizer consumption value.
Preferably, the calculation formula of the first calculation module for calculating the first comfort value is as follows:
wherein k is1Is a first comfort value, S1Is the area value of the broiler rearing in pens, m1Is a broiler number value, and v is a grass coverage value;
P1the value of the slope of the soil in the broiler chicken captive breeding area is P1Greater than a first predetermined slope value, P1Taking the value as 1; otherwise, P1Taking the value of 0;
a1and a2Is a constant.
Preferably, the second calculating module is further configured to: and acquiring a soil humidity value in the earthworm containment region, and calculating a second comfort value according to the soil slope value, the soil humidity value, the earthworm containment area value and the earthworm quantity value in the earthworm containment region.
Preferably, the calculation formula of the second calculation module for calculating the second comfort value is as follows:
wherein k is2Is a second comfort value, S2Is the value of the earthworm breeding area m2Is the number value of earthworms, a3Is a constant;
P2the slope value of the soil in the earthworm confinement region is equal to or less than P when the second preset slope value is equal to or less than P2Not more than the first preset gradient value, P2Taking the value as 1; otherwise, P2Taking the value of 0;
t is a soil humidity value, and when T is larger than a preset humidity value, the T value is 1; otherwise, the value of T is taken to be 0.
Preferably, the third computing module is further configured to: and obtaining an illumination intensity value in the live pig captive breeding area, and calculating a third comfort value according to the illumination intensity value, the soil gradient value, the live pig captive area value, the water source distance value and the live pig number value in the live pig captive breeding area.
Preferably, the calculation formula of the third calculation module for calculating the third comfort value is as follows:
wherein k is3Is the third comfort value, S3Area value of housing for live pig, m3Is a number value of live pigs, a4Is a constant;
P3the value of the slope of the soil in the live pig captive area is P3< second predetermined gradient value, P3Taking the value as 1; otherwise, P3Taking the value of 0;
l is the illumination intensity value, and when L is smaller than the preset illumination value, the value of L is 1; otherwise, the value of L is 0;
h is the distance value of the water source, and when H is smaller than a preset distance value, the H value is 1; otherwise, the value of H is taken to be 0.
As a preferred scheme, a calculation formula of the first warning module for calculating the first warning value is as follows:
wherein k is0Is the first warning value, k1Is a first comfort value, k2Is the second comfort value, k3Is a third comfort value; a is5、a6、a7And a8Are all constants.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program controls the device where the computer readable storage medium is located to execute the culture ecology analysis early warning method according to any one of the above.
The embodiment of the invention also provides terminal equipment, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the culture ecology analysis early warning method according to any one of the above items when executing the computer program.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
according to the technical scheme, the remote sensing image of the under-forest ecological pen is acquired through the unmanned aerial vehicle, and the comfort values corresponding to different ecological pens are calculated according to the broiler chicken captive breeding area, the earthworm captive breeding area and the live pig captive breeding area in the remote sensing image respectively, so that the early warning value is obtained, the defect that the setting position and the range of each captive breeding area in the under-forest ecological pen are determined by previous breeding personnel according to years of farming breeding operation experiences and whether the current ecological pen reaches the early warning state or not is not intelligently determined by means of big data and scientific and technological strength is overcome, and therefore the scheme capable of timely and accurately determining the early warning state of the ecological pen is provided, and workers can adjust the captive breeding strategy.
Drawings
FIG. 1: the method comprises the steps of a flow chart of the method for analyzing and early warning the breeding ecology provided by the embodiment of the invention;
FIG. 2: the structure diagram of the culture ecological analysis early warning method provided by the embodiment of the invention is shown;
FIG. 3: the structure diagram of an embodiment of the terminal device provided by the embodiment of the invention is shown.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flow chart of steps of a method for early warning of ecological analysis of breeding provided in the embodiment of the present invention includes steps 101 to 106, and each step is as follows:
step 101, acquiring a remote sensing image of an under-forest ecological circle through an unmanned aerial vehicle.
Specifically, in order to obtain the data source of the under-forest ecological ring, the remote sensing image of the under-forest ecological ring in the target area is shot through the unmanned aerial vehicle technology. It will be appreciated that the remotely sensed image may be a remotely sensed image or may be a remotely sensed image.
And 102, carrying out region division on different captive areas in the remote sensing image to obtain a broiler captive area, an earthworm captive area and a live pig captive area.
In particular, different regions in the remote sensing image can be identified by performing feature recognition on the remote sensing image. In view of the fact that in actual cultivation, the same under-forest ecological circle generally comprises a broiler chicken captive area, an earthworm captive area and a live pig captive area, images of the three areas can be generally recognized in remote sensing images.
And 103, performing characteristic identification on the broiler rearing area to obtain a soil slope value, a broiler rearing area value, a herd coverage value and a broiler number value in the broiler rearing area, and calculating a first comfort value.
Specifically, the image data of the broiler captive breeding area is input into a conventional identification model, so that the soil slope value and the broiler captive breeding area value in the area can be identified, the grassy cover ratio value can be calculated by calculating the cover ratio of the green vegetation occupied area in the area, and the quantity value of broilers can be determined by identifying the broilers in the area. The identification model and the algorithm formula used in the determination process of the plurality of numerical values are all common knowledge in the field, and are not redundantly stated here.
In the first aspect of this embodiment, the first comfort value is calculated by the following formula:
wherein k is1Is a first comfort value, S1Is the area value of the broiler rearing in pens, m1Is a broiler number value, and v is a grass coverage value; p1The value of the slope of the soil in the broiler chicken captive breeding area is P1Greater than a first predetermined slope value, P1Taking the value as 1; otherwise, P1Taking the value of 0; a is1And a2Is a constant.
Specifically, in order to calculate the suitable degree of the broiler rearing area, four factors such as a soil slope value, a broiler rearing area value, a herd coverage value and a broiler number value are considered. The broiler chickens are suitable for living in places with higher soil gradient, so that when the soil gradient value is larger than a first preset gradient value, the comfort level of the broiler chickens is positive feedback, otherwise, the comfort level of the broiler chickens is 0; secondly, the comfort degree brought by the density of the broilers is also considered, the density of the broilers can be briefly calculated by calculating the ratio of the broiler captive area value to the broiler number value, and then the weight a is used1The comfort level brought by the density can be calculated; in addition, the broiler chicken habit takes weeds in the area as feed, the coverage of the green quilt where the broiler chicken is located can be briefly calculated by calculating the ratio of the grass coverage value to the broiler chicken captive area value, and then the weight a2The comfort level brought by its coverage can be calculated. It will be understood that a1And a2The adaptation may be performed according to practical situations and experience, and is not limited herein.
And 104, performing feature recognition on the earthworm containment region to obtain a soil slope value, an earthworm containment area value and an earthworm quantity value in the earthworm containment region, and calculating a second comfort value.
In the first aspect of this embodiment, the step of performing feature recognition on the earthworm containment region to obtain a soil slope value, an earthworm containment area value, and an earthworm quantity value in the earthworm containment region, and calculating a second comfort value further includes: and acquiring a soil humidity value in the earthworm containment region, and calculating a second comfort value according to the soil slope value, the soil humidity value, the earthworm containment area value and the earthworm quantity value in the earthworm containment region.
Specifically, the soil slope value and the broiler chicken housing area value in the region can be identified by inputting the image data of the earthworm housing region into a conventional identification model, and the quantity value of the earthworms can be determined by identifying the earthworms in the region; or the chromaticity in the area is identified, and the number of the earthworms is determined by judging the area ratio of the area occupied by the color of the earthworms, so that the determination schemes of the number of the earthworms are various, but the determination schemes do not belong to the improvement range of the scheme, the schemes capable of obtaining the number of the earthworms by the conventional means in the field all belong to the protection range of the scheme, and the description of the content is not made. The identification model and the algorithm formula used in the determination process of the plurality of numerical values are all common knowledge in the field, and are not redundantly stated here.
Specifically, in this embodiment, the second comfort value is calculated by the following formula:
wherein k is2Is a second comfort value, S2Is the value of the earthworm breeding area m2Is the number value of earthworms, a3Is a constant; p2The slope value of the soil in the earthworm confinement region is equal to or less than P when the second preset slope value is equal to or less than P2Not more than the first preset gradient value, P2Taking the value as 1; otherwise, P2Taking the value of 0; t is a soil humidity value, and when T is larger than a preset humidity value, the T value is 1; otherwise, the value of T is taken to be 0.
Specifically, in order to calculate the suitable degree of the earthworm confinement region, four factors such as a soil slope value, a soil humidity value, an earthworm confinement area value and an earthworm quantity value are considered. Wherein, the earthworms are suitable for living in the soil with higher water content, and the slope of the soil is not too high. When the soil gradient value is greater than or equal to the second preset gradient value and less than or equal to the first preset gradient value, the comfort level of the earthworms is positively fed back, otherwise, the comfort level of the earthworms is 0; it will be understood that the first preset slope value must be greater than the second preset slope value. Secondly, the comfort degree brought by the density of the earthworms is also considered, the density of the earthworms can be briefly calculated by calculating the ratio of the earthworm containment area value to the earthworm quantity value, and then the weight a3The comfort level brought by the density can be calculated; it will be understood that a3The adaptation may be performed according to practical situations and experience, and is not limited herein. In addition, because earthworms are habitually used to live in soil with high water content, the comfort level caused by the soil humidity of the earthworms can be determined briefly through the soil humidity value.
And 105, performing feature recognition on the live pig captive area to obtain a soil gradient value, a live pig captive area value, a water source distance value and a live pig number value in the live pig captive area, and calculating a third comfort value.
In the first aspect of this embodiment, in the step of performing feature recognition on the live pig housing area to obtain a soil gradient value, a live pig housing area value, a water source distance value, and a live pig number value in the live pig housing area, and calculating a third comfort value, the method further includes: and obtaining an illumination intensity value in the live pig captive breeding area, and calculating a third comfort value according to the illumination intensity value, the soil gradient value, the live pig captive area value, the water source distance value and the live pig number value in the live pig captive breeding area.
Specifically, the image data of the live pig captive breeding area is input into a conventional identification model, so that the soil slope value and the live pig captive area value in the area can be identified, the number of the live pigs can be determined by identifying the live pigs in the area, and it can be understood that various schemes for determining the number of the live pigs are available, but the schemes are not in the improvement range of the scheme, the schemes for obtaining the number of the live pigs by the conventional means in the field are all in the protection range of the scheme, and the description is not performed redundantly. The water source distance value can be determined by identifying the area image and identifying the size of the straight line distance between the area where the water source is located and the pig housing area. The identification model and the algorithm formula used in the determination process of the plurality of numerical values are all common knowledge in the field, and are not redundantly stated here.
Specifically, in this embodiment, the calculation formula of the third comfort value is:
wherein k is3Is the third comfort value, S3Area value of housing for live pig, m3Is a number value of live pigs, a4Is a constant; p3The value of the slope of the soil in the live pig captive area is P3< second predetermined gradient value, P3Taking the value as 1; otherwise, P3Taking the value of 0; l is the illumination intensity value, and when L is smaller than the preset illumination value, the value of L is 1; otherwise, the value of L is 0; h is the distance value of the water source, and when H is smaller than a preset distance value, the H value is 1; otherwise, the value of H is taken to be 0.
Specifically, in order to calculate the suitability degree of a live pig captive area, five factors such as a light intensity value, a soil gradient value, a live pig captive area value, a water source distance value and a live pig number value are considered. The live pigs need to live in an area close to a water source and high in shading performance, and the flat ground is high in sleeping comfort for the live pigs due to the fact that the live pigs need to sleep for a long time. Therefore, when the soil gradient value is smaller than the second preset gradient value, the comfort level of the live pigs is positively fed back, otherwise, the comfort level of the live pigs is 0. Secondly, the comfort degree brought by the density of the live pigs is also considered, the density of the live pigs can be briefly calculated by calculating the ratio of the live pig captive area value to the live pig number value, and then the weight a4The comfort level brought by the density can be calculated; it will be understood that a4The adaptation may be performed according to practical situations and experience, and is not limited herein. In addition, because the live pigs need to live in a place close to a water source, the comfort level brought by drinking water in the captive breeding area where the live pigs are located can be briefly determined through the water source distance value. Since the live pigs like to move in the shadow, the comfort level brought by the live pigs in the captive breeding area can be briefly determined by comparing the illumination intensity value with the preset illumination value.
And 106, calculating a first early warning value according to the first comfort value, the second comfort value and the third comfort value, and sending a first early warning signal when the first early warning value exceeds an early warning threshold value.
In the first aspect of this embodiment, the calculation formula of the first warning value is:
wherein k is0Is the first warning value, k1Is a first comfort value, k2Is the second comfort value, k3Is a third comfort value; a is5、a6、a7And a8Are all constants.
Specifically, through the calculation in the steps 103 to 105, the comfort values corresponding to the broiler chicken captive breeding area, the earthworm captive breeding area and the live pig captive breeding area can be calculated, the early warning value can be calculated through the first early warning value formula, and when the early warning value reaches a certain degree, an early warning signal can be triggered. It can be understood that the calculation formula of the first warning value is obtained according to actual conditions and experience, and the constant a5、a6、a7And a8The changes and modifications can be made according to the practical application, and are not limited herein.
In another improvement of this embodiment, the method for analyzing and warning ecological environment of cultivation further includes steps 107 to 1010, and the steps are as follows: and 107, calculating a first fertilizer output value according to the broiler number value. And step 108, calculating a second fertilizer output value according to the live pig number value. And step 109, calculating a first fertilizer consumption value according to the earthworm quantity value. Step 1010, when the sum of the first fertilizer output value and the second fertilizer output value is not equal to the first fertilizer consumption value, a second early warning signal is sent out.
Specifically, in an improvement of the first embodiment, in order to increase rules of early warning triggering, the practicability of the technical scheme is further improved. Considering that the balance of the ecological resources is optimal when the total amount of the excrement generated by the broilers and the pigs in the under-forest ecological circle is just equal to the total amount of the fertilizer consumed by the earthworms; in the embodiment, whether the excrement discharge amount of the broiler chickens and the live pigs in the breeding process and the fertilizer consumption amount of the earthworms in the breeding process are balanced or not is calculated, so that whether the current ecological breeding circle reaches the optimal ecology or not is considered.
According to the technical scheme, the remote sensing image of the under-forest ecological pen is acquired through the unmanned aerial vehicle, and the comfort values corresponding to different ecological pens are calculated according to the broiler chicken captive breeding area, the earthworm captive breeding area and the live pig captive breeding area in the remote sensing image respectively, so that the early warning value is obtained, the defect that the setting position and the range of each captive breeding area in the under-forest ecological pen are determined by previous breeding personnel according to years of farming breeding operation experiences and whether the current ecological pen reaches the early warning state or not is not intelligently determined by means of big data and scientific and technological strength is overcome, and therefore the scheme capable of timely and accurately determining the early warning state of the ecological pen is provided, and workers can adjust the captive breeding strategy.
Example two
Accordingly, referring to fig. 2, a schematic structural diagram of a breeding ecological analysis early warning device provided in an embodiment of the present invention includes: the system comprises an image acquisition module, a region division module, a first calculation module, a second calculation module, a third calculation module and a first early warning module, wherein the modules are as follows:
and the image acquisition module is used for acquiring the remote sensing image of the under-forest ecological ring through the unmanned aerial vehicle.
And the region division module is used for carrying out region division on different captive breeding regions in the remote sensing image to obtain a broiler captive breeding region, an earthworm captive breeding region and a live pig captive breeding region.
The first calculation module is used for carrying out feature recognition on the broiler captive breeding area to obtain a soil slope value, a broiler captive breeding area value, a grass coverage value and a broiler number value in the broiler captive breeding area, and calculating a first comfort value.
In the first aspect of this embodiment, the calculation formula of the first calculation module for calculating the first comfort value is as follows:
wherein k is1Is a first comfort value, S1Is the area value of the broiler rearing in pens, m1Is a broiler number value, and v is a grass coverage value; p1The value of the slope of the soil in the broiler chicken captive breeding area is P1Greater than a first predetermined slope value, P1Taking the value as 1; otherwise, P1Taking the value of 0; a is1And a2Is a constant.
And the second calculation module is used for carrying out feature recognition on the earthworm confinement region to obtain a soil slope value, an earthworm confinement area value and an earthworm quantity value in the earthworm confinement region and calculating a second comfort value.
In the first aspect of this embodiment, the second calculating module is further configured to: and acquiring a soil humidity value in the earthworm containment region, and calculating a second comfort value according to the soil slope value, the soil humidity value, the earthworm containment area value and the earthworm quantity value in the earthworm containment region.
Specifically, in this embodiment, the calculation formula of the second calculating module for calculating the second comfort value is as follows:
wherein k is2Is a second comfort value, S2Is the value of the earthworm breeding area m2Is the number value of earthworms, a3Is a constant; p2The slope value of the soil in the earthworm confinement region is equal to or less than P when the second preset slope value is equal to or less than P2Not more than the first preset gradient value, P2Taking the value as 1; otherwise, P2Taking the value of 0; t is a soil humidity value, and when T is larger than a preset humidity value, the T value is 1; otherwise, the value of T is taken to be 0.
And the third calculation module is used for carrying out feature recognition on the live pig captive breeding area to obtain a soil slope value, a live pig captive area value, a water source distance value and a live pig number value in the live pig captive breeding area, and calculating a third comfort value.
In the first aspect of this embodiment, the third calculating module is further configured to: and obtaining an illumination intensity value in the live pig captive breeding area, and calculating a third comfort value according to the illumination intensity value, the soil gradient value, the live pig captive area value, the water source distance value and the live pig number value in the live pig captive breeding area.
Specifically, in this embodiment, the calculation formula of the third calculating module for calculating the third comfort value is as follows:
wherein k is3Is the third comfort value, S3Area value of housing for live pig, m3Is a number value of live pigs, a4Is a constant; p3The value of the slope of the soil in the live pig captive area is P3< second predetermined gradient value, P3Taking the value as 1; otherwise, P3Taking the value of 0; l is the illumination intensity value, and when L is smaller than the preset illumination value, the value of L is 1; otherwise, the value of L is 0; h is the distance value of the water source, and when H is smaller than a preset distance value, the H value is 1; otherwise, the value of H is taken to be 0.
The first early warning module is used for calculating a first early warning value according to the first comfort value, the second comfort value and the third comfort value, and sending a first early warning signal when the first early warning value exceeds an early warning threshold value.
In a first aspect of this embodiment, a calculation formula of the first warning module for calculating the first warning value is as follows:
wherein k is0Is the first warning value, k1Is a first comfort value, k2Is the second comfort value, k3Is a third comfort value; a is5、a6、a7And a8Are all constants.
In another improvement of this embodiment, the culture ecological analysis early warning device further includes: first output module, second output module, first consumption module and second early warning module, each module specifically as follows: and the first output module is used for calculating a first fertilizer output value according to the broiler number value. And the second output module is used for calculating a second fertilizer output value according to the live pig number value. And the first consumption module is used for calculating a first fertilizer consumption value according to the earthworm quantity value. And the second early warning module is used for sending a second early warning signal when the sum of the first fertilizer output value and the second fertilizer output value is not equal to the first fertilizer consumption value.
EXAMPLE III
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; when the computer program runs, the computer program controls the device where the computer readable storage medium is located to execute the culture ecological analysis early warning method according to any one of the embodiments.
Example four
Referring to fig. 3, a schematic structural diagram of a terminal device according to an embodiment of the present invention is shown, where the terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the culture ecology analysis early warning method according to any one of the embodiments when executing the computer program.
Preferably, the computer program may be divided into one or more modules/units (e.g., computer program) that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the terminal device.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc., the general purpose Processor may be a microprocessor, or the Processor may be any conventional Processor, the Processor is a control center of the terminal device, and various interfaces and lines are used to connect various parts of the terminal device.
The memory mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like, and the data storage area may store related data and the like. In addition, the memory may be a high speed random access memory, may also be a non-volatile memory, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), and the like, or may also be other volatile solid state memory devices.
It should be noted that the terminal device may include, but is not limited to, a processor and a memory, and those skilled in the art will understand that the terminal device is only an example and does not constitute a limitation of the terminal device, and may include more or less components, or combine some components, or different components.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the invention, may occur to those skilled in the art and are intended to be included within the scope of the invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种免疫接种管理系统