Temperature control method, device and equipment for baking equipment and storage medium
By setting up multiple heating devices and temperature sensors in the baking equipment, calculating temperature control errors and adjusting control parameters, the problem of uneven temperature distribution is solved, and more accurate temperature control and cooking effects are achieved.
Patent Information
- Application Number
- CN202411305158.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-07
AI Technical Summary
Due to the uneven internal temperature distribution of existing baking equipment, it is difficult for a single temperature sensor to accurately reflect the actual temperatures in various parts of the equipment, resulting in insufficient accuracy of temperature control and affecting the cooking effect.
A plurality of heating devices and temperature sensors are arranged in the baking equipment. By obtaining the measured values of each temperature sensor and the spatial relationship between the heating device and the sensor, the temperature control error is calculated, and the control parameters of the heating device are determined and adjusted to realize the various Uniformity of regional temperature.
Through the dispersed settings of multiple temperature sensors and heating devices, the temperature of each area is accurately controlled, which improves the temperature control accuracy and cooking effect of the baking equipment.
Smart Images

Figure CN119270948A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electrical appliance technology, and specifically relates to a temperature control method, device, equipment and storage medium for baking equipment. Background Art
[0002] With the improvement of people's living standards and their continuous pursuit of high-quality life, various cooking equipment has played an increasingly important role in life, and users' requirements for cooking equipment have become higher and higher.
[0003] Existing cooking equipment with baking function, such as ovens, steam ovens, etc., usually obtains the temperature inside the equipment through a temperature sensor in the inner tank of the equipment during the baking process, and determines the control parameters of the corresponding heating device according to the target temperature value and the temperature inside the equipment, and controls the corresponding heating device according to the determined control parameters so that the actual temperature inside the equipment reaches the target value.
[0004] However, since the temperature distribution inside the device may be uneven, the temperature measured by a single temperature sensor may not accurately reflect the actual temperature inside the device. The resulting error will affect the accuracy of the device's temperature control and thus affect the cooking effect. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for controlling the temperature of a baking device, so as to solve the problem of insufficient accuracy of the temperature control of the baking device.
[0006] In a first aspect, the present application provides a temperature control method for a baking device, which is applied to the baking device, wherein the baking device comprises: an inner pot, a plurality of heating devices and a plurality of temperature sensors, wherein different heating devices are used to heat different areas of the inner pot, and the plurality of temperature sensors are dispersedly arranged on the inner wall of the inner pot; the method comprises:
[0007] Obtaining the temperature measurement value inside the inner tank collected by each temperature sensor;
[0008] Obtaining a temperature control error of the target heating device according to a temperature setting value of the baking device, each of the temperature measurement values, and a spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors;
[0009] determining a control parameter of the target heating device based on the temperature setting value and the temperature control error;
[0010] Based on the control parameter, the target heating device is controlled to perform heating according to the control parameter so that the temperature value of the corresponding area matches the temperature setting value.
[0011] Optionally, acquiring the temperature control error of the target heating device according to the temperature setting value of the baking equipment, each of the temperature measurement values, and a spatial relationship between a target heating device among the multiple heating devices and each of the temperature sensors includes:
[0012] Obtaining a temperature deviation value between a temperature setting value of the baking device and each of the temperature measurement values;
[0013] Determine the weight of each temperature deviation value according to the distance between the target heating device and each temperature sensor, wherein the weight of each temperature deviation value is inversely proportional to the square root of the distance from the temperature sensor corresponding to the temperature deviation value to the target heating device;
[0014] Based on the weights, weighted sum processing is performed on each of the temperature deviation values to obtain a temperature control error of the target heating device.
[0015] Optionally, determining the control parameter of the target heating device based on the temperature setting value and the temperature control error includes:
[0016] According to the temperature setting value and the temperature control error of the target heating device, the PID parameters of the target heating device are corrected, and the corrected PID parameters are obtained to adaptively adjust the PID controller parameters;
[0017] The control parameters of the target heating device are determined according to the temperature control error of the target heating device and the corrected PID parameters.
[0018] Optionally, the correcting the PID parameters of the target heating device according to the temperature setting value and the temperature control error of the target heating device, and obtaining the corrected PID parameters, includes:
[0019] Inputting the temperature control error of the target heating device into the loss function of the BP neural network to obtain the loss value output by the loss function;
[0020] According to the loss function and the learning rate of the BP neural network, a gradient descent algorithm is used to adjust the structural parameters of the BP neural network to obtain an adjusted BP neural network;
[0021] The temperature setting value of the target heating device is input into the adjusted BP neural network, and the PID parameters output by the adjusted BP neural network are obtained as the corrected PID parameters.
[0022] Optionally, before adjusting the structural parameters of the BP neural network using a gradient descent algorithm according to the loss value and the learning rate of the BP neural network, the method further includes:
[0023] Determine whether the BP neural network meets a preset iteration condition, wherein the iteration condition includes: the loss function has not converged and the current iteration number is less than a preset iteration number;
[0024] If yes, determine to execute the step of adjusting the structural parameters of the BP neural network by using a gradient descent algorithm according to the loss function and the learning rate of the BP neural network;
[0025] If not, the temperature control error of the target heating device is input into the BP neural network, and the controller parameters output by the BP neural network are obtained as the corrected PID parameters.
[0026] Optionally, determining the control parameters of the target heating device according to the temperature control error of the target heating device and the corrected PID parameters includes:
[0027] According to the temperature control error of the target heating device, the pre-value of the temperature control error and the corrected PID parameter, a control parameter increment of the target heating device is obtained, wherein the pre-value of the temperature control error includes: temperature control error values of two consecutive control cycles in the past that are adjacent to the control cycle of the temperature control error;
[0028] The control parameter of the target heating device is updated according to the control parameter increment.
[0029] Optionally, before obtaining the temperature control error of the target heating device according to the temperature setting value of the baking equipment, each of the temperature measurement values, and the spatial relationship between the target heating device among the multiple heating devices and each of the temperature sensors, the method further includes:
[0030] Acquire the operation information of the baking device, wherein the operation information includes each operation period and a heating device corresponding to each operation period;
[0031] According to the current time and the operation information, a heating device corresponding to the operation time period to which the current time belongs is acquired as the target heating device.
[0032] In a second aspect, the present application provides a temperature control device for a baking device, the device comprising:
[0033] An acquisition module, used for acquiring the temperature measurement value in the inner tank collected by each temperature sensor;
[0034] a calculation module, configured to obtain a temperature control error of the target heating device according to a temperature setting value of the baking device, each of the temperature measurement values, and a spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors; and determine a control parameter of the target heating device based on the temperature setting value and the temperature control error;
[0035] A control module is used to control the target heating device to perform heating according to the control parameter based on the control parameter, so that the temperature value of the corresponding area matches the temperature setting value.
[0036] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0037] The memory stores computer-executable instructions;
[0038] The processor executes the computer-executable instructions stored in the memory to implement the temperature control method of the baking equipment as described in the first aspect.
[0039] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the temperature control method of the baking device as described in the first aspect is implemented. :
[0040] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the temperature control method for a baking device as described in the first aspect.
[0041] The temperature control method, device, equipment and storage medium for baking equipment provided by the present application obtain the temperature measurement values in the inner pot of the baking equipment collected by multiple temperature sensors; obtain the temperature control error of the target heating device according to the temperature setting value of the baking equipment, each of the temperature measurement values, and the spatial relationship between the target heating device among the multiple heating devices and each of the temperature sensors; determine the control parameters of the target heating device based on the temperature setting value and the temperature control error; control the target heating device to heat according to the control parameters based on the control parameters, so that the temperature value of the corresponding area matches the temperature setting value, so that the temperature of each heating area in the oven can match the temperature setting value to achieve the expected cooking effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] Figure 1 A structural schematic diagram of a baking device provided in this application;
[0044] Figure 2 Schematic diagram of the temperature control method of the baking equipment provided in this application Figure 1 ;
[0045] Figure 3 Schematic diagram of the temperature control method of the baking equipment provided in this application Figure 2 ;
[0046] Figure 4 A schematic diagram of the structure of a temperature control device for baking equipment provided in this application;
[0047] Figure 5 A schematic diagram of the structure of an electronic device provided in this application.
[0048] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] With the improvement of people's living standards and their continuous pursuit of high-quality life, various cooking equipment has played an increasingly important role in life, and users' requirements for cooking equipment have become higher and higher.
[0051] Existing cooking equipment with baking function, such as ovens, steam ovens, etc., usually obtains the temperature inside the equipment through a temperature sensor in the inner tank of the equipment during the baking process, and determines the control parameters of the corresponding heating device according to the target temperature value and the temperature inside the equipment, and controls the corresponding heating device according to the determined control parameters so that the actual temperature inside the equipment reaches the target value.
[0052] However, since the temperature distribution inside the device may be uneven, the temperature measured by a single temperature sensor may not accurately reflect the actual temperature inside the device. The resulting error will affect the accuracy of the device's temperature control and thus affect the cooking effect.
[0053] In view of the above problems, the present application proposes the following technical concept: multiple heating devices and multiple temperature sensors are arranged in the baking device, different heating devices are used to heat different areas of the inner pot, and multiple temperature sensors are dispersedly arranged on the inner wall of the inner pot to measure the temperature of various places in the inner pot; when baking food, the temperature control device of the baking device obtains the temperature measurement value in the inner pot collected by each temperature sensor, and obtains the temperature control error of the target heating device according to the temperature setting value of the baking device, each of the temperature measurement values, and the spatial relationship between the target heating device in the multiple heating devices and each of the temperature sensors, so as to fully consider the difference in the influence of each target heating device on the temperature of various places in the inner pot; based on the temperature setting value and the temperature control error, the control parameter of the target heating device is determined; according to the determined control parameter, the target heating device is controlled to heat according to the control parameter, so that the temperature value of the corresponding area matches the temperature setting value, and each target heating device is controlled in this way, so that the temperature of each heating area in the oven can match the temperature setting value, so as to achieve the expected cooking effect.
[0054] Please refer to Figure 1 , Figure 1 A structural schematic diagram of a baking device provided in this application; Figure 1 As shown, the baking device includes a plurality of temperature sensors 102 dispersedly arranged on the inner wall of the inner pot 101, and a plurality of heating devices 103 dispersedly arranged on the inner wall of the inner pot 101. The number of the temperature sensors 102 may be, for example, 10, the number of the heating devices 103 may be, for example, 4, the inner pot 101 is substantially in the shape of a rectangular parallelepiped, the temperature sensors 102 may be, for example, installed on the two side walls, and the upper wall and the lower wall of the inner pot 101, the heating devices 103 may be, for example, installed on the upper wall and the lower wall of the inner pot 101, the temperature sensors 102 may be, for example, NTC temperature sensors, and the heating devices 103 may be, for example, heating tubes.
[0055] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments may exist independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0056] Figure 2 Schematic diagram of the process of the temperature control method of the baking equipment provided in the embodiment of the present application Figure 1 ;like Figure 2 As shown, the method includes:
[0057] S201: Acquire the temperature measurement value in the inner tank collected by each temperature sensor.
[0058] Specifically, the temperature control device of the baking equipment periodically obtains the signals sent by each temperature sensor, and analyzes the signals to obtain the measured values of the temperature at various locations of the inner pot.
[0059] S202: Acquire a temperature control error of the target heating device according to a temperature setting value of the baking equipment, each of the temperature measurement values, and a spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors.
[0060] The spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors may include, for example, a distance between each of the target heating devices and each of the temperature sensors.
[0061] Specifically, the temperature control device of the baking device obtains the temperature setting value of the baking device and the target heating device currently turned on among the multiple heating devices according to the operation program information of the baking device; obtains the spatial relationship between the target heating device and each of the temperature sensors from the corresponding storage location; and determines the temperature control error of the target heating device according to a preset error calculation algorithm based on the temperature setting value, each of the temperature measurement values, and the spatial relationship between the target heating device and each of the temperature sensors; the error calculation algorithm can, for example, be based on a large number of experimental results conducted in advance, the experimental results including the difference between the measurement value of each temperature sensor and the target temperature (i.e., each partial error) when different target heating devices are running, and the difference between the actual temperature of the heating area of each of the target heating devices and the target temperature (i.e., the temperature control error of the target heating device), and fits the mapping relationship between the temperature control error of each target heating device and the partial error of each temperature sensor; the embodiment of the present application does not limit the specific content and form of the error calculation algorithm.
[0062] S203: Determine a control parameter of the target heating device based on the temperature setting value and the temperature control error.
[0063] Specifically, the baking equipment determines the control parameters of the target heating device according to the temperature setting value and the temperature control error and according to a preset closed-loop control algorithm. The closed-loop control algorithm may be, for example, a PID control algorithm or a model predictive control algorithm. This embodiment does not limit the specific content and form of the closed-loop control algorithm.
[0064] S204: Based on the control parameter, the target heating device is controlled to perform heating according to the control parameter, so that the temperature value of the corresponding area matches the temperature setting value.
[0065] Specifically, the temperature control device of the baking equipment sends corresponding control instructions to the target heating device according to the determined control parameters, and controls the target heating device to heat according to the control parameters.
[0066] The temperature control of the baking equipment provided in the embodiment of the present application measures the temperature of various places in the inner pot by temperature sensors dispersedly arranged on the inner pot of the equipment, and determines the temperature control errors of various target heating devices according to the temperatures and temperature setting values of various places in the inner pot and the spatial relationship between each temperature sensor and each heating device value. Then, according to the temperature control errors of each target heating device, the control parameters of each target heating device are determined, and according to the temperature control errors of each target heating device, each target heating device is controlled to heat. Based on the temperatures of various places in the inner pot and the different degrees of influence of the target heating devices on different areas in the inner pot, each target heating device is precisely controlled in a targeted manner, thereby ensuring the uniformity of the temperature field distribution in the oven and improving the temperature control effect.
[0067] Figure 3 Schematic diagram of the process of the temperature control method of the baking equipment provided in the embodiment of the present application Figure 2 ;like Figure 3 As shown, the method includes:
[0068] S301: Acquire the temperature measurement value inside the inner tank collected by each temperature sensor.
[0069] The implementation of step S301 is similar to that of step S201, and will not be described in detail in this embodiment.
[0070] S302: Acquire the operation information of the baking equipment.
[0071] The operation information includes each operation time period and a heating device corresponding to each operation time period.
[0072] Among them, the number of heating devices corresponding to one operating period can be one or more.
[0073] Specifically, the temperature control device of the baking equipment reads and analyzes the program information executed by the baking equipment to obtain each operating time period of the baking and its corresponding heating device.
[0074] S303: According to the current time and the operation information, a heating device corresponding to the operation time period to which the current time belongs is acquired as the target heating device.
[0075] Specifically, during the baking process, the temperature control device of the baking equipment obtains the operating time period to which the current moment belongs as the current operating time period according to the current moment and each operating time period in the operating information, and obtains the heating device corresponding to the current time period as the target heating device.
[0076] It is understandable that in the process of the baking equipment executing the baking program, the baking position and baking temperature of the ingredients may change. Therefore, in different operating periods, the baking equipment may turn on different heating devices to heat the ingredients. For example, in the early stage of baking, the baking equipment will turn on the upper heating tube and the lower heating tube at the same time to bake the ingredients; in the later stage of baking, the baking equipment will only turn on the upper heating tube to heat the ingredients so that the top of the ingredients can be fully colored; based on this, the temperature control device of the baking equipment can obtain the heating device corresponding to the operating period to which the current time belongs as the target heating device according to the current time and the operating information, so as to adjust the control parameters of the target heating device in a targeted manner, thereby achieving precise temperature control throughout the baking process.
[0077] S304: Acquire a temperature deviation value between a temperature setting value of the baking device and each of the temperature measurement values.
[0078] Specifically, the baking device reads and parses the program information executed by the baking device to obtain the temperature setting value corresponding to the current moment; based on the temperature setting value and each temperature measurement value, the difference between the temperature setting value and each temperature measurement value is obtained as the temperature deviation value between the temperature setting value of the baking device and each temperature measurement value.
[0079] S305: Determine the weight of each of the temperature deviation values according to the distance between the target heating device and each of the temperature sensors.
[0080] The weight of each temperature deviation value is in inverse proportion to the square root of the distance from the temperature sensor corresponding to the temperature deviation value to the target heating device.
[0081] It can be understood that the heat source in the air releases thermal radiation to the surroundings, causing the temperature of the surrounding points to rise. The intensity of thermal radiation at each point is inversely proportional to the square of the distance from the point to the heat source. For the heating device and temperature sensor in the oven, it can be approximately considered that the farther the temperature sensor is from the heating device, the lower the intensity of thermal radiation it receives from the heating device, and the thermal radiation intensity is inversely proportional to the square of the distance. The intensity of thermal radiation at a point is proportional to the fourth power of the temperature at that point. For the heating device and temperature sensor in the oven, it can be approximately considered that the fourth power of the temperature measured by the temperature sensor is proportional to the radiation intensity received from the heat source. In summary, it can be approximately considered that the temperature measured by the temperature sensor is inversely proportional to the square root of the distance from the temperature sensor to the target heating device, and further, it can be considered that the degree of influence of the target heating device on the temperature at each temperature sensor is inversely proportional to the square root of the distance from the temperature sensor to the target heating device; therefore, when determining the temperature control error of the target heating device by weighted summing the temperature deviation values, the weight of each temperature deviation value is inversely proportional to the square root of the distance from the temperature sensor to the target heating device, taking into account the degree of influence on the measurement positions of different temperature sensors.
[0082] Optionally, developers can establish an initial model based on the above relationship, with the distance from each temperature sensor to a single heating device as the independent variable and the weight of each temperature sensor as the dependent variable. Through a large number of experiments on the baking device, the heating device is controlled to heat the food, and the ratio between the temperature changes of temperature sensors at different positions is obtained; and according to the above experimental results, the coefficients of the initial model are fitted and corrected, and the corrected model is used as the mapping relationship between the weight value and the distance value of the temperature sensor.
[0083] Specifically, the temperature control device of the baking equipment substitutes the distance between the target heating device and each temperature sensor into the mapping relationship between the weight value and the distance value of the temperature sensor, and obtains the weight corresponding to each distance as the weight of each temperature deviation value.
[0084] S306: Based on the weights, perform weighted sum processing on the temperature deviation values to obtain the temperature control error of the target heating device.
[0085] Specifically, the temperature control device of the baking equipment multiplies each temperature deviation value by its weight, and sums the products of each obtained temperature deviation value and its weight, and uses the weighted summation result as the temperature control error of the target heating device.
[0086] S307: According to the temperature setting value and the temperature control error of the target heating device, the PID parameters of the target heating device are corrected, and the corrected PID parameters are obtained to adaptively adjust the PID controller parameters.
[0087] Optionally, the specific method steps for the temperature control device of the baking equipment to correct the PID parameters of the target heating device according to the temperature setting value and the temperature control error of the target heating device can be as follows:
[0088] Step 1: Input the temperature control error of the target heating device into the loss function of the BP neural network to obtain the loss value output by the loss function.
[0089] The input of the BP neural network is the temperature setting value, and the output is the PID parameter, which includes the proportional coefficient k p , integration coefficient k i and the differential coefficient k d .
[0090] Specifically, the temperature control device of the baking equipment inputs the calculated temperature control error of one or more target heating devices within the current control cycle into the loss function of the pre-constructed BP neural network to obtain the loss value output by the loss function; the loss function can be, for example, a mean square error function, or a Huber loss function, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the loss function.
[0091] Step 2: Determine whether the BP neural network meets the preset iteration conditions.
[0092] The iteration condition includes: the loss function has not converged and the current number of iterations is less than a preset number of iterations.
[0093] Specifically, the temperature control device of the baking equipment determines whether the loss value satisfies a preset convergence condition based on the loss value. When the loss value satisfies the convergence condition, it is determined that the loss function converges. The preset convergence condition may be, for example, that the rate of change of the loss value is less than a preset rate of change threshold, or that the loss value is less than a preset loss value threshold, etc. The embodiment of the present application does not impose any special restrictions on the specific content of the convergence condition; the temperature control device of the baking equipment obtains the number of iterations from the start time of this baking program to the current time as the current number of iterations, and determines whether the current number of iterations is less than the preset number of iterations. If the loss function converges or the current number of iterations reaches the preset number of iterations, step three is executed; if the loss function has not converged and the current number of iterations is less than the preset number of iterations, step four is executed.
[0094] Step 3: If not, the temperature control error of the target heating device is input into the BP neural network, and the controller parameters output by the BP neural network are obtained as the corrected PID parameters.
[0095] Step 4: If yes, then according to the loss function and the learning rate of the BP neural network, a gradient descent algorithm is used to adjust the structural parameters of the BP neural network to obtain an adjusted BP neural network.
[0096] The structural parameters include the weight matrix and bias vector of each layer of the BP neural network.
[0097] Specifically, the temperature control device of the baking equipment calculates the gradient of the loss function for each weight and each bias of each layer of the network, layer by layer, from the output layer to the input layer of the BP neural network according to the loss function, and adjusts the weight matrix and bias vector of each layer of the network according to each of the gradients and the learning rate of the BP neural network to obtain an adjusted BP neural network.
[0098] Step 5: Input the temperature setting value of the target heating device into the adjusted BP neural network, and obtain the PID parameters output by the adjusted BP neural network as the corrected PID parameters.
[0099] S308: Determine control parameters of the target heating device according to the temperature control error of the target heating device and the corrected PID parameters.
[0100] Optionally, the temperature control device of the baking equipment may determine the control parameters of the target heating device according to the temperature control error of the target heating device and the corrected PID parameters in a specific method and steps as follows:
[0101] Step 1: Obtain a control parameter increment of the target heating device according to the temperature control error of the target heating device, a pre-value of the temperature control error and the corrected PID parameter.
[0102] The control parameter increment is an increment of the control parameter value of the current control cycle relative to the control parameter value of the previous control cycle.
[0103] The pre-value of the temperature control error includes: temperature control error values of two consecutive control cycles in the past that are adjacent to the control cycle of the temperature control error.
[0104] Specifically, the control parameter increment of the target heating device can be obtained by, for example, calculating the following function:
[0105] △u(n)=b 1 e(n)+b2 e(n-1)+b 3 e(n-2);
[0106] Wherein, △u(n) is the control parameter increment of the target heating device in the nth control cycle, e(n) is the temperature control error of the target heating device in the nth control cycle, e(n-1) is the temperature control error of the target heating device in the n-1th control cycle, e(n-2) is the temperature control error of the target heating device in the n-2th control cycle, b 1 =k p +k i +k d , b 2 =-k p -2k d , b 3 =k d .
[0107] Step 2: updating the control parameters of the target heating device according to the control parameter increment.
[0108] It can be understood that the control parameter increment is the increment of the temperature control error in recent times, rather than the actual value of the temperature control error. In the process of updating the control parameter through the control parameter increment, the increment will not be accumulated and will not be associated with the past increment, thereby ensuring the stability of the temperature control system.
[0109] Specifically, the temperature control device of the baking equipment sums the control parameter increment of the current control cycle and the control parameter of the previous control cycle, and uses the sum of the control parameter increment of the current control cycle and the control parameter of the previous control cycle as the control parameter of the current control cycle.
[0110] S309: Based on the control parameter, the target heating device is controlled to perform heating according to the control parameter, so that the temperature value of the corresponding area matches the temperature setting value.
[0111] The implementation of step S309 is similar to that of step S204, and will not be described in detail in this embodiment.
[0112] The temperature control method for baking equipment provided in the embodiment of the present application corrects the PID parameters of the target heating device according to the temperature control error of the target heating device, and determines the control parameters of the target heating device according to the corrected PID control parameters and the temperature setting value, thereby realizing the real-time control effect of the oven inner tank and adaptively adjusting the PID control parameters, so that the PID control parameters can adapt to changes in actual working conditions, improve the stability of the control system, and achieve ideal control effects under various baking programs and environmental conditions.
[0113] Figure 4 A schematic diagram of the structure of a temperature control device for a baking device provided in an embodiment of the present application; Figure 4 As shown, the present application provides a temperature control device for baking equipment, and the temperature control device 400 for baking equipment includes:
[0114] An acquisition module 401 is used to acquire the temperature measurement value in the inner tank collected by each temperature sensor;
[0115] A calculation module 402 is used to obtain a temperature control error of the target heating device according to the temperature setting value of the baking device, each of the temperature measurement values, and a spatial relationship between the target heating device among the multiple heating devices and each of the temperature sensors; and determine a control parameter of the target heating device based on the temperature setting value and the temperature control error;
[0116] The control module 403 is used to control the target heating device to perform heating according to the control parameter based on the control parameter, so that the temperature value of the corresponding area matches the temperature setting value.
[0117] Optionally, the operation module 402 is specifically used to obtain the temperature deviation value between the temperature setting value of the baking equipment and each of the temperature measurement values; determine the weight of each of the temperature deviation values according to the distance between the target heating device and each of the temperature sensors, wherein the weight of each of the temperature deviation values is inversely proportional to the square root of the distance from the temperature sensor corresponding to the temperature deviation value to the target heating device; based on the weight, perform weighted summation processing on each of the temperature deviation values to obtain the temperature control error of the target heating device.
[0118] Optionally, the operation module 402 is specifically used to correct the PID parameters of the target heating device according to the temperature setting value and the temperature control error of the target heating device, and obtain the corrected PID parameters to adaptively adjust the PID controller parameters; determine the control parameters of the target heating device according to the temperature control error of the target heating device and the corrected PID parameters.
[0119] Optionally, the operation module 402 is specifically used to input the temperature control error of the target heating device into the loss function of the BP neural network to obtain the loss value output by the loss function; according to the loss function and the learning rate of the BP neural network, use the gradient descent algorithm to adjust the structural parameters of the BP neural network to obtain the adjusted BP neural network; input the temperature setting value of the target heating device into the adjusted BP neural network, and obtain the PID parameters output by the adjusted BP neural network as the corrected PID parameters.
[0120] Optionally, the operation module 402 is also used to determine whether the BP neural network meets preset iteration conditions, wherein the iteration conditions include: the loss function has not converged and the current iteration number is less than a preset iteration number; when the BP neural network meets the preset iteration conditions, determine to execute the step of adjusting the structural parameters of the BP neural network using a gradient descent algorithm based on the loss function and the learning rate of the BP neural network; when the BP neural network does not meet the preset iteration conditions, input the temperature control error of the target heating device into the BP neural network, and obtain the controller parameters output by the BP neural network as corrected PID parameters.
[0121] Optionally, the operation module 402 is specifically used to obtain a control parameter increment of the target heating device based on the temperature control error of the target heating device, a pre-value of the temperature control error and the corrected PID parameter, wherein the pre-value of the temperature control error includes: temperature control error values of the past two consecutive control cycles adjacent to the control cycle of the temperature control error; and updating the control parameters of the target heating device according to the control parameter increment.
[0122] Optionally, the acquisition module 401 is also used to obtain operating information of the baking equipment, wherein the operating information includes each operating time period and a heating device corresponding to each operating time period; according to the current moment and the operating information, the heating device corresponding to the operating time period to which the current moment belongs is obtained as the target heating device.
[0123] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device 500 includes: at least one processor 501 and a memory 502; in addition, the electronic device 500 may also have a communication interface 504 for receiving and sending instructions.
[0124] Wherein, the processor 501, the memory 502 and the communication interface 504 are connected via a bus 503;
[0125] The computer program is stored in the memory 502 and is configured to be executed by the processor 501 to implement the present application. Figure 2-Figure 3 A temperature control method for a baking device provided by any corresponding embodiment;
[0126] Figure 5 The electronic device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0127] In addition, this embodiment further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the temperature control method of the baking device of the above embodiment.
[0128] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0131] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0132] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0133] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements 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 application.
Claims
1. A temperature control method for baking equipment, characterized in that: Applied to a baking device, the baking device comprises: an inner pot, a plurality of heating devices and a plurality of temperature sensors, different heating devices are used to heat different areas of the inner pot, and the plurality of temperature sensors are dispersedly arranged on the inner wall of the inner pot; the method comprises: Obtaining the temperature measurement value inside the inner tank collected by each temperature sensor; Obtaining a temperature control error of the target heating device according to a temperature setting value of the baking device, each of the temperature measurement values, and a spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors; determining a control parameter of the target heating device based on the temperature setting value and the temperature control error; Based on the control parameter, the target heating device is controlled to perform heating according to the control parameter so that the temperature value of the corresponding area matches the temperature setting value.
2. The method according to claim 1, characterized in that The step of obtaining a temperature control error of the target heating device according to the temperature setting value of the baking device, each of the temperature measurement values, and a spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors comprises: Obtaining a temperature deviation value between a temperature setting value of the baking device and each of the temperature measurement values; Determine the weight of each temperature deviation value according to the distance between the target heating device and each temperature sensor, wherein the weight of each temperature deviation value is inversely proportional to the square root of the distance from the temperature sensor corresponding to the temperature deviation value to the target heating device; Based on the weights, weighted sum processing is performed on each of the temperature deviation values to obtain a temperature control error of the target heating device.
3. The method according to claim 1, characterized in that The determining the control parameter of the target heating device based on the temperature setting value and the temperature control error comprises: According to the temperature setting value and the temperature control error of the target heating device, the PID parameters of the target heating device are corrected, and the corrected PID parameters are obtained to adaptively adjust the PID controller parameters; The control parameters of the target heating device are determined according to the temperature control error of the target heating device and the corrected PID parameters.
4. The method according to claim 3, characterized in that The step of correcting the PID parameters of the target heating device according to the temperature setting value and the temperature control error of the target heating device, and obtaining the corrected PID parameters, comprises: Inputting the temperature control error of the target heating device into the loss function of the BP neural network to obtain the loss value output by the loss function; According to the loss function and the learning rate of the BP neural network, a gradient descent algorithm is used to adjust the structural parameters of the BP neural network to obtain an adjusted BP neural network; The temperature setting value of the target heating device is input into the adjusted BP neural network, and the PID parameters output by the adjusted BP neural network are obtained as the corrected PID parameters.
5. The method according to claim 4, characterized in that Before adjusting the structural parameters of the BP neural network using a gradient descent algorithm according to the loss value and the learning rate of the BP neural network, the method further includes: Determine whether the BP neural network meets a preset iteration condition, wherein the iteration condition includes: the loss function has not converged and the current iteration number is less than a preset iteration number; If yes, determine to execute the step of adjusting the structural parameters of the BP neural network by using a gradient descent algorithm according to the loss function and the learning rate of the BP neural network; If not, the temperature control error of the target heating device is input into the BP neural network, and the controller parameters output by the BP neural network are obtained as the corrected PID parameters.
6. The method according to claim 3, characterized in that The step of determining the control parameters of the target heating device according to the temperature control error of the target heating device and the corrected PID parameters includes: According to the temperature control error of the target heating device, the pre-value of the temperature control error and the corrected PID parameter, a control parameter increment of the target heating device is obtained, wherein the pre-value of the temperature control error includes: temperature control error values of two consecutive control cycles in the past that are adjacent to the control cycle of the temperature control error; The control parameter of the target heating device is updated according to the control parameter increment.
7. The method according to claim 1, characterized in that Before obtaining the temperature control error of the target heating device according to the temperature setting value of the baking equipment, each of the temperature measurement values, and the spatial relationship between the target heating device among the plurality of heating devices and each of the temperature sensors, the method further includes: Acquire the operation information of the baking device, wherein the operation information includes each operation period and a heating device corresponding to each operation period; According to the current time and the operation information, a heating device corresponding to the operation time period to which the current time belongs is acquired as the target heating device.
8. A temperature control device for baking equipment, characterized in that: Applied to a baking device, the baking device comprises: an inner pot, a plurality of heating devices and a plurality of temperature sensors, different heating devices are used to heat different areas of the inner pot, and the plurality of temperature sensors are dispersedly arranged on the inner wall of the inner pot; the device comprises: An acquisition module, used for acquiring the temperature measurement value in the inner tank collected by each temperature sensor; a calculation module, configured to obtain a temperature control error of the target heating device according to a temperature setting value of the baking device, each of the temperature measurement values, and a spatial relationship between a target heating device among the plurality of heating devices and each of the temperature sensors; and determine a control parameter of the target heating device based on the temperature setting value and the temperature control error; A control module is used to control the target heating device to perform heating according to the control parameter based on the control parameter, so that the temperature value of the corresponding area matches the temperature setting value.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.