Piglet insulation control method, device, computer equipment and storage medium
By automatically determining and adjusting the insulating temperature of piglets, the problem of low survival rate of piglets under traditional methods is solved, and better improvement of piglet growth and development and survival rate is achieved.
Patent Information
- Application Number
- CN202010588357.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2040-06-24
AI Technical Summary
Traditional piglet insulation control methods are not conducive to the growth and development of piglets, resulting in low piglet survival rate.
By obtaining the starting temperature, the termination temperature, the target breeding days, the number of breeding days, the piglet's body surface temperature and the current cumulative temperature error, the temperature adjustment amount is automatically determined, and the insulation temperature is automatically adjusted according to the adjustment amount to ensure that the piglet's body surface temperature is within the appropriate range.
Automatic insulation temperature regulation is achieved, reducing the number of contact between humans and piglets, reducing the stress response of piglets, facilitating the growth and development of piglets, and thus improving the survival rate of piglets.
Smart Images

Figure CN111766907B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of environmental control in pig farms, and in particular to a method, device, computer equipment and storage medium for controlling the temperature of piglets. Background Art
[0002] With the development of pig farming technology, pig farming has become a pillar industry in the animal husbandry industry. In order for pig farming to meet the market supply demand, it is necessary to ensure that the breeding environment in the pig farm is suitable for pig production, and the environmental temperature is one of the important factors affecting the health of pigs.
[0003] For piglets in the nursery, low temperature is the main factor leading to high morbidity and mortality. In order to improve the breeding conditions of piglets and increase their survival rate, traditional piglet insulation systems generally use heating lamps as a heat preservation measure.
[0004] However, the current piglet heat preservation control method is not conducive to the growth and development of piglets, and there is a problem of low piglet survival rate. Summary of the invention
[0005] Based on this, it is necessary to provide a piglet insulation control method, device, computer equipment and storage medium that can improve the piglet survival rate in order to address the technical problem of low piglet survival rate in traditional technologies.
[0006] A method for controlling the temperature of piglets, comprising:
[0007] Obtain the starting temperature, ending temperature, target breeding days, breeding days completed, piglet surface temperature and current accumulated temperature error;
[0008] According to the starting temperature, the ending temperature, the target breeding days and the breeding days, a temperature threshold is obtained, and the temperature upper limit value and the temperature lower limit value are determined based on the temperature threshold;
[0009] When the piglet's body surface temperature is less than the upper temperature limit and greater than the lower temperature limit, obtain the first difference between the temperature threshold and the piglet's body surface temperature, determine the temperature adjustment amount based on the first difference, the piglet's body surface temperature and the current accumulated temperature error, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
[0010] In one embodiment, the step of determining the temperature adjustment amount according to the first difference and the current accumulated temperature error includes:
[0011] Obtaining a proportional coefficient and an integral coefficient, and determining a first product of the proportional coefficient and the first difference, and a second product of the integral coefficient and the current accumulated temperature error;
[0012] The sum of the first product, the second product and the piglet's body surface temperature was determined as the temperature regulation amount.
[0013] In one embodiment, the step of determining the temperature adjustment amount according to the first difference and the current accumulated temperature error further includes:
[0014] When the temperature adjustment amount is greater than the maximum adjustment amount, the maximum adjustment amount is confirmed as the temperature adjustment amount;
[0015] When the temperature adjustment amount is less than the minimum adjustment amount, the minimum adjustment amount is confirmed as the temperature adjustment amount.
[0016] In one embodiment, the step of obtaining the temperature threshold according to the starting temperature, the ending temperature, the target culture days and the culture days includes:
[0017] Obtaining a second difference between the starting temperature and the ending temperature, a quotient between the number of cultured days and the target number of cultured days, and a third product between the second difference and the quotient;
[0018] The difference between the starting temperature and the third product is identified as the temperature threshold.
[0019] In one embodiment, the method further comprises:
[0020] Obtain the current body surface temperature, the previous body surface temperature, and the previous two body surface temperatures;
[0021] The current body surface temperature, the previous body surface temperature and the average of the previous two body surface temperatures are confirmed as the piglet's body surface temperature.
[0022] In one embodiment, the method further comprises:
[0023] When the piglet's body surface temperature is greater than or equal to the upper temperature limit, the minimum adjustment amount is confirmed as the temperature adjustment amount;
[0024] When the piglet's body surface temperature is less than or equal to the lower limit of temperature, the maximum adjustment amount is confirmed as the temperature adjustment amount;
[0025] When the current accumulated temperature error is greater than the maximum error, the maximum error is confirmed as the current accumulated temperature error;
[0026] When the current accumulated temperature error is less than the minimum error, the minimum error is confirmed as the current accumulated temperature error.
[0027] In one embodiment, the method further comprises:
[0028] Receive key events and respond to them.
[0029] A piglet heat preservation control device, the device comprising:
[0030] The data acquisition module is used to obtain the starting temperature, ending temperature, target breeding days, breeding days, piglet surface temperature and current accumulated temperature error;
[0031] A threshold determination module is used to obtain a temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and to determine the upper temperature limit and the lower temperature limit based on the temperature threshold;
[0032] The temperature adjustment amount determination module is used to obtain the first difference between the temperature threshold and the piglet's surface temperature when the piglet's surface temperature is less than the upper temperature limit and greater than the lower temperature limit, and determine the temperature adjustment amount based on the first difference, the piglet's surface temperature and the current accumulated temperature error, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
[0033] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in any one of the above embodiments when executing the computer program.
[0034] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the method described in any of the above embodiments are implemented.
[0035] The above-mentioned piglet insulation control method, device, computer equipment and storage medium include: obtaining the starting temperature, the ending temperature, the target breeding days, the breeding days, the piglet surface temperature and the current cumulative temperature error; obtaining the temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and determining the temperature upper limit value and the temperature lower limit value respectively based on the temperature threshold; when the piglet surface temperature is less than the temperature upper limit value and greater than the temperature lower limit value, obtaining the first difference between the temperature threshold and the piglet surface temperature, and determining the temperature adjustment amount according to the first difference, the piglet surface temperature and the current cumulative temperature error, and confirming the sum of the first difference and the current cumulative temperature error as the next cumulative temperature error. The present application can automatically determine the temperature adjustment amount of the insulation temperature, so that the insulation temperature can be automatically adjusted by using the temperature adjustment amount without manual operation, thereby reducing the number of contacts between people and piglets, and reducing the stress response of piglets, which is beneficial to the growth and development of piglets, and thus can improve the survival rate of piglets. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is an application environment diagram of a method for controlling the temperature of piglets in one embodiment;
[0037] Figure 2 This is a schematic diagram of a first process flow of a method for controlling the temperature of piglets in one embodiment;
[0038] Figure 3 A schematic flow chart of a step of determining a temperature adjustment amount in one embodiment;
[0039] Figure 4 A second flow chart of a method for controlling the temperature of piglets in one embodiment;
[0040] Figure 5 A third flow chart of a method for controlling the temperature of piglets in one embodiment;
[0041] Figure 6 1 is a structural block diagram of a piglet heat preservation control device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The piglet heat preservation control method provided in this application can be applied to Figure 1 The piglet insulation device shown includes but is not limited to various insulation boxes, insulation boards, pig farrowing beds, piglet pits and piggeries. Among them, the controller is electrically connected or communicatively connected to the temperature acquisition device and the insulation device respectively. Specifically, the temperature acquisition device is used to periodically collect the temperature near the piglet body surface, including but not limited to various types of contact temperature measuring devices or non-contact temperature measuring devices, such as temperature sensors, infrared temperature measurement or infrared thermal imagers. Insulation equipment includes but is not limited to various types of insulation lamps, heaters, electric heating plates, hot air furnaces, etc. The controller can be but is not limited to various types of single-chip microcomputers, PLCs (Programmable Logic Controllers) or other types of industrial controllers, such as FPGA (Field Programmable Gate Array) controllers or Raspberry Pi.
[0044] In one embodiment, Figure 2 As shown, a method for controlling the temperature of piglets is provided, and the method is applied to Figure 1 The controller in the example is used to illustrate the following steps:
[0045] Step 210, obtaining the starting temperature, ending temperature, target breeding days, breeding days completed, piglet body surface temperature and current accumulated temperature error.
[0046] The starting temperature may be the initial temperature when the piglets are started to be kept warm, that is, the temperature required when the piglets enter the piglet warming device, which may be determined according to the age of the piglets, for example, it may be the first day, the first temperature that disappears. The ending temperature may be the target temperature when the piglets finish keeping warm, that is, the temperature required when the piglets leave the piglet warming device. Furthermore, the starting temperature may be any value within the range of 19°C to 36°C, and the ending temperature may be any value within the range of 19°C to 36°C.
[0047] The target breeding days can be the total number of days that the piglets need to be kept warm. The number of days that have been raised can be the number of days that the piglets have spent in the piglet insulation device. For example, when the target breeding days is 15 days and the number of days that have been raised is 1 day, it indicates that the piglets need to be kept warm in the piglet insulation device for 15 days, and the current day is the first day of insulation. Furthermore, the target breeding days can be 13 days to 99 days (including 13 days and 99 days).
[0048] The current accumulated temperature error may be an accumulated value of the temperature error, that is, the sum of multiple temperature errors, wherein the temperature error may be a difference between a temperature threshold and the piglet's body surface temperature.
[0049] Specifically, the starting temperature, the ending temperature, the target breeding days and the current accumulated temperature error can be obtained by directly receiving the input information of the terminal device, or by communicating with the server. The piglet surface temperature can be obtained based on the collected data of the temperature collection device. For example, the collected data can be directly used as the piglet surface temperature, or one or more collected data can be processed and the processing result can be used as the piglet surface data.
[0050] Furthermore, the starting temperature, the ending temperature, the target breeding days and the breeding days can be integer data (int data).
[0051] Step 220, obtaining a temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and determining an upper temperature limit and a lower temperature limit based on the temperature threshold.
[0052] Among them, the temperature threshold can be the temperature most suitable for the growth of piglets, and can be adjusted according to the age of the piglets and the insulation parameters.
[0053] Specifically, the controller automatically adjusts and determines the temperature threshold according to the starting temperature, ending temperature, target breeding days and breeding days. For example, the corresponding relationship between the starting temperature, ending temperature, target breeding days, breeding days and temperature threshold can be generated in advance, and the starting temperature, ending temperature, target breeding days and breeding days are used as indexes for search to determine the corresponding relationship with the highest matching degree, and the temperature threshold is determined based on the corresponding relationship.
[0054] After obtaining the temperature threshold, the controller determines the temperature upper limit value and the temperature lower limit value according to the temperature threshold. For example, the sum of the temperature threshold and the preset value can be used as the temperature upper limit value, and the difference between the temperature threshold and the preset value can be used as the temperature lower limit value, or the temperature upper limit value and the temperature lower limit value can be determined by a corresponding function or algorithm. In one example, the temperature upper limit value can be the sum of the temperature threshold plus 4, and the temperature lower limit value can be the difference between the temperature threshold and 6.
[0055] Step 230, when the piglet's body surface temperature is less than the upper temperature limit and greater than the lower temperature limit, obtain a first difference between the temperature threshold and the piglet's body surface temperature, determine the temperature adjustment amount according to the first difference, the piglet's body surface temperature and the current accumulated temperature error, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
[0056] Among them, the temperature adjustment amount is used to indicate the adjustment amount of the heat generation of the insulation equipment.
[0057] Specifically, when the piglet's body surface temperature is between the lower temperature limit and the upper temperature limit, that is, the piglet's body surface temperature is greater than the lower temperature limit and less than the upper temperature limit, the difference between the temperature threshold and the piglet's body surface temperature is calculated, that is, the first difference, and the first difference is the temperature error of the piglet's body surface temperature. The controller determines the temperature adjustment amount according to the first error, the piglet's body surface temperature and the current cumulative temperature error, and transmits the temperature adjustment amount to the insulation device, so that the heat output of the insulation device can be adjusted to adjust the insulation temperature. The controller also uses the sum of the first difference and the current cumulative temperature error as the next cumulative temperature error, thereby accumulating the temperature error, and uses the updated current cumulative temperature error as the current cumulative temperature error at the next moment. In other words, if the current cumulative temperature error is obtained at the next moment, the value of the current cumulative temperature error obtained is the sum of the current cumulative temperature error at the previous moment and the temperature error at the previous moment.
[0058] The above-mentioned piglet insulation control method includes: obtaining the starting temperature, the ending temperature, the target breeding days, the breeding days, the piglet surface temperature and the current cumulative temperature error; obtaining the temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and determining the temperature upper limit value and the temperature lower limit value respectively based on the temperature threshold; when the piglet surface temperature is less than the temperature upper limit value and greater than the temperature lower limit value, obtaining the first difference between the temperature threshold and the piglet surface temperature, and determining the temperature adjustment amount according to the first difference, the piglet surface temperature and the current cumulative temperature error, and confirming the sum of the first difference and the current cumulative temperature error as the next cumulative temperature error. The present application can automatically determine the temperature adjustment amount of the insulation temperature, so that the insulation temperature can be automatically adjusted by using the temperature adjustment amount without manual operation, thereby reducing the number of contacts between people and piglets, and reducing the stress response of piglets, which is beneficial to the growth and development of piglets, and thus can improve the survival rate of piglets.
[0059] In one embodiment, Figure 3 As shown, the step of determining the temperature adjustment amount according to the first difference and the current accumulated temperature error includes:
[0060] Step 310, obtaining a proportional coefficient and an integral coefficient, and determining a first product of the proportional coefficient and the first difference, and a second product of the integral coefficient and the current accumulated temperature error;
[0061] Step 320: confirm the sum of the first product, the second product and the piglet's body surface temperature as the temperature adjustment amount.
[0062] Specifically, the controller calculates a first product between the proportional coefficient and the first difference, and calculates a second product between the integral coefficient and the current accumulated temperature error, and confirms the sum of the first product, the second product and the piglet's body surface temperature as the temperature adjustment amount.
[0063] Specifically, the controller can calculate the temperature adjustment amount by the following formula:
[0064] control_count=K P ×error_temperature+K I ×sum_error+T 1
[0065] Among them, control_count is the temperature adjustment amount; K P is the proportional coefficient; error_temperature is the first difference; K I is the integral coefficient; sum_error is the current accumulated temperature error; T 1 is the body surface temperature of piglets.
[0066] In the above-mentioned piglet insulation control method, the temperature adjustment amount is determined by introducing a proportional coefficient and an integral coefficient, so that the body surface temperature of the piglet can be adjusted to the temperature threshold steadily and accurately, and the insulation equipment is always in a controlled state.
[0067] In one embodiment, the step of determining the temperature adjustment amount according to the first difference and the current accumulated temperature error further includes:
[0068] In the case where the temperature adjustment amount is greater than the maximum adjustment amount, confirming the maximum adjustment amount as the temperature adjustment amount;
[0069] When the temperature adjustment amount is less than the minimum adjustment amount, the minimum adjustment amount is confirmed as the temperature adjustment amount.
[0070] Specifically, the controller confirms the sum of the first product, the second product and the piglet's body surface temperature as the temperature adjustment amount. At this time, if the temperature adjustment amount is greater than the maximum adjustment amount, the maximum adjustment amount is confirmed as the value of the temperature adjustment amount. If the temperature adjustment amount is less than the minimum adjustment amount, the minimum adjustment amount is confirmed as the value of the temperature adjustment amount. This ensures that the temperature adjustment amount falls within the effective range, and the temperature adjustment amount can be used to adjust the heating value of the insulation equipment, thereby improving the reliability of insulation control.
[0071] Furthermore, both the maximum adjustment amount and the minimum adjustment amount can be determined according to specific parameters of the heat preservation device. In one example, the minimum adjustment amount can be 0.
[0072] In one embodiment, the step of obtaining the temperature threshold according to the starting temperature, the ending temperature, the target culture days and the culture days includes:
[0073] Obtaining a second difference between the starting temperature and the ending temperature, a quotient between the number of cultured days and the target number of cultured days, and a third product between the second difference and the quotient;
[0074] A difference between the starting temperature and the third product is determined as the temperature threshold.
[0075] Specifically, the controller calculates the value of the starting temperature minus the ending temperature, that is, the second difference, multiplies the second difference by the number of breeding days to obtain the first calculation result, divides the first calculation result by the target breeding days to obtain the second calculation result, and finally subtracts the second calculation result from the starting temperature to obtain the system temperature threshold at the current moment.
[0076] In one embodiment, the method further comprises:
[0077] Obtain the current body surface temperature, the previous body surface temperature, and the previous two body surface temperatures;
[0078] The body surface temperature at the current moment, the body surface temperature at the previous moment, and the average of the body surface temperatures at the previous two moments are confirmed as the body surface temperature of the piglet.
[0079] Specifically, the temperature acquisition device periodically acquires the temperature near the piglet's body surface, and each temperature data acquired can generate a corresponding relationship between the acquisition time and the temperature data, and store it. For example, the temperature data can be arranged in sequence according to the order of the acquisition time. When calculating the temperature adjustment amount, when the controller acquires the piglet's body surface temperature, it can acquire the body surface temperature at the current moment (i.e., the temperature data acquired at the current moment), the body surface temperature at the previous moment (i.e., the temperature data acquired at the previous moment), and the body surface temperature at the previous two moments (i.e., the temperature data acquired at the previous two moments), and calculate the average of the body surface temperatures at the three moments, and confirm the average as the piglet's body surface temperature.
[0080] Furthermore, the method may further include the step of determining whether the current body surface temperature, the previous body surface temperature, and the previous two body surface temperatures are all valid data. Specifically, if the value of the body surface temperature is within a preset temperature range, the body surface temperature can be confirmed to be valid data, or if the body surface temperature is not NULL, the body surface temperature can be confirmed to be valid data.
[0081] In the above-mentioned piglet insulation control method, the piglet surface temperature is obtained by adding the body surface temperature at the current moment, the body surface temperature at the previous moment and the body surface temperature at the previous two moments to obtain the average, so that the piglet surface can be closer to the real data, reduce measurement errors, and improve the accuracy of the insulation control method.
[0082] In one embodiment, the method further comprises:
[0083] When the piglet's body surface temperature is greater than or equal to the upper temperature limit, confirming the minimum adjustment amount as the temperature adjustment amount;
[0084] When the piglet's body surface temperature is less than or equal to the lower limit of the temperature, the maximum adjustment amount is confirmed as the temperature adjustment amount;
[0085] When the current accumulated temperature error is greater than the maximum error, confirming the maximum error as the current accumulated temperature error;
[0086] When the current accumulated temperature error is smaller than the minimum error, the minimum error is confirmed as the current accumulated temperature error.
[0087] Specifically, if the obtained piglet surface temperature is greater than or equal to the upper temperature limit, the minimum adjustment amount is confirmed as the temperature adjustment amount, so that the heating value of the heat preservation equipment can be adjusted to the minimum value. If the obtained piglet surface temperature is less than or equal to the lower temperature limit, it can be determined that the actual piglet surface temperature is much lower than the lower temperature limit, then the maximum adjustment amount is confirmed as the temperature adjustment amount, so that the heating value of the heat preservation equipment can be adjusted to the maximum value.
[0088] If the current accumulated temperature error is greater than the maximum error, the maximum error is confirmed as the current accumulated temperature error, that is, the value of the current accumulated temperature error is equal to the maximum error; if the current accumulated temperature error is less than the minimum error, the minimum error is confirmed as the current accumulated temperature error, that is, the value of the current accumulated temperature error is equal to the minimum error.
[0089] Furthermore, the maximum error and the minimum error may be preset according to actual needs. In one example, the minimum error may be 0.
[0090] In a specific example, Figure 4 As shown, a method for controlling the temperature of piglets is provided, comprising the steps of:
[0091] Step 411: The controller obtains the body surface temperature collected at the current moment.
[0092] Step 413, the current body surface temperature is added to the body surface temperatures at the previous two moments to obtain an average, thereby obtaining the piglet's body surface temperature.
[0093] Step 415, calculating the temperature threshold.
[0094] Specifically, the starting temperature is subtracted from the ending temperature to obtain the second difference, the second difference is multiplied by the number of breeding days to obtain the first calculation result, the first calculation result is divided by the target breeding days to obtain the second calculation result, and finally the starting temperature is subtracted from the second calculation result to obtain the system temperature threshold at the current moment.
[0095] Step 417, determine whether the temperature threshold is greater than the sum of the piglet's body surface temperature plus 6, if so, execute step 419, if not, execute step 421.
[0096] Step 419, step 417 is judged to be yes, indicating that the actual piglet surface temperature is far lower than the lower limit of the temperature, that is, the difference between the temperature threshold and 6, and the maximum adjustment amount is confirmed as the temperature adjustment amount, so that the heating value of the insulation equipment can be adjusted to the maximum value.
[0097] Step 421, determine whether the sum of the temperature threshold plus 4 is greater than the piglet's body surface temperature, if so, proceed to step 423, if not, proceed to step 425.
[0098] Step 423, subtract the piglet surface temperature from the temperature threshold to obtain the temperature error (i.e., the first difference), and then calculate the temperature error by control_count=K P ×error_temperature+K I ×sum_error+T 1 The current temperature adjustment amount is obtained, and the temperature error is added to the current accumulated temperature error.
[0099] Step 425, step 421 is judged as no, indicating that the piglet's body surface temperature exceeds the temperature threshold, and the minimum adjustment amount is confirmed as the temperature adjustment amount, so that the heating value of the insulation equipment can be adjusted to the minimum value.
[0100] Furthermore, the above-mentioned piglet heat preservation control method may also include the following steps:
[0101] Step 427, if the current temperature adjustment amount is greater than the maximum adjustment amount, then the current temperature adjustment amount is set equal to the maximum adjustment amount; if the current temperature adjustment amount is less than the minimum adjustment amount, then the current temperature adjustment amount is set equal to the minimum adjustment amount.
[0102] Step 429, if the current accumulated temperature error is greater than the maximum error set in the insulation device system, the current accumulated temperature error is set equal to the maximum error set in the system; if the current accumulated temperature error is less than the minimum error, the current accumulated temperature error is set equal to the minimum error.
[0103] In one embodiment, the method further comprises:
[0104] Receive a key event and respond to the key event.
[0105] Specifically, the heat preservation device may include an input device, such as an infrared remote controller, which may be used to input parameters such as the starting temperature, the ending temperature, and the target culture days. When a key event of the input device is triggered, the controller receives and responds to the key event, thereby achieving adjustable heat preservation parameters.
[0106] Taking the infrared remote control as an example, when a button on the infrared remote control is pressed, the controller enters the interrupt service function and determines the button type. If the "on / off" button is pressed, it enters the standby state and stops the work of the insulation equipment. When the "on / off" button is pressed again, it enters the step of obtaining the starting temperature, ending temperature, target breeding days, breeding days, piglet surface temperature and current accumulated temperature error.
[0107] If the "Start" button is pressed, the system will enter the starting temperature modification mode. Press the "Add" button to add 1 to the starting temperature. Press the "Subtract" button to subtract 1 from the starting temperature. If no button is pressed within 15 seconds, the system will enter the steps of obtaining the starting temperature, ending temperature, target breeding days, breeding days completed, piglet surface temperature and current accumulated temperature error.
[0108] If the "End" button is pressed, the system will enter the end temperature modification mode. Press the "Add" button to add 1 to the end temperature. Press the "Subtract" button to subtract 1 from the end temperature. If no button is pressed within 15 seconds, the system will enter the steps of obtaining the starting temperature, end temperature, target breeding days, breeding days completed, piglet surface temperature and current accumulated temperature error.
[0109] If the "Cycle" button is pressed, the target breeding days modification mode will be entered. Press the "Add" button to add 1 to the target breeding days. Press the "Subtract" button to subtract 1 from the target breeding days. If no button is pressed within 15 seconds, the step of obtaining the starting temperature, ending temperature, target breeding days, breeding days, piglet surface temperature and current accumulated temperature error will be entered.
[0110] In one embodiment, the method further comprises the steps of:
[0111] The starting temperature, ending temperature, target culture days and the number of culture days are read and displayed on the display module in sequence.
[0112] Specifically, the starting temperature, ending temperature, target breeding days and breeding days can be stored in the on-chip memory. The controller will read the data stored in the on-chip memory in sequence first, and then display them in the order of starting temperature, ending temperature, target breeding days and breeding days.
[0113] In a specific example, Figure 5 As shown, a method for controlling the temperature of piglets is provided, comprising the following steps:
[0114] Step 511, after the power is turned on, the controller performs initialization operations, including selection of a system clock source, initialization of a temperature acquisition device, initialization of an AC phase detection pin, initialization of a display module, and initialization of a temperature control circuit;
[0115] Step 513, the controller reads the starting temperature, the ending temperature, the target breeding days and the breeding days from the on-chip memory, and displays them on the display module in the order of starting temperature→ending temperature→target breeding days→breeding days;
[0116] Step 515, the controller initializes the timer. After the timer is initialized, if any button of the infrared remote controller is pressed, a corresponding button event is generated.
[0117] Specifically, when the infrared remote control is pressed, the controller enters the interrupt service function and then determines the button type. If the "On / Off" button is pressed, the controller enters the standby state and the insulation equipment stops working. After pressing the "On / Off" button again, execute step 517. If the "Start" button is pressed, the controller enters the starting temperature modification mode. Press the "Add" button to increase the starting temperature by 1. Press the "Subtract" button to decrease the ending temperature by 1. If no button is pressed within 15 seconds, execute step 517. If the "End" button is pressed, the controller enters the ending temperature modification mode. Press the "Add" button to increase the ending temperature by 1. Press the "Subtract" button to decrease the ending temperature by 1. If no button is pressed within 15 seconds, execute step 517. If the "Cycle" button is pressed, the controller enters the target breeding days modification mode. Press the "Add" button to increase the target breeding days by 1. Press the "Subtract" button to decrease the target breeding days by 1. If no button is pressed within 15 seconds, execute step 517.
[0118] Step 517: If it is confirmed that the temperature acquisition device has acquired the actual temperature value near the piglet's body surface (i.e., the piglet's body surface temperature), execute step 519; if the temperature acquisition module has not acquired the actual temperature value near the piglet's body surface, confirm the minimum adjustment amount as the temperature adjustment amount, and end, enter the next cycle, and execute step 511;
[0119] Step 519, driving the display module to display the actual temperature value;
[0120] Step 521, calculate the temperature threshold, the controller compares the piglet's body surface temperature with the temperature threshold, if the piglet's body surface temperature is greater than the temperature threshold, the heat generated by the heat preservation lamp is reduced, if the piglet's body surface temperature is less than the temperature threshold, the heat generated by the heat preservation equipment is increased.
[0121] Step 523, the controller determines whether the number of breeding days has reached the target breeding days, if so, executes the end command to stop keeping the piglets warm, if not, executes step 517 again;
[0122] It should be understood that although Figure 1-5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0123] In one embodiment, Figure 6 As shown, a piglet heat preservation control device is provided, comprising:
[0124] The data acquisition module is used to obtain the starting temperature, ending temperature, target breeding days, breeding days, piglet surface temperature and current accumulated temperature error;
[0125] A threshold determination module is used to obtain a temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and to determine the upper temperature limit and the lower temperature limit based on the temperature threshold;
[0126] The temperature adjustment amount determination module is used to obtain the first difference between the temperature threshold and the piglet's surface temperature when the piglet's surface temperature is less than the upper temperature limit and greater than the lower temperature limit, and determine the temperature adjustment amount based on the first difference, the piglet's surface temperature and the current accumulated temperature error, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
[0127] In one embodiment, the temperature adjustment amount determination module is further used to obtain a proportional coefficient and an integral coefficient, and determine a first product of the proportional coefficient and the first difference, and a second product of the integral coefficient and the current accumulated temperature error;
[0128] The sum of the first product, the second product and the piglet's body surface temperature was determined as the temperature regulation amount.
[0129] In one embodiment, the temperature adjustment amount determination module is further configured to, when the temperature adjustment amount is greater than the maximum adjustment amount, confirm the maximum adjustment amount as the temperature adjustment amount;
[0130] When the temperature adjustment amount is less than the minimum adjustment amount, the minimum adjustment amount is confirmed as the temperature adjustment amount.
[0131] In one embodiment, the threshold determination module is further used to obtain a second difference between the starting temperature and the ending temperature, a quotient between the number of cultured days and the target number of cultured days, and a third product between the second difference and the quotient;
[0132] The difference between the starting temperature and the third product is identified as the temperature threshold.
[0133] In one embodiment, the piglet heat preservation control device further comprises:
[0134] A body surface temperature acquisition module is used to acquire the body surface temperature at the current moment, the body surface temperature at the previous moment, and the body surface temperature at the previous two moments;
[0135] The piglet body surface temperature determination module is used to confirm the body surface temperature at the current moment, the body surface temperature at the previous moment and the average value of the body surface temperatures at the previous two moments as the piglet body surface temperature.
[0136] In one embodiment, the temperature adjustment amount determination module is further configured to:
[0137] When the piglet's body surface temperature is greater than or equal to the upper temperature limit, the minimum adjustment amount is confirmed as the temperature adjustment amount; when the piglet's body surface temperature is less than or equal to the lower temperature limit, the maximum adjustment amount is confirmed as the temperature adjustment amount; when the current cumulative temperature error is greater than the maximum error, the maximum error is confirmed as the current cumulative temperature error; when the current cumulative temperature error is less than the minimum error, the minimum error is confirmed as the current cumulative temperature error.
[0138] In one embodiment, the piglet heat preservation control device further comprises:
[0139] The key time response module is used to receive key events and respond to key events.
[0140] For the specific definition of the piglet insulation control device, please refer to the definition of the piglet insulation control method above, which will not be repeated here. The various modules in the above-mentioned piglet insulation control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0141] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0142] Obtain the starting temperature, ending temperature, target breeding days, breeding days completed, piglet surface temperature and current accumulated temperature error;
[0143] According to the starting temperature, the ending temperature, the target breeding days and the breeding days, a temperature threshold is obtained, and the temperature upper limit value and the temperature lower limit value are determined based on the temperature threshold;
[0144] When the piglet's body surface temperature is less than the upper temperature limit and greater than the lower temperature limit, obtain the first difference between the temperature threshold and the piglet's body surface temperature, determine the temperature adjustment amount based on the first difference, the piglet's body surface temperature and the current accumulated temperature error, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
[0145] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0146] Obtain a proportional coefficient and an integral coefficient, and determine a first product of the proportional coefficient and the first difference, and a second product of the integral coefficient and the current accumulated temperature error; and confirm the sum of the first product, the second product and the piglet surface temperature as the temperature regulation amount.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] When the temperature adjustment amount is greater than the maximum adjustment amount, the maximum adjustment amount is confirmed as the temperature adjustment amount; when the temperature adjustment amount is less than the minimum adjustment amount, the minimum adjustment amount is confirmed as the temperature adjustment amount.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] Obtain a second difference between the starting temperature and the ending temperature, a quotient between the number of cultured days and the target number of cultured days, and a third product between the second difference and the quotient; and confirm the difference between the starting temperature and the third product as the temperature threshold.
[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0152] Obtain the current body surface temperature, the previous body surface temperature, and the previous two body surface temperatures;
[0153] The current body surface temperature, the previous body surface temperature and the average of the previous two body surface temperatures are confirmed as the piglet's body surface temperature.
[0154] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0155] When the piglet's body surface temperature is greater than or equal to the upper temperature limit, the minimum adjustment amount is confirmed as the temperature adjustment amount; when the piglet's body surface temperature is less than or equal to the lower temperature limit, the maximum adjustment amount is confirmed as the temperature adjustment amount; when the current cumulative temperature error is greater than the maximum error, the maximum error is confirmed as the current cumulative temperature error; when the current cumulative temperature error is less than the minimum error, the minimum error is confirmed as the current cumulative temperature error.
[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0157] Receive key events and respond to them.
[0158] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0159] Obtain the starting temperature, ending temperature, target breeding days, breeding days completed, piglet surface temperature and current accumulated temperature error;
[0160] According to the starting temperature, the ending temperature, the target breeding days and the breeding days, a temperature threshold is obtained, and the temperature upper limit value and the temperature lower limit value are determined based on the temperature threshold;
[0161] When the piglet's body surface temperature is less than the upper temperature limit and greater than the lower temperature limit, obtain the first difference between the temperature threshold and the piglet's body surface temperature, determine the temperature adjustment amount based on the first difference, the piglet's body surface temperature and the current accumulated temperature error, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
[0162] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0163] Obtain a proportional coefficient and an integral coefficient, and determine a first product of the proportional coefficient and the first difference, and a second product of the integral coefficient and the current accumulated temperature error; and confirm the sum of the first product, the second product and the piglet surface temperature as the temperature regulation amount.
[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0165] When the temperature adjustment amount is greater than the maximum adjustment amount, the maximum adjustment amount is confirmed as the temperature adjustment amount; when the temperature adjustment amount is less than the minimum adjustment amount, the minimum adjustment amount is confirmed as the temperature adjustment amount.
[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0167] Obtaining a second difference between the starting temperature and the ending temperature, a quotient between the number of cultured days and the target number of cultured days, and a third product between the second difference and the quotient;
[0168] The difference between the starting temperature and the third product is identified as the temperature threshold.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] Obtain the current body surface temperature, the previous body surface temperature, and the previous two body surface temperatures;
[0171] The current body surface temperature, the previous body surface temperature and the average of the previous two body surface temperatures are confirmed as the piglet's body surface temperature.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] When the piglet's body surface temperature is greater than or equal to the upper temperature limit, the minimum adjustment amount is confirmed as the temperature adjustment amount; when the piglet's body surface temperature is less than or equal to the lower temperature limit, the maximum adjustment amount is confirmed as the temperature adjustment amount; when the current cumulative temperature error is greater than the maximum error, the maximum error is confirmed as the current cumulative temperature error; when the current cumulative temperature error is less than the minimum error, the minimum error is confirmed as the current cumulative temperature error.
[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0175] Receive key events and respond to them.
[0176] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0177] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0178] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for controlling the temperature of piglets, characterized in that: The method comprises: Obtain the starting temperature, ending temperature, target breeding days, breeding days completed, piglet surface temperature and current accumulated temperature error; Obtaining a temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and determining an upper temperature limit value and a lower temperature limit value based on the temperature threshold; When the piglet's body surface temperature is less than the upper temperature limit and greater than the lower temperature limit, obtaining a first difference between the temperature threshold and the piglet's body surface temperature; Obtaining a proportional coefficient and an integral coefficient, and determining a first product of the proportional coefficient and the first difference, and a second product of the integral coefficient and a current accumulated temperature error; The sum of the first product, the second product and the piglet body surface temperature is confirmed as the temperature adjustment amount, and the sum of the first difference and the current accumulated temperature error is confirmed as the next accumulated temperature error.
2. The piglet heat preservation control method according to claim 1, characterized in that: After confirming the sum of the first product, the second product and the piglet body surface temperature as the temperature adjustment amount, the method further includes: In the case where the temperature adjustment amount is greater than the maximum adjustment amount, confirming the maximum adjustment amount as the value of the temperature adjustment amount; When the temperature adjustment amount is less than a minimum adjustment amount, the minimum adjustment amount is confirmed as the value of the temperature adjustment amount.
3. The piglet heat preservation control method according to claim 1, characterized in that: The step of obtaining a temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days comprises: Obtaining a second difference between the starting temperature and the ending temperature, a quotient between the number of cultured days and the target number of cultured days, and a third product between the second difference and the quotient; A difference between the starting temperature and the third product is determined as the temperature threshold.
4. The piglet heat preservation control method according to claim 1, characterized in that: The method further comprises: Obtain the current body surface temperature, the previous body surface temperature, and the previous two body surface temperatures; The body surface temperature at the current moment, the body surface temperature at the previous moment, and the average of the body surface temperatures at the previous two moments are confirmed as the body surface temperature of the piglet.
5. The piglet heat preservation control method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the piglet's body surface temperature is greater than or equal to the upper temperature limit, confirming the minimum adjustment amount as the temperature adjustment amount; When the piglet's body surface temperature is less than or equal to the lower limit of the temperature, the maximum adjustment amount is confirmed as the temperature adjustment amount; When the current accumulated temperature error is greater than the maximum error, confirming the maximum error as the current accumulated temperature error; When the current accumulated temperature error is smaller than the minimum error, the minimum error is confirmed as the current accumulated temperature error.
6. The piglet heat preservation control method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receive a key event and respond to the key event.
7. A piglet heat preservation control device, characterized in that: The device comprises: The data acquisition module is used to obtain the starting temperature, ending temperature, target breeding days, breeding days, piglet surface temperature and current accumulated temperature error; A threshold determination module, for obtaining a temperature threshold according to the starting temperature, the ending temperature, the target breeding days and the breeding days, and determining an upper temperature limit value and a lower temperature limit value based on the temperature threshold; The temperature adjustment amount determination module is used to obtain the first difference between the temperature threshold and the piglet's body surface temperature when the piglet's body surface temperature is less than the temperature upper limit value and greater than the temperature lower limit value; obtain the proportional coefficient and the integral coefficient, and determine the first product of the proportional coefficient and the first difference, and the second product of the integral coefficient and the current accumulated temperature error; confirm the sum of the first product, the second product and the piglet's body surface temperature as the temperature adjustment amount, and confirm the sum of the first difference and the current accumulated temperature error as the next accumulated temperature error.
8. The piglet heat preservation control device according to claim 7, characterized in that: The temperature adjustment amount determination module is further used to confirm the maximum adjustment amount as the temperature adjustment amount when the temperature adjustment amount is greater than the maximum adjustment amount; and to confirm the minimum adjustment amount as the temperature adjustment amount when the temperature adjustment amount is less than the minimum adjustment amount.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Intelligent heating system for piglet warm-keeping area and control method of intelligent heating system
CN110352855A