Multi-animal activity trajectory tracking system and method based on infrared beacon following
By emitting infrared signals of different frequencies onto the animal through an infrared beacon tracking system, and combining this with servo motor gimbal and image acquisition processing, multi-target animal behavior tracking in dark environments is achieved. This solves the problems of high cost and low resolution in existing technologies, and provides low-power, high-efficiency animal trajectory tracking and early warning functions.
Patent Information
- Application Number
- CN202611120767.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-27
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to achieve efficient and economical multi-target animal behavior tracking in dark environments, especially in fully dark environments where target separation and identification are difficult, and the equipment costs and computing power requirements are high.
A multi-animal activity trajectory tracking system using infrared beacon tracking works by having animals wear infrared transmitters of different frequencies. The system uses a servo motor gimbal and an image acquisition terminal to identify the flashing frequency of the infrared signal and control the gimbal to rotate in order to track the animal. It combines low-power open-source hardware and edge-side algorithms to achieve identification and trajectory tracking.
Robust identification of multiple targets and low-cost data output are achieved in a completely dark environment. The hardware cost is less than 20,000 RMB. A single beacon can run continuously for 1-2 weeks. It is adaptable to multiple scenarios and can be upgraded to a multi-dimensional perception and early warning platform.
Smart Images

Figure CN123141503A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of animal behavior monitoring technology, and in particular to a multi-animal activity trajectory tracking system and method based on infrared beacon tracking. Background Technology
[0002] In basic life science research, automated analysis of animal behavior is becoming an indispensable technological support. Experiments in neuroscience, drug screening, and behavioral phenotypic analysis often require simulating diverse lighting conditions, which places multiple demands on data acquisition equipment, including full-dark environment recording, accurate multi-target differentiation, and low-cost automated data output.
[0003] While traditional manual observation was once the mainstream method, it was highly subjective, inefficient, and unable to capture millisecond-level dynamic changes. With technological advancements, automated tracking systems have gradually become more widespread, and the current mainstream approaches mainly fall into four categories: visible light imaging, infrared illumination, thermal imaging, and commercial behavioral analysis software.
[0004] However, all four technologies have significant limitations: visible light imaging is not applicable to dark-cycle, optogenetic, or light-avoidance experiments, and individual identities are easily confused when animals block each other; infrared illumination may continuously interfere with the animals' natural rhythms, and there is also a risk of identity swapping when they overlap; thermal imaging is suitable for target detection at night, but its resolution is limited, its ability to distinguish individuals is weak, and the equipment is expensive and data storage is a heavy burden; commercial software has complete functions, but its procurement and maintenance costs are high, and it often relies on fixed scenes, high-performance cameras, and GPU (graphics processing unit) computing power, making it difficult to popularize.
[0005] In summary, existing technologies struggle to balance adaptability to dark environments, robustness in multi-target tracking, and cost-effective data output, necessitating a more comprehensive alternative. Summary of the Invention
[0006] This application provides a multi-animal activity trajectory tracking system and method based on infrared beacon tracking to solve the problems in the prior art.
[0007] On the one hand, embodiments of this application provide a multi-animal activity trajectory tracking system based on infrared beacon tracking, including: Infrared transmitters are worn on the animals being tracked, and different animals wear infrared transmitters that emit infrared signals at different frequencies. Servo gimbal; The image acquisition end is set on the servo gimbal. The image acquisition end acquires infrared images containing infrared signals. The animal's identity is determined according to the flashing frequency of the infrared signals in the infrared image. After processing the infrared image, the center position of the bright spot representing the infrared signal in the infrared image is determined. The servo gimbal is then controlled to rotate so that the image acquisition end is directly facing the infrared transmitter. The data storage device is electrically connected to the image acquisition terminal, and the rotation angle of the servo gimbal is stored in the data storage device through the image acquisition terminal. The host computer is used to read and analyze data from the data storage device to obtain the animal's activity trajectory.
[0008] On the other hand, embodiments of this application also provide a method for tracking the activity trajectories of multiple animals based on infrared beacon tracking, including: Infrared transmitters are worn on the tracked animals, and different animals wear infrared transmitters that emit infrared signals at different frequencies. Acquire infrared images containing infrared signals; The animal's identity is determined by the flashing frequency of the infrared signal in the infrared image. After processing the infrared image, the center position of the bright spot representing the infrared signal in the infrared image is determined. The servo motor gimbal is then controlled to rotate so that the image acquisition end is directly facing the infrared transmitter. The rotation angle of the servo gimbal is stored in a data storage device; The data in the data storage device is read and analyzed to obtain the animal's activity trajectory.
[0009] The multi-animal activity trajectory tracking system and method based on infrared beacon tracking in this application has the following advantages: 1. An infrared beacon that actively emits infrared signals is used to separate the target from the complex background in a completely dark environment, thus overcoming the problem of visible light tracking failure.
[0010] 2. Frequency division multiple access identification is adopted, with each animal corresponding to a flashing frequency, which avoids identity swapping when multiple animals are crowded at the physical layer.
[0011] 3. It adopts low-power open-source hardware and edge-side algorithms, with a total power consumption of less than 2W. A single beacon can run continuously for 1 to 2 weeks, and the hardware cost is in the 500 RMB range, which has both scientific research value and popularization value.
[0012] 4. The trajectory tracking can be upgraded to a "multi-dimensional perception + closed-loop feedback + aquaculture early warning" platform to enhance adaptability to multiple scenarios. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the composition of a multi-animal activity trajectory tracking system based on infrared beacon tracking provided in an embodiment of this application.
[0015] Figure 2 This is a schematic diagram of the bright spot center region and the corresponding control vector determined by the OpenMV master camera during image processing, as provided in the embodiments of this application.
[0016] Figure 3 The trajectory diagram output by the infrared acquisition terminal provided in the embodiment of this application.
[0017] Figure 4 The heat map is output by the host computer after analysis, as provided in the embodiments of this application.
[0018] Figure 5 The active time period diagram is output by the host computer after analysis, as provided in the embodiments of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] Figure 1 This is a schematic diagram illustrating the composition of a multi-animal activity trajectory tracking system based on infrared beacon tracking, as provided in an embodiment of this application. This embodiment of the application provides a multi-animal activity trajectory tracking system based on infrared beacon tracking, including: Infrared transmitters are worn on the animals being tracked, and different animals wear infrared transmitters that emit infrared signals at different frequencies. Servo gimbal; The image acquisition end is set on the servo gimbal. The image acquisition end acquires infrared images containing infrared signals. The animal's identity is determined according to the flashing frequency of the infrared signals in the infrared image. After processing the infrared image, the center position of the bright spot representing the infrared signal in the infrared image is determined. The servo gimbal is then controlled to rotate so that the image acquisition end is directly facing the infrared transmitter. The data storage device is electrically connected to the image acquisition terminal, and the rotation angle of the servo gimbal is stored in the data storage device through the image acquisition terminal. The host computer is used to read and analyze data from the data storage device to obtain the animal's activity trajectory.
[0021] For example, the infrared transmitter mainly comprises a housing, a circuit board, and a battery. The housing features a rounded corner design to reduce the risk of injury to animals from sharp edges. The housing is also bite-proof and waterproof, allowing the infrared transmitter to function normally even when the animal is active. The circuit board and battery are integrated into the housing. The battery is a button cell, and when the battery is depleted, the housing can be opened to replace it, reducing the weight of the infrared transmitter and improving its reusability.
[0022] Specifically, the circuit board has a driver chip and infrared LED (light-emitting diode) beads. The driver chip is used to drive the infrared LED beads to light up at a set frequency, thereby generating an infrared signal with a wavelength of 850nm.
[0023] The servo gimbal specifically employs a dual-axis digital servo, capable of angle adjustment in both horizontal and vertical degrees of freedom. Therefore, the rotation angle of the servo gimbal includes the horizontal angle Pan and the pitch angle Tilt. In the embodiments of this application, the rotation angle of the dual-axis digital servo is 360° horizontally and ±30° vertically.
[0024] The image acquisition unit includes an OpenMV master camera, an infrared wide-angle lens, and an infrared filter. The infrared wide-angle lens is mounted on the OpenMV master camera, and the infrared filter is set on the light-inlet side of the infrared wide-angle lens.
[0025] Specifically, the OpenMV master camera is model OpenMV H7, and the infrared wide-angle lens is an infrared lens without an IR-cut (infrared filter switcher). The frame rate of the entire image acquisition end for acquiring infrared images is greater than 30 FPS (frames per second). After setting the infrared filter in this embodiment, only infrared light with a wavelength of 850nm is allowed to be acquired by the OpenMV master camera. Therefore, in the infrared image, the area where the infrared signal is located will appear as a bright spot, while other background areas will be almost completely black. This can greatly reduce the computing power requirements of the image acquisition end in the image processing process.
[0026] Furthermore, the image acquisition end processes the infrared image as follows: Convert infrared images to grayscale images; Convert the grayscale image into a binary image according to the set threshold value; Aggregate connected pixels in the binary image into bright spots; Calculate the geometric center of the bright spot.
[0027] Specifically, in the process of converting a grayscale image into a binary image, the threshold is 235. That is, pixels with a grayscale value greater than or equal to 235 in the grayscale image are set to a grayscale value of 1, representing white, while the grayscale values of the remaining pixels are set to 0, representing black. In this way, the resulting binary image will only contain two grayscale values, 0 and 1.
[0028] like Figure 2 As shown, after generating the binary image, connected component detection will be performed, which means determining whether all pixels with a gray value of 1 in the binary image are adjacent. If so, all pixels with adjacent relationships will be aggregated into the same connected component, which is the bright spot.
[0029] Since the image acquisition device faces multiple animals, and each animal's infrared emitter emits infrared signals at different frequencies, there may be two or more bright spots simultaneously in the same infrared image. To address this, in this embodiment, after aggregating the bright spots, if multiple bright spots exist in the binary image, the area between any two bright spots is compared, and the bright spot with the largest area is selected. This largest bright spot represents the infrared emitter that the image acquisition device will be facing directly.
[0030] In the embodiments of this application, in addition to selecting the bright spot with the largest area, the embodiments of this application also set a minimum area for the bright spot. That is, bright spots with an area less than 5px (5 pixels) are not considered valid bright spots, and only bright spots with an area of 5px or more are compared in terms of area. If the binary image has only one bright spot, and the area of that bright spot is less than 5px, then it is considered that there is no bright spot in the image.
[0031] Furthermore, after determining the geometric center of the bright spot, the error vector is determined with the center coordinates of the binary image as the starting point and the geometric center of the bright spot as the ending point. Based on the error vector, the rotation angle of the servo gimbal in the horizontal and vertical directions is determined, and the rotation of the servo gimbal is controlled.
[0032] Specifically, in Figure 2 In the image, the green box represents the connected component BLOB where the bright spot is located, and the cyan cross and the central circle represent the center position of the current binary image. Therefore... Figure 2 The yellow arrow in the diagram represents the error vector. This vector corresponds to the difference between the horizontal and vertical coordinates. The correspondence between coordinates and angles can be determined through the initial calibration after system deployment. Based on this correspondence, the rotation angle of the servo gimbal in both the horizontal and vertical directions can be calculated.
[0033] Furthermore, the image acquisition end uses the PD (proportional-derivative) algorithm to perform closed-loop control of the servo gimbal.
[0034] Specifically, this application embodiment also sets a deviation threshold, which is a very small but non-zero angle, such as 2° or 1°. During the control of the servo gimbal, the servo gimbal's drive controller compares the rotation angle corresponding to the error vector with the deviation threshold. If the deviation is not below the threshold, the servo is controlled to continue rotating; otherwise, the servo is controlled to stop rotating. Setting a non-zero deviation threshold can effectively eliminate the jitter after the servo has rotated to the correct position.
[0035] Furthermore, after analyzing the data in the data storage device, the host computer also obtains a heat map and an active period map.
[0036] Specifically, the data stored in the data storage device includes the horizontal angle Pan and pitch angle Tilt of the servo gimbal at the moment corresponding to each frame of infrared image. However, these angles represent the state of the servo in three-dimensional space and cannot be directly drawn as a two-dimensional activity trajectory diagram. Therefore, in this embodiment, the horizontal angle Pan and pitch angle Tilt are converted into corresponding two-dimensional coordinates according to the following formula: m x =(Pan+75) / 150×W m y =(Tilt+40) / 80×H Where, m x m y Here, x and y are the horizontal and vertical coordinates in the activity trajectory diagram, respectively. Pan and Tilt are the horizontal and vertical angles of the servo gimbal, respectively, in degrees. W and H are the width and height of the activity trajectory diagram, respectively, in pixels. The activity trajectory diagram obtained by converting the horizontal and vertical angles according to the above rules is as follows: Figure 3 As shown.
[0037] In addition to the activity trajectory map, the host computer can also analyze the data stored in the data storage device to obtain heat maps and active period maps. The heat map represents the duration an animal spends at a certain location on the activity trajectory map; the longer the stay, the darker the color in the heat map. Figure 4 As shown in the diagram, the active period graph represents the cumulative rotation angle of the servo gimbal caused by animal activity within a set time interval (5 minutes in this embodiment). A larger value indicates greater animal activity during that time period, meaning the animal is more active. Figure 5 As shown.
[0038] Furthermore, the infrared transmitter integrates a temperature sensor, an acceleration sensor, and a heart rate sensor to collect the animal's body temperature, acceleration, and heart rate, respectively. The collected data is stored in a data storage device, and the host computer analyzes the data to determine the animal's health status and behavioral data.
[0039] Specifically, body temperature and heart rate reflect an animal's health status. If an animal is unwell, its body temperature and heart rate will show significant changes. Therefore, comparing these values with pre-set standard values can determine the animal's health status. Acceleration, on the other hand, reflects an animal's behavior. For example, a prolonged period of zero acceleration indicates the animal is at rest; a relatively large acceleration over a long period with minimal changes indicates the animal is walking; and a rapid change in acceleration within a short period indicates the animal is running or jumping. By comparing these acceleration values with pre-set acceleration thresholds in the host computer, various animal behaviors can be identified.
[0040] This application also provides a method for tracking the activity trajectories of multiple animals based on infrared beacon tracking, including the following steps: Infrared transmitters are worn on the tracked animals, and different animals wear infrared transmitters that emit infrared signals at different frequencies. Acquire infrared images containing infrared signals; The animal's identity is determined by the flashing frequency of the infrared signal in the infrared image. After processing the infrared image, the center position of the bright spot representing the infrared signal in the infrared image is determined. The servo motor gimbal is then controlled to rotate so that the image acquisition end is directly facing the infrared transmitter. The rotation angle of the servo gimbal is stored in a data storage device; The data in the data storage device is read and analyzed to obtain the animal's activity trajectory.
[0041] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0042] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A multi-animal activity trajectory tracking system based on infrared beacon tracking, characterized in that, include: An infrared transmitter is worn on the animal being tracked, and the infrared transmitter worn by different animals emits infrared signals at different frequencies; Servo gimbal; An image acquisition end is set on the servo gimbal. The image acquisition end acquires an infrared image containing the infrared signal, determines the animal's identity according to the flashing frequency of the infrared signal in the infrared image, determines the center position of the bright spot representing the infrared signal in the infrared image after processing the infrared image, and controls the servo gimbal to rotate so that the image acquisition end faces the infrared transmitter. A data storage device is electrically connected to the image acquisition terminal, and the rotation angle of the servo gimbal is stored in the data storage device through the image acquisition terminal; The host computer is used to read and analyze the data in the data storage device to obtain the animal's activity trajectory.
2. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 1, characterized in that, The image acquisition terminal processes the infrared image as follows: Convert the infrared image into a grayscale image; The grayscale image is converted into a binary image according to a set threshold value; The connected pixels in the binary image are aggregated into the bright spot; Calculate the geometric center of the bright spot.
3. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 2, characterized in that, After the bright spot is obtained by aggregation, if there are multiple bright spots in the binary image, the area between any two bright spots is compared, and the bright spot with the largest area is selected.
4. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 2, characterized in that, After determining the geometric center of the bright spot, an error vector is determined with the center coordinates of the binary image as the starting point and the geometric center of the bright spot as the ending point. Based on the error vector, the rotation angle of the servo gimbal in the horizontal and vertical directions is determined, and the rotation of the servo gimbal is controlled.
5. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 1, characterized in that, The image acquisition terminal uses the PD algorithm to perform closed-loop control of the servo gimbal.
6. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 1, characterized in that, After analyzing the data in the data storage device, the host computer also obtains a heat map and an active period map.
7. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 1, characterized in that, The infrared transmitter integrates a temperature sensor, an acceleration sensor, and a heart rate sensor to collect the animal's body temperature, acceleration, and heart rate, respectively. The collected data is stored in the data storage device, and the host computer analyzes the data to determine the animal's health status and behavioral data.
8. The multi-animal activity trajectory tracking system based on infrared beacon tracking according to claim 1, characterized in that, The image acquisition terminal includes an OpenMV master camera, an infrared wide-angle lens, and an infrared filter. The infrared wide-angle lens is mounted on the OpenMV master camera, and the infrared filter is located on the light-inlet side of the infrared wide-angle lens.
9. A method applied to the multi-animal activity trajectory tracking system based on infrared beacon tracking as described in any one of claims 1-8, characterized in that, include: An infrared transmitter is worn on the tracked animal, and the infrared transmitter worn by different animals emits infrared signals at different frequencies; Acquire an infrared image containing the infrared signal; The animal's identity is determined according to the flashing frequency of the infrared signal in the infrared image. After processing the infrared image, the center position of the bright spot representing the infrared signal in the infrared image is determined, and the servo motor gimbal is controlled to rotate so that the image acquisition end is directly facing the infrared transmitter. The rotation angle of the servo gimbal is stored in a data storage device; The data in the data storage device is read and analyzed to obtain the animal's activity trajectory.
