Piglet weaning stress intervention method, device, system and readable storage medium
Patent Information
- Application Number
- CN202611054103.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-10-30
AI Technical Summary
[0003]目前的干预措施由饲养员凭经验人工判断并进行统一化实施,然而这种方式不仅未考虑个体应激差异,而且往往滞后于应激发生,因此亟需一种能够自动生成个性化干预策略并执行的方案
[0015]本公开的技术方案中,通过基于仔猪个体的应激等级、多个维度的应激子评分、个体特征和所处的猪场环境,确定目标干预策略,控制环境调控模块执行环境调控策略,饲喂调控模块执行饲喂调控策略,监测仔猪个体的应激指标,并基于应激指标确定目标干预策略是否满足自动调整条件,当目标干预策略满足自动调整条件时,自动调整目标干预策略并返回控制环境调控模块执行环境调控策略,饲喂调控模块执行饲喂调控策略,直至目标干预策略不满足自动调整条件时,确定最佳干预策略,能够在应激等级评估的基础上,自动生成仔猪断奶的个性化应激干预方案并执行,实现断奶应激管理的闭环控制。此外,可以实时监测并优化干预效果,确保干预有效性。
Smart Images

Figure CN122997092A_ABST
Abstract
Description
Technical Field
[0001] The embodiments disclosed herein relate to the field of intelligent livestock farming technology, and in particular to methods, apparatus, systems and readable storage media for intervening in weaning stress in piglets. Background Technology
[0002] Intervention of weaning stress in piglets is a key measure to reduce weaning losses. Common intervention methods include environmental control, nutritional control, management control and drug intervention. Among them, environmental control can be at least one of temperature, humidity and ventilation control; nutritional control can be at least one of creep feed, attractant and acidifier control; management control can be at least one of grouping and density control; and drug intervention can be at least one of antibiotics and probiotics.
[0003] Current intervention measures are implemented uniformly by zookeepers based on their experience. However, this approach not only fails to consider individual differences in stress response but also often lags behind the occurrence of stress. Therefore, there is an urgent need for a solution that can automatically generate and execute personalized intervention strategies. Summary of the Invention
[0004] This disclosure provides a method, device, system, and readable storage medium for weaning stress intervention in piglets. Based on stress level assessment, it can automatically generate and execute a weaning stress intervention plan for piglets, achieving closed-loop control of weaning stress management and ensuring the effectiveness of the intervention.
[0005] Firstly, this disclosure provides a method for intervening in weaning stress in piglets, including: Based on the individual piglet's stress level, stress sub-scores across multiple dimensions, individual characteristics, and the pig farm environment, a target intervention strategy is determined. This target intervention strategy includes an environmental control strategy and a feeding control strategy. The multiple dimensions include behavior, feed intake, physiology, and audio. The environmental control module executes the environmental control strategy, and the feeding control module executes the feeding control strategy. The stress indicators of the individual piglets are monitored, and based on these indicators, it is determined whether the target intervention strategy meets the automatic adjustment conditions. These stress indicators include the stress level, comprehensive stress score, daily feed intake, and daily diarrhea incidence rate. When the target intervention strategy meets the automatic adjustment conditions, the target intervention strategy is automatically adjusted, and the system returns to the environmental control module to execute the environmental control strategy, and the feeding control module executes the feeding control strategy, until the target intervention strategy no longer meets the automatic adjustment conditions, at which point the optimal intervention strategy is determined.
[0006] In some embodiments of this disclosure, determining the target intervention strategy based on the individual piglet's stress level, multiple dimensions of stress sub-scores, individual characteristics, and the pig farm environment includes: A state space and an action space are constructed. The state space includes the stress level, stress sub-scores of multiple dimensions, individual characteristic parameters, and pig farm environmental parameters. The action space includes environmental control parameters and feeding control parameters. The environmental control parameters include temperature, humidity, and ventilation status. The feeding control parameters include feed amount, feeding frequency, feed form, additive type, and feed formulation. The state space vector of the individual piglet is input into the intervention strategy model. Based on the stress level and the stress sub-scores of multiple dimensions, a matching action space vector is selected from the basic intervention strategy library to obtain the basic intervention strategy. Based on the individual characteristic parameters and the pig farm environmental parameters, at least some parameters in the basic intervention strategy are adjusted to obtain the target intervention strategy.
[0007] In some embodiments of this disclosure, the monitoring of stress indicators for the individual piglets includes: The behavioral indicators of the individual piglets are input into a behavioral stress assessment model to determine a behavioral stress sub-score. These behavioral indicators include average daily walking distance, percentage of standing time, frequency of fighting, and frequency of abnormal behavior. The feeding indicators of the individual piglets are input into a feeding stress assessment model to determine a feeding stress sub-score. These feeding indicators include the daily feed intake variation rate, the time of delay in first feeding on the day, and the daily feeding frequency variation rate. The physiological indicators of the individual piglets are input into a physiological stress assessment model to determine a physiological stress sub-score. These physiological indicators include the dispersion of body surface temperature distribution and the deviation of average body surface temperature. The audio indicators of the individual piglets are input into an audio stress assessment model to determine an audio stress sub-score. These audio indicators include the frequency of screaming, grunting, and hoarse vocalizations. Based on the behavioral stress sub-score, the feeding stress sub-score, the physiological stress sub-score, and the audio stress sub-score, a comprehensive stress score is determined.
[0008] In some embodiments of this disclosure, determining whether the target intervention strategy meets the automatic adjustment conditions based on the stress index includes: Based on the stress level before intervention and the stress level at a first preset time after intervention, determine whether the stress level has decreased; based on the comprehensive stress score before intervention and the comprehensive stress score at a second preset time after intervention, determine the rate of decrease in the comprehensive stress score; based on the daily reference intake and the daily intake after intervention, determine the daily intake recovery rate; based on the daily diarrhea incidence rate before and after intervention, determine the change in the daily diarrhea incidence rate; when the stress indicators meet at least one of the following conditions: the stress level has not decreased, the rate of decrease in the comprehensive stress score is less than a first preset value, the daily intake recovery rate is less than a second preset value, and the change in the daily diarrhea incidence rate shows an upward trend, it is determined that the target intervention strategy meets the automatic adjustment condition.
[0009] In some embodiments of this disclosure, the automatic adjustment of the target intervention strategy includes: Adjust the weights of the environmental regulation strategy and the feeding regulation strategy in the target intervention strategy; and / or, adjust the target intervention strategy based on the basic intervention strategy matched to the next higher level of the stress level.
[0010] In some embodiments of this disclosure, when the target intervention strategy does not meet the automatic adjustment conditions, determining the optimal intervention strategy includes: When the stress index does not meet all the conditions of the stress level not decreasing, the rate of decrease of the stress comprehensive score being less than the first preset value, the recovery rate of daily food intake being less than the second preset value, and the change in the daily diarrhea incidence showing an upward trend, the optimal intervention strategy is determined as the current target intervention strategy; when the number of automatic adjustments of the target intervention strategy reaches a preset number, the optimal intervention strategy is determined as a manual intervention strategy.
[0011] In some embodiments of this disclosure, the method further includes: The stress state and its corresponding optimal intervention strategy and intervention effect are stored in a knowledge base to optimize the intervention strategy model. The stress state includes the stress level, the stress sub-scores of the multiple dimensions, the individual characteristic parameters, and the pig farm environmental parameters.
[0012] Secondly, this disclosure provides a weaning stress intervention device for piglets, comprising: The intervention strategy determination module is used to determine the target intervention strategy based on the stress level of individual piglets, stress sub-scores of multiple dimensions, individual characteristics and the pig farm environment. The target intervention strategy includes environmental regulation strategy and feeding regulation strategy. The multiple dimensions include behavior, feed intake, physiology and audio. The control module is used to control the environmental control module to execute the environmental control strategy and the feeding control module to execute the feeding control strategy; the monitoring module is used to monitor the stress indicators of the individual piglets, including the stress level, stress comprehensive score, daily feed intake and daily diarrhea incidence; the judgment module is used to determine whether the target intervention strategy meets the automatic adjustment conditions based on the stress indicators. The intervention strategy determination module is further configured to automatically adjust the target intervention strategy when the target intervention strategy meets the automatic adjustment conditions, until the target intervention strategy no longer meets the automatic adjustment conditions, and then determine the optimal intervention strategy.
[0013] Thirdly, this disclosure provides a piglet weaning stress intervention system, including a piglet weaning stress intervention device, an environmental control module, and a feeding control module, wherein the piglet weaning stress intervention device is used to perform the steps of any of the methods provided in the first aspect.
[0014] Fourthly, this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the steps of any of the methods provided in the first aspect.
[0015] In this disclosed technical solution, a target intervention strategy is determined based on the individual piglet's stress level, multiple dimensions of stress sub-scores, individual characteristics, and the pig farm environment. The environmental control module executes the environmental control strategy, and the feeding control module executes the feeding control strategy. The stress indicators of individual piglets are monitored, and based on these indicators, it is determined whether the target intervention strategy meets the automatic adjustment conditions. When the target intervention strategy meets the automatic adjustment conditions, it is automatically adjusted and returned to the environmental control module for execution, and the feeding control module executes the feeding control strategy. This process continues until the target intervention strategy no longer meets the automatic adjustment conditions, at which point the optimal intervention strategy is determined. Based on stress level assessment, this system can automatically generate and execute personalized weaning stress intervention plans for piglets, achieving closed-loop control of weaning stress management. Furthermore, the intervention effect can be monitored and optimized in real time to ensure its effectiveness. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. It should be understood that the drawings described below only relate to some embodiments of this disclosure and are not intended to limit this disclosure, wherein: Figure 1 This is a schematic diagram of a piglet weaning stress intervention system provided in an embodiment of the present disclosure.
[0017] Figure 2 This is a flowchart illustrating a method for intervening in weaning stress in piglets, as provided in an embodiment of this disclosure.
[0018] Figure 3 This is a schematic diagram of a piglet weaning stress intervention device provided in an embodiment of this disclosure.
[0019] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of this disclosure without creative effort are also within the scope of protection of this disclosure.
[0021] In this disclosure, the reference to "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of the phrase "embodiment" in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this disclosure can be combined with other embodiments.
[0022] Furthermore, the terms "first," "second," etc., in the specification, claims, or the accompanying drawings are used to distinguish different objects rather than to describe a specific order, and may explicitly or implicitly include one or more of the features.
[0023] In the description of this disclosure, unless otherwise stated, "multiple" and "at least two" mean two or more (including two), and similarly, "multiple groups" and "at least two groups" mean two or more (including two groups).
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0025] Figure 1 This is a schematic diagram of the structure of a piglet weaning stress intervention system provided in this disclosure, as shown below. Figure 1 As shown, the piglet weaning stress intervention system includes a piglet weaning stress intervention device 100, an environmental control module 200, and a feeding control module 300. The piglet weaning stress intervention device 100 can communicate with a programmable logic controller (PLC) via the Modbus protocol. The environmental control module 200 may include a fan, a heating plate, and a spray cooling system. The feeding control module 300 includes an intelligent feeding station.
[0026] The piglet weaning stress intervention device 100 can control at least a portion of the fan speed, heating plate power and spray cooling system via PLC to control at least a portion of the temperature, humidity and ventilation status of the pig farm. It can also control the intelligent feeding station to control at least a portion of the feeding amount, feeding frequency, feed form, additive type and feed formula.
[0027] This disclosure provides a method for intervening in weaning stress in piglets, applied to... Figure 1 The piglet weaning stress intervention device 100 shown is included. Figure 2 A flowchart illustrating a method for intervening in weaning stress in piglets provided for the implementation of this disclosure is shown below. Figure 2 As shown, the specific steps of the weaning stress intervention method for piglets include: S101 determines the target intervention strategy based on the stress level of individual piglets, stress sub-scores of multiple dimensions, individual characteristics, and the pig farm environment.
[0028] For example, the stress level can be any of normal, mild, moderate, and severe, and the target intervention strategies include environmental regulation strategies and feeding regulation strategies. Multiple dimensions include behavior, feeding, physiology, and audio; therefore, the stress sub-scores for these dimensions include a behavioral stress sub-score (S_behavior), a feeding stress sub-score (S_feeding), a physiological stress sub-score (S_physiology), and an audio stress sub-score (S_audio).
[0029] Prior to implementing S101, the specific steps of the piglet weaning stress intervention method also included: S201, input the behavioral indicators of individual piglets into the behavioral stress assessment model to determine the behavioral stress sub-score S_behavior.
[0030] For example, behavioral indicators include average daily walking distance, percentage of standing time, frequency of fighting, and frequency of abnormal behavior. The behavioral stress sub-score S_behavior ranges from 0 to 100. A score of 0 indicates completely normal behavior, meaning that the piglets' activity level and social behavior are within a healthy range, while a score of 100 indicates severely abnormal behavior, meaning that the piglets exhibit severe stress behaviors such as extreme hyperactivity or complete depression and immobility.
[0031] S202, input the individual piglet's feeding index into the feeding stress assessment model to determine the feeding stress sub-score S_feeding.
[0032] For example, feed intake indicators include the daily feed intake change rate, the time of delay in first feeding on the day, and the daily feed intake frequency change rate. The feed stress score S_feeding ranges from 0 to 100. A score of 0 indicates that the feeding behavior is completely normal, that is, there is no significant decrease in feed intake after weaning, while a score of 100 indicates that the feeding behavior is severely abnormal, that is, the piglets refuse to eat for a long time or the feed intake drops sharply after weaning.
[0033] S203, input the physiological indicators of individual piglets into the physiological stress assessment model to determine the physiological stress sub-score S_physiology.
[0034] For example, physiological indicators include the dispersion of body surface temperature distribution and the deviation of the mean body surface temperature. The physiological stress score S_physiology ranges from 0 to 100. A score of 0 indicates normal thermoregulation and uniform body surface temperature distribution, while a score of 100 indicates severe thermoregulation, extremely uneven body surface temperature distribution, and suggests a severe physiological stress response.
[0035] S204. Input the audio indicators of individual piglets into the audio stress assessment model to determine the audio stress sub-score S_audio.
[0036] For example, the audio metrics include the frequency of screaming, humming, and hoarse calls, with the audio stress sub-score S_audio ranging from 0 to 100. A score of 0 indicates a normal vocal pattern with no abnormal high-frequency vocalizations, while a score of 100 indicates severely abnormal vocalizations with continuous high-frequency screaming, suggesting extreme fear or pain stress.
[0037] S205. Based on the stressor score S_behavior, the feeding stressor score S_feeding, the physiological stressor score S_physiology, and the audio stressor score S_audio, the stress total score S_total is determined.
[0038] For example, the stress score S_behavior, feeding stress score S_feeding, physiological stress score S_physiology, and audio stress score S_audio are weighted and summed to obtain the total stress score S_total. For instance, S_total = 0.4. S_behavior+0.2 S_feeding+0.2 S_physiology + 0.2 S_audio.
[0039] S206, based on the stress comprehensive score S_total, determines the stress level.
[0040] For example, different stress levels correspond to different stress comprehensive score ranges. For instance, the normal level corresponds to 0 to the first score S1, the mild level corresponds to the first score S1 to the second score S2, the moderate level corresponds to the second score S2 to the third score S3, and the moderate level corresponds to the third score S3 to 100.
[0041] It should be noted that behavioral stress assessment models, feeding stress assessment models, physiological stress assessment models, and audio stress models can all be implemented using Gradient Boosting Decision Tree (GBDT).
[0042] As a specific description of one possible implementation of S101, the following is an example: S1011, construct the state space and action space.
[0043] For example, the state space includes stress level, stress sub-scores across multiple dimensions, individual characteristic parameters, and pig farm environmental parameters. Individual characteristic parameters include breed, age, weight, and maternal antibody levels, while pig farm environmental parameters include temperature, humidity, ventilation, piglet grouping, and stocking density. The action space includes environmental control parameters and feeding control parameters. Environmental control parameters include temperature, humidity, and ventilation, while feeding control parameters include feed amount, feeding frequency, feed form, additive type, and feed formulation. For example, feed form can be pelleted, liquid, or porridge-like.
[0044] S1012: Input the state space vector of the individual piglet into the intervention strategy model. Based on the stress level and stress sub-scores of multiple dimensions, select the matching action space vector from the basic intervention strategy library to obtain the basic intervention strategy.
[0045] For example, the state space vector is a vector in the state space, which includes stress level, stress sub-scores in multiple dimensions, individual characteristic parameter values, and pig farm environmental parameter values. The action space vector is a vector in the action space, which includes at least a portion of temperature value, humidity value, and ventilation status, as well as at least a portion of feed amount, feeding frequency, feed form, additive type, and feed formulation.
[0046] The intervention strategy model includes a predefined library of basic intervention strategies, which contains basic intervention strategies corresponding to different stress levels. For example, the library includes basic intervention strategies for mild stress, moderate stress, and severe stress. Basic intervention strategies for mild stress might include increasing feed palatability and maintaining an ambient temperature of 28 to 30 degrees Celsius; basic intervention strategies for moderate stress might include providing liquid feed and reducing stocking density; and basic intervention strategies for severe stress might include turning on heat lamps, providing electrolyte water, isolating and caring for individuals separately, and notifying a veterinarian.
[0047] S1013, based on individual characteristic parameters and pig farm environmental parameters, adjust at least some parameters in the basic intervention strategy to obtain the target intervention strategy.
[0048] For example, the intervention strategy model also includes a reinforcement learning algorithm. This algorithm fine-tunes some or all parameters in the basic intervention strategy based on individual characteristic parameters and pig farm environmental parameters, thereby obtaining the target intervention strategy. For instance, for a 28-day-old weaned piglet with a moderate stress level (S_feeding=72, significant decrease in feed intake; S_behavior=65, frequent fighting), the basic intervention strategy is to provide liquid feed, reduce stocking density, and increase ambient temperature. The target intervention strategy obtained through the reinforcement learning algorithm is to add palatability enhancers and acidifiers to the liquid feed, adjust the temperature from 28 degrees Celsius to 29.5 degrees Celsius, and reduce the group density from 20 pigs per pen to 15 pigs per pen.
[0049] S102, the environmental control module executes the environmental control strategy, and the feeding control module executes the feeding control strategy.
[0050] For example, the environmental control strategy is decomposed into environmental control instructions, and the feeding control strategy is decomposed into feeding control instructions. The PLC controls at least one of the fan speed, heating plate power and spray cooling system according to the environmental control instructions. The intelligent feeding station controls at least one of the feeding amount, feeding frequency, feed form, additive type and feed formula according to the feeding control instructions.
[0051] S103 is used to monitor stress indicators in individual piglets.
[0052] For example, stress indicators include stress level, stress comprehensive score, daily feed intake, and daily diarrhea incidence. Behavioral indicators, feed intake indicators, physiological indicators, and vocal indicators are obtained after intervention. Steps S201 to S206 are executed to obtain the stress comprehensive score and stress level after intervention. At the same time, the number of piglets with diarrhea after intervention / the total number of piglets is determined as the daily diarrhea incidence after intervention, and the daily feed intake of individual piglets after intervention is obtained through the actual feed intake data recorded by the intelligent feeding station.
[0053] S104, determine whether the target intervention strategy meets the automatic adjustment conditions based on stress indicators.
[0054] For example, the automatic adjustment conditions include, but are not limited to, any of the following conditions: the stress level has not decreased, the rate of decrease in the stress comprehensive score is less than a first preset value, the daily feed intake recovery rate is less than a second preset value, and the change in the daily diarrhea incidence rate shows an upward trend.
[0055] As a specific description of one possible implementation when executing S104, the following is an example: S1041, based on the stress level before intervention and the stress level at the first preset time after intervention, determine whether the stress level has decreased.
[0056] For example, the first preset time can be 24 hours. The stress level before the intervention is compared with the stress level after the intervention at the first preset time to determine whether the stress level has decreased.
[0057] S1042, based on the stress comprehensive score S_before before intervention and the stress comprehensive score S_after at the second preset time after intervention, determine the rate of decline of the stress comprehensive score.
[0058] For example, first, the difference between the stress comprehensive score S_before and the stress comprehensive score S_after, S_before-S_after, is calculated. Then, the ratio of this difference S_before-S_after to the second preset time (intervention duration t), (S_before-S_after) / t, is determined as the rate of decrease in the stress comprehensive score. A positive rate of decrease indicates that the stress is being alleviated, and a larger value indicates a better intervention effect. For example, if S_before = 72 points, S_after = 60 points, and the second preset time is 6 hours, the rate of decrease in the stress comprehensive score is (72 points - 60 points) / 6 hours = 2 points / hour.
[0059] In addition, during the second preset time period after intervention to the first preset time period, the stress comprehensive score S_after is updated once every second preset time period, and the stress comprehensive score decline rate and stress level are updated accordingly once every second preset time period.
[0060] S1043, based on the daily feed intake reference F_normal and the daily feed intake after intervention F_after, determine the daily feed intake recovery rate.
[0061] For example, the daily feed intake reference value (F_normal) is the daily feed intake of normal piglets of the same age, which can be obtained from a standard growth curve table based on the piglet breed and age. The ratio of the daily feed intake after intervention (F_after) to the daily feed intake reference value (F_normal), F_after / F_normal, is determined as the daily feed intake recovery rate. The closer the daily feed intake recovery rate is to 100%, the better the feed intake recovery. For example, if a 28-day-old piglet has an F_normal of 400g / day and an F_after of 320g / day for piglets of the same age, then the daily feed intake recovery rate is 320 / 400 = 80%.
[0062] S1044, Based on the daily diarrhea incidence rate before and after the intervention, determine the change in the daily diarrhea incidence rate.
[0063] For example, the difference between the daily diarrhea incidence rate after intervention (D_after) and the daily diarrhea incidence rate before intervention (D_before) is defined as the change in the daily diarrhea incidence rate (D_after - D_before). A negative change in the daily diarrhea incidence rate indicates improvement, while a positive change indicates worsening. For instance, if 3 out of 10 piglets had diarrhea per day before the intervention (D_before = 30%), and 2 piglets had diarrhea per day after the intervention (D_after = 20%), the change in the daily diarrhea incidence rate is 20% - 30% = -10%, indicating a decrease of 10 percentage points in the daily diarrhea incidence rate.
[0064] S1045, determine whether the stress index meets at least one of the following conditions: the stress level has not decreased, the rate of decrease in the comprehensive stress score is less than the first preset value, the daily feed intake recovery rate is less than the second preset value, and the change in the daily diarrhea incidence rate shows an upward trend.
[0065] For example, when the stress level does not decrease, the target intervention strategy is determined to meet the automatic adjustment conditions; when the rate of decrease in the comprehensive stress score is less than a first preset value, the target intervention strategy is determined to meet the automatic adjustment conditions, for example, the first preset value could be 0; when the daily feed intake recovery rate is less than a second preset value, the target intervention strategy is determined to meet the automatic adjustment conditions, for example, the second preset value could be 60%; when the change in the daily diarrhea incidence rate increases over two consecutive days, it is determined that the change in the daily diarrhea incidence rate shows an upward trend, i.e., the target intervention strategy is determined to meet the automatic adjustment conditions. At this time, S105 is executed.
[0066] S105, Automatically adjust the target intervention strategy.
[0067] For example, the weights of environmental regulation and feeding regulation strategies in the target intervention strategy can be adjusted to replace the target intervention strategy. For instance, the weight of the environmental regulation strategy can be reduced to shift the target intervention strategy from primarily environmental regulation to primarily feeding regulation. And / or, based on the baseline intervention strategy matched to the next higher level of stress, the target intervention strategy can be adjusted to upgrade its intervention intensity. For instance, the target intervention strategy can upgrade the baseline intervention strategy for moderate stress to the baseline intervention strategy for severe stress.
[0068] For example, if the stress score S_after of piglets drops from 78 (severe stress) to 72 (severe stress) 24 hours after intervention, meaning the stress level has not decreased, the target intervention strategy will be automatically adjusted to turn on the heat lamp and provide electrolyte water.
[0069] After executing S105, return to execute S102 until all the conditions in which the stress index does not meet are met: the stress level has not decreased, the rate of decrease in the comprehensive stress score is less than the first preset value, the daily food intake recovery rate is less than the second preset value, and the change in the daily diarrhea incidence rate is on the rise. At this time, it is determined that the target intervention strategy does not meet the automatic adjustment conditions, and S106 is executed.
[0070] S106, Determine the optimal intervention strategy.
[0071] For example, when the stress indicators do not meet all the conditions of stress level not decreasing, the rate of decrease in the comprehensive stress score being less than the first preset value, the recovery rate of daily feed intake being less than the second preset value, and the change in the daily diarrhea incidence showing an upward trend, the optimal intervention strategy is determined as the current target intervention strategy. For instance, 12 hours after intervention, the comprehensive stress score S_after of piglets decreased from 62 points (moderate stress) to 48 points (mild stress), indicating a decrease in stress level, thus ensuring that the target intervention strategy does not meet the automatic adjustment conditions, i.e., maintaining the optimal intervention strategy.
[0072] In this embodiment, a target intervention strategy is determined based on the individual piglet's stress level, multiple stress sub-scores, individual characteristics, and the pig farm environment. The environmental control module executes the environmental control strategy, and the feeding control module executes the feeding control strategy. Stress indicators of individual piglets are monitored, and based on these indicators, it is determined whether the target intervention strategy meets the automatic adjustment conditions. When the target intervention strategy meets the automatic adjustment conditions, it is automatically adjusted and returned to the control module for execution. The feeding control module then executes the feeding control strategy until the target intervention strategy no longer meets the automatic adjustment conditions. At this point, the optimal intervention strategy is determined. Based on stress level assessment, a personalized stress intervention plan for piglet weaning can be automatically generated and executed, achieving closed-loop control of weaning stress management. Furthermore, the intervention effect can be monitored and optimized in real time to ensure its effectiveness.
[0073] In some embodiments, the automatic adjustment condition also includes that the number of automatic adjustments to the target intervention strategy has not reached a preset number. When the number of automatic adjustments to the target intervention strategy reaches the preset number, regardless of whether the stress indicators meet the following conditions: the stress level has not decreased, the rate of decrease in the comprehensive stress score is less than the first preset value, the daily food intake recovery rate is less than the second preset value, and the change in the daily diarrhea incidence rate shows an upward trend, the target intervention strategy is determined not to meet the automatic adjustment condition.
[0074] At this point, the optimal intervention strategy is manual intervention, which includes both manual intervention tasks and automated control tasks. Manual intervention tasks are pushed to relevant personnel via mobile terminals to remind them to perform them, while automated control tasks are executed via PLCs and / or intelligent feeding stations. Examples of manual intervention tasks include isolation care, medication injection, and group density adjustment.
[0075] In this embodiment of the disclosure, when the number of times the target intervention strategy is automatically adjusted reaches a preset number, the optimal intervention strategy is determined to be the manual intervention strategy. This allows for manual intervention when the target intervention strategy fails to achieve the desired effect after multiple adjustments, thus ensuring the effectiveness of the intervention.
[0076] In some embodiments, the piglet weaning stress intervention method further includes: S301 stores the stress state and its corresponding optimal intervention strategy and intervention effect in the knowledge base to optimize the intervention strategy model.
[0077] For example, the stress state includes stress level, stress sub-scores across multiple dimensions, individual characteristic parameters, and pig farm environmental parameters. The stress state, optimal intervention strategy, and intervention effect constitute an intervention case, which is stored in a knowledge base to continuously optimize the intervention strategy model and improve the recommendation efficiency and effectiveness of the target intervention strategy. In practical application, after six months of operation, the system has accumulated over 5,000 cases. Based on case retrieval from the knowledge base, it recommends the best-performing target intervention strategy from similar historical cases, achieving a recommendation accuracy of up to 82%.
[0078] In this embodiment of the disclosure, by storing the stress state and its corresponding optimal intervention strategy and intervention effect in a knowledge base to optimize the intervention strategy model, the recommendation efficiency and effectiveness of the target intervention strategy can be improved.
[0079] In some embodiments, the piglet weaning stress intervention method further includes: S401. Based on the reward function R, the daily average change in the comprehensive stress score before and after the intervention ΔS_stress, the daily weight gain change before and after the intervention ΔADG, and the cost of the target intervention strategy C_intervention, determine the reward score of the target intervention strategy.
[0080] For example, the reward function R is obtained by weighted summing the daily average change in the comprehensive stress score before and after the intervention (ΔS_stress), the daily weight gain before and after the intervention (ΔADG), and the cost of the target intervention strategy (C_intervention). Then, R = 0.4 ΔS_stress+0.4 ΔADG-0.2 C_intervention. A positive reward score indicates an effective intervention, while a negative reward score indicates an ineffective or harmful intervention.
[0081] The daily average change in the stress comprehensive score before and after the intervention is ΔS_stress = (stress comprehensive score before intervention S_before - stress comprehensive score after intervention S_after) / number of days of intervention. For example, if S_before = 72 points and S_after = 48 points after 3 days of intervention, then ΔS_stress = (72 points - 48 points) / 3 days = 8 points / day.
[0082] Daily weight gain (ADG) refers to the average daily weight gain of piglets. The normal ADG for weaned piglets is 200g / day to 300g / day. The change in daily weight gain before and after intervention, ΔADG, is calculated as follows: (Daily weight gain after intervention - Daily weight gain before intervention) / Number of days of intervention. A positive ΔADG indicates recovery in growth, while a negative ΔADG indicates further decline in growth. For example, if the daily weight gain before intervention (ADG_before) is 100g / day and the daily weight gain after intervention (ADG_after) is 220g / day, then ΔADG = 220g / day - 100g / day = 120g / day.
[0083] The cost C_intervention includes feed additive costs, energy costs, and labor costs. Feed additive costs include the cost of a single use of feed additives such as acidifiers, probiotics, and palatability enhancers. Energy costs include the energy consumption for environmental control, such as heating plate heating, fan operation, and water usage for the misting cooling system. Labor costs include the hourly wages of the zookeepers performing the intervention tasks. For example, the cost C_intervention for a single moderate stress intervention is approximately 5 to 15 yuan.
[0084] S402, Update the intervention strategy model based on the reward score of the target intervention strategy.
[0085] For example, the reward score of the target intervention strategy can update the network parameters of the intervention strategy model, guiding the agent to learn the optimal intervention strategy.
[0086] Figure 3 This is a schematic diagram of the structure of a piglet weaning stress intervention device provided in an embodiment of this disclosure, as shown below. Figure 3 As shown, the piglet weaning stress intervention device includes: The intervention strategy determination module 110 is used to determine the target intervention strategy based on the stress level of individual piglets, stress sub-scores of multiple dimensions, individual characteristics and the pig farm environment. The target intervention strategy includes environmental regulation strategy and feeding regulation strategy, and the multiple dimensions include behavior, feed intake, physiology and audio.
[0087] The control module 120 is used to control the environmental control module to execute the environmental control strategy and the feeding control module to execute the feeding control strategy.
[0088] The monitoring module 130 is used to monitor stress indicators of individual piglets, including stress level, stress comprehensive score, daily feed intake and daily diarrhea incidence.
[0089] The judgment module 140 is used to determine whether the target intervention strategy meets the automatic adjustment conditions based on stress indicators.
[0090] The intervention strategy determination module 110 is also used to automatically adjust the target intervention strategy when the target intervention strategy meets the automatic adjustment conditions, until the target intervention strategy no longer meets the automatic adjustment conditions, and then determine the optimal intervention strategy.
[0091] In some embodiments, the intervention strategy determination module 110 is further configured to construct a state space and an action space. The state space includes stress level, stress sub-scores of multiple dimensions, individual characteristic parameters, and pig farm environmental parameters. The action space includes environmental regulation parameters and feeding regulation parameters. The environmental regulation parameters include temperature, humidity, and ventilation status. The feeding regulation parameters include feed amount, feeding frequency, feed form, additive type, and feed formulation. The state space vector of the individual piglet is input into the intervention strategy model. Based on the stress level and stress sub-scores of multiple dimensions, a matching action space vector is selected from the basic intervention strategy library to obtain the basic intervention strategy. Based on the individual characteristic parameters and pig farm environmental parameters, at least some parameters in the basic intervention strategy are adjusted to obtain the target intervention strategy.
[0092] In some embodiments, the monitoring module 130 is further configured to input the behavioral indicators of individual piglets into a behavioral stress assessment model to determine a behavioral stress sub-score, the behavioral indicators including average daily walking distance, standing time percentage, fighting frequency, and abnormal behavior frequency; input the feeding indicators of individual piglets into a feeding stress assessment model to determine a feeding stress sub-score, the feeding indicators including daily feed intake change rate, daily first feeding delay time, and daily feeding frequency change rate; input the physiological indicators of individual piglets into a physiological stress assessment model to determine a physiological stress sub-score, the physiological indicators including body surface temperature distribution dispersion and average body surface temperature deviation; input the audio indicators of individual piglets into an audio stress assessment model to determine an audio stress sub-score, the audio indicators including screaming frequency, grunting frequency, and hoarse vocalization frequency; and determine a comprehensive stress score based on the behavioral stress sub-score, feeding stress sub-score, physiological stress sub-score, and audio stress sub-score.
[0093] In some embodiments, the judgment module 140 is further configured to determine whether the stress level has decreased based on the stress level before intervention and the stress level after a first preset time after intervention; determine the rate of decrease of the stress comprehensive score based on the stress comprehensive score before intervention and the stress comprehensive score after a second preset time after intervention; determine the daily feed intake recovery rate based on the daily reference intake and the daily feed intake after intervention; determine the change in the daily diarrhea incidence rate based on the daily diarrhea incidence rate before and after intervention; and determine that the target intervention strategy meets the automatic adjustment conditions when the stress index meets at least one of the following conditions: the stress level has not decreased, the rate of decrease of the stress comprehensive score is less than the first preset value, the daily feed intake recovery rate is less than the second preset value, and the change in the daily diarrhea incidence rate shows an upward trend.
[0094] In some embodiments, the intervention strategy determination module 110 is further configured to adjust the weights of the environmental regulation strategy and the feeding regulation strategy in the target intervention strategy when the target intervention strategy meets the automatic adjustment conditions; and / or, adjust the target intervention strategy based on the basic intervention strategy matched at the next higher level of stress level.
[0095] In some embodiments, the intervention strategy determination module 110 is further configured to determine the optimal intervention strategy as the current target intervention strategy when the stress index does not meet all the conditions of stress level not decreasing, stress comprehensive score decreasing rate less than a first preset value, daily feed intake recovery rate less than a second preset value, and daily diarrhea incidence showing an upward trend; and to determine the optimal intervention strategy as a manual intervention strategy when the number of automatic adjustments to the target intervention strategy reaches a preset number.
[0096] In some embodiments, the piglet weaning stress intervention device further includes: The model optimization module is used to store the stress state and its corresponding optimal intervention strategy and intervention effect into the knowledge base to optimize the intervention strategy model. The stress state includes stress level, stress sub-scores of multiple dimensions, individual characteristic parameters and pig farm environmental parameters.
[0097] The apparatus provided in this disclosure is used to perform the steps provided in any of the above method embodiments, has the functional modules corresponding to the method embodiments, and has the beneficial effects of the method embodiments, which will not be repeated here.
[0098] Figure 4 This is a schematic diagram of the structure of an electronic device provided in this disclosure. Figure 4 A block diagram is shown that is suitable for implementing embodiments of the present disclosure. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.
[0099] like Figure 4As shown, the electronic device 12 is represented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processor 16).
[0100] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0101] Electronic device 12 typically includes a variety of computer system readable media. These media can be any media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0102] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (commonly referred to as "hard disk drives"). Disk drives for reading and writing to removable non-volatile disks (e.g., "floppy disks") and optical disk drives for reading and writing to removable non-volatile optical disks (e.g., CD-ROMs, DVD-ROMs, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of this disclosure.
[0103] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.
[0104] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the steps of the above-described method embodiments.
[0105] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0106] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0107] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0108] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or wide area network (WAN) domain—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] This disclosure also provides a computer program product that, when run on a computer, causes the computer to perform the steps of the above-described method embodiments.
[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatuses and methods according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. Unless otherwise expressly indicated by the context, the singular form of words used herein and in the appended claims includes the plural form, and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the terms “comprising” and “including” are to be interpreted as including rather than exclusively. Likewise, the terms “including” and “or” should be interpreted as including unless such interpretation is expressly prohibited herein. Where the term “example” is used herein, the “example” is merely exemplary and illustrative, and should not be considered exclusive or extensive.
[0111] Several embodiments of this disclosure have been described in detail above. However, it is obvious that those skilled in the art can make various modifications and variations to the embodiments of this disclosure without departing from the spirit and scope of this disclosure. The scope of protection of this disclosure is defined by the appended claims.
Claims
1. A method for intervening in weaning stress in piglets, characterized in that, include: Based on the stress level of individual piglets, stress sub-scores of multiple dimensions, individual characteristics and the pig farm environment, target intervention strategies are determined. The target intervention strategies include environmental regulation strategies and feeding regulation strategies. The multiple dimensions include behavior, feed intake, physiology and audio. The environmental control module executes the environmental control strategy, and the feeding control module executes the feeding control strategy; The stress indicators of the individual piglets are monitored, and the target intervention strategy is determined based on the stress indicators to determine whether the automatic adjustment conditions are met. The stress indicators include the stress level, stress comprehensive score, daily feed intake, and daily diarrhea incidence. When the target intervention strategy meets the automatic adjustment conditions, the target intervention strategy is automatically adjusted and the control environment regulation module is returned to execute the environment regulation strategy. The feeding regulation module executes the feeding regulation strategy until the target intervention strategy no longer meets the automatic adjustment conditions, at which point the optimal intervention strategy is determined.
2. The method according to claim 1, characterized in that, The target intervention strategies, determined based on individual piglet stress levels, multiple stress sub-scores, individual characteristics, and the pig farm environment, include: Construct a state space and an action space. The state space includes the stress level, the stress sub-scores of multiple dimensions, individual characteristic parameters, and pig farm environmental parameters. The action space includes environmental control parameters and feeding control parameters. The environmental control parameters include temperature, humidity, and ventilation status. The feeding control parameters include feeding amount, feeding frequency, feed form, additive type, and feed formula. The state space vector of the individual piglet is input into the intervention strategy model. Based on the stress level and the stress sub-scores of the multiple dimensions, the matching action space vector is selected from the basic intervention strategy library to obtain the basic intervention strategy. Based on the individual characteristic parameters and the pig farm environmental parameters, at least some parameters in the basic intervention strategy are adjusted to obtain the target intervention strategy.
3. The method according to claim 1, characterized in that, The stress indicators monitored for the individual piglets include: The behavioral indicators of the individual piglets are input into the behavioral stress assessment model to determine the behavioral stress sub-score. The behavioral indicators include the average daily walking distance, the percentage of standing time, the frequency of fighting, and the frequency of abnormal behavior. The feeding indicators of the piglets are input into the feeding stress assessment model to determine the feeding stress sub-score. The feeding indicators include the daily feed intake change rate, the daily first feeding delay time, and the daily feeding frequency change rate. The physiological indicators of the individual piglets are input into the physiological stress assessment model to determine the physiological stress sub-score. The physiological indicators include the dispersion of body surface temperature distribution and the deviation of average body surface temperature. The audio indicators of the individual piglets are input into the audio stress assessment model to determine the audio stress sub-score. The audio indicators include the frequency of screaming, grunting and hoarse sounds. The comprehensive stress score is determined based on the behavioral stressor score, the feeding stressor score, the physiological stressor score, and the audio stressor score.
4. The method according to claim 2, characterized in that, The step of determining whether the target intervention strategy meets the automatic adjustment condition based on the stress index includes: Based on the stress level before intervention and the stress level at a first preset time after intervention, determine whether the stress level has decreased; Based on the stress comprehensive score before intervention and the stress comprehensive score at a second preset time after intervention, the rate of decline of the stress comprehensive score is determined; The daily intake recovery rate was determined based on the daily reference intake and the daily intake after intervention. Based on the daily diarrhea incidence rate before and after the intervention, the change in the daily diarrhea incidence rate was determined; When the stress index meets at least one of the following conditions: the stress level does not decrease, the rate of decrease in the comprehensive stress score is less than a first preset value, the recovery rate of daily food intake is less than a second preset value, and the change in the daily diarrhea incidence rate shows an upward trend, the target intervention strategy is determined to meet the automatic adjustment condition.
5. The method according to claim 4, characterized in that, The automatic adjustment of the target intervention strategy includes: Adjust the weights of the environmental control strategy and the feeding control strategy in the target intervention strategy; And / or, adjust the target intervention strategy based on the base intervention strategy matched to the next higher level of the stress level.
6. The method according to claim 5, characterized in that, When the target intervention strategy does not meet the automatic adjustment conditions, determining the optimal intervention strategy includes: When the stress index does not meet all the conditions of the stress level not decreasing, the rate of decrease of the stress comprehensive score being less than the first preset value, the daily food intake recovery rate being less than the second preset value, and the change in the daily diarrhea incidence showing an upward trend, the optimal intervention strategy is determined as the current target intervention strategy. When the number of times the target intervention strategy is automatically adjusted reaches a preset number, the optimal intervention strategy is determined to be a manual intervention strategy.
7. The method according to claim 2, characterized in that, The method further includes: The stress state and its corresponding optimal intervention strategy and intervention effect are stored in a knowledge base to optimize the intervention strategy model. The stress state includes the stress level, the stress sub-scores of the multiple dimensions, the individual characteristic parameters, and the pig farm environmental parameters.
8. A device for intervening in weaning stress in piglets, characterized in that, include: The intervention strategy determination module is used to determine the target intervention strategy based on the stress level of individual piglets, stress sub-scores of multiple dimensions, individual characteristics and the pig farm environment. The target intervention strategy includes environmental regulation strategy and feeding regulation strategy. The multiple dimensions include behavior, feed intake, physiology and audio. The control module is used to control the environmental control module to execute the environmental control strategy and the feeding control module to execute the feeding control strategy. The monitoring module is used to monitor the stress indicators of the individual piglets, including the stress level, stress comprehensive score, daily feed intake, and daily diarrhea incidence. The judgment module is used to determine whether the target intervention strategy meets the automatic adjustment conditions based on the stress index; The intervention strategy determination module is further configured to automatically adjust the target intervention strategy when the target intervention strategy meets the automatic adjustment conditions, until the target intervention strategy no longer meets the automatic adjustment conditions, and then determine the optimal intervention strategy.
9. A weaning stress intervention system for piglets, characterized in that, The invention includes a piglet weaning stress intervention device, an environmental control module, and a feeding control module, wherein the piglet weaning stress intervention device is used to perform the steps of the method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it performs the steps of the method according to any one of claims 1-7.
