Intelligent livestock drinking water system based on multistage safety interlocking and control method

By employing a multi-level safety interlock control method, the health status of sensors and actuators is assessed in real time. Combined with non-contact behavior recognition and well water pump current integration, the safety protection problem of the intelligent livestock drinking system is solved, achieving precise water replenishment and energy-saving control, and improving the system's reliability and intelligence level.

CN121400367APending Publication Date: 2026-01-27INNER MONGOLIA WISDOM XINGMU IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511856509.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-10
Publication Date
2026-01-27

AI Technical Summary

Technical Problem

Existing intelligent livestock drinking systems lack a systematic safety protection architecture, rely on a single sensor which leads to signal distortion or interruption, and cannot effectively identify and prevent the water pump from running idle for a long time, resulting in equipment wear and energy waste.

Method used

A multi-level safety interlock control method is adopted. By real-time evaluation of the health status of sensors and actuators, dynamic reconstruction of judgment logic, and combination of non-contact livestock behavior recognition and well water pump current integration, precise water replenishment control is achieved. A virtual water level model is introduced to maintain water supply function under abnormal operating conditions.

Benefits of technology

It improves the system's safety and energy efficiency, reduces the number of ineffective pump starts and stops, ensures reliable operation in extreme environments, and enhances the level of intelligence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121400367A_ABST
    Figure CN121400367A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent livestock drinking water system based on multistage safety interlocking and a control method, and relates to the technical field of animal husbandry automation equipment.The intelligent livestock drinking water system comprises a central control unit, a well water pump, a drinking water pump, a heating rod, an upper / lower water level sensor, a temperature sensor, a non-contact livestock recognition device and a remote communication module; according to the control method, the health state of a sensor and an actuator is evaluated in real time, equipment-level, water-source-level and water-storage-level three-level safety interlocking logic is dynamically reconstructed, on the premise that intrinsic safety is guaranteed, water supply is triggered based on the real water drinking behavior of livestock, the actual water consumption is inversed through well water pump current data, an accurate water supplementing strategy is achieved, and the water supplementing efficiency is improved. The system can still operate reliably under complex working conditions such as sensor failure, low-temperature freezing or off-grid power supply, risks such as dry burning and water supply interruption are effectively prevented, the safety, the energy-saving performance and the intelligent level are improved, and the system is particularly suitable for large-scale breeding scenes in remote pasturing areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of livestock automation equipment technology, and in particular to an intelligent livestock drinking water system and control method based on multi-level safety interlocks. Background Technology

[0002] As the livestock industry accelerates its transformation towards large-scale and intelligent operations, intelligent livestock drinking water systems, as a key component of ranch infrastructure, have made some progress in recent years in areas such as automatic control, environmental sensing, and energy management. Existing technologies generally employ mechanical or electronic control logic based on water level switches or float valves, combined with timers or simple temperature control modules to achieve basic water replenishment and antifreeze functions. Some high-end products have introduced microcontroller control systems, capable of starting and stopping water pumps or heating devices based on preset thresholds, and reporting status via remote communication modules.

[0003] Current mainstream intelligent livestock drinking systems lack a systematic safety protection architecture. Most controllers rely on simple thresholds to start and stop water pumps or heating devices, making it difficult to effectively identify and block high-risk conditions such as prolonged idling of water pumps. The systems generally rely on a single sensor for perception, which can easily lead to sensor signal distortion or interruption. They cannot maintain basic water supply functions under certain hardware abnormalities, ignore the actual drinking behavior and water usage patterns of livestock, and cause frequent and ineffective start-stop of water pumps. This not only accelerates equipment wear and tear but also exacerbates energy waste in pastoral settings. Summary of the Invention

[0004] In view of the aforementioned existing problems, the present invention is proposed.

[0005] Therefore, this invention provides a control method for an intelligent livestock drinking water system based on multi-level safety interlocks to address the lack of a systematic safety protection architecture. Most controllers rely solely on simple threshold judgments to start and stop water pumps or heating devices, making it difficult to effectively identify and block high-risk conditions such as prolonged idling of water pumps. The system generally relies on a single sensor for sensing, which can easily lead to sensor signal distortion or interruption. It is unable to maintain basic water supply functions under certain hardware malfunctions, ignores the actual drinking behavior and water usage patterns of livestock, and causes frequent and ineffective start-stop of water pumps, which not only accelerates equipment wear but also exacerbates energy waste in pastoral settings.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a control method for an intelligent livestock drinking water system based on multi-level safety interlocks, comprising: Real-time health status assessment of sensors and actuators in intelligent livestock drinking systems is performed to generate equipment health status labels; The judgment logic of multi-level safety interlocks is dynamically reconstructed based on the equipment health status indicators; Based on the reconstructed judgment logic, three levels of safety judgments are executed sequentially: equipment level, water source level, and water storage level. If a protection action is triggered at any level, the subsequent operation is terminated. If no protective action is triggered in any of the three levels of safety assessments, a valid drinking event signal of the livestock is obtained through a non-contact identification device at the water trough inlet; The water pump is activated based on a valid drinking water event signal, and the current change data during the pump operation is collected simultaneously. The actual water consumption is calculated based on the current change data, and a precise water replenishment command for the well water pump is generated by combining the current water level status with the preset water replenishment strategy.

[0007] As a preferred embodiment of the intelligent livestock drinking system control method based on multi-level safety interlocking described in this invention, the specific steps for real-time health status assessment of sensors and actuators in the intelligent livestock drinking system are as follows: The central control unit periodically collects the working current signal of the well water pump, the on / off feedback signal of the heating rod, the output signal of the upper water level sensor, the output signal of the lower water level sensor, and the output signal of the temperature sensor. A sliding window variance analysis is performed on the operating current signal of the well water pump. If the current fluctuation variance exceeds the preset threshold within three consecutive sampling periods, the well water pump is determined to be in an abnormal operating state. The logic consistency of the output signals of the upper and lower water level sensors is checked. If the duration of both indicating high water level or low water level simultaneously exceeds 30 seconds, the water level sensing channel is determined to be faulty. The temperature sensor output signal is subjected to trend drift detection. If the rate of temperature change per unit time exceeds the preset reasonable physiological range, the temperature sensor is marked as a failure. Based on the judgment results of each component, three-state health indicators (normal, abnormal, or malfunction) are generated for the well water pump, heating rod, upper water level sensor, lower water level sensor, and temperature sensor, respectively.

[0008] As a preferred embodiment of the intelligent livestock drinking water system control method based on multi-level safety interlocks described in this invention, the specific steps of dynamically reconstructing the judgment logic of multi-level safety interlocks based on the equipment health status identifier are as follows: When either the upper or lower water level sensor is determined to be faulty, the system automatically masks the sensor's original output signal and uses a virtual water level as an alternative criterion for determining the water storage status. The virtual water level can be constructed in the following ways: Record the start and stop times of each well water pump start-up to obtain the duration of a single run; During the start-up and stop times, the operating current of the well water pump is continuously sampled and integrated to obtain the total power consumption. Based on the electrical constant per unit volume of water obtained during the factory calibration. The electricity consumption is converted into the actual amount of water added this time; The current virtual water level is updated by combining the initial water level estimate during system initialization and the historical cumulative water discharge. The virtual water level... The calculation expression is: ; in, This is the initial water level estimate. This refers to the real-time operating current of the well water pump during water replenishment. and These are the start and end times of this water replenishment. This represents the total water consumption since the system was started.

[0009] As a preferred embodiment of the intelligent livestock drinking water system control method based on multi-level safety interlocking described in this invention, the specific steps of performing three levels of safety judgments—equipment level, water source level, and water storage level—in sequence according to the reconstructed judgment logic are as follows: In the equipment-level judgment, if the continuous running time of the well water pump exceeds the preset maximum allowable time, or the temperature sensor health indicator is invalid, the first-level protection action will be triggered immediately to forcibly shut down the well water pump, drinking water pump and heating rod, and generate an equipment-level fault alarm log. In the water source level judgment, if the health indicators of both the upper and lower water level sensors are invalid, the secondary protection action is triggered, shutting down all external output functions of the drinking water pump and heating rod, and only allowing the well water pump to operate briefly when the virtual water level is lower than the upper limit threshold and a water replenishment command is received. In determining the water storage level, if the physical water level sensor indicates no water, or if the virtual water level is malfunctioning... Less than or equal to the preset minimum safe water level If this occurs, a Level 3 protection action will be triggered, immediately cutting off the power supply to the heating rod and the water pump, and forcibly starting the well water pump for emergency water replenishment until the virtual water level returns to the safe threshold. above; The safe water level threshold These are fixed parameters set during system initialization based on the installation position of the heating rod and the geometry of the water tank.

[0010] As a preferred embodiment of the intelligent livestock drinking system control method based on multi-level safety interlocking described in this invention, the specific steps for acquiring valid drinking event signals of livestock through a non-contact identification device at the water trough inlet are as follows: The non-contact identification device uses an infrared array or millimeter-wave radar to continuously monitor the movement of objects within a set area in front of the drinking trough. When livestock are detected entering this area, the time of entry is recorded. ; If livestock remain in the area, record the time when they leave. And calculate the actual length of stay. ; If the length of stay Not less than the preset effective drinking water threshold If no rapid crossing or swinging behavior is detected during the event, it is considered a valid drinking event and a valid drinking event signal is generated; otherwise, it is considered an environmental disturbance or false trigger and no response is given. This valid drinking event signal is the only legitimate trigger condition to start the drinking water pump.

[0011] As a preferred embodiment of the intelligent livestock drinking system control method based on multi-level safety interlocking described in this invention, the specific steps of starting the drinking pump according to a valid drinking event signal and simultaneously collecting current change data during pump operation are as follows: Upon receiving a valid drinking water event signal, the central control unit simultaneously activates both the drinking water pump and the well water pump to maintain the water supply pressure. From the moment the well water pump starts, the working current is discretely sampled at a fixed sampling period to form a current sequence. The current sequence is then bound and stored with the corresponding timestamp for subsequent water volume inversion. After this water supply period ends, the actual water consumption will be calculated based on the current data. The calculation formula is: ; In the formula, For the first The current value of the well water pump in the second sample. The sampling period is This represents the total number of sampling points. The electrical constant corresponding to a unit volume of water.

[0012] As a preferred embodiment of the intelligent livestock drinking water system control method based on multi-level safety interlocking described in this invention, the specific steps of calculating the actual water consumption based on current change data and generating a precise water replenishment command for the well water pump in conjunction with the current water level and a preset water replenishment strategy are as follows: The actual water consumption calculated in this instance The total daily water output is accumulated and different logic is executed based on the user's pre-selected water replenishment strategy, including: The actual water consumption calculated in this instance The total daily water output is added to the statistics, and different logics are executed according to the water replenishment strategy selected by the user in advance, including the replenishment mode after drinking and the trickle maintenance mode. The "refill after drinking" mode refers to the mode where water is replenished only after the cumulative output reaches a preset batch threshold. At that time, a quantitative water replenishment command is generated to control the well water pump to run until the virtual water level is reached. Restored to full water level ; The trickle-down maintenance mode involves adjusting the water consumption based on the amount consumed after each drinking event. Dynamically calculate the required water replenishment time The formula is: ; in This is the average flow rate of the well water pump under standard operating conditions, which is obtained through self-learning from historical operating data. To prevent frequent starts and stops, the system introduces a minimum water replenishment interval constraint, which only applies when the time since the last water replenishment ends exceeds [a certain period]. New water replenishment instructions will only be executed at that time; In low-temperature environments, the system combines virtual water level and ambient temperature to predict the risk of future freezing. If it is predicted that the water temperature will be below freezing point at night and the current water level is low, preventive water replenishment will be carried out in advance to keep the water level in the high range. Furthermore, the water replenishment process is always subject to a three-level safety assessment, and any safety anomaly can interrupt the water replenishment command.

[0013] Secondly, the present invention provides an intelligent livestock drinking water system based on multi-level safety interlocking, comprising: Central control unit, well water pump, drinking water pump, heating rod, upper water level sensor, lower water level sensor, temperature sensor, non-contact livestock identification device, and remote communication module; The central control unit is the core processing module, which includes a built-in health assessment engine, a safety interlock decision-maker, a virtual water level calculator, a drinking water event analyzer, and a water replenishment scheduler. The well pump connects the groundwater well and the water storage tank, and is used to replenish the water storage tank; The water pump connects the water storage tank and the water trough, and is used to supply water to livestock when a valid drinking event is triggered. The heating rod is installed at the bottom of the water storage tank to prevent the water from freezing in low-temperature environments; The upper water level sensor and the lower water level sensor are respectively installed at the high water level line and the low water level line on the inner wall of the water storage tank to detect the physical water level status. The temperature sensor is located inside the water tank near the heating rod and is used to monitor the water temperature in real time. The non-contact livestock identification device is installed within 0.3 to 0.8 meters in front of the water trough inlet and uses infrared or radio frequency technology to identify livestock approach behavior. The remote communication module is electrically connected to the central control unit and is used to package the equipment health status identifier, the three-level safety judgment result, the effective drinking water event record, the actual water consumption, the virtual water level value and the water replenishment execution log into a structured data packet, and encrypt and upload it to the remote management platform to realize remote monitoring, fault early warning and strategy optimization.

[0014] Thirdly, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, it implements any step of the intelligent livestock drinking water system control system and method based on multi-level safety interlocks as described in the first aspect of the present invention.

[0015] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the intelligent livestock drinking water system control system and method based on multi-level safety interlocks as described in the first aspect of the present invention.

[0016] The beneficial effects of this invention are as follows: By introducing a real-time assessment of equipment health status and a multi-level safety interlock dynamic reconfiguration mechanism, the safety hazards of system loss of control caused by single-point failure of sensors or actuators are effectively solved. Under abnormal working conditions such as water level detection failure, the invention can still reliably prevent the heating rod from burning dry and the water source from drying out by relying on the virtual water level model. Water supply is triggered based on non-contact livestock behavior recognition, and the actual water consumption is inverted by the current integration of well water pumps to achieve precise collaborative control, reduce the number of invalid pump starts and stops and system energy consumption. The water replenishment strategy can be adaptively switched according to the operating mode and is subject to the constraints of three-level safety judgment throughout the process, ensuring high reliability operation even in extreme environments or off-grid conditions. This comprehensively improves the safety, energy saving, robustness and intelligence level of the intelligent drinking water system in pastoral areas. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of the intelligent livestock drinking water system control method based on multi-level safety interlocks in Example 1.

[0019] Figure 2 This is a schematic diagram of the intelligent livestock drinking water system control system based on multi-level safety interlocks in Example 1. Detailed Implementation

[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0021] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0022] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0023] Example, refer to Figure 1 and Figure 2 This embodiment of the invention provides a control method for an intelligent livestock drinking water system based on multi-level safety interlocks, comprising the following steps: S1. Perform real-time health status assessment on sensors and actuators in the intelligent livestock drinking system and generate equipment health status labels.

[0024] Furthermore, the central control unit periodically collects the working current signal of the well water pump, the on / off feedback signal of the heating rod, the output signal of the upper water level sensor, the output signal of the lower water level sensor, and the output signal of the temperature sensor. A sliding window variance analysis is performed on the operating current signal of the well water pump. If the current fluctuation variance exceeds the preset threshold within three consecutive sampling periods, the well water pump is determined to be in an abnormal operating state. The logic consistency of the output signals of the upper and lower water level sensors is checked. If the duration of both indicating high water level or low water level simultaneously exceeds 30 seconds, the water level sensing channel is determined to be faulty. The temperature sensor output signal is subjected to trend drift detection. If the rate of temperature change per unit time exceeds the preset reasonable physiological range, the temperature sensor is marked as a failure. Based on the judgment results of each component, three-state health indicators (normal, abnormal, or malfunction) are generated for the well water pump, heating rod, upper water level sensor, lower water level sensor, and temperature sensor, respectively.

[0025] It should be noted that by using multi-source signal fusion and dynamic threshold criteria to assess the health status of sensors and actuators, the system's ability to identify hardware anomalies in the early stages is improved, avoiding misjudgment of control logic or functional interruption due to the failure of a single component. This enhances the operational reliability and fault tolerance of the entire drinking water system from the source.

[0026] S2. Dynamically reconstruct the judgment logic of multi-level safety interlocks based on the equipment health status indicators.

[0027] Furthermore, when either the upper or lower water level sensor is determined to be faulty, the system automatically masks the sensor's original output signal and uses a virtual water level as an alternative criterion for determining the water storage status. The virtual water level can be constructed in the following ways: Record the start and stop times of each well water pump start-up to obtain the duration of a single run; During the start-up and stop times, the operating current of the well water pump is continuously sampled and integrated to obtain the total power consumption. Based on the electrical constant per unit volume of water obtained during the factory calibration. The electricity consumption is converted into the actual amount of water added this time; The current virtual water level is updated by combining the initial water level estimate during system initialization and the historical cumulative water discharge. The virtual water level... The calculation expression is: ; in, This is the initial water level estimate. This refers to the real-time operating current of the well water pump during water replenishment. and These are the start and end times of this water replenishment. This represents the total water consumption since the system was started.

[0028] It should be noted that the introduction of a virtual water level model based on current integration when the physical water level sensor fails effectively maintains the continuity of water storage status perception and the integrity of judgment criteria, enabling the system to reliably execute water shortage protection logic even when some sensing capabilities are lost, fundamentally preventing high-risk accidents such as dry burning.

[0029] S3. Based on the reconstructed judgment logic, perform three levels of safety judgment in sequence: equipment level, water source level, and water storage level.

[0030] Furthermore, in the equipment-level judgment, if the continuous running time of the well water pump exceeds the preset maximum allowable time, or the temperature sensor health indicator is invalid, the first-level protection action will be triggered immediately to forcibly shut down the well water pump, drinking water pump and heating rod, and generate an equipment-level fault alarm log. In the water source level judgment, if the health indicators of both the upper and lower water level sensors are invalid, the secondary protection action is triggered, shutting down all external output functions of the drinking water pump and heating rod, and only allowing the well water pump to operate briefly when the virtual water level is lower than the upper limit threshold and a water replenishment command is received. In determining the water storage level, if the physical water level sensor indicates no water, or if the virtual water level is malfunctioning... Less than or equal to the preset minimum safe water level If this occurs, a Level 3 protection action will be triggered, immediately cutting off the power supply to the heating rod and the water pump, and forcibly starting the well water pump for emergency water replenishment until the virtual water level returns to the safe threshold. above; The safe water level threshold These are fixed parameters set during system initialization based on the installation position of the heating rod and the geometry of the water tank.

[0031] It should be noted that the three-level safety assessment is performed in a progressive manner, from the equipment level to the water source level and then to the water storage level. It is also dynamically linked with the health status and virtual water level, thus constructing a well-defined and timely intrinsic safety protection system. This ensures that even under complex combinations of faults, the safety of the equipment and the basic drinking water needs of livestock can still be prioritized, significantly improving the system's survivability in harsh environments.

[0032] S4. Obtain valid drinking event signals of livestock through a non-contact identification device at the water trough inlet.

[0033] Furthermore, non-contact identification devices use infrared arrays or millimeter-wave radar to continuously monitor the movement of objects within a designated area in front of the water dispenser. When livestock are detected entering the area, the time of entry is recorded. ; If livestock remain in the area, record the time when they leave. And calculate the actual length of stay. ; If the length of stay Not less than the preset effective drinking water threshold If no rapid crossing or swinging behavior is detected during the event, it is considered a valid drinking event and a valid drinking event signal is generated; otherwise, it is considered an environmental disturbance or false trigger and no response is given. This valid drinking water event signal serves as the sole legal trigger for starting the drinking water pump, preventing invalid water supply caused by timed control or false sensing.

[0034] It should be noted that the effective drinking event signal is generated based on the dual criteria of dwell time and behavioral stability, which effectively filters out environmental interference and false triggers caused by non-drinking behaviors, so that the water supply action truly matches the actual needs of livestock, laying a high-precision behavioral perception foundation for the subsequent realization of on-demand water supply and energy-saving control.

[0035] S5. Start the drinking water pump based on a valid drinking water event signal, and simultaneously collect the current change data during the operation of the water pump.

[0036] Furthermore, upon receiving a valid drinking water event signal, the central control unit simultaneously activates both the drinking water pump and the well water pump to maintain the water supply pressure. From the moment the well water pump starts, the working current is discretely sampled at a fixed sampling period to form a current sequence. The current sequence is then bound and stored with the corresponding timestamp for subsequent water volume inversion. After this water supply period ends, the actual water consumption will be calculated based on the current data. The calculation formula is: ; In the formula, For the first The current value of the well water pump in the second sample. The sampling period is This represents the total number of sampling points. The electrical constant corresponding to a unit volume of water.

[0037] It should be noted that by synchronously collecting well water pump current data and using it for water volume inversion, high-precision water metering can be achieved without the need for additional flow meters. This not only reduces the complexity and cost of the system hardware, but also improves the long-term measurement stability and maintenance convenience under typical pastoral conditions such as low temperature, high humidity, and dust.

[0038] S6. Calculate the actual water consumption based on the current change data, and generate a precise water replenishment command for the well water pump by combining the current water level status with the preset water replenishment strategy.

[0039] Furthermore, the actual water consumption calculated in this study... The total daily water output is accumulated and different logic is executed based on the user's pre-selected water replenishment strategy, including: The actual water consumption calculated in this instance The total daily water output is added to the statistics, and different logics are executed according to the water replenishment strategy selected by the user in advance, including the replenishment mode after drinking and the trickle maintenance mode. The "refill after drinking" mode refers to the mode where water is replenished only after the cumulative output reaches a preset batch threshold. At that time, a quantitative water replenishment command is generated to control the well water pump to run until the virtual water level is reached. Restored to full water level ; The trickle-down maintenance mode involves adjusting the water consumption based on the amount consumed after each drinking event. Dynamically calculate the required water replenishment time The formula is: ; in This is the average flow rate of the well water pump under standard operating conditions, which is obtained through self-learning from historical operating data. To prevent frequent starts and stops, the system introduces a minimum water replenishment interval constraint, which only applies when the time since the last water replenishment ends exceeds [a certain period]. New water replenishment instructions will only be executed at that time; In low-temperature environments, the system combines virtual water level and ambient temperature to predict the risk of future freezing. If it is predicted that the water temperature will be below freezing point at night and the current water level is low, preventive water replenishment will be carried out in advance to keep the water level in the high range. It should be noted that by deeply integrating the actual water consumption with the preset water replenishment strategy and introducing antifreeze feedforward and start-stop interval constraint mechanisms, the system has achieved a shift from passive water replenishment to intelligent on-demand water replenishment while ensuring that the safety interlock is always effective. This reduces the number of times the water pump runs ineffectively, lowers energy consumption, extends equipment life, and improves the drinking experience for livestock and the overall energy efficiency of the system. Furthermore, the water replenishment process is always subject to a three-level safety assessment, and any safety anomaly can interrupt the water replenishment command.

[0040] This embodiment also provides an intelligent livestock drinking water system based on multi-level safety interlocks, including: Central control unit, well water pump, drinking water pump, heating rod, upper water level sensor, lower water level sensor, temperature sensor, non-contact livestock identification device, and remote communication module; The central control unit is the core processing module, which includes a built-in health assessment engine, a safety interlock decision-maker, a virtual water level calculator, a drinking water event analyzer, and a water replenishment scheduler. The well pump connects the groundwater well to the water storage tank and is used to replenish the water in the storage tank; The water pump connects the water storage tank and the water trough, and is used to supply water to livestock when a valid drinking event is triggered; The heating rod is installed at the bottom of the water tank to prevent the water from freezing in low-temperature environments; The upper water level sensor and the lower water level sensor are respectively installed on the high water level line and the low water level line on the inner wall of the water storage tank to detect the physical water level status. The temperature sensor is located inside the water tank near the heating rod to monitor the water temperature in real time. Non-contact livestock identification devices are installed within 0.3 to 0.8 meters in front of the water trough inlet and use infrared or radio frequency technology to identify livestock approach behavior; The remote communication module is electrically connected to the central control unit. It is used to package the equipment health status indicators, three-level safety judgment results, effective drinking water event records, actual water consumption, virtual water level values ​​and water replenishment execution logs into structured data packets, and encrypt and upload them to the remote management platform to realize remote monitoring, fault early warning and strategy optimization.

[0041] This embodiment also provides a computer device applicable to the control method of an intelligent livestock drinking water system based on multi-level safety interlocks, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to realize the control method of an intelligent livestock drinking water system based on multi-level safety interlocks as proposed in the above embodiment.

[0042] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0043] This embodiment also provides a storage medium storing a computer program. When executed by a processor, the program implements the intelligent livestock drinking water system control method based on multi-level safety interlocks as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0044] In summary, this invention effectively solves the safety hazard of system loss of control caused by single-point failure of sensors or actuators by introducing real-time assessment of equipment health status and a multi-level safety interlock dynamic reconfiguration mechanism. Even under abnormal operating conditions such as water level detection failure, it can still reliably prevent the heating rod from burning dry and the water source from drying out by relying on the virtual water level model. It triggers water supply based on non-contact livestock behavior recognition and combines the current integration of well water pumps to invert the actual water consumption, thereby achieving precise and coordinated control, reducing the number of invalid pump starts and stops and system energy consumption. The water replenishment strategy can be adaptively switched according to the operating mode and is subject to the constraints of three-level safety judgment throughout the process, ensuring high reliability operation even in extreme environments or off-grid conditions. This comprehensively improves the safety, energy saving, robustness and intelligence level of the intelligent drinking water system in pastoral areas.

[0045] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A control method for an intelligent livestock drinking water system based on multi-level safety interlocks, characterized in that: include: Real-time health status assessment of sensors and actuators in intelligent livestock drinking systems is performed to generate equipment health status labels; The judgment logic of multi-level safety interlocks is dynamically reconstructed based on the equipment health status indicators; Based on the reconstructed judgment logic, three levels of safety judgments are executed sequentially: equipment level, water source level, and water storage level. If a protection action is triggered at any level, the subsequent operation is terminated. If no protective action is triggered in any of the three levels of safety assessments, a valid drinking event signal of the livestock is obtained through a non-contact identification device at the water trough inlet; The water pump is activated based on a valid drinking water event signal, and the current change data during the pump operation is collected simultaneously. The actual water consumption is calculated based on the current change data, and a precise water replenishment command for the well water pump is generated by combining the current water level status with the preset water replenishment strategy.

2. The intelligent livestock drinking water system control method based on multi-level safety interlocks as described in claim 1, characterized in that: The specific steps for real-time health status assessment of sensors and actuators in the intelligent livestock drinking system are as follows: The central control unit periodically collects the working current signal of the well water pump, the on / off feedback signal of the heating rod, the output signal of the upper water level sensor, the output signal of the lower water level sensor, and the output signal of the temperature sensor. A sliding window variance analysis is performed on the operating current signal of the well water pump. If the current fluctuation variance exceeds the preset threshold within three consecutive sampling periods, the well water pump is determined to be in an abnormal operating state. The logic consistency of the output signals of the upper and lower water level sensors is checked. If the duration of both indicating high water level or low water level simultaneously exceeds 30 seconds, the water level sensing channel is determined to be faulty. The temperature sensor output signal is subjected to trend drift detection. If the rate of temperature change per unit time exceeds the preset reasonable physiological range, the temperature sensor is marked as a failure. Based on the judgment results of each component, three-state health indicators (normal, abnormal, or malfunction) are generated for the well water pump, heating rod, upper water level sensor, lower water level sensor, and temperature sensor, respectively.

3. The intelligent livestock drinking system control method based on multi-level safety interlocks as described in claim 2, characterized in that: The specific steps of the judgment logic for dynamically reconstructing multi-level safety interlocks based on equipment health status indicators are as follows: When either the upper or lower water level sensor is determined to be faulty, the system automatically masks the sensor's original output signal and uses a virtual water level as an alternative criterion for determining the water storage status. The virtual water level can be constructed in the following ways: Record the start and stop times of each well water pump start-up to obtain the duration of a single run; During the start-up and stop times, the operating current of the well water pump is continuously sampled and integrated to obtain the total power consumption. Based on the electrical constant per unit volume of water obtained during the factory calibration. The electricity consumption is converted into the actual amount of water added this time; The current virtual water level is updated by combining the initial water level estimate during system initialization and the historical cumulative water discharge. The virtual water level... The calculation expression is: ; in, This is the initial water level estimate. This refers to the real-time operating current of the well water pump during water replenishment. and These are the start and end times of this water replenishment. This represents the total water consumption since the system was started.

4. The intelligent livestock drinking water system control method based on multi-level safety interlocks as described in claim 3, characterized in that: The process involves sequentially performing three levels of safety checks—equipment level, water source level, and water storage level—based on the reconstructed judgment logic. The specific steps are as follows: In the equipment-level judgment, if the continuous running time of the well water pump exceeds the preset maximum allowable time, or the temperature sensor health indicator is invalid, the first-level protection action will be triggered immediately to forcibly shut down the well water pump, drinking water pump and heating rod, and generate an equipment-level fault alarm log. In the water source level judgment, if the health indicators of both the upper and lower water level sensors are invalid, the secondary protection action is triggered, shutting down all external output functions of the drinking water pump and heating rod, and only allowing the well water pump to operate briefly when the virtual water level is lower than the upper limit threshold and a water replenishment command is received. In determining the water storage level, if the physical water level sensor indicates no water, or if the virtual water level is malfunctioning, the water level will be lower than the physical water level sensor's reading. Less than or equal to the preset minimum safe water level If this occurs, a Level 3 protection action will be triggered, immediately cutting off the power supply to the heating rod and the water pump, and forcibly starting the well water pump for emergency water replenishment until the virtual water level returns to the safe threshold. above; The safe water level threshold These are fixed parameters set during system initialization based on the installation position of the heating rod and the geometry of the water tank.

5. The intelligent livestock drinking system control method based on multi-level safety interlocks as described in claim 4, characterized in that: The specific steps for acquiring valid drinking event signals of livestock through the non-contact identification device at the water trough inlet are as follows: The non-contact identification device uses an infrared array or millimeter-wave radar to continuously monitor the movement of objects within a set area in front of the drinking trough. When livestock are detected entering this area, the time of entry is recorded. ; If livestock remain in the area, record the time when they leave. And calculate the actual length of stay. ; If the length of stay Not less than the preset effective drinking water threshold If no rapid crossing or swinging behavior is detected during the event, it is considered a valid drinking event and a valid drinking event signal is generated; otherwise, it is considered an environmental disturbance or false trigger and no response is given. Furthermore, a valid drinking event signal is the only legitimate trigger condition for starting the drinking water pump.

6. The intelligent livestock drinking water system control method based on multi-level safety interlocks as described in claim 5, characterized in that: The steps for activating the water pump based on a valid drinking water event signal and simultaneously collecting current change data during pump operation are as follows: Upon receiving a valid drinking water event signal, the central control unit simultaneously activates both the drinking water pump and the well water pump to maintain the water supply pressure. From the moment the well water pump starts, the working current is discretely sampled at a fixed sampling period to form a current sequence. The current sequence is then bound and stored with the corresponding timestamp for subsequent water volume inversion. After this water supply period ends, the actual water consumption will be calculated based on the current data. The calculation formula is: ; In the formula, For the first The current value of the well water pump in the second sample. The sampling period is This represents the total number of sampling points. The electrical constant corresponding to a unit volume of water.

7. The intelligent livestock drinking system control method based on multi-level safety interlocks as described in claim 6, characterized in that: The steps for calculating the actual water consumption based on current change data and generating a precise water replenishment command for the well water pump by combining the current water level status with a preset water replenishment strategy are as follows: The actual water consumption calculated in this instance The total daily water output is added to the statistics, and different logics are executed according to the water replenishment strategy selected by the user in advance, including the replenishment mode after drinking and the trickle maintenance mode. The "refill after drinking" mode refers to the mode where water is replenished only after the cumulative output reaches a preset batch threshold. At that time, a quantitative water replenishment command is generated to control the well water pump to run until the virtual water level is reached. Restored to full water level ; The trickle-down maintenance mode involves adjusting the water consumption based on the amount consumed after each drinking event. Dynamically calculate the required water replenishment time The formula is: ; in This is the average flow rate of the well water pump under standard operating conditions, which is obtained through self-learning from historical operating data. To prevent frequent starts and stops, the system introduces a minimum water replenishment interval constraint, which only applies when the time since the last water replenishment ends exceeds [a certain period]. New water replenishment instructions will only be executed at that time; In low-temperature environments, the system combines virtual water level and ambient temperature to predict the risk of future freezing. If it is predicted that the water temperature will be below freezing point at night and the current water level is low, preventive water replenishment will be carried out in advance to keep the water level in the high range. Furthermore, the water replenishment process is always subject to a three-level safety assessment, and any safety anomaly can interrupt the water replenishment command.

8. An intelligent livestock drinking system based on multi-level safety interlocks, based on the intelligent livestock drinking control method based on multi-level safety interlocks as described in any one of claims 1 to 7, characterized in that: include: Central control unit, well water pump, drinking water pump, heating rod, upper water level sensor, lower water level sensor, temperature sensor, non-contact livestock identification device, and remote communication module; The central control unit is the core processing module, which includes a built-in health assessment engine, a safety interlock decision-maker, a virtual water level calculator, a drinking water event analyzer, and a water replenishment scheduler. The well pump connects the groundwater well and the water storage tank, and is used to replenish the water storage tank; The water pump connects the water storage tank and the water trough, and is used to supply water to livestock when a valid drinking event is triggered. The heating rod is installed at the bottom of the water storage tank to prevent the water from freezing in low-temperature environments; The upper water level sensor and the lower water level sensor are respectively installed at the high water level line and the low water level line on the inner wall of the water storage tank to detect the physical water level status. The temperature sensor is located inside the water tank near the heating rod and is used to monitor the water temperature in real time. The non-contact livestock identification device is installed within 0.3 to 0.8 meters in front of the water trough inlet and uses infrared or radio frequency technology to identify livestock approach behavior. The remote communication module is electrically connected to the central control unit and is used to package the equipment health status identifier, the three-level safety judgment result, the effective drinking water event record, the actual water consumption, the virtual water level value and the water replenishment execution log into a structured data packet, and encrypt and upload it to the remote management platform to realize remote monitoring, fault early warning and strategy optimization.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the intelligent livestock drinking water system control method based on multi-level safety interlocks as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the intelligent livestock drinking water system control method based on multi-level safety interlocks as described in any one of claims 1 to 8.