Sow condition dynamic regulation and control decision method, system, program product, storage medium and electronic equipment based on inspection robot
By collecting point cloud data of sows through inspection robots and combining it with reinforcement learning models, individualized feeding control plans are generated. This solves the problems of fixed feeding plans and lack of dynamic control in sow body condition management, and realizes the automation and precision of sow body condition management.
Patent Information
- Application Number
- CN202611118876.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-27
- Publication Date
- 2026-11-24
AI Technical Summary
Current sow body condition management practices rely on fixed feeding programs that lack individualized dynamic control loops. These programs fail to adjust in real time based on changes in individual sow body condition and lack quantitative assessment and program optimization, leading to decreased reproductive performance and feed waste.
By collecting point cloud data of sows using an inspection robot equipped with a depth camera, and combining it with a Transformer encoder and a reinforcement learning model, an individualized feeding control plan is generated. The state space and action space of the reinforcement learning model are constructed, and the policy network is trained using the PPO algorithm to achieve dynamic adjustment of feeding amount, frequency and energy concentration. The plan is then sent to the intelligent feeding station for execution through a communication interface, and the results are recorded and the reward function is optimized.
It has achieved fully automated closed-loop dynamic control of sow body condition management, improved the accuracy of BCS scoring, achieved precise control, reduced reliance on manual experience, and improved pig farm management efficiency.
Smart Images

Figure CN123147495A_ABST
Abstract
Description
Technical Field
[0001] This invention discloses a decision-making method, system, program product, storage medium, and electronic device for dynamic regulation of sow body condition based on inspection robots, belonging to the interdisciplinary field of smart agriculture and computer vision. Background Technology
[0002] Body condition management in sows is a crucial aspect of pig production. Excessive leanness leads to decreased reproductive performance and insufficient milk production, while excessive fatness increases the risk of dystocia and causes feed waste. Currently, pig farms primarily rely on the experience of farm workers to adjust feed amounts. While some large-scale farms are equipped with automated feeding equipment, their feeding programs are typically based on fixed formulas set according to breed and physiological stage, failing to adjust in real-time according to the dynamic changes in individual sow body condition. This disconnect between body condition assessment and feeding decisions results in a lack of a complete control loop from assessment to implementation and feedback. Furthermore, existing programs do not adequately consider the differentiated body condition needs of sows at different physiological stages, such as pre-gestation, mid-gestation, late gestation, lactation, and weaning / pre-breeding periods. They also lack quantitative evaluation mechanisms for control effects and automatic program optimization capabilities, making it difficult to achieve precise individual body condition management. Summary of the Invention
[0003] The purpose of this invention is to provide a method, system, program product, storage medium, and electronic device for dynamic regulation and decision-making of sow body condition based on inspection robots, including: This paper provides a decision-making method for dynamic regulation of sow body condition based on inspection robots, in order to solve the problems in existing technologies such as fixed feeding programs, disconnect between body condition assessment and feeding decisions, and lack of individualized dynamic regulation closed loop in sow body condition management; A decision-making method for dynamic regulation of sow body condition based on inspection robots includes: S1. A patrol robot equipped with a depth camera collects point cloud data of sows. Body shape parameters are obtained through target detection, point cloud denoising, and geometric calculation. The body shape parameters are then concatenated with the rate of change in body weight, the rate of change in feed intake, and the ambient temperature to form a multi-source fusion feature vector. The fusion feature vector is then fed into a Transformer encoder via linear projection to output the BCS score and prediction confidence. The physiological stages of sows are identified based on their mating date and farrowing date. The physiological stages include early pregnancy, mid-pregnancy, late pregnancy, lactation, and weaning-to-mating period. S2. Based on the breed standards and physiological stages of sows, set the target BCS score range for each physiological stage; S3. Construct a reinforcement learning model. The state space of the reinforcement learning model is a state vector containing the current BCS score, target BCS score, physiological stage encoding, gestation days, ambient temperature, historical average daily feed intake, and current body weight. The action space is an action vector containing the feed adjustment ratio, daily feeding frequency, and dietary energy concentration level. The reward function is a weighted penalty function based on the deviation between the predicted and target BCS scores, the deviation of the body weight change rate, and feed costs. The PPO algorithm is used to train the policy network, taking the state vector as input and outputting the action vector to generate a feeding control plan. S4. The feeding control plan is sent to the intelligent feeding station for execution through the communication interface, the actual feed intake and weight changes of the sow are recorded, and the BCS score is updated through the inspection robot. S5. Calculate the weight change compliance rate and feed conversion rate. When the weight change compliance rate is lower than the set threshold or the feed conversion rate exceeds the standard threshold for the breed, adjust the weight coefficient of the reward function and return to step S3.
[0004] S1 includes body shape parameters including body length, body height, chest circumference, abdominal circumference, and body width; The BCS score is a nine-level discrete score accurate to 0.5 points within the range of 1.0 to 5.0; A manual review reminder is triggered when the prediction confidence level is below 0.8.
[0005] S3 includes a 7-dimensional state vector: dimension 1 is the current BCS score, dimension 2 is the target BCS score, dimension 3 is the physiological stage code, dimension 4 is the number of days of pregnancy, dimension 5 is the ambient temperature, dimension 6 is the average daily food intake over the past 7 days (i.e., the historical average daily food intake), and dimension 7 is the current body weight.
[0006] S3 includes a 3-dimensional motion vector, with the first dimension being the feed amount adjustment ratio, which is taken in increments of 5% based on the basic feed amount. to Positive values indicate an increase in feed amount, while negative values indicate a decrease in feed amount; Dimension 2 is the number of feedings per day, ranging from 1 to 4 times per day; Dimension 3 is the energy concentration level of the diet, including three levels: low energy concentration, medium energy concentration, and high energy concentration; the basic feed amount is obtained by referring to a table based on the sow breed, weight range, and physiological stage.
[0007] The specific form of the reward function is: ; In the formula, As a feedback signal, This is the predicted value for the BCS score. Target BCS score; This represents the actual weekly weight change rate. The ideal weekly rate of change in body weight. For daily feed costs, , , The weighting coefficients are satisfied. ; Adjusting the weighting coefficients of the reward function includes increasing them when the BCS score deviation consistently exceeds the first preset value for more than the first preset number of days. When the weight change compliance rate is lower than the second preset value for a consecutive second preset number of days, the increase will be made. When the feed conversion rate exceeds the threshold for three consecutive preset days, the increase will be applied. After adjustment, maintain .
[0008] S3 includes a policy network with a multilayer perceptron structure; The PPO algorithm uses the empirical replay buffer to sample trajectories for strategy updates; The absolute value of the feeding adjustment ratio output by the reinforcement learning model does not exceed a preset safety threshold; if it does, it is cropped to the preset safety threshold.
[0009] We provide a dynamic control and decision-making system for sow body condition based on inspection robots to solve the problems of fragmented links and lack of an automated hardware-software collaborative support system from assessment to execution in existing sow body condition management systems. A dynamic control and decision-making system for sow body condition based on inspection robots includes: Inspection robots, equipped with depth cameras, are used to collect point cloud data of sows; The body condition assessment module communicates with the inspection robot, has a built-in Transformer model, and takes the body shape parameters extracted from point cloud data and feeding and environmental data as input to output a BCS score. The physiological stage identification module is connected to the body condition assessment module and outputs the physiological stage of the sow and the target BCS score range based on the mating date and farrowing date. The reinforcement learning decision engine is connected to the body condition assessment module and the physiological stage identification module respectively. It has a built-in policy network trained with the PPO algorithm. The inputs are BCS score, target BCS score range, physiological stage, gestation days, ambient temperature, historical average daily feed intake and current weight. The outputs are feed amount adjustment ratio, daily feeding frequency and diet energy concentration level. The communication execution module is connected to the reinforcement learning decision engine and the intelligent feeding station respectively, and converts the output of the reinforcement learning decision engine into a feeding plan and sends it to the intelligent feeding station. The effect evaluation and optimization module connects to the intelligent feeding station and inspection robot. It calculates the regulation effect based on the actual feed intake, weight changes, and updated BCS scores. When the regulation effect is not up to standard, it adjusts the reward function weight of the reinforcement learning decision engine and provides feedback.
[0010] A program product is provided to solve the problem that existing sow body condition management software programs lack intelligent closed-loop control logic from body condition assessment to feeding decisions; A program product for enabling a processor to execute a decision-making method for dynamic regulation of sow body condition based on an inspection robot.
[0011] A storage medium is provided to solve the problem that in the prior art, the sow feeding management program stored in the storage medium cannot achieve individualized dynamic closed-loop control; A storage medium storing a computer program, the computer program being executed by a processor, for a dynamic control and decision-making method for sow body condition based on an inspection robot.
[0012] An electronic device is provided to solve the problem in the prior art that electronic devices in sow body condition management can only record data but cannot automatically generate individualized feeding decisions. An electronic device, characterized in that the electronic device includes a processor and a memory communicatively connected to the processor; the memory stores instructions executed by the processor, the instructions being executed by the processor to cause the processor to execute a dynamic control decision-making method for sow body condition based on an inspection robot.
[0013] Compared with existing technologies, this invention has the following advantages: The sow body condition dynamic regulation decision-making method based on inspection robots automatically collects point cloud data to evaluate BCS scores, and combines a reinforcement learning model to generate individualized feeding regulation plans based on the sow's physiological stage, realizing fully automated closed-loop dynamic regulation of body condition management; the accuracy of BCS scores is improved through multi-source feature fusion and Transformer encoders; precise regulation is achieved through differentiated design of state space and action space; multi-objective optimization of the reward function simultaneously considers body condition achievement, weight management, and feed economy; and continuous self-optimization of the regulation strategy is achieved through effect feedback closed loop, significantly reducing reliance on human experience, and can be deployed without replacing existing feeding hardware.
[0014] The sow body condition dynamic regulation decision system based on inspection robots organically coordinates inspection robots, body condition assessment modules, physiological stage identification modules, reinforcement learning decision engines, communication execution modules, and effect evaluation and optimization modules to construct a complete automated sow body condition regulation system. Its modular design enables seamless integration with existing precision feeding systems, reducing upgrade and modification costs. The closed-loop connection between the reinforcement learning decision engine and the effect evaluation and optimization module enables continuous evolution of the system's regulation strategy, improving the system's long-term adaptability and stability.
[0015] A software product integrates a closed-loop dynamic control method into the software product, enabling the processor to automatically complete the entire process of data acquisition and processing, body condition assessment, strategy decision-making, scheme distribution, and effect feedback when executing the method, thus realizing intelligent body condition management at the software level.
[0016] A storage medium stores a closed-loop dynamic control method in the form of a computer program, enabling the program to be read and executed to automatically realize the complete decision-making chain from point cloud data acquisition to feeding plan generation and effect feedback optimization, thus achieving a breakthrough in the storage medium's ability to carry intelligent decision-making.
[0017] An electronic device integrates a closed-loop dynamic control method into the device, enabling the device processor to perform real-time sensing, intelligent decision-making, and continuous optimization after executing relevant instructions. This upgrades ordinary electronic devices into dedicated terminals for intelligent management of sow body condition, enhancing the practical value of the equipment and the efficiency of pig farm management. Attached Figure Description
[0018] Figure 1 This is a flowchart of the technology of this invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention are described clearly and completely below. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0020] A decision-making method for dynamic regulation of sow body condition based on inspection robots includes: S1. A patrol robot equipped with a depth camera collects point cloud data of sows. Body shape parameters are obtained through target detection, point cloud denoising, and geometric calculation. The body shape parameters are then concatenated with the rate of change in body weight, the rate of change in feed intake, and the ambient temperature to form a multi-source fusion feature vector. The fusion feature vector is then fed into a Transformer encoder via linear projection to output the BCS score and prediction confidence. The physiological stages of sows are identified based on their mating date and farrowing date. The physiological stages include early pregnancy, mid-pregnancy, late pregnancy, lactation, and weaning-to-mating period. S2. Based on the breed standards and physiological stages of sows, set the target BCS score range for each physiological stage; S3. Construct a reinforcement learning model. The state space of the reinforcement learning model is a state vector containing the current BCS score, target BCS score, physiological stage encoding, gestation days, ambient temperature, historical average daily feed intake, and current body weight. The action space is an action vector containing the feed adjustment ratio, daily feeding frequency, and dietary energy concentration level. The reward function is a weighted penalty function based on the deviation between the predicted and target BCS scores, the deviation of the body weight change rate, and feed costs. The PPO algorithm is used to train the policy network, taking the state vector as input and outputting the action vector to generate a feeding control plan. S4. The feeding control plan is sent to the intelligent feeding station for execution through the communication interface, the actual feed intake and weight changes of the sow are recorded, and the BCS score is updated through the inspection robot. S5. Calculate the weight change compliance rate and feed conversion rate. When the weight change compliance rate is lower than the set threshold or the feed conversion rate exceeds the standard threshold for the breed, adjust the weight coefficient of the reward function and return to step S3.
[0021] S1 includes body shape parameters including body length, body height, chest circumference, abdominal circumference, and body width; The BCS score is a nine-level discrete score accurate to 0.5 points within the range of 1.0 to 5.0; A manual review reminder is triggered when the prediction confidence level is below 0.8.
[0022] S3 includes a 7-dimensional state vector: dimension 1 is the current BCS score, dimension 2 is the target BCS score, dimension 3 is the physiological stage code, dimension 4 is the number of days of pregnancy, dimension 5 is the ambient temperature, dimension 6 is the average daily food intake over the past 7 days (i.e., the historical average daily food intake), and dimension 7 is the current body weight.
[0023] S3 includes a 3-dimensional motion vector, with the first dimension being the feed amount adjustment ratio, which is taken in increments of 5% based on the basic feed amount. to Positive values indicate an increase in feed amount, while negative values indicate a decrease in feed amount; Dimension 2 is the number of feedings per day, ranging from 1 to 4 times per day; Dimension 3 is the energy concentration level of the diet, including three levels: low energy concentration, medium energy concentration, and high energy concentration; the basic feed amount is obtained by referring to a table based on the sow breed, weight range, and physiological stage.
[0024] The specific form of the reward function is: ; In the formula, As a feedback signal, This is the predicted value for the BCS score. Target BCS score; This represents the actual weekly weight change rate. The ideal weekly rate of change in body weight. For daily feed costs, , , The weighting coefficients are satisfied. ; Adjusting the weighting coefficients of the reward function includes increasing them when the BCS score deviation consistently exceeds the first preset value for more than the first preset number of days. When the weight change compliance rate is lower than the second preset value for a consecutive second preset number of days, the increase will be made. When the feed conversion rate exceeds the threshold for three consecutive preset days, the increase will be applied. After adjustment, maintain .
[0025] S3 includes a policy network with a multilayer perceptron structure; The PPO algorithm uses the empirical replay buffer to sample trajectories for strategy updates; The absolute value of the feeding adjustment ratio output by the reinforcement learning model does not exceed a preset safety threshold; if it does, it is cropped to the preset safety threshold.
[0026] A dynamic control and decision-making system for sow body condition based on inspection robots includes: Inspection robots, equipped with depth cameras, are used to collect point cloud data of sows; The body condition assessment module communicates with the inspection robot, has a built-in Transformer model, and takes the body shape parameters extracted from point cloud data and feeding and environmental data as input to output a BCS score. The physiological stage identification module is connected to the body condition assessment module and outputs the physiological stage of the sow and the target BCS score range based on the mating date and farrowing date. The reinforcement learning decision engine is connected to the body condition assessment module and the physiological stage identification module respectively. It has a built-in policy network trained with the PPO algorithm. The inputs are BCS score, target BCS score range, physiological stage, gestation days, ambient temperature, historical average daily feed intake and current weight. The outputs are feed amount adjustment ratio, daily feeding frequency and diet energy concentration level. The communication execution module is connected to the reinforcement learning decision engine and the intelligent feeding station respectively, and converts the output of the reinforcement learning decision engine into a feeding plan and sends it to the intelligent feeding station. The effect evaluation and optimization module connects to the intelligent feeding station and inspection robot. It calculates the regulation effect based on the actual feed intake, weight changes, and updated BCS scores. When the regulation effect is not up to standard, it adjusts the reward function weight of the reinforcement learning decision engine and provides feedback.
[0027] A program product for enabling a processor to execute a decision-making method for dynamic regulation of sow body condition based on an inspection robot.
[0028] A storage medium storing a computer program, the computer program being executed by a processor, for a dynamic control and decision-making method for sow body condition based on an inspection robot.
[0029] An electronic device includes a processor and a memory communicatively connected to the processor; the memory stores instructions that are executed by the processor to cause the processor to perform a dynamic control decision-making method for sow body condition based on an inspection robot.
[0030] The method of the present invention will be further described below with reference to the accompanying drawings. Figure 1 As shown, step S1 is body condition assessment, followed by step S2 physiological stage identification, step S3 target BCS setting, step S4 reinforcement learning decision making, step S5 feeding plan execution, step S6 effect evaluation and optimization, and the result of step S6 feedback optimization step S1.
[0031] The following is a further explanation with reference to the embodiments. Embodiment 1 of the present invention provides a dynamic control and decision-making method for sow body condition based on an inspection robot. Taking a large-scale pig farm with 500 sows as an example, the system is integrated with an existing precision feeding management system, and a new body condition control and decision-making engine module is added. Sows are uniquely identified using RFID ear tags, and intelligent feeding stations support precise individual feeding. Taking a Large White sow on day 60 of gestation as an example, the sow currently weighs 195 kg and has a BCS score of 2.5, which is below the mid-gestation target BCS range of 3.0 to 3.5.
[0032] The inspection robot, equipped with a depth camera, collects point cloud data of the sows. After target detection and noise reduction, it extracts five body shape parameters: body length, body height, chest circumference, abdominal circumference, and body width. These body shape parameters are then concatenated with the weight change rate (+0.3% / week), feed intake change rate (-2% / day), and ambient temperature (25℃) to form a fused feature vector. This vector is fed into a Transformer encoder, outputting a BCS score of 2.5 and a prediction confidence of 0.92. A confidence score of 0.92 or higher (not lower than 0.8) does not trigger a manual review reminder. Simultaneously, the robot identifies the sow as being in mid-gestation based on day 60 of the mating date.
[0033] Based on breed standards (Large White pigs) and physiological stage (mid-gestation), the target BCS score range was set at 3.0-3.5, with a target BCS score of 3.25. The current BCS score of 2.5 is below the lower limit of the target range, triggering feeding adjustments.
[0034] The reinforcement learning model takes a 7-dimensional state vector as input: current BCS score 2.5, target BCS score 3.25, physiological stage code 1 (mid-pregnancy), gestational days 60, ambient temperature 25℃, historical average daily feed intake 2.3 kg / d, and current weight 195 kg. The policy network outputs a 3-dimensional action vector: feed amount adjustment percentage +15% (basic feed intake adjusted from 2.2 kg / d to 2.53 kg / d), daily feeding frequency adjusted from 2 times to 3 times, and dietary energy concentration adjusted from medium energy concentration (13.0 MJ / kg) to high energy concentration (14.0 MJ / kg). The weight coefficients of the reward function are also specified. , , If the feed amount adjustment ratio of +15% does not exceed the preset safety threshold of 15%, proceed directly.
[0035] The feeding plan was distributed to the smart feeding station via an HTTP API interface. The smart feeding station recorded the actual feed intake and body weight, and the inspection robot updated the BCS score weekly. After two weeks of implementation, the sow's BCS score rose to 2.75, which was in line with expectations.
[0036] The weight change compliance rate was calculated as follows: the actual weekly weight change rate was +0.3%, the ideal weekly weight change rate was +0.6%, and the compliance rate was 50%, which is lower than the second preset value of 80%. Furthermore, the second preset number of days was reached for three consecutive days, triggering a weight adjustment. Simultaneously, the feed conversion ratio (FCR) was calculated: weekly feed consumption was 16.8 kg, and weekly weight gain was 4.5 kg. The score exceeded the standard threshold of 3.5 and remained above the third preset number of days for seven consecutive days, triggering a weight adjustment. Additionally, there was a BCS score deviation (current BCS score 2.5, target BCS score 3.25, deviation 0.75, greater than the first preset value of 0.5, exceeding the first preset number of days for seven consecutive days). All three non-compliance conditions were met simultaneously, leading to the sequential execution of weight adjustments: Increase to 0.4, Increase to 0.25, Increase to 0.5, then normalize. , , The system returns a new weight and continues optimization.
[0037] After the system had been running for 3 months, the effects of the control on 200 experimental sows were statistically analyzed: the BCS compliance rate increased from 68% to 89%, feed waste decreased by 12%, and the estrus interval after weaning was shortened by 0.8 days.
[0038] Example 2 provides a dynamic control and decision-making system for sow body condition based on inspection robots, with a large-scale pig farm with 500 sows as the deployment scenario.
[0039] The system includes: an inspection robot (equipped with a depth camera and RFID reader), a body condition assessment module (with a built-in Transformer model), a physiological stage recognition module, a reinforcement learning decision engine (with a built-in PPO policy network), a communication execution module (supporting HTTP API and MQTT protocol), and an effect evaluation and optimization module.
[0040] Each module is deployed on a local server in the pig farm and connected to the intelligent feeding station via a local area network. The inspection robot collects point cloud data along a preset track, which is then processed by each module to generate a feeding plan, which is then sent to the intelligent feeding station for execution, forming a fully automated closed loop of "collection → evaluation → decision-making → execution → feedback". After three months of operation, it achieves unmanned intelligent control of pig farm body condition management.
[0041] Example 3 provides a program product stored in the server ROM. The program product includes a data acquisition module, a body condition assessment module, a physiological stage identification module, a decision-making reasoning module, a communication delivery module, and an effect evaluation module. When the processor loads and executes the above modules, the system achieves fully automated decision-making from data acquisition, body condition assessment, plan generation, instruction delivery, to effect feedback.
[0042] Example 4 provides a storage medium containing executable instructions, including: point cloud preprocessing instructions for target detection and denoising of point cloud data collected by the inspection robot; Transformer inference instructions for encoding the fused feature vector and outputting BCS scoring classification; Policy Network inference instructions for loading PPO network weights to perform forward calculation on the 7-dimensional state vector and outputting a 3-dimensional action vector; and communication protocol conversion instructions for converting the action vector into a standard HTTP request or MQTT message format. When the processor executes the above instructions, it completes the entire processing flow from receiving point cloud data to receiving the feeding plan.
[0043] Example 5 provides an electronic device, which is a local industrial control computer for pig farms, including a processor and a memory. The memory stores executable instructions for performing body condition assessment, physiological stage identification, reinforcement learning decision-making, and effect evaluation. The electronic device is connected to an inspection robot and a smart feeding station via network ports, receiving point cloud data and RFID numbers uploaded by the inspection robot, as well as feed intake and weight data returned by the smart feeding station. When the processor executes the instructions in the memory: it calls the Transformer model to infer the point cloud data and outputs a BCS score; it calls the physiological stage identification logic to output the target BCS score range; it calls the PPO strategy network to output a feeding plan; it sends the plan to the smart feeding station for execution through the communication interface; it receives execution feedback data and calculates the control effect indicators; when the indicators do not meet the standards, it automatically adjusts the reward function weights and updates the strategy. The electronic device automatically executes the entire process decision once a day at 00:00.
[0044] 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 the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A sow fatness dynamic regulation decision-making method based on a patrol robot, characterized in that, include: S1. A patrol robot equipped with a depth camera collects point cloud data of sows. Body shape parameters are obtained through target detection, point cloud denoising, and geometric calculation. The body shape parameters are then concatenated with the rate of change in body weight, the rate of change in feed intake, and the ambient temperature to form a multi-source fusion feature vector. The fusion feature vector is then fed into a Transformer encoder via linear projection to output the BCS score and prediction confidence. The physiological stages of sows are identified based on their mating date and farrowing date. The physiological stages include early pregnancy, mid-pregnancy, late pregnancy, lactation, and weaning-to-mating period. S2. Based on the breed standards and physiological stages of sows, set the target BCS score range for each physiological stage; S3. Construct a reinforcement learning model. The state space of the reinforcement learning model is a state vector containing the current BCS score, target BCS score, physiological stage encoding, gestation days, ambient temperature, historical average daily feed intake, and current body weight. The action space is an action vector containing the feed adjustment ratio, daily feeding frequency, and dietary energy concentration level. The reward function is a weighted penalty function based on the deviation between the predicted and target BCS scores, the deviation of the body weight change rate, and feed costs. The PPO algorithm is used to train the policy network, taking the state vector as input and outputting the action vector to generate a feeding control plan. S4. The feeding control plan is sent to the intelligent feeding station for execution through the communication interface, the actual feed intake and weight changes of the sow are recorded, and the BCS score is updated through the inspection robot. S5. Calculate the weight change compliance rate and feed conversion rate. When the weight change compliance rate is lower than the set threshold or the feed conversion rate exceeds the standard threshold for the breed, adjust the weight coefficient of the reward function and return to step S3.
2. The sow condition dynamic adjustment decision-making method based on a patrol robot according to claim 1, characterized in that, S1 includes body shape parameters including body length, body height, chest circumference, abdominal circumference, and body width; The BCS score is a nine-level discrete score accurate to 0.5 points within the range of 1.0 to 5.0; A manual review reminder is triggered when the prediction confidence level is below 0.
8.
3. The sow condition dynamic adjustment and control decision method based on a patrol robot according to claim 2, characterized in that, S3 includes a 7-dimensional state vector: dimension 1 is the current BCS score, dimension 2 is the target BCS score, dimension 3 is the physiological stage code, dimension 4 is the number of days of pregnancy, dimension 5 is the ambient temperature, dimension 6 is the average daily food intake over the past 7 days (i.e., the historical average daily food intake), and dimension 7 is the current body weight.
4. The sow body condition dynamic control decision-making method based on inspection robot according to claim 3, characterized in that, S3 includes that the action vector is 3-dimensional, the first dimension is the feeding amount adjustment ratio, which is taken as a value with a step of 5% on the basis of the basic feeding amount to , a positive value indicates an increase in feeding amount, and a negative value indicates a decrease in feeding amount; the second dimension is the daily feeding frequency, which is taken as a value of 1 to 4 times per day; the third dimension is the daily ration energy concentration level, which includes three levels of low energy concentration, medium energy concentration and high energy concentration; and the basic feeding amount is obtained by looking up a table according to the sow breed, body weight range and physiological stage.
5. The sow condition dynamic adjustment and control decision method based on a patrol robot according to claim 4, characterized in that, The specific form of the reward function is: ; In the formula, is a feedback signal, is a BCS score prediction value, is a target BCS score; is an actual weekly body weight change rate, is an ideal weekly body weight change rate, is a daily feed cost, , , is a weight coefficient and satisfies ; Adjusting the weighting coefficients of the reward function includes increasing them when the BCS score deviation consistently exceeds the first preset value for more than the first preset number of days. When the weight change compliance rate is lower than the second preset value for a consecutive second preset number of days, the increase will be made. When the feed conversion rate exceeds the threshold for three consecutive preset days, the increase will be applied. After adjustment, maintain .
6. The sow body condition dynamic control decision-making method based on inspection robot according to claim 5, characterized in that, S3 includes a policy network with a multilayer perceptron structure; The PPO algorithm uses the empirical replay buffer to sample trajectories for strategy updates; The absolute value of the feeding adjustment ratio output by the reinforcement learning model does not exceed a preset safety threshold; if it does, it is cropped to the preset safety threshold.
7. A dynamic control and decision-making system for sow body condition based on an inspection robot, characterized in that, include: Inspection robots, equipped with depth cameras, are used to collect point cloud data of sows; The body condition assessment module communicates with the inspection robot, has a built-in Transformer model, and takes the body shape parameters extracted from point cloud data and feeding and environmental data as input to output a BCS score. The physiological stage identification module is connected to the body condition assessment module and outputs the physiological stage of the sow and the target BCS score range based on the mating date and farrowing date. The reinforcement learning decision engine is connected to the body condition assessment module and the physiological stage identification module respectively. It has a built-in policy network trained with the PPO algorithm. The inputs are BCS score, target BCS score range, physiological stage, gestation days, ambient temperature, historical average daily feed intake and current weight. The outputs are feed amount adjustment ratio, daily feeding frequency and diet energy concentration level. The communication execution module is connected to the reinforcement learning decision engine and the intelligent feeding station respectively, and converts the output of the reinforcement learning decision engine into a feeding plan and sends it to the intelligent feeding station. The effect evaluation and optimization module connects to the intelligent feeding station and inspection robot. It calculates the regulation effect based on the actual feed intake, weight changes, and updated BCS scores. When the regulation effect is not up to standard, it adjusts the reward function weight of the reinforcement learning decision engine and provides feedback.
8. A program product, characterized in that, The program product is used to enable the processor to execute the sow body condition dynamic control decision-making method based on the inspection robot as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium stores a computer program, which is executed by a processor as described in any one of claims 1 to 6, the sow body condition dynamic control decision method based on an inspection robot.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory communicatively connected to the processor; the memory stores instructions that are executed by the processor to cause the processor to perform the sow body condition dynamic control decision-making method based on the inspection robot as described in any one of claims 1 to 6.
