Intelligent cooker cooking method and system based on menu parameters
By using finite state machines and the AC-3 algorithm, the intelligent cooking machine achieves joint control of the heating and stirring processes, solving the problems of pot temperature fluctuations and uneven seasoning, and improving the cooking doneness and consistency of taste.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- JIANGSU XIAOGE INTELLIGENT TECH CO LTD
- Filing Date
- 2026-02-27
- Publication Date
- 2026-05-15
AI Technical Summary
In existing technologies, the heating and stirring control of intelligent cooking machines lacks linkage constraints, resulting in fluctuations in pot temperature and uneven stirring load, which affects the consistency of the dish's cooking time, uneven distribution of seasoning, and lack of boundary coordination between stages, leading to differences in taste.
By employing a finite state machine and the AC-3 algorithm, power, frequency, and duration values are bound to stage numbers. Combined with pot temperature judgment and stirring cycle count, a stage switching condition set and seasoning trigger sequence are formed to achieve joint control of heating and stirring, ensuring the consistency of parameter boundaries.
It achieves stable and coordinated heating and stirring processes in the cooking machine, ensuring consistent cooking time and even seasoning, thus improving the consistency and stability of the dish's taste.
Smart Images

Figure CN122043985A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of recipe parameter control technology, and in particular to a cooking method and system for an intelligent stir-fry machine based on recipe parameters. Background Technology
[0002] The field of recipe parameter control technology uses preset recipe parameters as the basis for control, and coordinates the control of multiple actuators in cooking equipment. Specifically, this includes heating power control, cooking sequence control, stirring action control, and is linked to seasoning addition control. Recipe parameter control technology uses structured recipe data as its core, transforming the cooking process into a calculable and reproducible control flow. Through parameter constraints, it achieves consistent output in terms of taste, doneness, and stability for different dishes, and is applied to stir-fry equipment in the field of automated cooking equipment.
[0003] The recipe-based intelligent stir-fry machine cooking method calls preset recipe parameters to sequentially execute and conditionally switch multiple control actions of the intelligent stir-fry machine throughout the cooking cycle. The recipe parameters are used as the only control input to define the heating stage of the dish, the duration of each stage, the target temperature range, the stirring frequency value, and are associated with the timing of seasoning addition. The aim is to achieve standardized execution of the stir-frying process through parameterized control, so as to achieve consistent taste and stable cooking degree of the dish.
[0004] Existing technologies use structured recipe data to drive heating power control, cooking sequence control, stirring action control, and are linked to seasoning addition control. Common operating modes employ sequential execution with a few conditional switching. Stage boundaries often rely on a fixed stage sequence and a single trigger condition. Changes in ambient temperature, pot heat capacity, and ingredient addition amount introduce fluctuations in the heating rate. Early or late stage switching causes deviations in the coordination between heating and stirring. Seasoning addition often depends on fixed time points or single timing thresholds. When the number of stirring cycles is not included in the addition determination, insufficient stirring coverage occurs after addition. Liquid seasonings adhere to the pot wall, or powdered seasonings agglomerate, leading to differences in flavor distribution. Recipe parameter verification often remains at the level of single parameters. The upper and lower limit range checks revealed a lack of linkage constraints in the power and duration combination relationship. Low power and short duration combinations resulted in insufficient heat input, while high power and long duration combinations led to localized overheating. When there was a lack of boundary coordination between stages, power and duration jumps occurred. Fluctuations in pot temperature and stirring load combined to affect the consistency of maturity. An example scenario was that when the same stir-fry recipe was started in a low-temperature kitchen, the preheating stage was slow, but the main stir-frying stage was started at a fixed time. The pot temperature did not enter the target range, resulting in insufficient heating in the main stir-frying stage. Seasoning was triggered at the time point, but the number of stirring cycles was insufficient, resulting in uneven seasoning distribution. There was a lack of continuous records to support comparison, with stage number, threshold field, and placement flag as the core. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and proposes a cooking method and system for intelligent stir-fry machines based on recipe parameters.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: a cooking method for an intelligent stir-fry machine based on recipe parameters, comprising the following steps: S1: Based on the stage cooking parameter group, bind the power value, frequency value, and duration value according to the stage number and arrange them in the stage order to obtain the stage control parameter group sequence; S2: Based on the sequence of stage control parameters, compare the stage timing value with the duration value and determine that the pot temperature value is within the temperature range. Using a finite state machine, when the determination is true, select the next stage number and record the switching flag to obtain the stage switching condition set. S3: Based on the stage switching condition set, when the switching flag is negative, determine that the timing value has reached the delivery threshold and the number of stirring cycles has reached the threshold. When the determination is true, open the seasoning bin feeding valve and select the delivery order according to the sequence identifier value to obtain the seasoning trigger sequence. S4: Based on the sequence of stage control parameters, calculate the lower limit of duration multiplied by the lower limit of power and compare it with the heat threshold. Using the AC-3 algorithm, if the comparison is false, select to raise the lower limit of duration or the lower limit of power and shrink the adjacent stage boundary until the boundary remains unchanged to obtain the parameter boundary set. S5: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select power execution value to drive heating plate and select frequency execution value to drive stirring paddle, trigger feeding according to seasoning trigger sequence and switch stages according to stage switching condition set to obtain cooking trajectory sequence.
[0007] As a further embodiment of the present invention, the parameter unit includes a heating power setting value, a stirring frequency setting value, and a stage duration setting value; the switching limiting conditions include a stage timing threshold, upper and lower limits of the stage temperature range, and a target stage number; the control identifier includes a seasoning number, a dispensing sequence identifier value, and a dispensing trigger flag; the value range includes a lower limit of heating power, an upper limit of heating power, and a lower limit of stage duration; and the status record includes a stage number, an executed heating power value, and an executed stirring frequency value.
[0008] As a further aspect of the present invention, the specific steps for generating the stage control parameter group sequence are as follows: Based on the cooking parameter group for each stage, the power value, frequency value, and duration value are read according to the stage number, and the power value, frequency value, and duration value are written into the corresponding stage number field to obtain the stage parameter binding result; Based on the stage parameter binding results, each stage is sorted according to the stage number and the stage sequence index number is written to form a parameter set arranged in order, thus obtaining the stage control parameter group sequence.
[0009] As a further aspect of the present invention, the specific steps for generating the stage switching condition set are as follows: Based on the sequence of stage control parameters, locate the stage timing value, stage duration setting value, pot temperature value, lower limit value, and upper limit value corresponding to the current stage number. Perform a size comparison between the stage timing value and the stage duration setting value, and perform interval judgment between the pot temperature value and the lower limit value and the upper limit value. Summarize the time comparison results and the temperature interval judgment results to obtain the time-temperature comprehensive judgment value. Based on the time-temperature integrated judgment value, a finite state machine is used. When the time comparison result and the temperature range judgment result are both true, the next stage number corresponding to the current stage number is read from the stage control parameter group sequence and written into the target stage number field. When any judgment result is false, the current stage number is written to obtain the stage number pointing result. Based on the stage number pointing result, a stage switching flag is written, and the stage switching flag is combined with the stage timing threshold, lower temperature limit, upper temperature limit, and target stage number to form a set of condition records for stage switching determination, thus establishing a stage switching condition set.
[0010] As a further aspect of the present invention, the finite state machine first establishes a set of states: preheating state, main frying state, reducing state, and end state. It also establishes a one-to-one correspondence between state identifiers and stage numbers. A state transition table is established, and the transition input items (time comparison result and temperature range judgment result) and the transition output item (stage number) are written into it. The current stage number is read and mapped to the current state identifier. The time comparison result and the temperature range judgment result are combined into a binary input vector. When the binary input vector is true, the corresponding output target stage number is retrieved from the state transition table and written into the target stage number field, and the switching flag is set to 1. When the binary input vector contains false values, the corresponding output current stage number is retrieved from the state transition table and written into the target stage number field, and the switching flag is set to zero, thus obtaining the stage number pointing result.
[0011] As a further aspect of the present invention, the specific steps for generating the flavoring trigger sequence are as follows: Based on the stage switching condition set, the current stage number, switching flag, stage timing value, dispensing threshold, stirring cycle count, and cycle threshold are read. The timing value and dispensing threshold, as well as the cycle count and cycle threshold, are judged respectively to obtain the dispensing condition judgment result. Based on the determination result of the release condition, when the determination is true, the seasoning compartment feeding valve is opened, and the seasonings that can be released are sorted according to the sequence identifier value and written into the release order field to obtain the seasoning trigger sequence.
[0012] As a further aspect of the present invention, the specific steps for generating the parameter boundary set are as follows: Based on the sequence of stage control parameters, the lower limit of stage duration, the lower limit of heating power, and the heat threshold corresponding to each stage number are read. The lower limit of stage duration and the lower limit of heating power are multiplied together, and the calculation result is compared with the heat threshold. The state of comparison is recorded as either true or false, and the heat comparison result is obtained. Based on the heat comparison results, when the comparison status is not valid, a single parameter is selected as the adjustment object from the lower limit of the stage duration and the lower limit of the heating power, and the adjustment direction flag and adjustment amplitude value are written. When the comparison status is valid, the hold flag is written to obtain the lower limit parameter adjustment result. Based on the adjustment results of the lower limit parameters, the AC-3 algorithm is used to perform synchronous shrinkage processing on the boundary values of the duration and heating power corresponding to the adjacent stage numbers, and the change of each boundary is recorded. When the change remains zero after continuous shrinkage, a stable flag is written. The boundary records of each stage are summarized to obtain the parameter boundary set.
[0013] As a further aspect of the present invention, the AC-3 algorithm first establishes a set of variable relationships composed of adjacent stage numbers. The stage duration boundary values and heating power boundary values are written into the variable table as independent value intervals. A constraint association table between stages is established and the association relationships are added to the queue to be checked. The association relationships are sequentially retrieved from the queue and a variable interval is selected as the object of inspection. Within the selected variable interval, the values are checked one by one to see if they are consistent with the associated variable interval. Inconsistent values are removed from the variable interval and the upper and lower boundaries of the interval are updated synchronously. When the variable interval is updated, the relationship associated with that variable interval is re-added to the queue to be checked. The value check and interval update are repeated until the queue to be checked is empty. The above consistency check process is completed for the stage duration boundary value interval and the heating power boundary value interval respectively. The interval changes before and after each round of inspection are recorded. When the interval changes remain unchanged in a continuous round of processing, a stability flag is written. The duration boundary intervals and power boundary intervals corresponding to each stage number are summarized to obtain the parameter boundary set.
[0014] As a further aspect of the present invention, the specific steps for generating the cooking trajectory sequence are as follows: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select the power execution value and frequency execution value according to the current stage number and verify that they are within the boundary range, write them into the heating plate and stirring paddle control registers to obtain the stage execution control quantity; Based on the stage execution control quantity, the addition of ingredients is triggered according to the seasoning trigger sequence and written to the addition flag bit. The stage number is updated according to the stage switching condition set and the stage timing value is reset. The stage number, power execution value, frequency execution value and addition flag bit are continuously recorded to obtain the cooking trajectory sequence.
[0015] A recipe-parameter-based intelligent stir-fry machine cooking system, wherein the recipe-parameter-based intelligent stir-fry machine cooking system is used to execute the aforementioned recipe-parameter-based intelligent stir-fry machine cooking method, the system comprising: Stage parameter organization module: Based on the stage cooking parameter group, power value, frequency value, and duration value are bound by stage number and arranged in stage order to obtain the stage control parameter group sequence; Stage switching determination module: Based on the stage control parameter group sequence, compare the stage timing value with the duration value and determine that the pot temperature value is within the temperature range. Using a finite state machine, when the determination is true, select the next stage number and record the switching flag to obtain the stage switching condition set. Seasoning Dispensing Arrangement Module: Based on the stage switching condition set, when the switching flag is negative, it determines that the timing value has reached the dispensing threshold and the number of stirring cycles has reached the threshold. When the determination is true, the seasoning hopper dispensing valve is opened and the dispensing order is selected according to the sequence identifier value to obtain the seasoning trigger sequence. Parameter boundary convergence module: Based on the sequence of stage control parameter groups, calculate the lower limit of duration multiplied by the lower limit of power and compare it with the heat threshold. Use the AC-3 algorithm. If the comparison is false, select to raise the lower limit of duration or the lower limit of power and shrink the adjacent stage boundary until the boundary remains unchanged to obtain the parameter boundary set. Cooking execution record module: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select power execution value to drive heating plate and select frequency execution value to drive stirring paddle, trigger feeding according to seasoning trigger sequence and switch stages according to stage switching condition set to obtain cooking trajectory sequence.
[0016] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, a finite state machine is used to map the time-temperature integrated judgment into the state transition input. The next stage number is written into the target stage number field and the switching flag is written into the stage switching condition set. The stage timing threshold, lower temperature limit, upper temperature limit, and target stage number are solidified into condition records. When the switching flag is negative, the timing value reaches the feeding threshold and the number of stirring cycles reaches the cycle threshold, triggering the opening and closing of the feeding valve and arranging the feeding order according to the sequential identifier value to form a seasoning trigger sequence. The product of the lower limit of stage duration and the lower limit of heating power is compared with the heat threshold. If the condition is not met, a single parameter is selected to be adjusted upward and the boundary of the adjacent stage is shrunk. In this invention, the AC-3 algorithm is used to maintain the consistency of the boundary values of the duration and heating power of adjacent stages. The boundary changes are written to the stability flag and summarized to obtain the parameter boundary set. During the execution stage, the power execution value and frequency execution value are checked in the parameter boundary set according to the current stage number and written to the heating plate and stirring paddle control registers. The seasoning trigger sequence drives the feeding and writes it to the feeding flag. The stage switching condition set drives the stage number update and the stage timing value reset and continuously records the stage control state to form a cooking trajectory sequence. In this invention, the stage switching is changed from a single sequential progression to a combined time and temperature condition triggering, the seasoning addition is changed from a fixed time point to a combined triggering of timing threshold and cycle threshold, the parameter combination is changed from single-point range verification to cross-stage boundary consistency convergence, the power mutation and duration mutation between stages are constrained by boundary shrinkage, the cooking trajectory sequence forms a verifiable record, and the deviation location is completed by comparison based on the record fields. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the workflow of the present invention; Figure 2 This is a system flowchart of the present invention. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0019] Example 1 Please see Figure 1 This invention provides a technical solution: a cooking method for an intelligent stir-fry machine based on recipe parameters, comprising the following steps: S1: Based on the stage cooking parameter group, bind the power value, frequency value, and duration value according to the stage number and arrange them in the stage order to obtain the stage control parameter group sequence; S2: Based on the sequence of stage control parameter groups, compare the stage timing value with the duration value and determine that the pot temperature value is within the temperature range. Use a finite state machine to select the next stage number and record the switching flag when the judgment is true, and obtain the stage switching condition set. S3: Based on the stage switching condition set, when the switching flag is negative, it is determined that the timing value has reached the delivery threshold and the number of stirring cycles has reached the threshold. When the judgment is true, the seasoning bin feeding valve is opened and the delivery order is selected according to the sequential identifier value to obtain the seasoning trigger sequence. S4: Based on the sequence of stage control parameter groups, calculate the lower limit of duration multiplied by the lower limit of power and compare it with the heat threshold. Use the AC-3 algorithm. If the comparison is false, choose to raise the lower limit of duration or the lower limit of power and shrink the adjacent stage boundary until the boundary remains unchanged to obtain the parameter boundary set. S5: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select the power execution value to drive the heating plate and select the frequency execution value to drive the stirring paddle, trigger the feeding according to the seasoning trigger sequence and switch the stage according to the stage switching condition set to obtain the cooking trajectory sequence.
[0020] The parameter unit includes heating power setting value, stirring frequency setting value, and stage duration setting value. The switching limit conditions include stage timing threshold, stage temperature range upper and lower limits, and target stage number. The control identifiers include seasoning number, addition sequence identifier value, and addition trigger flag. The value range includes heating power lower limit value, heating power upper limit value, and stage duration lower limit value. The status record includes stage number, heating power execution value, and stirring frequency execution value.
[0021] The specific steps for generating the control parameter set sequence are as follows: Based on the cooking parameter group for each stage, the power value, frequency value, and duration value are read according to the stage number, and the power value, frequency value, and duration value are written into the corresponding stage number field to obtain the stage parameter binding result; Based on the stage parameter binding results, each stage is sorted according to the stage number and the stage sequence index number is written to form a parameter set arranged in order, thus obtaining the stage control parameter group sequence. Based on the cooking parameter group for each stage, a 32-bit hash of the Merck hash is used to calculate the slot index for each stage number. The seed value is set to 42, the number of slots to 64, and the mask value to 63. The stage number is written to a 4-byte input buffer in little-endian order. The murmur3_32 function is called with the input pointer buffer address 0x00000000, input length 4, and seed value 42 to obtain the hash value. A bitwise AND operation is performed between the hash value and the mask value to obtain the slot index. The slot index points to the row number of the parameter record table. Each row of the parameter record table is 16 bytes. Bytes 0 to 3 write the stage number, bytes 4 to 7 write the power value, bytes 8 to 11 write the frequency value, and bytes 12 to 15 write the duration value. The power value is written as an integer in watts, the frequency value as an integer in revolutions per minute, and the duration value as an integer in seconds. The hash calculation and writing process is repeated to cover all stage numbers, generating the stage parameter binding result. Based on the stage parameter binding results, Tim's sort is used to sort the valid rows of the parameter record table. The sort key is set to the stage number. The comparison function cmp takes the stage number of record A and the stage number of record B as inputs, and returns a negative one if A is less than B, zero if A is equal to B, and a positive one if A is greater than B. The initial run length is set to 32, and the minimum run length is set to 16. The stage number sequence is scanned according to the table row number order and divided into run segments. Insertion sort is performed on each run segment with a step size of 1 and a maximum number of comparisons of 255. n segments are written to the temporary buffer address 0x00001000, with a buffer length of 512 bytes. After completing multiple runs, a merge is performed, with the merge step size increasing from 16 to 32 and then to 64. During the merge, the left or right segment record is selected based on the cmp return value and written to the output buffer address 0x00002000. The output buffer writes back the parameter record table. After sorting, the stage sequence index number 0 is written to the 0th row after sorting, and the stage sequence index number 1 is written to the 1st row. The index number is written in increments according to the row number to generate the stage control parameter group sequence.
[0022] The specific steps for switching the condition set during the generation phase are as follows: Based on the sequence of stage control parameters, locate the stage timing value, stage duration set value, pot temperature value, lower limit value, and upper limit value corresponding to the current stage number. Perform a size comparison between the stage timing value and the stage duration set value, and perform interval judgment between the pot temperature value and the lower limit value and the upper limit value. Summarize the time comparison results and the temperature interval judgment results to obtain the time-temperature comprehensive judgment value. Based on the time-temperature integrated judgment value, a finite state machine is used. When the time comparison result and the temperature range judgment result are both true, the next stage number corresponding to the current stage number is read from the stage control parameter group sequence and written into the target stage number field. When any judgment result is false, the current stage number is written to obtain the stage number pointing to the result. Based on the result indicated by the stage number, the stage switching flag is written, and the stage switching flag is combined with the stage timing threshold, the lower temperature limit, the upper temperature limit, and the target stage number to form a set of condition records for stage switching determination, thus establishing a stage switching condition set. Based on the sequence of stage control parameters, a fixed-point quantization process is used to represent the stage timing value, stage duration set value, boiler temperature value, lower limit value, and upper limit value on the same scale. The time field uses 100 milliseconds as the minimum counting unit and is written into an unsigned integer field, while the temperature field uses 0.1 degrees Celsius as the minimum counting unit and is written into a signed integer field. The current stage number is read to locate the stage timing value field, stage duration set value field, boiler temperature value field, lower limit value field, and upper limit value field. A greater than or equal to condition is performed on the stage timing value and the stage duration set value to obtain the time comparison result bit. A greater than or equal to condition is performed on the boiler temperature value and the lower limit value, and a less than or equal to condition is performed on the boiler temperature value and the upper limit value to obtain the temperature range judgment result bit. The time comparison result bit and the temperature range judgment result bit are concatenated bit by bit into a two-bit code and written into the judgment register to generate a time-temperature comprehensive judgment value. Based on the comprehensive time-temperature judgment value, a table-driven finite state machine is used to calculate the stage number pointer. A set of state enumeration values is established and written into the preheating state, main stir-fry state, reducing state, and end state. A mapping table between stage number and state enumeration value is established and written into four rows of mapping records. A set of input binary codes is established and written into four input code values. A transition table is established and the output stage number is written into rows and columns. The row index uses the current state enumeration value, and the column index uses the input binary code. Two types of outputs are written into the transition table cell: when the input binary code is equal to true, the next stage number is written; when the input binary code is equal to true / false, false-true, or false-false, the current stage number is written. The current stage number is read and mapped to the current state enumeration value. The next stage number is read and written into the target cell of the transition table. The comprehensive time-temperature judgment value is read to obtain the input binary code and the target stage number is obtained by indexing the transition table. The target stage number is written into the target stage number field to generate the stage number pointer result. Based on the stage number pointer, a fixed-length condition record arrangement process is used to combine and write condition fields. The condition record length is set to twelve bytes and divided into a switching flag field, a target stage number field, a stage timing threshold field, a lower temperature limit field, a higher temperature limit field, a current stage number field, and a verification field. The target stage number and the current stage number are read, and an equality check is performed between the target stage number and the current stage number. If they are equal, the switching flag is written to zero; if they are not equal, the switching flag is written to one. The switching flag, target stage number, stage timing threshold, lower temperature limit, higher temperature limit, and current stage number are written to the record buffer in byte order. A CRC16 check process is used to perform a byte-by-byte XOR and bit-by-bit right shift operation on the first ten bytes of the record buffer and write the results to the verification field. The record buffer is written to the condition record area according to the record index and the record index is incremented to form a set of condition records for stage switching judgment, thus establishing a stage switching condition set.
[0023] The finite state machine first establishes a set of states: preheating, main cooking, reducing, and ending. It also establishes a one-to-one correspondence between state identifiers and stage numbers. A state transition table is created, and the transition input items (time comparison result and temperature range judgment result) are written in, along with the transition output item (stage number). The current stage number is read and mapped to the current state identifier. The time comparison result and temperature range judgment result are combined into a binary input vector. When the binary input vector is true, the corresponding output target stage number is retrieved from the state transition table and written into the target stage number field, with the switching flag set to 1. When the binary input vector contains false values, the corresponding output current stage number is retrieved from the state transition table and written into the target stage number field, with the switching flag set to zero, thus obtaining the stage number pointing to the desired result.
[0024] The specific steps for generating the flavoring trigger sequence are as follows: Based on the stage switching condition set, the current stage number, switching flag, stage timing value, dispensing threshold, stirring cycle count, and cycle threshold are read. The timing value and dispensing threshold, as well as the cycle count and cycle threshold, are judged respectively to obtain the dispensing condition judgment result. Based on the determination result of the release condition, when the determination is true, the seasoning compartment feeding valve is opened, and the seasonings that can be released are sorted according to the sequence identifier value and written into the release order field to obtain the seasoning trigger sequence; Based on the stage switching condition set, a short-circuit Boolean evaluation process is used to determine and configure the current stage number, switching flag, stage timing value, dispensing threshold, stirring cycle count, and cycle threshold. The determination order is set as follows: switching flag priority 1, timing comparison priority 2, and cycle comparison priority 3. If the switching flag value is zero, it enters the subsequent comparison; if the switching flag value is one, it is directly written to the determination code zero. The timing comparison uses a greater than or equal to determination and writes the determination bit to bit zero. The cycle comparison uses a greater than or equal to determination and writes the determination bit to bit one. A two-bit determination code mapping table is set so that zero corresponds to no, zero corresponds to no, one-zero corresponds to no, and one-one corresponds to true. The comparison result of the stage timing value and the dispensing threshold is written to bit zero. The comparison result of the stirring cycle count and the cycle threshold is written to bit one. The two-bit determination code is shifted left by one bit by bit and bitwise ORed with bit zero. The resulting two-bit determination code index mapping table is used to obtain the determination flag. The determination flag and the current stage number are written together into the determination record field to generate the dispensing condition determination result. Based on the release condition determination result, a binary heap sorting process is used to arrange the releaseable seasonings in order and drive the seasoning hopper valve. The releaseable seasoning list has a capacity of sixteen. The list element fields include seasoning number, sequence identifier value, and release pulse width value. When the release condition determination result is true, the releaseable seasonings are written into the list one by one and the sequence identifier value is written. When constructing the min-heap, the array index starts from one. The parent node index is the current index divided by two, the left child node index is the current index multiplied by two, and the right child node index is the current index multiplied by two plus one. The comparison key is the sequence identifier value. Items are filtered upwards until the parent node sequence identifier value is less than or equal to the child node sequence identifier value. After the heap is built, the top element of the heap is retrieved and filtered downwards in a loop. The extracted elements are written into the release order field and simultaneously into the seasoning number field. The release pulse width value ranges from fifty to five hundred milliseconds and is written into the valve control pulse register field according to the element field. The valve opening control bit is written as one and written as zero after the pulse width is reached. Multiple seasonings are written in the heap sort output order to generate the seasoning trigger sequence.
[0025] The specific steps for generating the parameter boundary set are as follows: Based on the sequence of stage control parameters, the lower limit of stage duration, the lower limit of heating power, and the heat threshold corresponding to each stage number are read. The lower limit of stage duration and the lower limit of heating power are multiplied together, and the calculation result is compared with the heat threshold. The state of comparison is recorded as valid or invalid, and the heat comparison result is obtained. Based on the heat comparison results, when the comparison status is not valid, a single parameter is selected as the adjustment object from the lower limit of the stage duration and the lower limit of the heating power, and the adjustment direction flag and adjustment amplitude value are written. When the comparison status is valid, the hold flag is written to obtain the lower limit parameter adjustment result. Based on the lower limit parameter adjustment results, the AC-3 algorithm is used to perform synchronous shrinkage processing on the boundary values of the duration and heating power of adjacent stage numbers, and the change of each boundary is recorded. When the change remains zero after continuous shrinkage, a stability flag is written. The boundary records of each stage are summarized to obtain the parameter boundary set. Based on the sequence of stage control parameters, a saturated fixed-point product comparison process is used to uniformly process the lower limit of stage duration, lower limit of heating power, and heat threshold corresponding to each stage number. The lower limit of stage duration is converted into an integer sequence in 1-second increments, the lower limit of heating power is converted into an integer sequence in 10-watt increments, and the heat threshold is converted into an integer sequence in 100-unit increments. The lower limit of stage duration and lower limit of heating power are expanded into 64-bit product registers and written into the product register field. When the product register field is greater than 4294967295, the saturated upper limit value of 4294967295 is written. The product register field and the heat threshold are compared with a greater than or equal to condition and written to the comparison flag bit. When the comparison flag bit is 1, the condition code 1 is written; when the comparison flag bit is 0, the condition code 0 is written. The stage number, product register field, heat threshold, and condition code are written into the comparison record area and the record index is incremented in order of stage number to obtain the heat comparison result. Based on the heat comparison results, a gap-first univariate correction process is adopted to select and arrange the comparison status and adjustment object. The status code of each comparison record is read. When the status code is 0, the lower limit of the stage duration and the lower limit of the heating power are read, and the heat threshold is read. The gap value is calculated and written into the gap field. The gap field is sorted from largest to smallest and a gap number is written. Processing is performed sequentially according to the gap number. The upper limit of the allowed adjustment of the lower limit of the stage duration and the upper limit of the allowed adjustment of the lower limit of the heating power are read and written into the adjustable range field. The variable with the larger adjustable range is selected as the adjustment object and written into the adjustment object code. A value of 1 in the adjustment object code indicates the stage duration. The lower limit value, with the adjustment object code set to 2, indicates the lower limit of heating power. The adjustment direction flag is set to 1. The adjustment amplitude value is written using a fixed step table. The lower limit of the stage duration is stepped in 1 second, and the lower limit of the heating power is stepped in 10 watts. The number of steps is determined according to the size of the gap field and written to the number of steps field. When the status code is 1, the hold flag is set to 1, the adjustment object code is set to 0, the adjustment direction flag is set to 0, and the adjustment amplitude value is set to 0. The stage number, hold flag, adjustment object code, adjustment direction flag, adjustment amplitude value, and number of steps are written to the adjustment record area to obtain the lower limit parameter adjustment result. Based on the lower limit parameter adjustment results, the AC-3 algorithm is used to perform consistency maintenance and synchronous shrinkage processing on the boundary values of the duration and heating power of adjacent stage numbers. A variable domain table is established, and the boundary value domain of each stage duration is discretized into no more than 256 candidate values in 1-second increments. Similarly, the boundary value domain of each stage heating power is discretized into no more than 256 candidate values in 10-watt increments. A constraint table is established and includes adjacent stage duration boundary adjacency constraints, adjacent stage heating power boundary adjacency constraints, and stage heat constraints. An arc queue is established, and each constraint in the constraint table generates a directed arc pair which is written to the queue. Arc pairs are retrieved from the arc queue, and the variable domain to be checked is selected. The process is then repeated. Each candidate value of the inspected variable domain is checked for consistency with the candidate values of the associated variable domain. Inconsistent candidate values are deleted from the inspected variable domain and written to the deletion count. When the deletion count is greater than 0, the upper and lower boundaries of the inspected variable domain are updated and the associated arc pairs of the inspected variable domain are rewritten into the arc queue. After the arc queue is cleared, one round of consistency maintenance is completed. The change in the upper and lower boundaries of each variable domain is recorded and written into the change field. The arc queue processing is repeated until all values in the change field are 0 for one consecutive round. The stability flag is written to 1. The upper and lower boundaries of the duration boundary value domain and the upper and lower boundaries of the heating power boundary value domain corresponding to each stage number are written into the boundary record area in the order of stage number to obtain the parameter boundary set.
[0026] The AC-3 algorithm first establishes a set of variable relationships composed of adjacent stage numbers. Stage duration boundary values and heating power boundary values are written into a variable table as independent value intervals. A constraint association table between stages is established, and the association relationships are added to a queue to be checked. Association relationships are sequentially retrieved from the queue, and a variable interval is selected as the inspection object. Within the selected variable interval, each value is checked to ensure consistency with the associated variable interval. Inconsistent values are removed from the variable interval, and the upper and lower boundaries of the interval are updated synchronously. When a variable interval is updated, the associated relationship is re-added to the queue to be checked. This process of value checking and interval updating is repeated until the queue to be checked is empty. The consistency check process is performed on both the stage duration boundary value interval and the heating power boundary value interval. The interval changes before and after each round of checking are recorded. When the interval changes remain unchanged in a continuous round of processing, a stability flag is written. Finally, the duration boundary intervals and power boundary intervals corresponding to each stage number are summarized to obtain the parameter boundary set.
[0027] The specific steps for generating the cooking trajectory sequence are as follows: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select the power execution value and frequency execution value according to the current stage number and verify that they are within the boundary range, write them into the heating plate and stirring paddle control registers to obtain the stage execution control quantity; Based on the stage execution control quantity, the feeding is triggered according to the seasoning trigger sequence and written to the feeding flag bit. The stage number is updated according to the stage switching condition set and the stage time value is reset. The stage number, power execution value, frequency execution value and feeding flag bit are continuously recorded to obtain the cooking trajectory sequence. Based on the stage switching condition set, seasoning trigger sequence, and parameter boundary set, a pinch mapping and discrete PID control process is used to select and configure the power execution value and frequency execution value for the current stage number, and perform boundary verification and register loading. The lower power limit, upper power limit, lower frequency limit, and upper frequency limit within the parameter boundary set for the current stage number are read. The power setpoint and frequency setpoint within the stage control parameter group sequence are read. For power setpoints less than the lower power limit, a power execution value equal to the lower power limit is written; for power setpoints greater than the upper power limit, a power execution value equal to the upper power limit is written; for frequency setpoints less than the lower frequency limit, a frequency execution value equal to the lower frequency limit is written; for frequency setpoints greater than the upper frequency limit, a frequency execution value equal to the upper frequency limit is written. The power PWM period is set to 10. Milliseconds, set the PWM count upper limit to 1000, set the PWM duty cycle count to equal the power execution value converted proportionally to the power upper limit value and take integers from 0 to 1000, write to the heating plate control register address 0x40001000 fields, PWM cycle count 10000 fields, duty cycle count field enable bit 1, set the stirring motor speed control cycle to 20 milliseconds, set discrete PID parameters Kp18, Ki2, Kd1, set the integral limit to 300, set the output limit to 0 to 1000, read the current stirring speed feedback value and calculate the deviation value with the frequency execution value, calculate the control output count according to the PID parameters and execute the integral limit and output limit, write to the stirring paddle control register address 0x40002000 fields, target speed field, control output field enable bit 1, generate stage execution control quantity; Based on the stage-based execution control, a sequential triggering and circular buffer writing process is used to trigger the addition of ingredients to the seasoning trigger sequence and record the cooking trajectory. This includes writing the addition flag and updating the stage number. The process reads the seasoning number corresponding to the current sequence number and the valve control pulse width from the seasoning trigger sequence and writes them to the seasoning number field, pulse width field, and valve opening bit 1 in the addition valve control register address 0x40003000. The pulse width is an integer from 100 to 600 milliseconds. At the end of the pulse, the valve opening bit 0 is written, and the addition flag bit 1 is written to the addition flag register address 0x40003010 field. Finally, the target stage number field and the switching flag field from the stage switching condition set are read. The switching flag is set to 1 and written to the current stage number register address 0x40000010, where the stage number equals the target stage number. The switching flag is set to 0 and written to keep the stage number unchanged. The stage timing register address 0x40000020 is written with a timing value of 0 to complete the reset. A trajectory recording unit with a length of 16 bytes is established and the stage number, power execution value, frequency execution value, deployment flag, and timestamp fields are written to it. A circular buffer with a capacity of 2048 bytes is established and the initial value of the write pointer is set to 0. 16 bytes of records are written according to the write pointer and the write pointer is incremented by 16. When the write pointer reaches 2048, 0 is written. Multiple records are written continuously to obtain the cooking trajectory sequence.
[0028] A recipe-parameter-based intelligent stir-fry machine cooking system is used to execute the aforementioned recipe-parameter-based intelligent stir-fry machine cooking method. The system includes: Stage parameter organization module: Based on the stage cooking parameter group, power value, frequency value, and duration value are bound by stage number and arranged in stage order to obtain the stage control parameter group sequence; Stage switching determination module: Based on the stage control parameter group sequence, compare the stage timing value with the duration value and determine that the pot temperature value is within the temperature range. Using a finite state machine, when the determination is true, select the next stage number and record the switching flag to obtain the stage switching condition set. Seasoning dispensing and scheduling module: Based on the stage switching condition set, when the switching flag is negative, it determines that the timing value has reached the dispensing threshold and the number of stirring cycles has reached the threshold. When the determination is true, the seasoning hopper dispensing valve is opened and the dispensing order is selected according to the sequence identifier value to obtain the seasoning trigger sequence. Parameter boundary convergence module: Based on the stage control parameter set sequence, calculate the lower limit of duration multiplied by the lower limit of power and compare it with the heat threshold. The AC-3 algorithm is used. When the comparison is false, either the lower limit of duration or the lower limit of power is raised and the adjacent stage boundary is shrunk back to the boundary unchanged to obtain the parameter boundary set. Cooking execution record module: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select power execution value to drive heating plate and select frequency execution value to drive stirring paddle, trigger feeding according to seasoning trigger sequence and switch stages according to stage switching condition set to obtain cooking trajectory sequence.
[0029] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.
Claims
1. A cooking method for an intelligent stir-fry machine based on recipe parameters, characterized in that, Includes the following steps: S1: Based on the stage cooking parameter group, bind the power value, frequency value, and duration value according to the stage number and arrange them in the stage order to obtain the stage control parameter group sequence; S2: Based on the sequence of stage control parameters, compare the stage timing value with the duration value and determine that the pot temperature value is within the temperature range. Using a finite state machine, when the determination is true, select the next stage number and record the switching flag to obtain the stage switching condition set. S3: Based on the stage switching condition set, when the switching flag is negative, determine that the timing value has reached the delivery threshold and the number of stirring cycles has reached the threshold. When the determination is true, open the seasoning bin feeding valve and select the delivery order according to the sequence identifier value to obtain the seasoning trigger sequence. S4: Based on the sequence of stage control parameters, calculate the lower limit of duration multiplied by the lower limit of power and compare it with the heat threshold. Using the AC-3 algorithm, if the comparison is false, select to raise the lower limit of duration or the lower limit of power and shrink the adjacent stage boundary until the boundary remains unchanged to obtain the parameter boundary set. S5: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select power execution value to drive heating plate and select frequency execution value to drive stirring paddle, trigger feeding according to seasoning trigger sequence and switch stages according to stage switching condition set to obtain cooking trajectory sequence.
2. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The parameter unit includes a heating power setting value, a stirring frequency setting value, and a stage duration setting value. The switching limitation conditions include a stage timing threshold, upper and lower limits of the stage temperature range, and a target stage number. The control identifier includes a seasoning number, a dosing sequence identifier value, and a dosing trigger flag. The value range includes a lower limit of heating power, an upper limit of heating power, and a lower limit of stage duration. The status record includes a stage number, an executed heating power value, and an executed stirring frequency value.
3. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The specific steps for generating the stage control parameter set sequence are as follows: Based on the cooking parameter group for each stage, the power value, frequency value, and duration value are read according to the stage number, and the power value, frequency value, and duration value are written into the corresponding stage number field to obtain the stage parameter binding result; Based on the stage parameter binding results, each stage is sorted according to the stage number and the stage sequence index number is written to form a parameter set arranged in order, thus obtaining the stage control parameter group sequence.
4. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The specific steps for generating the stage switching condition set are as follows: Based on the sequence of stage control parameters, locate the stage timing value, stage duration setting value, pot temperature value, lower limit value, and upper limit value corresponding to the current stage number. Perform a size comparison between the stage timing value and the stage duration setting value, and perform interval judgment between the pot temperature value and the lower limit value and the upper limit value. Summarize the time comparison results and the temperature interval judgment results to obtain the time-temperature comprehensive judgment value. Based on the time-temperature integrated judgment value, a finite state machine is used. When the time comparison result and the temperature range judgment result are both true, the next stage number corresponding to the current stage number is read from the stage control parameter group sequence and written into the target stage number field. When any judgment result is false, the current stage number is written to obtain the stage number pointing result. Based on the stage number pointing result, a stage switching flag is written, and the stage switching flag is combined with the stage timing threshold, lower temperature limit, upper temperature limit, and target stage number to form a set of condition records for stage switching determination, thus establishing a stage switching condition set.
5. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The finite state machine first establishes a set of states: preheating state, main frying state, reducing state, and end state. It also establishes a one-to-one correspondence between state identifiers and stage numbers. A state transition table is created, and the transition input items (time comparison result and temperature range judgment result) and the transition output item (stage number) are written into it. The current stage number is read and mapped to the current state identifier. The time comparison result and temperature range judgment result are combined into a binary input vector. When the binary input vector is true, the corresponding output target stage number is retrieved from the state transition table and written into the target stage number field, with the switching flag set to 1. When the binary input vector contains false values, the corresponding output current stage number is retrieved from the state transition table and written into the target stage number field, with the switching flag set to zero, thus obtaining the stage number pointing to the result.
6. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The specific steps for generating the flavoring trigger sequence are as follows: Based on the stage switching condition set, the current stage number, switching flag, stage timing value, dispensing threshold, stirring cycle count, and cycle threshold are read. The timing value and dispensing threshold, as well as the cycle count and cycle threshold, are judged respectively to obtain the dispensing condition judgment result. Based on the determination result of the delivery condition, when the determination is true, the seasoning compartment delivery valve is opened, and the seasonings that can be delivered are sorted according to the sequence identifier value and written into the delivery order field to obtain the seasoning trigger sequence.
7. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The specific steps for generating the parameter boundary set are as follows: Based on the sequence of stage control parameters, the lower limit of stage duration, the lower limit of heating power, and the heat threshold corresponding to each stage number are read. The lower limit of stage duration and the lower limit of heating power are multiplied together, and the calculation result is compared with the heat threshold. The state of comparison is recorded as either true or false, and the heat comparison result is obtained. Based on the heat comparison results, when the comparison status is not valid, a single parameter is selected as the adjustment object from the lower limit of the stage duration and the lower limit of the heating power, and the adjustment direction flag and adjustment amplitude value are written. When the comparison status is valid, the hold flag is written to obtain the lower limit parameter adjustment result. Based on the adjustment results of the lower limit parameters, the AC-3 algorithm is used to perform synchronous shrinkage processing on the boundary values of the duration and heating power corresponding to the adjacent stage numbers, and the change of each boundary is recorded. When the change remains zero after continuous shrinkage, a stable flag is written. The boundary records of each stage are summarized to obtain the parameter boundary set.
8. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The AC-3 algorithm first establishes a set of variable relationships composed of adjacent stage numbers. The stage duration boundary values and heating power boundary values are written into a variable table as independent value intervals. A constraint association table between stages is established and the association relationships are added to the queue to be checked. The association relationships are taken out from the queue one by one, and a variable interval is selected as the object of inspection. In the selected variable interval, the values are checked one by one to see if they are consistent with the associated variable interval. Inconsistent values are removed from the variable interval and the upper and lower boundaries of the interval are updated synchronously. When the variable interval is updated, the relationship associated with the variable interval is added back to the queue to be checked. The value check and interval update are repeated until the queue to be checked is empty. The above consistency check process is performed on the stage duration boundary value interval and the heating power boundary value interval respectively. The interval changes before and after each round of inspection are recorded. When the interval changes remain unchanged in a continuous round of processing, a stability flag is written. The duration boundary interval and power boundary interval corresponding to each stage number are summarized to obtain the parameter boundary set.
9. The cooking method of the intelligent stir-fry machine based on recipe parameters according to claim 1, characterized in that, The specific steps for generating the cooking trajectory sequence are as follows: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select the power execution value and frequency execution value according to the current stage number and verify that they are within the boundary range, write them into the heating plate and stirring paddle control registers to obtain the stage execution control quantity; Based on the stage execution control quantity, the addition of ingredients is triggered according to the seasoning trigger sequence and written to the addition flag bit. The stage number is updated according to the stage switching condition set and the stage timing value is reset. The stage number, power execution value, frequency execution value and addition flag bit are continuously recorded to obtain the cooking trajectory sequence.
10. A smart stir-fry machine cooking system based on recipe parameters, characterized in that, The cooking method of the intelligent stir-fry machine based on recipe parameters according to any one of claims 1-9, the system comprising: Stage parameter organization module: Based on the stage cooking parameter group, power value, frequency value, and duration value are bound by stage number and arranged in stage order to obtain the stage control parameter group sequence; Stage switching determination module: Based on the stage control parameter group sequence, compare the stage timing value with the duration value and determine that the pot temperature value is within the temperature range. Using a finite state machine, when the determination is true, select the next stage number and record the switching flag to obtain the stage switching condition set. Seasoning Dispensing Arrangement Module: Based on the stage switching condition set, when the switching flag is negative, it determines that the timing value has reached the dispensing threshold and the number of stirring cycles has reached the threshold. When the determination is true, the seasoning hopper dispensing valve is opened and the dispensing order is selected according to the sequence identifier value to obtain the seasoning trigger sequence. Parameter boundary convergence module: Based on the sequence of stage control parameter groups, calculate the lower limit of duration multiplied by the lower limit of power and compare it with the heat threshold. Use the AC-3 algorithm. If the comparison is false, select to raise the lower limit of duration or the lower limit of power and shrink the adjacent stage boundary until the boundary remains unchanged to obtain the parameter boundary set. Cooking execution record module: Based on the stage switching condition set, seasoning trigger sequence and call parameter boundary set, select power execution value to drive heating plate and select frequency execution value to drive stirring paddle, trigger feeding according to seasoning trigger sequence and switch stages according to stage switching condition set to obtain cooking trajectory sequence.