Live pig positioning system and method for farm
By setting up anchor nodes and Bluetooth ear tags in the farm, and using a weighted algorithm for precise positioning, the problems of safety hazards and inaccurate positioning in traditional pig raising methods are solved, and low-cost and efficient pig management is achieved.
Patent Information
- Application Number
- CN202410716188.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-10
AI Technical Summary
There are huge safety hazards and health problems in the traditional way of raising pigs. Modern pig factories install cameras to achieve 24-hour monitoring, but the cost is high and the positioning is inaccurate.
Provides a pig positioning system for farms, including anchor nodes, identification devices, positioning servers and users. It uses communication modules such as Bluetooth ear tags and LoRa modules to accurately locate target animals by constructing virtual maps and weighted algorithms.
It achieves low-cost, low-maintenance precise positioning, can complete comprehensive positioning and location information analysis of pigs, achieves real-time and efficient management, reduces labor costs, and improves pig raising efficiency and pork quality and safety.
Smart Images

Figure CN118625252A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of animal positioning, and in particular relates to a pig positioning system and method for a breeding farm. Background Art
[0002] The pig farming industry occupies an important position in agricultural production. In recent years, China's pig farming industry has developed by leaps and bounds, with the annual number of live pigs reaching hundreds of millions. The pig farming industry has also evolved from family-based individual farming to large-scale farming, and the farming industry has entered a stage of rapid development.
[0003] Traditional pig farming methods are "chaotic" and pose huge safety risks and health problems. Modern pig farms tend to achieve maximum separation between humans and pigs in pig farms, as well as 24-hour all-round monitoring of manpower and materials to ensure the survival rate of pigs and reduce labor costs. Some modern pig farms have achieved 24-hour image-based monitoring in pig farms by installing cameras and other equipment, but the installation cost, operating cost and maintenance cost are relatively high, and the positioning is inaccurate. Summary of the invention
[0004] The purpose of the present invention is to provide a pig positioning system and method for use in a breeding farm to solve the problems existing in the above-mentioned prior art.
[0005] To achieve the above-mentioned purpose, the present invention provides a pig positioning system for a breeding farm, comprising an anchor node, an identification device, a positioning service end and a user end;
[0006] There are a number of anchor nodes, each of which is installed on a supporting structure in the farm at a set height, and each target animal in the farm is installed with the identification device;
[0007] Each of the anchor nodes is connected in communication with the positioning service end and each of the identification devices through a communication module, and the positioning service end is also connected in communication with the user end.
[0008] Optionally, the positioning server includes a communication module, a database module and an application server connected in sequence.
[0009] Optionally, the supporting structure includes one or more of walls, fences and pillars.
[0010] Optionally, the communication module includes one or more of a LoRa module, a 2.5G communication module, a 3G communication module, a 4G communication module, and a 5G communication module.
[0011] Optionally, the identification device adopts a Bluetooth ear tag.
[0012] A method for locating live pigs for a breeding farm, applied to a live pig locating system for a breeding farm, comprising:
[0013] Obtaining a floor plan of the farm, and constructing a virtual map in the positioning service end based on the floor plan;
[0014] Obtaining node identification data of each anchor node, and recording node position data of each anchor node with the virtual map as a reference system;
[0015] Enable each Bluetooth ear tag to transmit a signal according to a set period, and obtain the signal strength data corresponding to the signal transmitted by each anchor node when receiving the signal transmitted by the Bluetooth ear tag;
[0016] The application server locates the target animal based on the signal strength data and the node position data, obtains the position data of the target animal and displays it visually in the user terminal.
[0017] Optionally, the application server locates the target animal based on the signal strength data and the node location data, specifically including:
[0018] Arrange the signal strength data corresponding to each of the anchor nodes in descending order to obtain a signal strength vector, and select a number of signal strength data from the signal strength vector based on the arrangement order;
[0019] Building an anchor node set based on node position data of the anchor nodes corresponding to the selected signal strength data;
[0020] The anchor node set is weighted calculated based on a weighted algorithm to obtain the location data of the target animal.
[0021] Optionally, weighted calculation is performed on the anchor node set based on a weighted algorithm to obtain the location data of the target animal. The specific calculation formula is:
[0022] Normalize the anchor node set:
[0023]
[0024] Define weights:
[0025]
[0026] Calculate the location data of the target animal based on a weighted algorithm
[0027]
[0028] In the formula, is the normalized anchor node set, is the weight, is the horizontal coordinate data of the target animal, is the vertical coordinate data of the target animal, x' i is the horizontal coordinate data of the i-th anchor node, y' i is the ordinate data of the i-th anchor node, and i=1, 2, 3 is the number of anchor nodes.
[0029] The technical effects of the present invention are:
[0030] The indoor positioning solution based on the Bluetooth gateway and ear tag device of the present invention not only has the advantages of low installation and maintenance costs and accurate positioning, but also can complete the comprehensive positioning and position information analysis of pigs, and realize real-time and efficient management. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0033] Figure 1 This is a flow chart of the deployment of the pig breeding factory positioning system in an embodiment of the present invention;
[0034] Figure 2 This is a system architecture diagram of the pig breeding factory positioning method in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] Various exemplary embodiments of the present invention will now be described in detail. This detailed description should not be considered as limiting the present invention, but should be understood as a more detailed description of certain aspects, features, and embodiments of the present invention.
[0036] It should be understood that the terms described in the present invention are only for describing special embodiments and are not intended to limit the present invention. In addition, for the numerical range in the present invention, it should be understood that each intermediate value between the upper and lower limits of the scope is also specifically disclosed. Each smaller range between the intermediate value in any stated value or stated range and any other stated value or intermediate value in the described range is also included in the present invention. The upper and lower limits of these smaller ranges can be independently included or excluded in the scope.
[0037] Unless otherwise indicated, all technical and scientific terms used herein have the same meanings as those of ordinary skill in the art generally understood by the present invention. Although the present invention describes only preferred methods, any method similar or equivalent to that described herein may also be used in the implementation or testing of the present invention. All documents mentioned in this specification are incorporated by reference to disclose and describe the methods related to the documents. In the event of a conflict with any incorporated document, the content of this specification shall prevail.
[0038] It will be apparent to those skilled in the art that various modifications and variations may be made to the specific embodiments of the present invention description without departing from the scope or spirit of the present invention. Other embodiments derived from the present invention description will be apparent to those skilled in the art. The present application description and examples are exemplary only.
[0039] The words “include,” “including,” “have,” “contain,” etc. used in this article are open-ended terms, meaning including but not limited to.
[0040] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0041] Embodiment 1
[0042] like Figure 1 - Figure 2 As shown, in this embodiment, a pig positioning system for a breeding farm is provided, including an anchor node, an identification device, a positioning service end and a user end; the anchor nodes are provided in a plurality, each of which is installed on a supporting structure in the breeding farm at a set height, and each target animal in the breeding farm is installed with the identification device; each of the anchor nodes is connected to the positioning service end and each of the identification devices through a communication module, and the positioning service end is also connected to the user end. The communication module includes one or more of a LoRa module, a 2.5G communication module, a 3G communication module, a 4G communication module, and a 5G communication module.
[0043] A method for locating live pigs for a breeding farm is applied to a live pig positioning system for a breeding farm, comprising: obtaining a plan of a breeding farm, and constructing a virtual map in a positioning service end based on the plan; obtaining node identification data of each anchor node, and recording node position data of each anchor node with the virtual map as a reference system; causing each Bluetooth ear tag to transmit a signal according to a set period, and obtaining signal strength data corresponding to when each anchor node receives a signal emitted by the Bluetooth ear tag; an application server locates a target animal based on the signal strength data and the node position data, obtains the position data of the target animal, and displays it visually in a user end.
[0044] This embodiment is aimed at modern medium and large-scale pig breeding factories, and designs a smart pig breeding factory positioning method and system based on Bluetooth RSSI. The system is mainly composed of a Bluetooth gateway (anchor node), a Bluetooth ear tag, a server, and an application system. Among them, the Bluetooth ear tag is placed on the target object, including pigs, personnel, equipment and materials, etc. that need to be managed and counted; the Bluetooth gateway (anchor node) is fixed on the roof, wall, fence or pillar according to the structure in the pig breeding factory, and the height is higher than 2m. The Bluetooth gateway can receive the broadcast signal of the Bluetooth ear tag and is connected to the server via WiFi. After receiving the Bluetooth ear tag signal, it sends its own identification, ear tag identification and signal value to the server; on the server side, according to the information sent by multiple Bluetooth gateways, the RSSI vector of the ear tag is established, and the positions of the three non-collinear Bluetooth gateways with the strongest signals are selected, and the weighted algorithm is used to give the position estimate of the ear tag and store it. On the application system side, users can view the information and statistics related to the location as needed to manage the object.
[0045] The indoor positioning solution based on Bluetooth gateway and ear tag equipment not only has the advantages of low installation and maintenance costs and accurate positioning, but also can complete the comprehensive positioning and location information analysis of people, pigs and objects, and realize real-time and efficient management. This embodiment realizes the accurate positioning of people, pigs and objects by binding the positioning object with the positioning ear tag in the pig farm, and provides location data support for the application end.
[0046] The overall deployment and workflow of the positioning system are as follows: Figure 1 The method mainly includes the following steps:
[0047] (1) Install the anchor nodes in the pig breeding factory to a pre-selected location, usually on the roof or on a wall, fence or pillar higher than 2 meters;
[0048] (2) Obtaining a floor plan of the pig breeding factory and transmitting it to the positioning system server to obtain a virtual map of indoor positioning;
[0049] (3) storing the identifiers of all anchor nodes and their location coordinates with reference to the virtual map, forming a data collection of anchor node location information;
[0050] (4) Place a Bluetooth ear tag on the target object, and set the broadcast interval to 1000ms
[0051] (5) The anchor node receives the signal strength from the ear tag carried by the positioning object, and sends it together with the ear tag identifier to the positioning server to obtain the positioning RSSI data;
[0052] (6) The positioning server provides the location information of the positioning target object and transmits it to the application system;
[0053] (7) The application system performs location-based analysis, statistics and management according to user requirements.
[0054] Positioning process: The indoor positioning method system architecture involved in this embodiment is as follows Figure 2 As shown in Figure 1, the positioning process is divided into two stages. The first stage is the anchor node location data collection stage, and the second stage is the Bluetooth ear tag RSS set collection and positioning stage of the positioning target.
[0055] In the first stage, when the anchor node is fixed, it sends the location data to the server database via WiFi. Assume that the location data format of the i-th anchor node is as follows:
[0056] P i =(A i , x i ,y i )
[0057] Among them, A i is the identifier of the i-th anchor node, (x i ,y i ) is the position coordinate of the i-th anchor node.
[0058] In the second stage, when the Bluetooth ear tag carried by the positioning target object transmits a signal, the anchor node within a certain range is responsible for receiving the signal and sending it to the server via Wifi. The RSSI value of the ear tag is sorted in descending order on the server to form an RSSI vector. Suppose the RSSI vector of the jth ear tag is as follows:
[0059]
[0060] in, represents the RSSI from the jth ear tag received by the i-th anchor node.
[0061] From the descending sorted R j Select the first three non-collinear anchor node sets from (A′1, A′2, A′3), and the corresponding position data is (x′ i , y′ i )(i=1, 2, 3). At this time, the RSSI vectors of the ear tags received by the three anchor nodes are:
[0062]
[0063] Here, the position coordinates of the positioning object are obtained by using the position data of the three anchor nodes and a weighted algorithm.
[0064] First, normalize the RSSI data as follows:
[0065]
[0066] Then, the weights are defined as follows:
[0067]
[0068] Finally, the following weighted formula is used to obtain the position estimate of the target object:
[0069]
[0070] The Bluetooth ear tag uses the above process to obtain real-time position estimation on the server side by periodically broadcasting signals and storing it in the database for use by the application system.
[0071] In the application system interface, according to user needs, different interfaces can be displayed according to the type of positioning target object, replacing different display interfaces and management functions. For pig objects, their real-time movement trajectory, activity range statistics, behavior analysis and comprehensive management can be displayed; for staff objects, their work trajectory, work statistics and behavior analysis can be displayed, and staff management can be assisted; for material objects, real-time location tracking, statistical data and comprehensive management functions can be displayed.
[0072] This embodiment uses low-power Bluetooth devices and positioning technology to implement a system for analyzing, counting and managing pigs, personnel and materials based on location information. The system can reduce labor costs, improve pig farming efficiency, and improve the farming environment, thereby better ensuring the quality and safety of pork.
[0073] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A pig positioning system for a breeding farm, characterized in that: It includes anchor nodes, identification devices, positioning service terminals and user terminals; There are a number of anchor nodes, each of which is installed on a supporting structure in the farm at a set height, and each target animal in the farm is installed with the identification device; Each of the anchor nodes is connected in communication with the positioning service end and each of the identification devices through a communication module, and the positioning service end is also connected in communication with the user end.
2. A pig positioning system for a breeding farm according to claim 1, characterized in that: The positioning service end includes a communication module, a database module and an application server which are connected in sequence.
3. A pig positioning system for a breeding farm according to claim 1, characterized in that: The support structure includes one or more of walls, fences and pillars.
4. A pig positioning system for a breeding farm according to claim 1, characterized in that: The communication module includes one or more of a LoRa module, a 2.5G communication module, a 3G communication module, a 4G communication module, and a 5G communication module.
5. The pig positioning system for a breeding farm according to claim 1, characterized in that: The identification device adopts a Bluetooth ear tag.
6. A method for locating live pigs for a breeding farm, applied to a live pig locating system for a breeding farm as claimed in any one of claims 1 to 5, characterized in that: include: Obtaining a floor plan of the farm, and constructing a virtual map in the positioning service end based on the floor plan; Obtaining node identification data of each anchor node, and recording node position data of each anchor node with the virtual map as a reference system; Enable each Bluetooth ear tag to transmit a signal according to a set period, and obtain the signal strength data corresponding to the signal transmitted by each anchor node when receiving the signal transmitted by the Bluetooth ear tag; The application server locates the target animal based on the signal strength data and the node position data, obtains the position data of the target animal and displays it visually in the user terminal.
7. A method for locating live pigs in a breeding farm according to claim 6, characterized in that: The application server locates the target animal based on the signal strength data and the node location data, specifically including: Arrange the signal strength data corresponding to each of the anchor nodes in descending order to obtain a signal strength vector, and select a number of signal strength data from the signal strength vector based on the arrangement order; Building an anchor node set based on node position data of the anchor nodes corresponding to the selected signal strength data; The anchor node set is weighted calculated based on a weighted algorithm to obtain the location data of the target animal.
8. A method for locating live pigs in a breeding farm according to claim 7, characterized in that: The anchor node set is weighted based on a weighted algorithm to obtain the location data of the target animal. The specific calculation formula is: Normalize the anchor node set: Define weights: Calculate the location data of the target animal based on a weighted algorithm In the formula, is the normalized anchor node set, is the weight, is the horizontal coordinate data of the target animal, is the vertical coordinate data of the target animal, x' i is the horizontal coordinate data of the i-th anchor node, y' i is the ordinate data of the i-th anchor node, and i=1, 2, 3 is the number of anchor nodes.
Citation Information
Cited By
Automatic grading and grouping system and method for boars
CN120898740A
