Livestock delivery prompting light and method based on light detection

The livestock farrowing indicator light, which combines light detection and infrared sensors, solves the problem of difficult monitoring of livestock farrowing in large-scale farms, enabling flexible and reliable detection of farrowing status and reducing the risk of livestock mortality.

CN117377170BActive Publication Date: 2026-07-21BEIJING ACADEMY OF AGRICULTURE & FORESTRY SCIENCES
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING ACADEMY OF AGRICULTURE & FORESTRY SCIENCES
Filing Date
2023-10-31
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In large-scale automated livestock farms, the time of farrowing is concentrated and the farrowing process is long, which makes it busy for staff to monitor and can easily lead to livestock deaths, especially in ultra-large-scale farms where it is difficult to detect the time of farrowing in time.

Method used

The livestock farrowing indicator light is based on light detection and uses light sensors and infrared distance sensors to detect the farrowing status of livestock. It includes internal and external light sensors, auxiliary light and infrared pulse detection, and multiple auxiliary light sensors and infrared distance sensors work alternately to ensure accurate detection of farrowing status in different environments.

Benefits of technology

It enables flexible and reliable detection of livestock parturition in different lighting environments, reduces false alarms, avoids livestock deaths due to lack of care, and improves the monitoring efficiency and safety of the parturition process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117377170B_ABST
    Figure CN117377170B_ABST
Patent Text Reader

Abstract

The application discloses a livestock delivery prompt lamp and method based on light detection, and the livestock delivery prompt lamp based on light detection comprises a light emitting part, a battery and a control unit, wherein the control unit is connected to the battery and the light emitting part, and the battery provides power for the light emitting part and the control unit; the livestock delivery prompt lamp based on light detection is in a capsule structure as a whole, one end of which is the light emitting part, and the rear part of which comprises a cylindrical capsule main body, and the cylindrical capsule main body is provided with an internal light sensor on the surface thereof; the internal light sensor is used for detecting the light intensity irradiated to the surface of the cylindrical capsule main body, and is connected to the control unit and the battery; and the control unit is used for determining whether the livestock delivery prompt lamp based on light detection is discharged out of the livestock body according to the light intensity detected by the internal light sensor, and controlling the light emitting part to emit warning light if yes. The prompt lamp and method have the advantages of high reliability and wide application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to large-scale automated livestock farming technology, and in particular to a livestock farrowing indicator light and method based on light detection. Background Technology

[0002] Over the past few decades, with my country's continuous population growth, rising economic level, and rapid urban expansion, the proportion and total amount of animal protein consumed in the diet have been increasing, driving rapid growth in the scale of livestock farming. Furthermore, continuous development of farming technology has propelled the livestock industry from traditional to intensive farming. To reduce farming costs, large-scale automated livestock farms employ fewer staff and utilize automated feeding and cleaning technologies, ensuring economic efficiency. However, livestock farrowing periods are relatively concentrated and the process is lengthy. During farrowing, staff are extremely busy monitoring the condition of numerous animals, often resulting in livestock deaths due to lack of care. This is especially true in ultra-large-scale farms, where the large number of livestock makes timely detection of farrowing even more difficult. Summary of the Invention

[0003] To address the challenges posed by the concentrated and lengthy birthing periods in existing livestock technologies, which result in extremely busy work schedules for personnel monitoring numerous animals during birthing and frequent animal deaths due to lack of care, this invention proposes a light-detection-based livestock birthing indicator light and method. This light-detection-based indicator light can automatically detect the birthing status of livestock and is particularly adaptable to different ambient brightness levels and various special conditions, ensuring its wide applicability.

[0004] To achieve this goal, the present invention adopts the following technical solution.

[0005] A light-detection-based livestock farrowing indicator light includes a light-emitting unit, a battery, and a control unit. The control unit is connected to the battery and the light-emitting unit, and the battery provides power to the light-emitting unit and the control unit. The light-detection-based livestock farrowing indicator light has a capsule-shaped structure, with a light-emitting unit at one end and a cylindrical capsule body at the other. An internal light sensor is located on the surface of the cylindrical capsule body. The internal light sensor is used to detect the light intensity illuminating the surface of the cylindrical capsule body. The internal light sensor is connected to the control unit and the battery. The control unit determines whether the light-detection-based livestock farrowing indicator light has been emitted from the livestock's body based on the light intensity detected by the internal light sensor. If so, the control unit controls the light-emitting unit to emit a warning light.

[0006] Furthermore, in the livestock farrowing indicator light based on light detection of the present invention, the front end of the light-emitting part has a flexible extended light-emitting end, which is a hollow flexible tube. The flexible extended light-emitting end is disposed outside the livestock body. The flexible extended light-emitting end has an external light sensor and an external light emitter. The external light sensor and the external light emitter are connected to the control unit and the battery. The external light sensor is used to detect the ambient light intensity. When the ambient light intensity is lower than a predetermined threshold, the control unit controls the external light emitter to emit auxiliary light and controls the internal light sensor to detect the auxiliary light. Based on the intensity of the auxiliary light detected by the internal light sensor, it is determined whether the livestock farrowing indicator light based on light detection has been discharged from the livestock body. If so, the light-emitting part is controlled to emit a warning light.

[0007] In addition, in the livestock farrowing indicator light based on light detection of the present invention, the auxiliary light is a periodic pulsed light, and the light intensity of the auxiliary light is lower than that of the warning light emitted by the light-emitting part; the internal light sensor includes an ambient light sensor and an auxiliary light sensor. The ambient light sensor is used to detect the ambient light intensity illuminating the surface of the cylindrical capsule body, and the auxiliary light sensor is turned on during the pulsed emission of the auxiliary light to detect the auxiliary light intensity illuminating the surface of the cylindrical capsule body; the sensitivity of the auxiliary light sensor is higher than that of the ambient light sensor.

[0008] Furthermore, in the livestock farrowing indicator light based on light detection of the present invention, the auxiliary light sensor includes multiple sensors, which are distributed at equal intervals along the axial direction of the surface of the cylindrical capsule body; the control unit controls the multiple auxiliary light sensors to sequentially activate detection during the pulse emission of the auxiliary light, and the sequential activation of detection includes: The control unit first controls all auxiliary light sensors to turn on detection during the pulse emission of auxiliary light. When the intensity of auxiliary light detected by any auxiliary light sensor during the pulse emission of auxiliary light is stronger than a predetermined threshold, the control unit determines that the cylindrical capsule body surface segment corresponding to the auxiliary light sensor has been expelled from the animal body, and controls that auxiliary light sensor and the auxiliary light sensors located in front of it to stop turning on detection, leaving only the remaining auxiliary light sensors to continue turning on detection. The control unit determines the process of the cylindrical capsule body being expelled by livestock based on the detection results of multiple auxiliary light sensors during the pulse emission of auxiliary light, and controls the luminous intensity of the luminous part based on the process of the cylindrical capsule body being expelled by livestock.

[0009] In addition, in the livestock farrowing indicator light based on light detection of the present invention, the foremost end of the flexible extended light-emitting end has an annular handle, and the external light-emitting body includes multiple parts, which are arranged at intervals on the outer edge of the annular contour of the annular handle. The auxiliary light sensor is set at the connection between the cylindrical capsule body and the light-emitting part and on the outer surface of the cylindrical capsule body; the external light sensor is set at the connection between the annular handle and the hollow flexible tube body and on the outer edge of the annular contour of the annular handle.

[0010] In addition, in the livestock farrowing indicator light based on light detection of the present invention, the surface of the cylindrical capsule body is also provided with an infrared distance sensor. The infrared distance sensor is connected to the control unit and the battery. When the ambient light intensity detected by the external light sensor is lower than a predetermined threshold, the control unit controls the infrared distance sensor to emit infrared pulses and receive infrared reflections to detect the distance between the cylindrical capsule body and the surrounding reflective objects. Based on the distance between the cylindrical capsule body and the surrounding reflective objects detected by the infrared distance sensor, the control unit determines whether the livestock farrowing indicator light based on light detection has been expelled from the livestock body. If so, it controls the light-emitting part to emit a warning light.

[0011] Furthermore, in the livestock farrowing indicator light based on light detection of the present invention, the external light emitter emits auxiliary light according to a first pulse cycle, which includes a light emission period and a light off period. The auxiliary light sensor is turned on during the light emission period of the auxiliary light to detect the auxiliary light. The infrared distance sensor emits infrared pulses according to a second pulse cycle, which includes an infrared emission period and an infrared light off period. The second pulse cycle is an integer multiple of the first pulse cycle, and the infrared emission period is shorter than the light emission period, so that the infrared emission period in the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When the infrared distance sensor emits infrared pulses according to the infrared emission period, the external light emitter does not emit auxiliary light during the light emission period in the first pulse cycle that coincides with the infrared emission period in the second pulse cycle.

[0012] Furthermore, in the livestock farrowing indicator light based on light detection of the present invention, the external light emitter emits auxiliary light according to a first pulse cycle, which includes a light emission period and an off period. The auxiliary light sensor is turned on during the light emission period of the auxiliary light to detect the auxiliary light. Multiple infrared distance sensors are distributed circumferentially on the surface of the cylindrical capsule body. Each infrared distance sensor emits infrared pulses at intervals from the next infrared distance sensor according to a second pulse cycle, which includes an infrared emission period and an infrared off period. The second pulse cycle is an integer multiple of the first pulse cycle, and the infrared emission period is shorter than the light emission period, so that the infrared emission period in the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When any infrared distance sensor emits an infrared pulse according to the infrared emission period, the external light emitter does not emit auxiliary light during the light emission period in the first pulse cycle that coincides with the infrared emission period in the second pulse cycle.

[0013] In addition, in the livestock farrowing indicator light based on light detection of the present invention, the external light emitter emits auxiliary light according to a first pulse cycle, the first pulse cycle including a light emission period and a blackout period, the auxiliary light sensor is turned on during the light emission period of the auxiliary light to detect the auxiliary light; the infrared distance sensor includes multiple groups, each group of infrared distance sensors includes multiple sensors, the multiple infrared distance sensors in one group are circumferentially spaced on the surface of the cylindrical capsule body, and the infrared distance sensors in each group are axially spaced on the surface of the cylindrical capsule body; the control unit controls each group of infrared distance sensors to emit infrared pulses and receive infrared reflections respectively, and performs distance detection in sequence; the sequential distance detection includes: First, the first set of infrared distance sensors is used as the detection group infrared distance sensors. For each infrared distance sensor in the detection group, infrared pulses are emitted at intervals with the next infrared distance sensor in the group according to the second pulse period. The second pulse period includes an infrared emission period and an infrared off period. The second pulse period is an integer multiple of the first pulse period. The infrared emission period is shorter than the emission period, so that the infrared emission period in the second pulse period partially overlaps with the emission period every integer multiple of the first pulse period. When any infrared distance sensor emits an infrared pulse according to the infrared emission period, the external light emitter does not emit auxiliary light during the emission period in the first pulse period that coincides with the infrared emission period in the second pulse period. When any infrared distance sensor in the detection group detects that the distance between the cylindrical capsule body and the surrounding reflective objects is greater than a predetermined distance, the control unit determines that the surface section of the cylindrical capsule body corresponding to the auxiliary light sensor has been expelled by the livestock. The infrared distance sensor no longer emits infrared pulses or receives infrared reflections, and the next set of infrared distance sensors becomes the detection group infrared distance sensors. The control unit determines the process by which the cylindrical capsule body is expelled by livestock based on the detection results of each group of infrared distance sensors, and controls the luminous intensity of the light-emitting part based on the process by which the cylindrical capsule body is expelled by livestock.

[0014] The present invention also includes a method for indicating livestock parturition based on light detection, the method comprising the following steps: A. Detect ambient light intensity using an external light sensor; B1. When the ambient light intensity exceeds the predetermined threshold, the ambient light sensor in the internal light sensor is activated to detect the light intensity and determine whether the livestock birthing indicator light based on light detection has been expelled from the livestock. If so, the light-emitting part is controlled to emit a warning light. B2. When the ambient light intensity is below a predetermined threshold, the external light emitter is activated to emit auxiliary light, and the auxiliary light sensor in the internal light sensor is activated to detect the intensity of the auxiliary light. This determines whether the livestock farrowing indicator light, based on light detection, has been emitted from the livestock's body. If so, the light emitter is controlled to emit a warning light, and / or... B3. When the ambient light intensity is lower than a predetermined threshold, the infrared distance sensor on the surface of the cylindrical capsule body is activated to emit infrared pulses and receive infrared reflections, and the distance between the cylindrical capsule body and surrounding reflectors is detected. The control unit determines whether the livestock birthing indicator light based on light detection has been expelled from the livestock body according to the distance between the cylindrical capsule body and surrounding reflectors detected by the infrared distance sensor. If so, the light-emitting part is controlled to emit a warning light.

[0015] The technical effects of this invention include the following.

[0016] (1) In the light-detection-based livestock farrowing indicator light of the present invention, an innovative use of a light sensor on the surface of a cylindrical capsule body is employed to detect light intensity. Generally speaking, the inside of the birth canal is basically dark, while the farrowing chamber is relatively bright. Therefore, light detection is used as the basis for determining whether the light-detection-based livestock farrowing indicator light has been expelled from the livestock's body. The light-detection-based livestock farrowing indicator light of the present invention does not require a moving unit and does not require deformation. The detection is convenient and flexible because the light sensor composed of photosensitive components is widely used and has the advantages of simple selection and high sensitivity.

[0017] (2) The livestock farrowing indicator light based on light detection of the present invention can also be used in dark environments such as farrowing sheds in open-air environments. When used in a dark environment, even if the livestock farrowing indicator light is removed from the livestock body, the light sensor cannot detect the ambient light. Therefore, the present invention also provides an external light emitter that emits auxiliary light and detects the auxiliary light through a more sensitive auxiliary light sensor. Therefore, it has the advantages of being more flexible and having a wider range of applications.

[0018] (3) In addition to utilizing auxiliary light and auxiliary light sensor, this invention also considers the possibility that the external light source may be blocked, causing the auxiliary light sensor to be unable to detect the auxiliary light. Therefore, an infrared distance sensor is used as another auxiliary detection method. When the livestock farrowing indicator light based on light detection is located in the birth canal, the inner wall of the birth canal is detected to be close to or in close contact with the livestock farrowing indicator light based on light detection through infrared reflection. When the livestock farrowing indicator light based on light detection is discharged from the birth canal, the cylindrical capsule body is detected to be beyond the predetermined distance from the surrounding reflective objects through infrared reflection, or the surrounding reflective objects cannot be detected. Therefore, this invention uses two auxiliary methods in combination to avoid the problem that the livestock farrowing indicator light based on light detection cannot be used in the dark environment.

[0019] (4) The auxiliary light and infrared distance detection methods in this invention are not simply added together, but work in an alternating cycle. The auxiliary light has low energy, but is easily affected by the environment, such as obstructions, or cannot be detected because the external light source is pressed under the animal's body, so its reliability is slightly lower. Infrared distance detection has higher reliability, but higher energy, and is placed inside the birth canal to emit infrared pulses, so the duration is shorter and the interval is longer. During the emission of infrared pulses, there is no need to emit auxiliary light for repeated detection, but the auxiliary light can emit light and detect at a higher frequency and a shorter cycle. Therefore, when the two methods are used in combination, they each make use of their advantages, and the overall energy efficiency ratio is the highest. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the overall structure of a livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention.

[0021] Figure 2 This is a schematic diagram of the structure of multiple infrared distance sensors for a livestock farrowing indicator light based on light detection, according to a specific embodiment of the present invention.

[0022] Figure 3 This is a schematic diagram illustrating the working principle of a livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention.

[0023] Figure 4 This is a schematic diagram illustrating the working principle of a livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention.

[0024] Figure 5 This is a schematic diagram illustrating the working principle of a livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention. Detailed Implementation

[0025] The present invention will now be described in detail with reference to the accompanying drawings.

[0026] The following detailed exemplary embodiments are disclosed. However, the specific structural and functional details disclosed herein are merely for the purpose of describing exemplary embodiments.

[0027] However, it should be understood that the present invention is not limited to the specific exemplary embodiments disclosed, but covers all modifications, equivalents, and substitutions falling within the scope of this disclosure. Throughout the description of the drawings, the same reference numerals denote the same elements.

[0028] Referring to the accompanying drawings, the structures, proportions, sizes, etc., depicted in the drawings are merely for illustrative purposes to aid those skilled in the art in understanding and reading the content disclosed herein. They are not intended to limit the conditions under which the invention can be implemented and therefore have no substantial technical significance. Any modifications to the structure, changes in proportions, or adjustments to the size, without affecting the effects and objectives achieved by the invention, should still fall within the scope of the technical content disclosed herein. Furthermore, the positional limitations used in this specification are merely for clarity of description and are not intended to limit the scope of the invention. Changes or adjustments to their relative relationships, without substantially altering the technical content, should also be considered within the scope of the invention's implementation.

[0029] It should also be understood that the term “and / or” as used herein includes any and all combinations of one or more of the related listed items. Furthermore, it should be understood that when a component or unit is referred to as “connected” or “coupled” to another component or unit, it may be directly connected or coupled to the other component or unit, or there may be intermediate components or units. In addition, other words used to describe the relationship between components or units should be understood in the same manner (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).

[0030] Figure 1 This is a schematic diagram of the overall structure of a livestock farrowing lamp according to a specific embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of multiple infrared distance sensors for a livestock farrowing indicator light based on light detection, according to a specific embodiment of the present invention. Figure 1 and Figure 2 It also demonstrates the working principle of livestock farrowing lights. Figure 1 and Figure 2 The names corresponding to the reference numerals in the attached figures are as follows: 10: Capsule body, 20: Light-emitting part, 21: Tail, 30: Hollow core column, 50: Flexible extended light-emitting end, 51: External light sensor 52: External light source, 101: The outer surface of the capsule body, 102: Control unit, 103: Battery 201: Luminescent body 61: Internal light sensor, 62: Infrared distance sensor, 6211, 6212, 6213 and 6214 are the first group of infrared distance sensors; 6221, 6222, 6223, and 6224 are the second group of infrared distance sensors; 6231, 6232, 6233 and 6234 are the third group of infrared distance sensors; 6241, 6242, 6243 and 6244 are the fourth group of infrared distance sensors.

[0031] like Figure 1 As shown, a specific embodiment of the present invention includes a light-detection-based livestock farrowing indicator light, comprising a light-emitting part 20, a battery 103, and a control unit 102. The control unit 102 is connected to the battery 103 and the light-emitting part 20, and the battery 103 provides power to the light-emitting part 20 and the control unit 102. The light-detection-based livestock farrowing indicator light has a capsule-shaped structure, with the light-emitting part 20 at one end, followed by a cylindrical capsule body 10, and then a hemispherical tail 21. To facilitate the expulsion of amniotic fluid from the livestock during farrowing, the light-detection-based livestock farrowing indicator light has a hollow core column 30.

[0032] As shown in the figure, the cylindrical capsule body 10 has an internal light sensor 61 on its surface. The internal light sensor 61 is used to detect the light intensity shining on the surface of the cylindrical capsule body 10. The internal light sensor 61 is connected to the control unit 102 and the battery 103. The control unit 102 determines whether the livestock farrowing indicator light based on light detection has been expelled from the livestock body according to the light intensity detected by the internal light sensor 61. If so, it controls the light-emitting part 20 to emit a warning light.

[0033] The basic principle of the specific implementation of the present invention is as follows: When the animal farrowing indicator light based on light detection is located inside the animal's birth canal, it is basically in a completely dark state. At this time, the internal light sensor 61 on the surface 101 of the cylindrical capsule body 10 cannot detect ambient light. However, when the animal farrowing indicator light based on light detection is discharged from the animal's birth canal, since there is generally a certain brightness in the farrowing room environment, the internal light sensor 61 can detect ambient light of a certain intensity. For example, using a photoresistor as the internal light sensor 61, the change is reflected in the resistance value. The control unit 102 thus determines that the animal farrowing indicator light based on light detection has been discharged from the animal's body and starts to control the light-emitting part 20 to emit warning light.

[0034] The internal light sensor 61 can detect ambient light using either a timed wake-up detection method or a continuous monitoring method. Timed wake-up detection is more conducive to saving power, while the livestock farrowing indicator light based on light detection of the present invention has better real-time performance under the continuous monitoring method.

[0035] In addition, in the livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention, the front end of the light-emitting part 20 has a flexible extended light-emitting end 50, which is a hollow flexible tube. The flexible extended light-emitting end 50 is disposed outside the livestock body. An external light sensor 51 is provided on the flexible extended light-emitting end 50, and an external light emitter 52 is also provided on the flexible extended light-emitting end. The external light sensor 51 and the external light emitter 52 are connected to the control unit 102 and the battery 103. The external light sensor 51 is used to detect the ambient light intensity. When the ambient light intensity is lower than a predetermined threshold, the control unit 102 controls the external light emitter 52 to emit auxiliary light and controls the internal light sensor 61 to detect the auxiliary light. Based on the auxiliary light intensity detected by the internal light sensor 61, it is determined whether the livestock farrowing indicator light based on light detection has been discharged from the livestock body. If so, the light-emitting part 20 is controlled to emit a warning light.

[0036] In a previous embodiment of the present invention, the internal light sensor 61 detects the light intensity illuminating the surface of the cylindrical capsule body 10, thereby determining whether the livestock farrowing indicator light based on light detection has been expelled by the livestock. However, there is a special case—the external environment is also dark, or the external ambient light intensity is actually lower than a preset threshold. In this case, even if the livestock farrowing indicator light based on light detection is expelled by the livestock, the light intensity detected by the internal light sensor 61 illuminating the surface of the cylindrical capsule body 10 is still lower than the predetermined threshold, so this embodiment is difficult to function.

[0037] In this specific embodiment of the invention, an external light sensor 51 located at the front end of the flexible extended light-emitting end 50 detects the ambient light intensity. When the ambient light intensity detected by the external light sensor 51 is lower than a predetermined threshold, the control unit 102 controls the external light-emitting body 52 to emit auxiliary light. It should be noted that the auxiliary light uses a pulsed emission method. When the external light-emitting body 52 emits auxiliary light, the external light sensor 51 does not perform ambient light detection, while the internal light sensor 61 performs auxiliary light detection to avoid the auxiliary light being detected by the external light sensor 51 and misjudging that the ambient light intensity is higher than the predetermined threshold. When the internal light sensor 61 detects that the auxiliary light intensity exceeds the predetermined threshold, the control unit 102 determines that the livestock farrowing indicator light based on light detection has been emitted from the livestock's body, and therefore also controls the light-emitting part 20 to emit warning light.

[0038] Therefore, the specific embodiments of the present invention can work in various environments, places and external conditions, and have wide applicability.

[0039] In addition, in the livestock farrowing indicator light based on light detection in the specific embodiment of the present invention, the auxiliary light is a periodic pulsed light, and the light intensity of the auxiliary light is lower than that of the warning light emitted by the light-emitting part; the internal light sensor 61 includes an ambient light sensor and an auxiliary light sensor. The ambient light sensor is used to detect the ambient light intensity illuminating the surface 101 of the cylindrical capsule body, and the auxiliary light sensor is turned on during the pulsed emission of the auxiliary light to detect the auxiliary light intensity illuminating the surface 101 of the cylindrical capsule body; the sensitivity of the auxiliary light sensor is higher than that of the ambient light sensor.

[0040] This invention relates to a light-detection-based livestock farrowing indicator light for livestock, such as multiparous animals like pigs. Before farrowing, livestock need to avoid stress from strong light exposure. Therefore, this invention uses a periodic pulsed light with a relatively wide pulse width, and the intensity of the auxiliary light is significantly lower than the warning light emitted by the light-emitting unit. This avoids stress in the livestock and prevents the auxiliary light from being misidentified as a warning light and triggering a false alarm. Furthermore, the sensitivity of the auxiliary light sensor is significantly higher than that of the ambient light sensor. The sensing threshold for the auxiliary light is also much lower than that for ambient light. Therefore, the specific embodiments of this invention are characterized by energy saving, good stability, avoidance of erroneous interference, and prevention of excessive stress in livestock.

[0041] Furthermore, in the livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention, multiple auxiliary light sensors are included, and the multiple auxiliary light sensors are distributed at equal intervals along the axial direction of the surface 101 of the cylindrical capsule body; the control unit 102 controls the multiple auxiliary light sensors to sequentially activate detection during the pulse emission of the auxiliary light, and the sequential activation of detection includes: The control unit 102 first controls all auxiliary light sensors to turn on detection during the pulse emission of auxiliary light. When the intensity of auxiliary light detected by any auxiliary light sensor during the pulse emission of auxiliary light is stronger than a predetermined threshold, the control unit 102 determines that the cylindrical capsule body surface segment corresponding to the auxiliary light sensor has been expelled from the animal body, and controls the auxiliary light sensor and the auxiliary light sensors located in front of the auxiliary light sensor to stop turning on detection, and only keeps the remaining auxiliary light sensors on to continue to turn on detection. The control unit 102 determines the process of the cylindrical capsule body being expelled by livestock based on the detection results of multiple auxiliary light sensors during the pulse emission of auxiliary light, and controls the luminous intensity of the luminous part based on the process of the cylindrical capsule body being expelled by livestock.

[0042] In a specific embodiment of the present invention, a scheme of multiple vertically designed auxiliary light sensors is creatively provided, all of which can detect the auxiliary light emitted by the external light emitter 52. Therefore, the control logic of the control unit 102 is as follows: The external light emitter 52 emits light pulses as auxiliary light according to a predetermined first pulse cycle. During a portion of the first pulse cycle, the external light emitter 52 emits light, which is called the emitting period. During the remaining time periods, the external light emitter 52 does not emit light, which is called the off period. Assume there are a total of M auxiliary light sensors, numbered from 0 to M-1. These M auxiliary light sensors are distributed at equal intervals along the axial direction of the surface 101 of the cylindrical capsule body.

[0043] First, all M auxiliary light sensors are activated simultaneously during the emission of the external light source 52 to detect the auxiliary light.

[0044] When the i-th auxiliary light sensor detects the auxiliary light, the control unit 102 determines that the section of the cylindrical capsule body surface 101 corresponding to the i-th auxiliary light sensor has been expelled from the body by the livestock. Therefore, the i-th auxiliary light sensor and the 0-i-1 auxiliary light sensors in front of it no longer need to detect the auxiliary light. Only the (i+1)-M-1 auxiliary light sensors are kept running simultaneously during the emission of the external light source 52 to detect the auxiliary light.

[0045] Once all M auxiliary light sensors are turned off, the entire cylindrical capsule body is expelled by the livestock, and the control unit resets the startup logic of all M auxiliary light sensors for future use.

[0046] In this way, the control unit 102 in the specific embodiment of the present invention can determine the process of the cylindrical capsule body being expelled by livestock based on the detection results of the M auxiliary light sensors during the pulse emission of the auxiliary light, and control the luminous intensity of the luminous part based on the process of the cylindrical capsule body being expelled by livestock. For example, the luminous intensity of the luminous part 20 can be gradually increased.

[0047] In a specific embodiment of the present invention, in order to avoid blind spots in illumination, the M auxiliary light sensors may not be set at the same angle on the circumferential surface 101 of the cylindrical capsule body, but may be staggered or gradually arranged. In this way, for example, when the i-th auxiliary light sensor detects the auxiliary light, the i-th sensors in front of it may not have detected the auxiliary light, but they will also be turned off along with the i-th auxiliary light sensor.

[0048] In addition, such as Figure 1As shown, in the livestock farrowing indicator light based on light detection of the present invention, the front end of the flexible extended light-emitting end 50 has an annular handle, and the external light-emitting body 52 includes a plurality of them, which are arranged at intervals on the outer edge of the annular contour of the annular handle. The auxiliary light sensor is disposed at the connection between the cylindrical capsule body 10 and the light-emitting part 20 and on the outer surface 101 of the cylindrical capsule body; the external light sensor 51 is disposed at the connection between the annular handle and the hollow flexible tube body and on the outer edge of the annular contour of the annular handle.

[0049] In this specific embodiment of the invention, an external light sensor 51 is disposed at the connection between the annular handle and the hollow flexible tube, on the outer edge of the annular contour of the handle. This position is concave and least likely to be blocked by other external objects, thus making it easiest to obtain accurate ambient light information. In this specific embodiment of the invention, multiple external light emitters 52 are arranged at intervals on the outer edge of the annular contour of the handle. Light emitted from this position is most easily detected by the auxiliary light sensor in the internal light sensor 61, and the multiple external light emitters 52 avoid blind spots. In this specific embodiment of the invention, an auxiliary light sensor is disposed at the connection between the cylindrical capsule body 10 and the light-emitting part 20, on the outer surface 101 of the cylindrical capsule body. This position allows for the fastest detection of auxiliary light on the outer surface 101 of the capsule body. The control unit 102 can then turn off the external light emitters 52 and the auxiliary light sensor, emitting warning light through the light-emitting part 20. Since the light sensor does not need to operate afterward, this arrangement in this specific embodiment of the invention saves power and maintains the battery life of the light-detection-based livestock farrowing indicator light.

[0050] In addition, in the light-detection-based livestock farrowing indicator light of the specific embodiment of the present invention, the cylindrical capsule body surface 101 is also equipped with an infrared distance sensor 62. The infrared distance sensor 62 is also connected to the control unit 102 and the battery 103. When the ambient light intensity detected by the external light sensor 51 is lower than a predetermined threshold, the control unit 102 controls the infrared distance sensor 62 to emit infrared pulses and receive infrared reflections, thereby detecting the distance between the cylindrical capsule body 10 and the surrounding reflectors. The control unit 102 determines whether the light-detection-based livestock farrowing indicator light has been discharged from the livestock body based on the distance between the cylindrical capsule body and the surrounding reflectors detected by the infrared distance sensor. If so, it controls the light-emitting part 20 to emit a warning light.

[0051] The specific embodiments of the present invention also consider the possibility that the external light emitter 52 emitting auxiliary light may enter a blind spot, such as being completely blocked by surrounding objects or being pressed under the body of livestock. This would prevent the combination of the external light emitter 52 and the auxiliary light sensor from working. Therefore, an infrared distance sensor 62 is added as a technical means. Figure 2As shown, a specific infrared distance sensor 6211 includes an infrared emitting unit 62111 and an infrared receiving unit 62112. These two units are adjacent to each other but face the same direction. The infrared pulse emitted by the infrared emitting unit 62111 is not directly received by the infrared receiving unit 62112, but is only received by the infrared receiving unit 62112 after being reflected by surrounding objects. The distance of surrounding objects from the infrared distance sensor 6211 is determined by the time it takes for the infrared pulse emitted by the infrared emitting unit 62111 to be received by the infrared receiving unit 62112.

[0052] When the light-detection-based livestock farrowing indicator light of this embodiment is placed inside the birth canal, the birth canal or other tissues are close to or in close contact with the infrared distance sensor, so the infrared pulse emitted by the infrared distance sensor can be detected quickly. However, when the livestock is discharged from the birth canal, the infrared pulse emitted by the infrared distance sensor is detected after reflection, or it cannot be detected because the distance is too far; therefore, the distance detected by the infrared distance sensor from surrounding reflective objects is large, or it cannot detect surrounding reflective objects at all, and thus it can be identified by the control unit 102.

[0053] Therefore, the specific embodiments of the present invention can rely on a second auxiliary means to overcome the problem that the external light emitter 52 emitting auxiliary light may enter the emission dead zone, and use a more reliable infrared distance sensor 62 for supplementation. Therefore, the livestock farrowing indicator light based on light detection in the specific embodiments of the present invention has the advantages of higher reliability and flexible detection methods.

[0054] In addition, such as Figure 3 As shown in the specific embodiment of the livestock farrowing indicator light based on light detection of the present invention, the external light emitter 52 emits auxiliary light according to a first pulse cycle, which includes a light emission period and an off period. The auxiliary light sensor is turned on during the light emission period of the auxiliary light to detect the auxiliary light. The infrared distance sensor 62 emits infrared pulses according to a second pulse cycle, which includes an infrared emission period and an infrared off period. The second pulse cycle is an integer multiple of the first pulse cycle, and the infrared emission period is shorter than the light emission period, so that the infrared emission period in the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When the infrared distance sensor emits infrared pulses according to the infrared emission period, the external light emitter does not emit auxiliary light during the light emission period in the first pulse cycle that coincides with the infrared emission period in the second pulse cycle.

[0055] As mentioned above, two auxiliary methods are used in the specific embodiments of the present invention to avoid the problem of weak ambient light intensity. However, each of these two auxiliary methods has its own advantages and disadvantages. Therefore, when they are used in combination, attention should be paid to adjusting their timing.

[0056] Specifically, the auxiliary light-assisted light sensor method has less impact on livestock and lower energy consumption, but it is susceptible to obstruction and has relatively low reliability; while the infrared distance sensor method has higher energy consumption, and since it is placed inside the livestock's birth canal, the energy is absorbed by the livestock, making it unsustainable. Therefore, in the specific embodiments of the present invention as follows... Figure 3 , Figure 4 As shown, a specific timing relationship is set. The external light emitter 52 emits auxiliary light according to a first pulse cycle, which includes a light emission period and a shutdown period. The infrared distance sensor 62 emits infrared pulses according to a second pulse cycle, which includes an infrared emission period and an infrared shutdown period. The second pulse cycle is an integer multiple of the first pulse cycle, for example... Figure 3 In this case, the second pulse period is four times the first pulse period.

[0057] The infrared emission period is shorter than the light emission period. The infrared emission period in the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When the overlap occurs, the light emission period of the auxiliary light is replaced by the infrared emission period. That is, in every 4 first pulse cycles, during the auxiliary light emission period of the first pulse cycle once, the external light emitter 52 does not emit light, and instead the infrared distance sensor 62 emits infrared pulses.

[0058] When the auxiliary light sensor fails to detect the auxiliary light during the emission of the external light source 52, there are two possibilities: the livestock farrowing indicator light based on light detection is still inside the livestock's birth canal, or the auxiliary light emitted by the external light source 52 is blocked. Therefore, after a certain number of first pulse cycles, if the auxiliary light sensor fails to detect the auxiliary light during the emission of the external light source 52, the infrared distance sensor 62 will emit infrared pulses during the emission period of one first pulse cycle. Infrared distance detection will be used to determine whether the auxiliary light is not detected due to being blocked by the external light source 52. Because the infrared distance sensor 62 is used to verify the auxiliary light sensor, the first pulse cycle is set to be short, while the second pulse cycle is set to be long, and the two need to partially overlap during the emission period and the infrared emission period to avoid errors caused by time differences.

[0059] When the auxiliary light sensor fails to detect the auxiliary light during the emission of the external light source 52, and the infrared distance sensor 62 detects that the surrounding reflective objects are too far away or does not detect the surrounding reflective objects, the control unit determines that the auxiliary light emitted by the external light source 52 is blocked. The control unit 102 can turn off the external light source 52 and the auxiliary light sensor, and stop detecting the auxiliary light. In the subsequent cycle, it can continue to perform infrared distance detection as needed or not perform infrared distance detection at all, and issue a warning light.

[0060] In a specific embodiment of the present invention, an auxiliary light emission period is replaced by an infrared emission period. This can save the overall power consumption of the livestock farrowing indicator light based on light detection, and can also save a timing clock in the control unit 102, keeping the timing control simple.

[0061] In addition, in the livestock farrowing indicator light based on light detection according to a specific embodiment of the present invention, the external light emitter 52 emits auxiliary light according to a first pulse cycle, which includes a light emission period and an off period. The auxiliary light sensor is turned on during the light emission period of the auxiliary light to detect the auxiliary light. The infrared distance sensor 62 includes multiple sensors, which are circumferentially spaced on the surface of the cylindrical capsule body. Each infrared distance sensor emits an infrared pulse at intervals with the next infrared distance sensor according to a second pulse cycle. The second pulse cycle includes an infrared emission period and an infrared off period. The second pulse cycle is an integer multiple of the first pulse cycle. The infrared emission period is shorter than the light emission period, so that the infrared emission period in the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When any infrared distance sensor emits an infrared pulse according to the infrared emission period, the external light emitter does not emit auxiliary light during the light emission period in the first pulse cycle that coincides with the infrared emission period in the second pulse cycle.

[0062] The main improvement of this specific embodiment compared to the previous specific embodiment is the inclusion of multiple infrared distance sensors. This is because the detection interval of the infrared distance sensors is long, for example, only once every 5 minutes. During this time, the livestock farrowing indicator light based on light detection may be completely expelled from the animal's body, and the position of the infrared distance sensor may be close to the ground, causing the infrared distance sensor to fail to detect. Therefore, in this specific embodiment of the invention, a group of multiple infrared distance sensors 62 are provided, which are circumferentially distributed on the surface of the cylindrical capsule body. In this way, when one infrared distance sensor 62 fails to detect because it is close to the ground, the other infrared distance sensors can detect normally.

[0063] Accordingly, in this specific embodiment, the activation timing of the multiple infrared distance sensors can be in two ways: one is to use... Figure 4 The method involves all infrared distance sensors emitting infrared light during the same infrared emission period and receiving the reflected infrared light. One approach is to use... Figure 5 The method involves each infrared distance sensor detecting sequentially. Figure 4 and Figure 5 In the process, the first infrared distance sensor emits the first infrared pulse, and the second infrared distance sensor emits the second infrared pulse.

[0064] For example, if the first pulse period is T and the second pulse period is 4T, and there are 4 infrared distance sensors distributed at 90-degree intervals on a circular surface; in the first method, the pulse period of each infrared distance sensor is still 4T, while in the second method, the pulse period of each infrared distance sensor is 16T. Obviously, the first method consumes more power than the second method, but the time response is faster.

[0065] In a specific embodiment of the present invention, the second method is preferred because: (1) The possibility of infrared distance sensors being blocked by the ground is low; if they are not blocked by the ground, any one infrared distance sensor can detect that the livestock giving birth indicator light based on light detection has been expelled from the livestock, without the need for four sensors to operate simultaneously. (2) Even if one infrared distance sensor is blocked by the ground, the probability that its adjacent infrared distance sensors will be blocked by the ground or other surrounding objects at the same time is even lower. In other words, the probability that it would take 16T to actually detect the expulsion of livestock by the light-based livestock birthing indicator light is very small. Therefore, the time response advantage brought by the simultaneous emission and detection of infrared pulses by four infrared distance sensors is not outweighed by the disadvantage caused by its power consumption loss.

[0066] Therefore, this invention also considers extreme cases—where the infrared distance sensor is obstructed by the ground or other objects, preventing the control unit 102 from confirming that the light-detection-based livestock birthing indicator light has been expelled from the animal's body. A set of multiple infrared distance sensors is provided, which emit infrared pulses at intervals and receive infrared reflections to measure the distance between the cylindrical capsule body surface 101 and surrounding reflective objects. Therefore, the specific embodiments of this invention have greater applicability.

[0067] In addition, in the livestock farrowing indicator light based on light detection of the present invention, the external light emitter 52 emits auxiliary light according to a first pulse cycle, the first pulse cycle including a light emission period and a blackout period, the auxiliary light sensor is turned on during the light emission period of the auxiliary light to detect the auxiliary light; the infrared distance sensor 62 includes multiple groups, each group of infrared distance sensors includes multiple infrared distance sensors, the multiple infrared distance sensors in one group are circumferentially spaced on the surface 101 of the cylindrical capsule body, and the infrared distance sensors in each group are axially spaced on the surface 101 of the cylindrical capsule body; the control unit 102 controls each group of infrared distance sensors to emit infrared pulses and receive infrared reflections, and performs distance detection in sequence; the sequential distance detection includes: First, the first set of infrared distance sensors (the end closest to the light-emitting part 20) is used as the detection group infrared distance sensors. For each infrared distance sensor in the detection group, infrared pulses are emitted at intervals with the next infrared distance sensor in the group according to the second pulse period. The second pulse period includes an infrared emission period and an infrared off period. The second pulse period is an integer multiple of the first pulse period. The infrared emission period is shorter than the light emission period, so that the infrared emission period in the second pulse period partially overlaps with the light emission period every integer multiple of the first pulse period. When any infrared distance sensor emits an infrared pulse according to the infrared emission period, the external light-emitting body does not emit auxiliary light during the light emission period in the first pulse period that coincides with the infrared emission period in the second pulse period. When any infrared distance sensor in the detection group detects that the distance between the cylindrical capsule body and the surrounding reflective objects is greater than a predetermined distance, the control unit determines that the surface section of the cylindrical capsule body corresponding to the auxiliary light sensor has been expelled by livestock. The infrared distance sensor no longer emits infrared pulses or receives infrared reflections, and the next set of infrared distance sensors becomes the detection group infrared distance sensors. The control unit 102 determines the process of the cylindrical capsule body 10 being excreted by livestock based on the detection results of each group of infrared distance sensors, and controls the luminous intensity of the light-emitting part based on the process of the cylindrical capsule body being excreted by livestock.

[0068] In a specific embodiment of the present invention, an infrared distance sensor 62 is also considered to determine the process of the cylindrical capsule body 10 being expelled by livestock. The principle is similar to that of using multiple auxiliary light sensors to determine the process of the cylindrical capsule body 10 being expelled by livestock in the previously described embodiment, but the process is more complex.

[0069] by Figure 2 For example, it includes four sets of infrared distance sensors. The first set, the one closest to the front end of the light-emitting part 20, includes four infrared distance sensors: 6211, 6212, 6213, and 6214. The second set also includes four infrared distance sensors: 6221, 6222, 6223, and 6224. The third set includes four infrared distance sensors: 6231, 6232, 6233, and 6234. The fourth set includes four infrared distance sensors: 6241, 6242, 6243, and 6244. Each infrared distance sensor includes an infrared emitting unit and an infrared receiving unit; for example, infrared distance sensor 6211 includes an infrared emitting unit 62111 and an infrared receiving unit 62112.

[0070] First, the first group of infrared distance sensors is used as the detection group infrared distance sensors. The working mode of the detection group infrared distance sensors is similar to the aforementioned specific implementation method. Assuming that the first pulse period is T, the four infrared distance sensors of the detection group are arranged in a sequentially spaced manner, that is, the pulse period of each infrared distance sensor is 16T; its advantages have been explained above.

[0071] When the first group of infrared distance sensors is used as the detection group of infrared distance sensors, if any one of the infrared distance sensors detects that the distance to a surrounding reflective object exceeds the predetermined range, or if no surrounding reflective object is detected, the control unit 102 determines that the cylindrical capsule body surface 101 corresponding to that group of infrared distance sensors has been expelled from the body by the livestock. Then, the first group of infrared distance sensors is turned off and no longer performs infrared emission and reception. Instead, the next group of infrared distance sensors is used as the detection group of infrared distance sensors to continue to perform infrared emission and reception of infrared reflections according to the complete cycle of 16T.

[0072] When all four sets of infrared distance sensors are turned off, the control unit 102 determines that all the cylindrical capsule bodies 10 have been expelled by the livestock. The control unit 102 then resets the startup logic of all four sets of infrared distance sensors for future use.

[0073] In this way, the control unit 102 in this specific embodiment of the invention can determine the process of the cylindrical capsule body being expelled by livestock based on the detection results of all four sets of infrared distance sensors, and control the luminous intensity of the light-emitting part based on the process of the cylindrical capsule body being expelled by livestock. For example, the luminous intensity of the light-emitting part 20 can be gradually increased.

[0074] Generally speaking, the infrared distance sensor detects because the auxiliary light is blocked. Therefore, after the control unit activates multiple sets of infrared distance sensors for detection, the external light emitter 52, auxiliary light sensor, and ambient light sensor can be turned off to save energy consumption of the livestock farrowing indicator light based on light detection in the specific embodiment of the present invention.

[0075] Corresponding to the light-detection-based livestock farrowing indicator light in the specific embodiments of the present invention, the specific embodiments of the present invention also include a light-detection-based livestock farrowing indicator method, which includes the following steps: A. Detect ambient light intensity using an external light sensor; B1. When the ambient light intensity exceeds the predetermined threshold, the ambient light sensor in the internal light sensor is activated to detect the light intensity and determine whether the livestock birthing indicator light based on light detection has been expelled from the livestock. If so, the light-emitting part is controlled to emit a warning light. B2. When the ambient light intensity is below a predetermined threshold, the external light emitter is activated to emit auxiliary light, and the auxiliary light sensor in the internal light sensor is activated to detect the intensity of the auxiliary light. This determines whether the livestock farrowing indicator light, based on light detection, has been emitted from the livestock's body. If so, the light emitter is controlled to emit a warning light, and / or... B3. When the ambient light intensity is lower than a predetermined threshold, the infrared distance sensor on the surface of the cylindrical capsule body is activated to emit infrared pulses and receive infrared reflections, and the distance between the cylindrical capsule body and surrounding reflectors is detected. The control unit determines whether the livestock birthing indicator light based on light detection has been expelled from the livestock body according to the distance between the cylindrical capsule body and surrounding reflectors detected by the infrared distance sensor. If so, the light-emitting part is controlled to emit a warning light.

[0076] The technical effects of this invention include the following.

[0077] (1) In the light-detection-based livestock farrowing indicator light of the present invention, an innovative use of a light sensor on the surface of a cylindrical capsule body is employed to detect light intensity. Generally speaking, the inside of the birth canal is basically dark, while the farrowing chamber is relatively bright. Therefore, light detection is used as the basis for determining whether the light-detection-based livestock farrowing indicator light has been expelled from the livestock's body. The light-detection-based livestock farrowing indicator light of the present invention does not require a moving unit and does not require deformation. The detection is convenient and flexible because the light sensor composed of photosensitive components is widely used and has the advantages of simple selection and high sensitivity.

[0078] (2) The livestock farrowing indicator light based on light detection of the present invention can also be used in dark environments such as farrowing sheds in open-air environments. When used in a dark environment, even if the livestock farrowing indicator light is removed from the livestock body, the light sensor cannot detect the ambient light. Therefore, the present invention also provides an external light emitter that emits auxiliary light and detects the auxiliary light through a more sensitive auxiliary light sensor. Therefore, it has the advantages of being more flexible and having a wider range of applications.

[0079] (3) In addition to utilizing auxiliary light and auxiliary light sensor, this invention also considers the possibility that the external light source may be blocked, causing the auxiliary light sensor to be unable to detect the auxiliary light. Therefore, an infrared distance sensor is used as another auxiliary detection method. When the livestock farrowing indicator light based on light detection is located in the birth canal, the inner wall of the birth canal is detected to be close to or in close contact with the livestock farrowing indicator light based on light detection through infrared reflection. When the livestock farrowing indicator light based on light detection is discharged from the birth canal, the cylindrical capsule body is detected to be beyond the predetermined distance from the surrounding reflective objects through infrared reflection, or the surrounding reflective objects cannot be detected. Therefore, this invention uses two auxiliary methods in combination to avoid the problem that the livestock farrowing indicator light based on light detection cannot be used in the dark environment.

[0080] (4) The auxiliary light and infrared distance detection methods in this invention are not simply added together, but work in an alternating cycle. The auxiliary light has low energy, but is easily affected by the environment, such as obstructions, or cannot be detected because the external light source is pressed under the animal's body, so its reliability is slightly lower. Infrared distance detection has higher reliability, but higher energy, and is placed inside the birth canal to emit infrared pulses, so the duration is shorter and the interval is longer. During the emission of infrared pulses, there is no need to emit auxiliary light for repeated detection, but the auxiliary light can emit light and detect at a higher frequency and a shorter cycle. Therefore, when the two methods are used in combination, they each make use of their advantages, and the overall energy efficiency ratio is the highest.

[0081] The foregoing description illustrates and describes several preferred embodiments of the present invention. However, as mentioned above, it should be understood that the present invention is not limited to the forms disclosed in this specification and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the inventive concept described in this specification through the foregoing teachings or techniques or knowledge in related fields. Any modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.

Claims

1. A livestock farrowing indicator light based on light detection, comprising a light-emitting unit, a battery, and a control unit, wherein the control unit is connected to the battery and the light-emitting unit, and the battery provides power to the light-emitting unit and the control unit; characterized in that, The livestock farrowing indicator light based on light detection has a capsule-like structure. One end is the light-emitting part, followed by a cylindrical capsule body. The surface of the cylindrical capsule body has an internal light sensor. The internal light sensor is used to detect the light intensity shining on the surface of the cylindrical capsule body. The internal light sensor is connected to the control unit and the battery. The control unit determines whether the livestock farrowing indicator light based on light detection has been expelled from the livestock body based on the light intensity detected by the internal light sensor. If so, it controls the light-emitting part to emit a warning light. The light-emitting part has a flexible extended light-emitting end at its front end, which is a hollow flexible tube. The flexible extended light-emitting end is located outside the livestock body and has an external light sensor and an external light emitter. The external light sensor and the external light emitter are connected to the control unit and the battery. The external light sensor is used to detect the ambient light intensity. When the ambient light intensity is lower than a predetermined threshold, the control unit controls the external light emitter to emit auxiliary light and controls the internal light sensor to detect the auxiliary light. Based on the intensity of the auxiliary light detected by the internal light sensor, it is determined whether the livestock farrowing indicator light based on light detection has been emitted from the livestock body. If so, the light-emitting part is controlled to emit a warning light. The auxiliary light is a periodic pulsed light, and its intensity is lower than that of the warning light emitted by the light-emitting part. The internal light sensor includes an ambient light sensor and an auxiliary light sensor. The ambient light sensor is used to detect the intensity of ambient light illuminating the surface of the cylindrical capsule body, and the auxiliary light sensor is turned on during the pulsed emission of the auxiliary light to detect the intensity of auxiliary light illuminating the surface of the cylindrical capsule body. The sensitivity of the auxiliary light sensor is higher than that of the ambient light sensor. The cylindrical capsule body also has an infrared distance sensor on its surface. The infrared distance sensor is connected to the control unit and the battery. When the ambient light intensity detected by the external light sensor is lower than a predetermined threshold, the control unit controls the infrared distance sensor to emit infrared pulses and receive infrared reflections to detect the distance between the cylindrical capsule body and surrounding reflective objects. Based on the distance between the cylindrical capsule body and surrounding reflective objects detected by the infrared distance sensor, the control unit determines whether the livestock farrowing indicator light based on light detection has been expelled from the livestock's body. If so, it controls the light-emitting part to emit a warning light. An external light emitter emits auxiliary light according to a first pulse cycle, which includes a light emission period and a light off period. The auxiliary light sensor is activated during the light emission period to detect the auxiliary light. An infrared distance sensor emits infrared pulses according to a second pulse cycle, which includes an infrared emission period and an infrared light off period. The second pulse cycle is an integer multiple of the first pulse cycle, and the infrared emission period is shorter than the light emission period, so that the infrared emission period within the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When the infrared distance sensor emits infrared pulses according to the infrared emission period, the external light emitter does not emit auxiliary light during the light emission period of the first pulse cycle that coincides with the infrared emission period within the second pulse cycle.

2. The livestock farrowing indicator light based on light detection as described in claim 1, characterized in that, The auxiliary light sensor comprises multiple sensors, which are distributed at equal intervals along the axial direction of the cylindrical capsule body surface. The control unit controls the multiple auxiliary light sensors to sequentially activate detection during the pulse emission of the auxiliary light. The sequential activation of detection includes: The control unit first controls all auxiliary light sensors to turn on detection during the pulse emission of auxiliary light. When the intensity of auxiliary light detected by any auxiliary light sensor during the pulse emission of auxiliary light is stronger than a predetermined threshold, the control unit determines that the cylindrical capsule body surface segment corresponding to the auxiliary light sensor has been expelled from the animal body, and controls that auxiliary light sensor and the auxiliary light sensors located in front of it to stop turning on detection, leaving only the remaining auxiliary light sensors to continue turning on detection. The control unit determines the process of the cylindrical capsule body being expelled by livestock based on the detection results of multiple auxiliary light sensors during the pulse emission of auxiliary light, and controls the luminous intensity of the luminous part based on the process of the cylindrical capsule body being expelled by livestock.

3. The livestock farrowing indicator light based on light detection as described in claim 1, characterized in that, The front end of the flexible extended light-emitting end has an annular handle. Multiple external light-emitting elements are arranged at intervals on the outer edge of the annular contour of the annular handle. An auxiliary light sensor is set at the connection between the cylindrical capsule body and the light-emitting part, and on the outer surface of the cylindrical capsule body. An external light sensor is set at the connection between the annular handle and the hollow flexible tube body, and on the outer edge of the annular contour of the annular handle.

4. The livestock farrowing indicator light based on light detection as described in claim 1, characterized in that, An external light emitter emits auxiliary light according to a first pulse cycle, which includes a light emission period and an off period. An auxiliary light sensor is activated during the light emission period to detect the auxiliary light. Multiple infrared distance sensors are distributed circumferentially on the surface of the cylindrical capsule body. Each infrared distance sensor emits an infrared pulse at intervals from the next infrared distance sensor according to a second pulse cycle, which includes an infrared emission period and an infrared off period. The second pulse cycle is an integer multiple of the first pulse cycle, and the infrared emission period is shorter than the light emission period, so that the infrared emission period within the second pulse cycle partially overlaps with the light emission period every integer multiple of the first pulse cycle. When any infrared distance sensor emits an infrared pulse according to the infrared emission period, the external light emitter does not emit auxiliary light during the light emission period of the first pulse cycle that coincides with the infrared emission period within the second pulse cycle.

5. The livestock farrowing indicator light based on light detection as described in claim 1, characterized in that, The external light emitter emits auxiliary light according to the first pulse cycle, which includes a light emission period and a light off period. The auxiliary light sensor is turned on during the light emission period to detect the auxiliary light. The infrared distance sensor includes multiple groups, and each group of infrared distance sensors includes multiple infrared distance sensors. The multiple infrared distance sensors in one group are circumferentially spaced on the surface of the cylindrical capsule body, and the infrared distance sensors in each group are axially spaced on the surface of the cylindrical capsule body. The control unit controls each group of infrared distance sensors to emit infrared pulses and receive infrared reflections, performing distance detection sequentially; the sequential distance detection includes: First, the first set of infrared distance sensors is used as the detection group infrared distance sensors. For each infrared distance sensor in the detection group, infrared pulses are emitted at intervals with the next infrared distance sensor in the group according to the second pulse period. The second pulse period includes an infrared emission period and an infrared off period. The second pulse period is an integer multiple of the first pulse period. The infrared emission period is shorter than the emission period, so that the infrared emission period in the second pulse period partially overlaps with the emission period every integer multiple of the first pulse period. When any infrared distance sensor emits an infrared pulse according to the infrared emission period, the external light emitter does not emit auxiliary light during the emission period in the first pulse period that coincides with the infrared emission period in the second pulse period. When any infrared distance sensor in the detection group detects that the distance between the cylindrical capsule body and the surrounding reflective objects is greater than a predetermined distance, the control unit determines that the surface section of the cylindrical capsule body corresponding to the auxiliary light sensor has been expelled by the livestock. The infrared distance sensor no longer emits infrared pulses or receives infrared reflections, and the next set of infrared distance sensors becomes the detection group infrared distance sensors. The control unit determines the process by which the cylindrical capsule body is expelled by livestock based on the detection results of each group of infrared distance sensors, and controls the luminous intensity of the light-emitting part based on the process by which the cylindrical capsule body is expelled by livestock.