Free-range cattle and sheep anti-lost early warning system based on Internet of Things
By using an IoT-based anti-lost early warning system, the range of the electronic fence can be dynamically adjusted, solving the problem that static fences cannot provide timely warnings. This enables real-time monitoring and early warning of individual cattle and sheep, reducing the need for manual searching for lost individuals.
Patent Information
- Application Number
- CN202411853999.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-01-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing static electronic fences cannot detect individuals straying from the group while cattle and sheep are grazing, resulting in ineffective early warning and requiring manual searching for missed individuals.
An IoT-based anti-lost early warning system is adopted. By monitoring the coordinates of cattle and sheep in real time, the range of the electronic fence is dynamically adjusted, and the location of cattle and sheep is monitored in real time using IoT technology to issue timely warnings.
It enables real-time monitoring of individual cattle and sheep, avoiding the omission warnings caused by static fences and reducing the need for manual searching for missed individuals.
Smart Images

Figure CN119314310A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of preventing cattle and sheep from getting lost, and in particular to an Internet of Things-based early warning system for preventing free-range cattle and sheep from getting lost. Background Art
[0002] When cattle and sheep graze, individuals usually tend to gather together. This phenomenon is called "social aggregation" or "herding behavior" in animal behavior. There are several main reasons for the formation of this behavior. Safety factors: Gathering together can improve the safety of the group. When cattle and sheep gather together, they can more easily notice the approach of predators, thereby increasing overall vigilance. In addition, the larger the group size, the lower the risk of predation for each individual. Resource utilization: Gathering together can make more efficient use of limited resources. For example, if there are many different types of grass in a meadow, the gathered cattle and sheep can cover and utilize these resources more comprehensively. Social structure: Cattle and sheep herds have their inherent social structure, usually led by one or more leaders or cows. This social structure prompts individuals to tend to gather around the leader in order to better follow and learn behavior. Group information sharing: In the case of gathering, individuals can share information through vision, hearing and smell, such as finding food sources, water sources or other important environmental information.
[0003] Based on the biological habits of cattle and sheep, during the grazing process, cattle and sheep will gather together to eat, but some of them will leave the large group to go out to forage. Since the existing cattle and sheep anti-lost system is to equip cattle and sheep with positioning devices and set up static electronic fences, an alarm will be issued when the cattle and sheep exceed the range of the electronic fence. However, cattle and sheep will gradually move during the feeding process. Setting up a static electronic fence will result in an individual being too far away from the group but within the electronic fence, and an early warning cannot be issued in time. When the cattle and sheep return to the field, it is still necessary to find the individuals left out, and it is impossible to issue an early warning in time and effectively for individuals who have left the group too far. Summary of the invention
[0004] 1. Technical issues to be resolved In view of the deficiencies in the prior art, the present invention provides an Internet of Things-based free-range cattle and sheep anti-lost warning system, which has the advantages of using the real-time coordinates of a large group of cattle and sheep as the center point of an electronic fence, manually setting the range of the electronic fence, and constantly moving as the cattle and sheep eat, which can drive the electronic fence to move accordingly. When the cattle and sheep move in a large group, the individual does not move with the herd, and when it exceeds or approaches the boundary of the electronic fence, an early warning is issued in time, thereby avoiding static electronic fences. When the cattle and sheep enter or move, the individual is in the static electronic fence, but does not move with the large group, and cannot be effectively warned of this situation. After the cattle and sheep enter, the missed individual needs to be manually found, etc., thereby solving the above-mentioned problems.
[0005] (II) Technical solution To achieve the above-mentioned object, the present invention provides the following technical solutions: a free-range cattle and sheep anti-lost warning system based on the Internet of Things, comprising a cattle and sheep positioning collar, a cattle and sheep positioning data receiving unit, a cattle and sheep electronic fence setting unit, a cattle and sheep position analysis unit and a lost warning unit; There are several cattle and sheep positioning collars, and each cattle and sheep positioning collar has a unique digital number and forms a unique digital tag with the cattle and sheep wearing it. The cattle and sheep positioning collar collects cattle and sheep position coordinate data in real time, and sends the collected cattle and sheep position coordinate data to the cattle and sheep positioning data receiving unit; The cattle and sheep positioning data receiving unit is used to receive the cattle and sheep positioning data and send these data to the cattle and sheep position analysis unit; The cattle and sheep electronic fence setting unit is used to set the maximum activity range of cattle and sheep, and use the activity range as the cattle and sheep activity range threshold, and the cattle and sheep electronic fence setting unit sends the set cattle and sheep maximum activity range to the cattle and sheep position analysis unit; The cattle and sheep position analysis unit determines the center position of the cattle and sheep herd according to the received multiple cattle and sheep position coordinate data, generates the center position coordinates, and temporarily stores them in a memory set inside it, and compares the remaining cattle and sheep coordinates with the center position to determine whether the scattered cattle and sheep are beyond the range of the electronic fence or are about to exceed the electronic fence. When scattered cattle and sheep exceed the electronic fence, the cattle and sheep position analysis unit generates a lost signal and sends the lost signal to the lost warning unit. When scattered cattle and sheep are about to exceed the electronic fence, the cattle and sheep position analysis unit generates an imminent loss warning signal and sends the imminent loss warning signal to the lost warning unit. The lost warning unit is used to issue a corresponding warning when receiving a lost signal or an imminently lost warning signal.
[0006] Preferably, the digital labels of the cattle and sheep are respectively represented as: , , 、....、 ,in, , , ...、 Indicates the unique numerical number corresponding to cattle and sheep. , , ,..., It represents the coordinate data corresponding to each cattle and sheep, that is, the cattle and sheep position coordinate data.
[0007] Preferably, the steps of generating the center position coordinates are as follows: A1. The cattle and sheep position analysis unit obtains several coordinate data with similar coordinate positions from all the received cattle and sheep position coordinate data; A2. Calculate the mean of several coordinates and use the mean of several coordinates as the center position coordinate.
[0008] Preferably, the center position coordinate calculation expression is as follows:
[0009] In the formula, represents the center position coordinates, Indicates that there is Coordinate data with similar coordinate positions, It means to add all the coordinate data with similar coordinate positions from the first X-axis coordinate data to the The coordinate data of each axis are summed. Indicates that all coordinate data with similar coordinate positions are added from the first Y-axis coordinate data to the The Y-axis coordinate data is summed. It means the average value of the sum of all the coordinate data of the X-axis, that is, the mean value of the X-axis coordinate. Indicates the average value of the sum of all Y-axis coordinate data, that is, the Y-axis coordinate mean, the X-axis coordinate mean and the Y-axis coordinate mean constitute the center position coordinate .
[0010] Preferably, the maximum activity range of the cattle and sheep is set to be the manually set endpoint to the center position coordinates Straight line distance , and the straight-line distance As the radius, the center position coordinates It is circular, and the circular area formed serves as the maximum activity range for cattle and sheep.
[0011] Preferably, the step of determining whether scattered cattle and sheep are beyond the range of the electronic fence is as follows: B1. Calculate the coordinate data and center position coordinates of scattered cattle and sheep Straight line distance ; B2. The coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance and manually set endpoint to center position coordinates Straight line distance Make a difference. When the difference is less than or equal to 0, it is determined that the scattered cattle and sheep have exceeded the electronic fence; B3. Generate a lost signal.
[0012] Preferably, the coordinate data and center position coordinates of the scattered cattle and sheep Straight line distance The calculation expression is as follows:
[0013] In the formula, The X-axis coordinate data representing the coordinate data of scattered cattle and sheep. Represents the Y-axis coordinate data of the coordinate data of scattered cattle and sheep.
[0014] Preferably, the steps of generating the imminent loss warning signal are as follows: C1. The coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance and manually set endpoint to center position coordinates Straight line distance Take the difference, when the difference is greater than 0 and less than or equal to 0.2 When the electric fence is opened, it is determined that there are scattered cattle and sheep about to go beyond the electric fence; C2. Generate an early warning signal of impending loss.
[0015] Preferably, the expression for determining that scattered cattle and sheep are about to exceed the electronic fence is as follows:
[0016] In the formula, Indicates the manually set endpoint to center position coordinates Straight line distance The distance of 0.2 is the warning distance.
[0017] Preferably, the lost warning unit further includes a display terminal and an audio terminal, wherein the display terminal is used to display the coordinate data of the lost cattle and sheep and the coordinate data of the cattle and sheep that are about to be lost, and the audio terminal is used to emit a warning sound.
[0018] Compared with the prior art, the present invention provides an early warning system for preventing lost free-range cattle and sheep based on the Internet of Things, which has the following beneficial effects: The present invention uses the real-time coordinates of a large group of cattle and sheep as the center point of the electronic fence, and manually sets the range of the electronic fence. As the cattle and sheep herd continuously moves while eating, the electronic fence can be driven to move accordingly. When the cattle and sheep herd moves in a large group, the individual does not move with the herd. When it exceeds or approaches the boundary of the electronic fence, an early warning is issued in time, thereby avoiding static electronic fences. When the cattle and sheep herd enters or moves, the individual is in the static electronic fence, but does not move with the large group, and this situation cannot be effectively warned. After the cattle and sheep herd enters, the missed individual needs to be manually found. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the system flow of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] In order to solve the problem of relying on static electronic fences to prevent cattle and sheep from getting lost, when the cattle and sheep have not exceeded the area of the electronic fence, some individuals are far away from the group and cannot be found in time and effectively. When the cattle and sheep return to the pasture, the missed individuals cannot be prompted and they still need to go to the pasture to find the missed individuals manually. Therefore, a free-range cattle and sheep anti-lost warning system based on the Internet of Things is proposed. Please refer to Figure 1 ,The system includes cattle and sheep positioning collars, cattle and sheep positioning data receiving units, cattle and sheep electronic fence setting units, cattle and sheep position analysis units and lost warning units; There are several cattle and sheep positioning collars, and each cattle and sheep positioning collar has a unique digital number and forms a unique digital tag with the cattle and sheep wearing it. The cattle and sheep positioning collar collects the cattle and sheep position coordinate data in real time, where the digital tag of the cattle and sheep is expressed as: , , 、....、 ,in, , , ...、 Indicates the unique numerical number corresponding to cattle and sheep. , , ,..., It represents the coordinate data corresponding to each cattle and sheep, that is, the cattle and sheep position coordinate data.
[0022] The cattle and sheep positioning data receiving unit is used to receive the cattle and sheep positioning data and send these data to the cattle and sheep position analysis unit. The cattle and sheep position analysis unit determines the center position of the cattle and sheep group according to the received multiple cattle and sheep position coordinate data, generates the center position coordinates, and temporarily stores them in the memory set inside it. The expression for generating the center position coordinates is as follows: Step 1: The cattle and sheep position analysis unit obtains several coordinate data with similar coordinate positions from all the received cattle and sheep position coordinate data; Step 2: Calculate the mean of several coordinates and use the mean of several coordinates as the center position coordinate.
[0023] The center position coordinate calculation expression is as follows:
[0024] In the formula, represents the center position coordinates, Indicates that there is Coordinate data with similar coordinate positions, It means to add all the coordinate data with similar coordinate positions from the first X-axis coordinate data to the The coordinate data of each axis are summed. Indicates that all coordinate data with similar coordinate positions are added from the first Y-axis coordinate data to the The Y-axis coordinate data is summed. It means the average value of the sum of all the coordinate data of the X-axis, that is, the mean value of the X-axis coordinate. Indicates the average value of the sum of all Y-axis coordinate data, that is, the Y-axis coordinate mean, the X-axis coordinate mean and the Y-axis coordinate mean constitute the center position coordinate .
[0025] By calculating the center as the position coordinate, the coordinate position of the large group of cattle and sheep can be obtained in real time, and used as the dynamic center point of the electronic fence, so that the range of the electronic fence can change with the displacement of the cattle and sheep, thereby realizing a dynamic electronic fence and real-time monitoring of the position of cattle and sheep.
[0026] The cattle and sheep electronic fence setting unit is used to set the maximum activity range of cattle and sheep, and use the activity range as the cattle and sheep activity range threshold. The cattle and sheep electronic fence setting unit sends the set cattle and sheep maximum activity range to the cattle and sheep position analysis unit. The specific maximum activity range of cattle and sheep can be understood as: the manually set endpoint to the center position coordinates Straight line distance , and the straight-line distance As the radius, the center position coordinates It is circular, and the circular area formed serves as the maximum activity range for cattle and sheep.
[0027] The cattle and sheep position analysis unit compares the remaining cattle and sheep coordinates with the center position to determine whether the scattered cattle and sheep are beyond the range of the electronic fence or are about to exceed the electronic fence. When scattered cattle and sheep exceed the electronic fence, the cattle and sheep position analysis unit generates a lost signal. The steps for determining whether the scattered cattle and sheep are beyond the range of the electronic fence are as follows: Step 1: Calculate the coordinate data and center position coordinates of scattered cattle and sheep Straight line distance , the coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance The calculation expression is as follows:
[0028] In the formula, The X-axis coordinate data representing the coordinate data of scattered cattle and sheep. The Y-axis coordinate data representing the coordinate data of a scattered cattle or sheep; Step 2: The coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance and manually set endpoint to center position coordinates Straight line distance Make a difference. When the difference is less than or equal to 0, it is determined that the scattered cattle and sheep have exceeded the electronic fence; Step 3: Generate a lost signal and send the lost signal to the lost warning unit.
[0029] When scattered cattle and sheep are about to go beyond the electronic fence, the cattle and sheep position analysis unit generates an imminent loss warning signal. The steps for generating the imminent loss warning signal are as follows: Step 1: Obtain the coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance and manually set endpoint to center position coordinates Straight line distance Take the difference, when the difference is greater than 0 and less than or equal to 0.2 When it is determined that scattered cattle and sheep are about to exceed the electronic fence, the expression for determining that scattered cattle and sheep are about to exceed the electronic fence is as follows:
[0030] In the formula, Indicates the manually set endpoint to center position coordinates Straight line distance The distance of 0.2 is the warning distance; Step 2: Generate an imminent loss warning signal, and send the imminent loss warning signal to the lost warning unit.
[0031] The lost warning unit is used to issue a corresponding warning when receiving a lost signal or an impending lost warning signal. The lost warning unit also includes a display end and an audio end. The display end is used to display the coordinate data of the lost cattle and sheep and the coordinate data of the cattle and sheep that are about to be lost, and the audio end is used to issue a warning sound.
[0032] By using the real-time coordinates of a large herd of cattle and sheep as the center point of the electronic fence and manually setting the size of the electronic fence, the electronic fence can be driven to move with the cattle and sheep as they move while eating. When the cattle and sheep move in a large herd, the individual does not follow the herd. When it exceeds or approaches the boundary of the electronic fence, an early warning is issued in time, thus avoiding static electronic fences. When the cattle and sheep enter or move, the individual is in the static electronic fence, but does not move with the large herd, and cannot be effectively warned of this situation. After the cattle and sheep enter, the missed individuals need to be manually found.
[0033] In this experiment, there are a total of 10 cows in the pasture. The range of the pasture is (0,10)*(0,10). The coordinates of the 15 cows are: A(1,1.02),B(1.01,2.1),C(1,1.06),D(1,1.3),E(1,1.23),F(1,1.4),G(1,2.4),H(2.1,1.2),J(2.04,1.4),K(8,10) The calculated center position coordinates are:
[0034] The coordinates of the endpoint to the center position set by the user The straight-line distance is 5, and the coordinate data and center position coordinates of scattered cattle and sheep K are calculated. Straight line distance , the calculation process is as follows:
[0035] at this time, , , it is determined that scattered cattle and sheep have exceeded the electronic fence, a lost signal is generated, and it is sent to the lost warning unit, which issues a warning.
[0036] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An Internet of Things-based early warning system for preventing lost cattle and sheep, characterized by: It includes cattle and sheep positioning collars, cattle and sheep positioning data receiving units, cattle and sheep electronic fence setting units, cattle and sheep position analysis units and lost warning units; There are several cattle and sheep positioning collars, and each cattle and sheep positioning collar has a unique digital number and forms a unique digital tag with the cattle and sheep wearing it. The cattle and sheep positioning collar collects cattle and sheep position coordinate data in real time, and sends the collected cattle and sheep position coordinate data to the cattle and sheep positioning data receiving unit; The cattle and sheep positioning data receiving unit is used to receive the cattle and sheep positioning data and send these data to the cattle and sheep position analysis unit; The cattle and sheep electronic fence setting unit is used to set the maximum activity range of cattle and sheep, and use the activity range as the cattle and sheep activity range threshold, and the cattle and sheep electronic fence setting unit sends the set cattle and sheep maximum activity range to the cattle and sheep position analysis unit; The cattle and sheep position analysis unit determines the center position of the cattle and sheep herd according to the received multiple cattle and sheep position coordinate data, generates the center position coordinates, and temporarily stores them in a memory set inside it, and compares the remaining cattle and sheep coordinates with the center position to determine whether the scattered cattle and sheep are beyond the range of the electronic fence or are about to exceed the electronic fence. When scattered cattle and sheep exceed the electronic fence, the cattle and sheep position analysis unit generates a lost signal and sends the lost signal to the lost warning unit. When scattered cattle and sheep are about to exceed the electronic fence, the cattle and sheep position analysis unit generates an imminent loss warning signal and sends the imminent loss warning signal to the lost warning unit. The lost warning unit is used to issue a corresponding warning when receiving a lost signal or an imminently lost warning signal.
2. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 1 is characterized by: The digital labels of the cattle and sheep are respectively represented as follows: , , 、....、 ,in, , , ...、 Indicates the unique numerical number corresponding to cattle and sheep. , , ,..., It represents the coordinate data corresponding to each cattle and sheep, that is, the cattle and sheep position coordinate data.
3. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 2 is characterized by: The steps for generating the center position coordinates are as follows: A1. The cattle and sheep position analysis unit obtains several coordinate data with similar coordinate positions from all the received cattle and sheep position coordinate data; A2. Calculate the mean of several coordinates and use the mean of several coordinates as the center position coordinate.
4. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 3 is characterized by: The center position coordinate calculation expression is as follows: In the formula, represents the center position coordinates, Indicates that there is Coordinate data with similar coordinate positions, It means to add all the coordinate data with similar coordinate positions from the first X-axis coordinate data to the The coordinate data of each axis are summed. Indicates that all coordinate data with similar coordinate positions are added from the first Y-axis coordinate data to the The Y-axis coordinate data is summed. It means the average value of the sum of all the coordinate data of the X-axis, that is, the mean value of the X-axis coordinate. Indicates the average value of the sum of all Y-axis coordinate data, that is, the Y-axis coordinate mean, the X-axis coordinate mean and the Y-axis coordinate mean constitute the center position coordinate .
5. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 4 is characterized by: The maximum range of activity of the cattle and sheep is set to the manually set end point to the center position coordinates Straight line distance , and the straight-line distance As the radius, the center position coordinates It is circular, and the circular area formed serves as the maximum activity range for cattle and sheep.
6. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 5 is characterized by: The steps of determining whether scattered cattle and sheep are beyond the range of the electronic fence are as follows: B1. Calculate the coordinate data and center position coordinates of scattered cattle and sheep Straight line distance ; B2. The coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance and manually set endpoint to center position coordinates Straight line distance Make a difference. When the difference is less than or equal to 0, it is determined that the scattered cattle and sheep have exceeded the electronic fence; B3. Generate a lost signal.
7. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 6 is characterized by: The coordinate data and center position coordinates of the scattered cattle and sheep Straight line distance The calculation expression is as follows: In the formula, The X-axis coordinate data representing the coordinate data of scattered cattle and sheep. Represents the Y-axis coordinate data of the coordinate data of scattered cattle and sheep.
8. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 6 is characterized by: The steps of generating the warning signal of imminent loss are as follows: C1. The coordinate data of scattered cattle and sheep and the coordinates of the center position Straight line distance and manually set endpoint to center position coordinates Straight line distance Take the difference, when the difference is greater than 0 and less than or equal to 0.2 When the electric fence is opened, it is determined that there are scattered cattle and sheep about to go beyond the electric fence; C2. Generate an early warning signal of impending loss.
9. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 8, characterized in that: The expression for judging that scattered cattle and sheep are about to exceed the electronic fence is as follows: In the formula, Indicates the manually set endpoint to center position coordinates Straight line distance The distance of 0.2 is the warning distance.
10. The Internet of Things-based early warning system for preventing lost free-range cattle and sheep according to claim 9, characterized in that: The lost warning unit also includes a display end and an audio end. The display end is used to display the coordinate data of the lost cattle and sheep and the coordinate data of the cattle and sheep that are about to be lost, and the audio end is used to emit a warning sound.
Citation Information
Patent Citations
Free-ranging beef cattle positioning and early warning system
CN104463688A
Grazing unmanned aerial vehicle and herd tracking method
CN110197500A
Monitoring method based on electronic fence, terminal, terminal group and storage medium
CN111107322A
Target tracking method and device, equipment and medium
CN116126019A
Electronic necklace with virtual fence function
CN117296739A
Cited By
Electronic fence
CN120584781A