Disclosure of Invention
The invention provides a weight-based disinfection equipment control method, a weight-based disinfection equipment control device, a disinfection equipment and a weight-based disinfection medium, which are used for realizing the accurate determination of a target time period in a use waiting stage by recording the total weight change of tableware and updating each preset meal period adopted in the day according to the actual meal habit of a user, and improving the automation and the intellectualization of the disinfection equipment.
According to an aspect of the present invention, there is provided a method of controlling a weight-based sterilization apparatus, the sterilization apparatus including a sterilization assembly, a temperature control assembly, and a weight detection assembly;
The control method comprises the following steps:
The disinfection device is controlled to execute corresponding preset actions according to the stages of the real-time in each preset dining period updated every day according to the previous day, wherein the preset dining period comprises a waiting stage, and the preset actions corresponding to the waiting stage comprise controlling the disinfection component to stand and controlling the temperature control component to execute a heat preservation program;
Detecting and recording the total weight change of the tableware every day by utilizing a weight detection component;
determining the actual time period of a use waiting stage in each preset dining period formed by a user after the use on the same day according to the total weight change of the tableware;
When the actual time period is coincident with the initial time period of the waiting period in the preset meal period updated in the previous day, calculating the target time period of the waiting period in each preset meal period according to the coincident actual time period and initial time period, so as to update each preset meal period adopted in the current day.
Optionally, the preset meal period further comprises a use preparation stage, wherein the use waiting stage is positioned after the use preparation stage in the time dimension;
When the actual time period is coincident with the initial time period of the waiting period in the preset meal period updated on the previous day, calculating the target time period of the waiting period in each preset meal period according to the coincident actual time period and initial time period so as to update each preset meal period adopted on the current day, and further comprising:
On the basis of the target time period of the use waiting phase in each preset dining period, the first preset time length is used as the target time period of the use preparation phase in each preset dining period in advance, so that each preset dining period adopted on the day is updated.
Optionally, each preset dining period updated every day according to the previous day, and controlling the disinfection device to execute a corresponding preset action according to the stage of the real-time in each preset dining period, including:
presetting the time of a disinfection program according to the total weight of the tableware, wherein the time of the disinfection program is positively related to the total weight of the current tableware and is smaller than a first preset time period;
When the real-time is in the use preparation stage, the disinfection equipment is controlled to continuously execute the disinfection program once according to the use time of the preset disinfection program.
Optionally, determining the actual time period of the waiting period for use in each preset dining period formed by the user after the use on the same day according to the total weight change of the tableware comprises:
determining the moment when the total weight of the tableware is reduced as the starting moment;
determining the moment when the total weight of the tableware is increased after the initial moment and the total weight of the tableware is continuously not increased within a second preset time period after the initial moment as the termination moment;
The period from the start time to the end time is determined as the actual period of time during which the user is using the waiting phase in a preset meal period formed after the use of the day.
Optionally, determining the period from the start time to the end time as the actual period of the waiting period used by the user in a preset meal period formed after the use of the day includes:
and determining the time period which satisfies the condition that the total weight change range of the tableware exceeds the preset weight threshold value in the time period from the starting time to the ending time of each group as the actual time period of the waiting period used by the user in one preset dining period formed after the use of the tableware in the day.
Optionally, when there is coincidence between the actual time period and the initial time period of the waiting period in the preset meal period updated on the previous day, calculating, according to the actual time period and the initial time period, the target time period of the waiting period in each preset meal period, so as to update each preset meal period adopted on the current day, including:
When the actual time period and the initial time period are overlapped, calculating the overlap ratio of the actual time period and the initial time period;
determining a corresponding preset first iteration correction value according to the coincidence ratio of the actual time period and the initial time period, wherein the preset first iteration correction value is positively correlated with the coincidence ratio;
Calculating an actual iteration value according to the first iteration correction value on the basis of the initial iteration value, wherein the use waiting stage in each preset dining period corresponds to the preset iteration value, the iteration value corresponding to the initial time period of the use waiting stage in the preset dining period updated in the previous day is the initial iteration value, and the iteration value corresponding to the actual time period of the use waiting stage in the preset dining period formed after the use of the user in the current day is the actual iteration value;
Respectively calculating weights of the corresponding initial time period and actual time period relative to the target time period according to the initial iteration value and the actual iteration value;
And determining the relative positions of the target time period and the initial time period and the actual time period in the time dimension according to the weights of the initial time period and the actual time period relative to the target time period so as to determine the target time period.
Optionally, calculating the coincidence ratio of the actual time period and the initial time period includes:
calculating a time intersection and a time union of the actual time period and the initial time period;
And calculating the duration proportion of the time intersection and the time union as the coincidence ratio of the actual time period and the initial time period.
Optionally, the preset first iteration correction value satisfies:
The corresponding first iteration correction value is positive when the coincidence degree is in a first preset coincidence degree interval, and the first iteration correction value is positively correlated with the coincidence degree;
The corresponding first iteration correction value is negative when the coincidence degree is in the second preset coincidence degree interval, and the absolute value of the first iteration correction value is in negative correlation with the coincidence degree;
The first preset overlap ratio interval and the second preset overlap ratio interval are not overlapped, and the overlap ratio of the first preset overlap ratio interval is larger than that of the second preset overlap ratio interval.
Optionally, the iteration value has a preset upper limit value and a preset lower limit value;
on the basis of the initial iteration value, calculating an actual iteration value according to the first iteration correction value, including:
When the initial iteration value reaches a preset upper limit value and the first iteration correction value is positive, the actual iteration value is assigned to the preset upper limit value;
And when the initial iteration value reaches a preset lower limit value and the first iteration correction value is negative, assigning the actual iteration value as the preset lower limit value.
Optionally, according to the initial iteration value and the actual iteration value, weights of the corresponding initial time period and the corresponding actual time period relative to the target time period are calculated respectively, including:
calculating the weight Q of the initial time period relative to the target time period according to the formula Q=D/(D+D');
Calculating the weight Q 'of the actual time period relative to the target time period according to the formula Q' =d '/(d+d');
wherein D is an initial iteration value and D' is an actual iteration value.
Optionally, determining the relative positions of the target time period and the initial time period and the actual time period in the time dimension according to the weights of the initial time period and the actual time period relative to the target time period, so as to determine the target time period includes:
The initial and end times T2 "and T3" of the target period are calculated according to the following formula T2 "/(t2+t2 ') =q/(q+q'), T3"/(t3+t3 ') =q/(q+q'), respectively, where T2 and T3 are the initial and end times of the initial period, respectively, and T2 'and T3' are the initial and end times of the actual period, respectively.
Optionally, when there is coincidence between the actual time period and the initial time period of the waiting period in the preset meal period updated on the previous day, calculating, according to the actual time period and the initial time period, the target time period of the waiting period in each preset meal period, so as to update each preset meal period adopted on the current day, including:
When the actual time period is coincident with the initial time period of the use waiting period in the two preset meal periods updated in the previous day, calculating the target time period of the use waiting period in the two preset meal periods according to the coincident actual time period and initial time period respectively so as to update each preset meal period adopted in the current day.
Optionally, when the actual time period is coincident with the initial time period of the waiting period in the two preset meal periods updated on the previous day, calculating the target time period of the waiting period in the two preset meal periods according to the actual time period and the initial time period, which are coincident, so as to update each preset meal period adopted on the current day, and further including:
When the target time periods of the use waiting phases in the two preset meal periods are overlapped, merging the two preset meal periods into one preset meal period, and calculating the target time periods of the use waiting phases in the merged preset meal period according to the target time periods of the use waiting phases in the two preset meal periods.
Optionally, after determining the actual time period of the waiting period for use in each preset dining period formed after the user uses the tableware on the same day according to the total weight change of the tableware, the method further comprises:
When the initial time period of the use waiting period in the preset dining period updated in the previous day is not overlapped with the actual time period of the use waiting period in each preset dining period formed by the user after the use of the current day, correcting the initial iteration value by utilizing a preset second iteration correction value so that the initial iteration value is lower than a preset iteration value threshold after the initial time period is not overlapped with the actual time period of the current day in the continuous preset days and the preset second iteration correction value is utilized, wherein the use waiting period in each preset dining period corresponds to the preset iteration value, and the iteration value corresponding to the initial time period of the use waiting period in the preset dining period updated in the previous day is the initial iteration value;
and deleting the initial time period and the preset meal period corresponding to the initial time period when the initial iteration value is lower than the preset iteration value threshold.
According to another aspect of the present invention, there is provided a weight-based sterilizing apparatus controlling device, the sterilizing apparatus including a sterilizing assembly, a temperature controlling assembly and a weight detecting assembly;
The control device comprises:
The control module is used for controlling the disinfection equipment to execute corresponding preset actions according to the stages of the real-time in each preset dining period updated every day according to the previous day, wherein the preset dining period comprises a waiting stage, and the preset actions corresponding to the waiting stage comprise controlling the disinfection assembly to stand and controlling the temperature control assembly to execute a heat preservation program;
the detection and recording module is used for detecting and recording the total weight change of the tableware every day by utilizing the weight detection assembly;
the actual time period determining module is used for determining the actual time period of the use waiting period in each preset dining period formed after the user uses the tableware on the same day according to the total weight change of the tableware;
and the first calculation module is used for calculating the target time period of the use waiting phase in each preset dining period according to the actual time period and the initial time period which are overlapped when the actual time period is overlapped with the initial time period of the use waiting phase in the preset dining period updated on the previous day so as to update each preset dining period adopted on the current day.
According to another aspect of the present invention, there is provided a sterilizing apparatus including:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the weight-based disinfection apparatus control method described above.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method of controlling a weight-based disinfection apparatus according to any one of the embodiments of the present invention.
According to the technical scheme, corresponding preset actions are executed by the disinfection equipment under the control of the disinfection equipment according to the stage of each preset dining period updated every day and the real-time in each preset dining period, the total weight change of tableware is detected and recorded every day by utilizing the weight detection component, the actual time period of the use waiting stage in each preset dining period formed after the user uses the tableware on the same day is determined according to the total weight change of the tableware, and when the actual time period is coincident with the initial time period of the use waiting stage in the preset dining period updated on the previous day, the target time period of the use waiting stage in each preset dining period is calculated according to the actual time period and the initial time period which are coincident, so that each preset dining period adopted on the day is updated. By means of the method, the total weight change of the tableware is determined through the weight detection component, so that the actual time period of the actual dining time of the user on the same day is determined, the accurate determination of the target time period is achieved according to the actual time period and the initial time period of the dining period of the user updated on the same day, the target time period is automatically updated to the initial time period of each preset dining period on the same day, the automatic disinfection process of the disinfection equipment is achieved, the working time of the disinfection equipment is optimized, each preset dining period is enabled to be more suitable for the actual dining habit of the user, the conflict between the working process of the disinfection equipment and the actual dining time of the user is avoided, the automation and the intellectualization of the disinfection equipment are improved, and the experience of the user is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
In an embodiment, fig. 1 is a schematic structural diagram of a disinfection apparatus provided by the embodiment of the present invention, fig. 2 is a schematic structural diagram of a second disinfection apparatus provided by the embodiment of the present invention, fig. 3 is a flowchart of a method for controlling a weight-based disinfection apparatus provided by the embodiment of the present invention, and fig. 4 is a schematic structural diagram of a preset meal period provided by the embodiment of the present invention, where the method may be adapted to automatically update an initial period updated on a previous day by precisely determining a target period of use waiting period in the disinfection apparatus, so that each preset meal period of the disinfection apparatus is more adapted to an actual meal time of a user. As shown in fig. 1 to 4, the sterilizing apparatus may be a sterilizing cabinet, and the sterilizing apparatus may include a sterilizing unit, a temperature control unit and a weight detecting unit, wherein the sterilizing unit may include an ultraviolet lamp 20 capable of generating ultraviolet rays for sterilizing tableware, the sterilizing unit may also include a heating lamp 30 for heating a cavity to remove moisture from the surface of the tableware and to have a certain sterilizing effect, the temperature control unit may include a temperature sensor 40 for detecting an ambient temperature in the sterilizing apparatus to thereby identify the surface temperature of the tableware in the sterilizing apparatus, the weight detecting unit may include a weight sensor 50 at the bottom of the sterilizing apparatus to record a change value of the total weight of the sterilizing apparatus, and the weight detected by the weight sensor 50 is only the actual weight of the tableware since the system has set the total net weight to the peeling process. The control method comprises the following steps:
S110, controlling the disinfection equipment to execute corresponding preset actions according to the stages of the real-time in each preset dining period according to each preset dining period updated every day before.
Wherein, referring to fig. 4, the preset meal period includes a waiting period, and the preset actions corresponding to the waiting period include controlling the sterilizing component to stand still and controlling the temperature control component to execute the heat preservation program.
Specifically, when the disinfection device is used to disinfect tableware, the dining period of the user can be divided into several stages, such as before, during and after a meal, so that the preset dining period of the disinfection device needs to meet various requirements of the user under different conditions before and after the meal, for example, the preset dining period can include a use preparation stage when the user disinfects the disinfection device before each meal, a use waiting stage when the user needs to take out the tableware from the disinfection device during the dining stage, and a period interval stage when the user returns the tableware to the disinfection device after the meal is completed and waits for the next dining period. For the same meal, the user can update each preset meal period every day according to the previous day, if the disinfection device is used for the first time by the user, each preset meal period updated in the previous day can be a preset meal period automatically defaulted by the system or a preset meal period manually and self-defined by the user before the user uses the disinfection device, and the disinfection device is not limited. When detecting that the current time is in the use waiting stage of the preset meal period, the stage comprises the time of meal preparation, meal taking and tableware cleaning of a user, if the current time is in T2-T3, the fact that the tableware is disinfected at the moment is indicated, the user needs to take out the tableware for meal preparation or meal taking is indicated, a disinfection component in the disinfection equipment can be controlled to stand still, the disinfection action is not carried out, and the temperature control component is controlled to execute the heat preservation action, so that the tableware is at the comfortable temperature of a human body. In this embodiment, in order to enable the user to feel the comfort temperature of the tableware when using the tableware, the temperature control component can be controlled to maintain the temperature of the tableware at the comfort temperature of the human body, such as 38-45 ℃, so as to improve the dining experience of the user.
Illustratively, referring to FIG. 4, the user sets the number of meals a day, i.e., presets a meal period, which is distinguished by letters such as letters A, B, C, D, if three meals a day are set, then three meals are represented by the three letters A, B, C.
The preset time points in fig. 4 are respectively:
tx, a period of time during which the sterilization mode is operated, which can be specifically determined according to the current weight of the tableware;
t2: a cutlery use start time point indicating a time point when the user enters the kitchen and uses for a long time;
t3, a cutlery end time point, which represents a time point when the user leaves the kitchen and no longer uses the cutlery for a subsequent period of time;
The time period T2-T3 indicates that a user enters a kitchen for preparing dishes, enters the kitchen again after the user finishes dining, and completes the process of cleaning and leaving the dishes, wherein the process needs to use a weight detection assembly to carry out identification record on the weight of the dishes;
T1, a pre-meal sterilization starting time point, wherein the point represents an ideal state, namely, a recommended pre-meal sterilization starting time point on the premise that a user does not interfere with a sterilization mode and the sterilization mode is finished, T1 is a time period in advance on the basis of a time point of T2, the time period is a sterilization period Tx plus the time period for cooling the cavity to 38-45 ℃ after the sterilization is finished, the cooling time of the sterilization equipment is 30min, the sterilization period Tx defaults to the full-load sterilization time of 60min, namely, T1 is a time period in advance of 90min on the basis of the time point of T2;
the period of time from T1 to T3 represents a preset meal period;
tn, each time point representing the current tableware usage period, where n=1/2/3;
LTn, each time point representing the last meal use period, wherein n=1/2/3;
NTn each time point representing the next meal use cycle, wherein n=1/2/3;
XTn: each time point representing a certain eating period, wherein X represents a certain eating period set, i.e., x=a/B/C/..;
Tc, representing the time that the weight detection component detects that the weight of the tableware in the disinfection equipment is kept unchanged, if the weight detection component is larger than the time period, defaulting the user to complete dining, wherein the recommended time is 60 minutes, and the time takes the dining time length as a reference;
For example, if the user first uses the disinfection device, no time data is available in the disinfection device system, and therefore the system generates a default set of times, the following is generated:
AT1(5:30)AT2(7:00)AT3(8:00)BT1(9:30)BT2(11:00)BT3(12:00)CT1(16:00)CT2(17:30)CT3(18:30)。
The method is characterized in that the method comprises the steps of taking three times of day of most families as initial time periods of breakfast time, wherein AT2 (7:00) -AT 3 (8:00) correspond to the initial time periods of breakfast time, BT2 (11:00) -BT 3 (12:00) correspond to the initial time periods of Chinese meal time, and CT2 (17:30) -CT 3 (18:30) correspond to the initial time periods of dinner time, but the data are used for first-time starting reference control due to different geographic positions and different family habits, and are stored as initial time period data.
For example, taking lunch as an example, the initial time period of the use preparation stage of each preset meal period updated in the previous day is BT2 (11:00) -BT3 (12:00), if the real-time at this time is 11:30, which indicates that the user needs to use the tableware to prepare meals and take meals, the disinfection assembly is controlled to be not operated, and the temperature control assembly is controlled to execute the heat preservation program, so that the damage to the user caused by the irradiation of the ultraviolet lamp tube is avoided, and the tableware can be at a comfortable temperature each time the user opens the disinfection device to take the tableware.
S120, detecting and recording the total weight change of the tableware every day by utilizing the weight detecting component.
Firstly, after the machine is powered on for the first time, because the disinfection equipment has no networking module, the current time is manually input by a user, the time is 24 hours, the weight detection assembly is started, a group of system default time data is generated and is used as an initial time period to be stored, the data recorded by the weight detection assembly is irrelevant to whether the user starts an automatic disinfection function, and the data can be detected and recorded in real time as long as the machine is powered on. The weight detection assembly is powered on to record a set of data every 24 hours, which records the change in weight of the cutlery in the sterilizing unit over a period of 24 hours.
Because the user can get and put the tableware many times in the use waiting phase, when the user gets into the space of disinfection equipment place for the first time and then gets and put the tableware, wherein the space of disinfection equipment place can be regarded as the kitchen, and the first time means that the total weight change of the tableware is detected for the first time in the initial time period updated on the previous day, the weight detection component can produce the detection signal, so that the user can judge that the user opens the disinfection equipment to take the tableware, the total weight of the tableware in the disinfection equipment is reduced, and the time point of total weight reduction of the tableware can be recorded at the moment. If the weight detection assembly detects an increase in the total weight of the cutlery for the first time, indicating that the user may not be in the dinner preparing phase, no record is made. The user may take and place the cutlery several times while in the kitchen for a meal, at which time the weight detecting assembly will continuously generate the detecting signal but not record it. When the weight detecting component detects that the weight of the tableware is increased and the total weight is not increased within a certain period of time, the user is judged to finish eating, and the tableware is not taken and placed in the future period of time. And, when it is judged that the total weight of the tableware does not change within a certain time, for example, 60 minutes, the weight detecting component records the time point when the total weight of the tableware is unchanged. If the weight detection assembly detects a change in the total weight of the cutlery over 60 minutes, indicating that the user may not have finished eating completely, the weight detection assembly does not record this point in time.
S130, determining the actual time period of the use waiting stage in each preset dining period formed after the user uses the tableware on the same day according to the total weight change of the tableware.
Specifically, after the weight detecting component records the change condition of the total weight of the tableware, according to the total weight change of the tableware, the actual dining time of the user can be determined, namely, the actual time period of the use waiting period in each preset dining period formed after the user uses the sterilizing equipment in the same day can be determined. For example, when the total weight of the tableware is reduced by the weight detecting component at a time point T2 of 11:30 and the total weight of the tableware is kept unchanged at a time point T3 of 12:30, the actual time period of using the waiting stage is determined to be 11:30-12:30.
It will be appreciated that this step sets the actual time period of the use waiting period primarily to determine the actual eating habits of the user, so that the initial time period is automatically updated subsequently to the actual eating habits of the user.
And S140, when the actual time period is coincident with the initial time period of the use waiting period in the preset dining period updated on the previous day, calculating the target time period of the use waiting period in each preset dining period according to the coincident actual time period and initial time period so as to update each preset dining period adopted on the current day.
Specifically, when there is coincidence between the actual time period and the initial time period of the waiting period in the preset meal period updated in the previous day, for example, the actual time period of the waiting period is AT2 '(11:30) -BT2' (12:30) and the initial time period is AT2 (11:00) -AT3 (12:00), the coincident time period between the actual time period and the initial time period is 11:30-12:00, according to the actual time period and the initial time period which are coincident, the target time period of the waiting period in each preset meal period can be calculated, after the target time period is calculated, the target time period can be taken as the update time of the waiting period in the next preset meal period, the initial time period is replaced, and each preset meal period adopted in the current day, namely, the automatic update of each preset meal period updated in the previous day is realized.
In this step, the fact that the actual time period of the actual eating habit of the user coincides with the initial time period indicates that the actual eating time of the user on the same day is within the fluctuation range of the updated initial time period of the previous day, and in order to enable the disinfection device to better approach the actual eating habit of the user, the target time period needs to be calculated through the recorded actual time period and initial time period of the actual eating habit of the user, and the target time period is calculated to enable the initial time period of the use waiting period in each preset eating period updated by the disinfection device to approach the actual eating habit of the user more, so that the updated initial time period of the previous day is automatically updated, the working process of the disinfection device is prevented from conflicting with the actual eating time of the user, and the automation and the intelligence of the disinfection device are improved.
According to the technical scheme, corresponding preset actions are executed by the disinfection equipment under the control of the disinfection equipment according to the stage of the preset dining periods updated every day and the real-time according to the stage of the preset dining periods, the total weight change of tableware is detected and recorded every day by the weight detection component, the actual time period of the waiting stage used by a user in each preset dining period formed after the use of the tableware on the same day is determined according to the total weight change of the tableware, and when the actual time period is coincident with the initial time period of the waiting stage used in the preset dining period updated on the same day, the target time period of the waiting stage used in each preset dining period is calculated according to the coincident actual time period and initial time period so as to update each preset dining period adopted on the same day. By means of the method, the total weight change of the tableware is determined through the weight detection component, so that the actual time period of the actual dining time of the user on the same day is determined, the accurate determination of the target time period is achieved according to the actual time period and the initial time period of the dining period of the user updated on the same day, the target time period is automatically updated to the initial time period of each preset dining period on the same day, the automatic disinfection process of the disinfection equipment is achieved, the working time of the disinfection equipment is optimized, each preset dining period is enabled to be more suitable for the actual dining habit of the user, the conflict between the working process of the disinfection equipment and the actual dining time of the user is avoided, the automation and the intellectualization of the disinfection equipment are improved, and the experience of the user is improved.
In another specific embodiment, optionally, S130, after determining the actual time period of the use waiting period in each preset dining period formed after the use of the tableware by the user on the same day according to the total weight change of the tableware, the method further comprises the steps that when the initial time period of the use waiting period in the preset dining period updated on the previous day is not overlapped with the actual time period of the use waiting period in each preset dining period formed after the use of the tableware by the user on the same day, the initial iteration value is corrected by utilizing the preset second iteration correction value, so that the initial time period is not overlapped with the actual time period of the same day in continuous preset days, and is lower than the preset iteration value threshold after being corrected by utilizing the preset second iteration correction value, wherein the iteration value corresponding to the initial time period of the use waiting period in each preset dining period in the previous day is the initial iteration value, and when the initial value is lower than the preset iteration value threshold, the initial time period corresponding to the preset dining period is deleted.
The preset second iteration correction value can be determined according to the preset days and the initial iteration value. For example, the preset number of days may be 3 days, i.e., 72 hours, and the initial iteration value may be 5, and the calculated preset second iteration correction value may be 5/3. In addition, the preset iteration value threshold may be 0.
Specifically, when the initial period of the waiting period used in the preset dining period updated in the previous day is not overlapped with the actual period of the waiting period used in each preset dining period formed by the user after the user on the same day, and the initial iteration value is larger than the preset iteration value, the actual period in the continuous preset days can be reserved, the preset second iteration correction value is utilized to correct the initial iteration value, and if the actual period recorded in the continuous preset days is not overlapped with the initial period updated in the previous day, the preset second iteration correction value is continuously utilized to correct the initial iteration value, so that the corrected initial iteration value is lower than the preset iteration value threshold. When the initial iteration value is lower than the preset iteration value threshold, the fact that the user does not eat in the initial time period for three continuous days is indicated, the initial time period is automatically considered not to belong to the eating habit of the user, and therefore the initial time period and the preset eating period corresponding to the initial time period are deleted. In addition, if the actual time period recorded by the weight detection component is overlapped with the initial time period updated in the previous day in the continuous preset days, the correction is stopped, and the actual time period recorded by the detection is reserved.
For example, taking breakfast as an example, using an initial period of time of a waiting period AT2 (7:00) -AT3 (8:00), an actual period of time recorded in the day AT2 '(8:30) -AT3' (9:30), if no coincidence exists between the initial period of time and the actual period of time, the initial iteration value can be corrected by using a preset second iteration correction value, if the preset day is 3 days, the initial iteration value is 5, the preset second iteration correction value is 5/3, that is, the initial iteration value after the correction of the first day is 5-5/3=10/3. And when the actual time period recorded on the next day is AT2 '(8:20) -AT3' (9:20), if no coincidence exists between the actual time period recorded on the next day and the initial time period, continuously correcting the initial iteration value by using a preset second iteration correction value, wherein the corrected initial iteration value is 10/3-5/3=5/3. When the actual time period is recorded on the third day, if the actual time period recorded on the third day is AT2 '(8:30) -AT3' (9:30) and the initial time period still does not exist coincidence, the initial iteration value is corrected by continuously using the preset second iteration correction value, the corrected initial iteration value is 0, AT the moment, the initial iteration value reaches the preset iteration value threshold value, the fact that the initial time period does not belong to the normal eating habit of a user is indicated, AT the moment, the fact that the initial time period is AT2 (7:00) -AT3 (8:00) belongs to the failure time period can be confirmed, the initial time period is deleted, and the preset eating period corresponding to the initial time period is achieved, so that automation and intellectualization of the disinfection equipment are achieved.
Fig. 5 is a flowchart of a second control method of a disinfection apparatus based on weight, according to an embodiment of the present invention, wherein the embodiment is further refined, and the preset meal period further includes a use preparation phase, and the use waiting phase is located after the use preparation phase in a time dimension;
Specifically, referring to fig. 4, the use preparation stage is located before the use waiting stage in the time dimension, for example, the use preparation stage is T1-T2, and the stage includes the time of sterilizing and cooling the tableware by the sterilizing device, and under normal conditions, the sterilizing device will control the sterilizing component to perform a continuous sterilizing process on the tableware in the use preparation stage, and the sterilizing process includes a sterilizing and cooling process, where the sterilizing time Tx can be determined according to the total weight of the tableware in the sterilizing device, such as 40 minutes or 60 minutes, and the cooling time can be 30 minutes, so that the tableware is cooled to 38-45 ℃ to prevent the tableware from being damaged due to overhigh temperature or to ensure that the tableware can be kept at a comfortable temperature when the user uses the tableware in the use waiting stage.
It should be noted that, referring to fig. 1, the disinfection apparatus further includes a door control switch 60 and a heat dissipation fan 70, the door control switch 60 is used for detecting a door opening and closing state of the disinfection apparatus, the heat dissipation fan 70 is located at a top end of the disinfection apparatus, and mainly functions to accelerate air flow in a cavity of the disinfection apparatus, the heat dissipation fan 70 can accelerate temperature rise in the cavity when the heating lamp tube 30 is turned on, and the heat dissipation fan 70 can accelerate temperature drop in the cavity when the heating lamp tube 30 is turned off. The tableware is subjected to one-time disinfection procedure without interruption in the use preparation stage, and the default premise is that the user cannot open the disinfection equipment in the use preparation stage. In the actual use process, the user may open the sterilizing device to take the tableware at any time during the preparation stage, when the door control switch 60 detects that the sterilizing device is opened, the ultraviolet lamp tube 20 and the heating lamp tube 30 in the sterilizing component are immediately controlled to stop working, and the heat dissipation fan 70 can be controlled to be started according to the situation, so that the tableware is quickly cooled down, injury to the user is prevented, and meanwhile, the environment in the sterilizing device is polluted in the door opening state, so that the executing time of the sterilizing component for the sterilizing program is stopped and the time is reset, and the sterilizing program is restarted when the door is closed.
Further, when the actual time period is overlapped with the initial time period of the waiting period in the preset meal period updated on the previous day, the target time period of the waiting period in each preset meal period is calculated according to the overlapped actual time period and initial time period, so that the following steps are added after updating each preset meal period adopted on the previous day:
On the basis of the target time period of the use waiting phase in each preset dining period, the first preset time length is used as the target time period of the use preparation phase in each preset dining period in advance, so that each preset dining period adopted on the day is updated.
Further, in the foregoing embodiment S110, each preset dining period updated every day according to the previous day, according to the stage of the real-time in each preset dining period, the disinfection device is controlled to execute the corresponding preset action, which may be specifically thinned:
presetting the time of a disinfection program according to the total weight of the tableware, wherein the time of the disinfection program is positively related to the total weight of the current tableware and is smaller than a first preset time period;
When the real-time is in the use preparation stage, the disinfection equipment is controlled to continuously execute the disinfection program once according to the use time of the preset disinfection program.
Further, in the above embodiment S130, according to the total weight change of the tableware, the actual time period of the use waiting period in each preset dining period formed after the user uses the same day is determined, which may be specifically reduced to:
determining the moment when the total weight of the tableware is reduced as the starting moment;
determining the moment when the total weight of the tableware is increased after the initial moment and the total weight of the tableware is continuously not increased within a second preset time period after the initial moment as the termination moment;
The period from the start time to the end time is determined as the actual period of time during which the user is using the waiting phase in a preset meal period formed after the use of the day.
For details not yet described in detail in this embodiment, please refer to the previous embodiment.
As shown in fig. 1, 4 and 5, the control method includes:
s210, presetting the time of a disinfection program according to the total weight of the tableware.
Wherein the time of use of the disinfection program is positively correlated with the total weight of the current tableware and is less than a first preset time period. In general, the target period of the usage preparation phase is determined by advancing a first preset time period on the basis of the target period of the usage waiting phase, that is, T1 is advanced by a first preset time period on the basis of the time point of T2, the first preset time period is the longest time of one disinfection period Tx plus a cooling time required to cool the temperature to 38 ℃ to 45 ℃ in the disinfection apparatus after the disinfection is finished, the cooling time is typically 30 minutes, and the time of one disinfection period Tx is typically 60 minutes, so the first preset time period may be 90 minutes, that is, the target period of the usage preparation phase is advanced by 90 minutes on the basis of the target period of the usage waiting phase. The total weight of the current tableware can be the total weight of the tableware when a user uses the tableware to prepare a meal in a preparation stage, or can be the total weight of the tableware in the disinfection equipment after the time point of 24 hours is recorded by the weight detection component and the time point recorded on the same day is calculated and updated, and the total weight can be determined by referring to actual conditions without limitation.
Specifically, in order to ensure the sterilization efficiency and the sterilization effect, the time of the preset sterilization program is related to the total weight of the tableware, and the time of the preset sterilization program can be correspondingly determined according to the total weight of the tableware in the sterilization equipment in the actual sterilization process. In this embodiment, the total weight of the tableware in the disinfection apparatus detected by the weight detecting component may be classified into, for example, a first gear, a second gear and a third gear, where the total weight G0 of the tableware corresponding to the first gear is G0<6kg, the time of the preset disinfection program corresponding to the first gear is 40 minutes, the total weight of the tableware corresponding to the second gear is 6kg less than or equal to G0 less than or equal to 10kg, the time of the preset disinfection program corresponding to the second gear is 50 minutes, and the total weight of the tableware corresponding to the third gear is G0>10kg, the time of the preset disinfection program corresponding to the third gear is 60 minutes. It can be seen that the time of use of the disinfection program is positively correlated to the total weight of the current cutlery, i.e. the greater the total weight of the current cutlery, the longer the corresponding time of use of the disinfection program, but less than the first preset time period of 90 minutes.
In addition, when determining the duration of the use preparation phase, the duration of the time period T1-T2 can be determined according to the duration of the preset disinfection program and the cooling time. When the first preset duration is fixed, a point in time at which the sterilization assembly begins to sterilize may be determined based on the duration of the preset sterilization program. The determination may be specifically performed according to actual situations, and is not limited herein.
S220, when the real-time is in the use preparation stage, the disinfection equipment is controlled to continuously execute the disinfection program once according to the use time of the preset disinfection program.
Specifically, taking breakfast as an example, if the obtained real-time is 6:00, the time period of the use preparation stage is AT1 (5:30) -AT2 (7:00), the real-time is in the use preparation stage, AT this time, if the total weight of the tableware detected by the weight detection component is the second gear, the corresponding time of the preset disinfection program is 50 minutes, the disinfection component is controlled to continuously perform the disinfection program on the tableware for 50 minutes, and the tableware is cooled after the disinfection, so as to prevent the tableware from being damaged due to overhigh temperature or poor drying effect due to overlow temperature, the cooling time can be 30 minutes, the temperature range reached by the tableware can be 60-70 ℃, the rest 10 minutes of the disinfection component can be in a standing state, and the rest 10 minutes of the disinfection component can be set in the beginning time period or the ending time period of the use preparation stage, without limitation.
S230, detecting and recording the total weight change of the tableware every day by utilizing the weight detecting component.
S240, determining the moment when the total weight of the tableware is reduced as the starting moment.
And S250, determining the moment when the total weight of the tableware is increased after the initial moment and the total weight of the tableware is not increased continuously in a second preset time period, as the termination moment.
Specifically, when determining the actual time period, because the user will pick and place the tableware multiple times during the dining stage of the spare meal, so that the detected weight of the tableware fluctuates up and down in a short time, in order to ensure the consistency of the data, a second preset duration is set, referring to fig. 4, the second preset duration is Tc, the weight detecting component detects that the total weight of the tableware is reduced for the first time, the time when the total weight of the tableware is reduced is determined as the starting time, and the starting time is T2. When the weight detection component detects that the total weight of the tableware is increased, the time point T3 of the increase is recorded, the timing is started at the same time, if the timing time is longer than the second preset time period and the total weight of the tableware is not increased within the second preset time period, the user finishes dining, the tableware is not taken and placed in the future time period, the time of the total weight increase of the tableware is determined to be the ending time T3, and the recording is performed. If the weight detection component detects that the total weight of the tableware changes within the second preset time period, the timing is reset to zero, the time point T3 is recorded again, and the ending time T3 and the starting time T2 are saved and are saved as a group of T2-T3 data only when the total weight of the tableware is increased and is not increased continuously within the second preset time period. It can be understood that the recommended time of the second preset time length Tc is 60min, and the addition of the dining time length and the cleaning and collecting time is mainly taken as a reference, so that the time period T2-T3 can contain the step time of waiting for dishes, dining, cleaning and collecting and the like.
And S260, determining the time period from the starting time to the ending time as the actual time period of using the waiting period in a preset meal period formed after the user uses the meal in the day.
Wherein the step may be refined to determine a period of time, in which the total weight change range of the tableware exceeds the preset weight threshold value, among the period of time from the start time to the end time of each group, as an actual period of time in which the user uses the waiting period in one preset dining period formed after the use of the tableware in the day.
Specifically, in order to ensure that the time period from the starting time to the ending time of each group recorded by the weight detection assembly can be effectively identified and screened, a preset weight threshold value Gz is introduced in consideration of the fact that a user can take and put a small part of tableware in a non-dinner period. The weight detection assembly records total weight change data of tableware in each group of T2-T3 time periods, calculates the total weight limit delta G of the tableware in each group of T2-T3 time periods, namely the difference between the maximum total weight value and the minimum total weight value, if the total weight limit delta G is smaller than the preset weight threshold value Gz, the tableware used by a user is smaller, the non-dinner time period is determined at the moment, the T2-T3 time period is removed, if the total weight limit delta G is larger than or equal to the preset weight threshold value Gz, the total weight of the tableware used by the user reaches the normal dinner time, the time period of delta G is larger than or equal to Gz is selected, namely the actual time period. In addition, when the single weight of the standard rice bowl on the market is 160g and the weight of the single deep dish is 530g, the preset weight threshold Gz can be set to be 2kg according to the total weight of the tableware used for dinning of the user, and the preset weight threshold Gz can be specifically determined according to practical situations and is not limited herein.
And S270, when the actual time period is coincident with the initial time period of the use waiting period in the preset dining period updated on the previous day, calculating the target time period of the use waiting period in each preset dining period according to the coincident actual time period and initial time period so as to update each preset dining period adopted on the current day.
S280, on the basis of the target time period of the use waiting phase in each preset dining period, taking the first preset time length as the target time period of the use preparation phase in each preset dining period in advance, so as to update each preset dining period adopted on the day.
Specifically, after the target period of the use waiting period in each preset meal period is calculated, the target period of the use preparation period needs to be confirmed on the basis of the target period, and in general, the determination of the target period of the use preparation period is that a first preset time period is advanced on the basis of the target period of the use waiting period, that is, T1 is that a first preset time period is advanced on the basis of a time point of T2, the first preset time period is one disinfection period Tx plus a cooling time required to cool the temperature to 38-45 ℃ in the disinfection equipment after the disinfection is finished, the cooling time is usually 30 minutes, and one disinfection period Tx defaults to a disinfection time of 60 minutes with full load, so the first preset time period can be 90 minutes, that is, the target period of the use preparation period is advanced by 90 minutes on the basis of the target period of the use waiting period. And determining each preset dining period as each preset dining period of the current day, thereby realizing automatic updating of each preset dining period updated in the previous day.
According to the technical scheme, the disinfection program is preset according to the total weight of the tableware, when the real-time is in a use preparation stage, the disinfection equipment is controlled to continuously execute the disinfection program once according to the use of the preset disinfection program, the time when the total weight of the tableware is reduced is determined to be the starting time, the time when the total weight of the tableware is increased after the starting time and the time when the total weight of the tableware is not increased continuously in a second preset time period after the total weight of the tableware is increased is determined to be the ending time, a set of time periods from the starting time to the ending time are determined to be the actual time period of a user using a waiting stage in one preset dining period formed after the use, and the first preset time period is used as the target time period of the use preparation stage in each preset dining period on the basis of the target time period of the use waiting stage in each preset dining period so as to update each preset dining period adopted on the current day. By utilizing the method, the disinfection program time length is determined according to the total weight of the tableware, so that the disinfection time of the tableware is ensured to be more suitable for the total weight of the tableware, the tableware disinfection requirement is met, the excessive consumption of the disinfection time is avoided, and the power consumption of the disinfection program is reduced. In addition, the accurate determination of the target time period of the use preparation stage and the target time period of the use waiting stage in each preset dining period is realized, the automatic update of each preset dining period adopted on the day is realized according to the actual dining habit of the user, and the automation and the intellectualization of the disinfection equipment are improved.
Fig. 6 is a flowchart of a third control method for a disinfection apparatus based on weight according to an embodiment of the present invention, where when there is a coincidence between an actual time period and an initial time period of a waiting period in a preset meal period updated on a previous day in the above embodiment S140, a target time period of the waiting period in each preset meal period is calculated according to the actual time period and the initial time period, where there is a coincidence, so as to refine a specific implementation manner of updating each preset meal period adopted on a current day:
When the actual time period and the initial time period are overlapped, calculating the overlap ratio of the actual time period and the initial time period;
determining a corresponding preset first iteration correction value according to the coincidence ratio of the actual time period and the initial time period, wherein the preset first iteration correction value is positively correlated with the coincidence ratio;
Calculating an actual iteration value according to the first iteration correction value on the basis of the initial iteration value, wherein the use waiting stage in each preset dining period corresponds to the preset iteration value, the iteration value corresponding to the initial time period of the use waiting stage in the preset dining period updated in the previous day is the initial iteration value, and the iteration value corresponding to the actual time period of the use waiting stage in the preset dining period formed after the use of the user in the current day is the actual iteration value;
Respectively calculating weights of the corresponding initial time period and actual time period relative to the target time period according to the initial iteration value and the actual iteration value;
And determining the relative positions of the target time period and the initial time period and the actual time period in the time dimension according to the weights of the initial time period and the actual time period relative to the target time period so as to determine the target time period.
For details not yet described in detail in this embodiment, please refer to the previous embodiment.
Referring to fig. 4 and 6, the control method includes:
s310, controlling the disinfection equipment to execute corresponding preset actions according to the stages of the real-time in each preset dining period according to each preset dining period updated every day before.
S320, detecting and recording the total weight change of the tableware every day by utilizing the weight detection component.
S330, determining the actual time period of the use waiting stage in each preset dining period formed after the user uses the tableware on the same day according to the total weight change of the tableware.
And S340, when the actual time period and the initial time period are overlapped, calculating the overlap ratio of the actual time period and the initial time period.
The method comprises the steps of calculating a time intersection and a time union of an actual time period and an initial time period when the actual time period and the initial time period are overlapped, and calculating the duration proportion of the time intersection and the time union as the overlapping ratio of the actual time period and the initial time period.
The overlap ratio Ch represents the ratio of the intersection time of the actual time period and the initial time period to the union time of the actual time period and the initial time period, and is mainly compared with the similarity of the two groups of time periods. The greater the overlap Ch, the higher the degree of similarity of the actual period to the initial period.
Specifically, after the actual time period is determined, when there is coincidence between the actual time period and the initial time period, the coincidence ratio between the actual time period and the initial time period needs to be calculated. For example, taking breakfast as an example, the initial period of the use waiting period of the breakfast updated on the previous day is AT2 (7:00) to AT3 (8:00), the actual period of the use waiting period of the day finally determined by the weight detection component is AT2 '(7:30) to AT3' (8:30), the intersection time of the actual period and the initial period is AT2 '(7:30) to AT3 (8:00), the duration is 30 minutes, the union time is AT2 (7:00) to AT3' (8:30), the duration is 90 minutes, and the coincidence degree Ch of the actual period and the initial period is ch=30 min/90 min=33.3%.
S350, determining a corresponding preset first iteration correction value according to the coincidence degree of the actual time period and the initial time period.
The preset first iteration correction value is positively correlated with the overlap ratio, and the preset first iteration correction value can be positive or negative. In this embodiment, the first iteration correction value corresponding to the case that the contact ratio is within the first preset contact ratio interval is positive and the first iteration correction value is positively correlated with the contact ratio, the first iteration correction value corresponding to the case that the contact ratio is within the second preset contact ratio interval is negative and the absolute value of the first iteration correction value is negatively correlated with the contact ratio, the first preset contact ratio interval and the second preset contact ratio interval are not overlapped, and the contact ratio of the first preset contact ratio interval is greater than the contact ratio of the second preset contact ratio interval. Illustratively, the first iterative correction value for the nth record X period is denoted by XPn (x=a/B/c.). The first preset overlap ratio interval can be equal to or greater than 40% of overlap ratio Ch, the second preset overlap ratio interval can be equal to or less than 40% of overlap ratio Ch, specifically, when the overlap ratio is within the first preset overlap ratio interval, the first iteration correction values corresponding to different overlap ratios are different, when the overlap ratio Ch is equal to or greater than 80%, the corresponding preset first iteration correction value P=1, when the overlap ratio Ch is within the range of 60% to less than or equal to Ch <80%, the corresponding preset first iteration correction value P=0.5, and when the overlap ratio Ch is within the range of 40% to less than or equal to Ch <60%, the corresponding preset first iteration correction value P=0. When the coincidence degree is in the second preset coincidence degree interval, the first iteration correction values corresponding to the different coincidence degrees are different, when the coincidence degree Ch is in the range of 20 percent to less than or equal to Ch <40 percent, the corresponding preset first iteration correction value P= -0.5, and when the coincidence degree Ch is in the range of <20 percent, the corresponding preset first iteration correction value P= -1. The absolute value of the first iterative correction value is then inversely related to the overlap ratio.
Specifically, according to the coincidence degree Ch of the actual time period and the initial time period, a corresponding preset first iteration correction value can be determined. Illustratively, taking breakfast as an example, when the overlap ratio ch=33.3%, the corresponding preset first iteration correction value AP1 is-0.5.
S360, calculating an actual iteration value according to the first iteration correction value on the basis of the initial iteration value.
When the actual time period is overlapped with the initial time period, the initial time period needs to be updated, the iteration value D is increased or decreased every time the initial time period is updated, and the larger the iteration value D is, the closer the time period is to the use habit of a user. The use waiting periods in the preset dining periods correspond to preset iteration values, the iteration value corresponding to the initial time period of the use waiting period in the preset dining period updated in the previous day is the initial iteration value, and the iteration value corresponding to the actual time period of the use waiting period in the preset dining period formed after the use of the current day is the actual iteration value. In addition, the initial iteration value of the X initial period (x=a/B/c.) may be expressed by XD' which represents the actual iteration value of the X initial period after the update period, and the initial iteration value of the X initial period (x=a/B/c.) at the nth recording may be expressed by XDn.
Specifically, based on the initial iteration value D, the actual iteration value D' can be obtained after the initial iteration value D and the first iteration correction value P are operated according to the first iteration correction value P. The operation method may include addition or multiplication, and may be specifically determined according to practical situations, which is not limited herein. In this embodiment, since there is no iteration process in the initial set value of the system, the initial iteration value is a default value of the system, and the default initial iteration value D may be 1, specifically, the size may be adjusted according to the actual use condition, which is not limited herein. After the system performs the iterative process, the initial iterative value is updated to the actual iterative value obtained by the last calculation.
For example, taking addition calculation as an example, the actual iteration value calculation formula is D '=d+p, where n is greater than or equal to 1, when in the breakfast time period, AP 1= -0.5, and ad=1, then the corresponding actual iteration value AD' =ad+ap 1=1-0.5=0.5.
It is understood that the iteration value has a preset upper limit value and a preset lower limit value, the preset upper limit value may be 5, and the preset lower limit value may be 0, that is, 0 is less than or equal to D is less than or equal to 5, that is, the actual iteration value does not continue to rise when reaching the preset upper limit value 5, and the actual iteration value does not continue to fall when reaching the preset lower limit value 0. When the actual iteration value is calculated, when the initial iteration value reaches a preset upper limit value and the first iteration correction value is positive, if the actual iteration value obtained by addition calculation is larger than the preset upper limit value, the actual iteration value is not increased continuously any more to ensure the accuracy of the data updated in the time period, the actual iteration value is assigned to the preset upper limit value, and the assigned preset upper limit value is the actual iteration value. Similarly, when the initial iteration value reaches the preset lower limit value and the first iteration correction value is negative, if the actual iteration value obtained by addition calculation is smaller than the preset lower limit value, the actual iteration value is not continuously reduced for ensuring the data accuracy updated in the time period, but is assigned to the preset lower limit value, and the preset lower limit value is the actual iteration value.
And S370, respectively calculating the weights of the corresponding initial time period and the corresponding actual time period relative to the target time period according to the initial iteration value and the actual iteration value.
This step may be refined to calculate the weight Q of the initial period relative to the target period according to the formula q=d/(d+d '), and calculate the weight Q' of the actual period relative to the target period according to the formula Q '=d'/(d+d '), where D is the initial iteration value and D' is the actual iteration value.
The weight Q is the data of which group of time periods needs to be closer to when the initial time period is updated by comparing the iteration value D' of the actual time period with the initial iteration value D of the initial time period. The weight Q of the initial period is denoted by XQ (x=a/B/c.), and the weight Q of the n-th recording X initial period is denoted by XQn (x=a/B/c.).
Specifically, after the initial iteration value D and the actual iteration value D 'are determined, the weight Q of the initial period of time relative to the target period of time may be calculated according to the formula q=d/(d+d'), and the weight Q 'of the actual period of time relative to the target period of time may be calculated according to the formula Q' =d '/(d+d').
For example, taking breakfast as an example, the initial iteration value ad=1, the actual iteration value AD '=0.5, q=1/(0.5+1) =0.66 is calculated according to the formula q=d/(d+d'), and Q '=0.5/(0.5+1) =0.33 is calculated according to the formula Q' =d '/(d+d').
And S380, determining the relative positions of the target time period and the initial time period and the actual time period in the time dimension according to the weights of the initial time period and the actual time period relative to the target time period so as to determine the target time period.
Wherein the step can be thinned to calculate initial and end times T2 'and T3' of the target period according to the following formula T2 '/(T2+T2')=Q/(Q+Q '), T3'/(T3+T3 ')=Q/(Q+Q'), respectively, wherein T2 and T3 are the initial and end times of the initial period, respectively, and T2 'and T3' are the initial and end times of the actual period, respectively.
Specifically, after weights Q and Q 'of the initial time period and the actual time period relative to the target time period are determined, whether the target time period is close to the initial time period or the actual time period in the use waiting period is determined according to the sizes of the Q and Q', and the initial time and the end time of the target time period are calculated according to a formula.
Taking breakfast as an example, if the calculated weight q=0.66 and Q '=0.33, it can be seen that Q > Q' represents that the importance of the initial period is greater, the initial time T2 "of the updated target period needs to be closer to the initial time T2 of the initial period, and the end time T3" of the target period needs to be closer to the end time T3 of the initial period. According to the formula t2 "/(t2+t2 ')=q/(q+q'), t3"/(t3+t3 ')=q/(q+q'), the initial time T2 "= [ Q/(q+q ') ] ] of the target time period (t2+t2')= [ T2 (7:00) +t2 '(7:30) ] 0.66=7:20, and the end time T3" = [ Q/(q+q') ] ] (t3+t3 ')= [ T3 (8:00) +t3' (8:30) ] 0.66=8:20, respectively, can be calculated, and therefore the initial time T2 "of the target time period is 7:20, and the end time T3" is 8:20, which is the time period after the initial time period is updated.
According to the technical scheme, when the actual time period and the initial time period overlap, the overlap ratio of the actual time period and the initial time period is calculated, a corresponding preset first iteration correction value is determined according to the overlap ratio of the actual time period and the initial time period, an actual iteration value is calculated according to the first iteration correction value on the basis of the initial iteration value, weights of the corresponding initial time period and the actual time period relative to the target time period are calculated according to the initial iteration value and the actual iteration value respectively, and the relative positions of the target time period and the initial time period and the actual time period in the time dimension are determined according to the weights of the initial time period and the actual time period relative to the target time period, so that the target time period is determined. By the method, the determination of the initial time and the end time of the target time period is accurately realized according to the actual eating habit of the user, so that the automatic update of the initial time period in the disinfection equipment is realized, the working process of the disinfection equipment is more suitable for the actual eating habit of the user, the automation and the intellectualization of the disinfection equipment are improved, and the user experience is improved.
Fig. 7 is a flowchart of a fourth control method for a disinfection apparatus based on weight according to an embodiment of the present invention, where when there is a coincidence between an actual time period and an initial time period of a waiting period in a preset meal period updated on a previous day in the above embodiment S140, a target time period of the waiting period in each preset meal period is calculated according to the actual time period and the initial time period, where there is a coincidence, so as to refine a specific implementation manner of updating each preset meal period adopted on a current day to:
When the actual time period is coincident with the initial time period of the use waiting period in the two preset meal periods updated in the previous day, calculating the target time period of the use waiting period in the two preset meal periods according to the coincident actual time period and initial time period respectively so as to update each preset meal period adopted in the current day.
Reference is made to the above embodiments for details which are not yet exhaustive of this embodiment.
Referring to fig. 4 and 7, the control method includes:
S410, controlling the disinfection equipment to execute corresponding preset actions according to the stages of the real-time in each preset meal period according to each preset meal period updated every day before.
S420, detecting and recording the total weight change of the tableware every day by utilizing the weight detection component.
S430, determining the actual time period of the use waiting stage in each preset dining period formed after the user uses the tableware on the same day according to the total weight change of the tableware.
S440, when the actual time period is coincident with the initial time period of the waiting period in the two preset meal periods updated on the previous day, calculating the target time period of the waiting period in the two preset meal periods according to the coincident actual time period and initial time period, so as to update each preset meal period adopted on the current day.
Specifically, when there is a coincidence between the actual time period and the initial time period of the waiting period in the two preset meal periods updated on the previous day, the initial time and the end time of the actual time period and the target time period of the waiting period in the first preset meal period may be calculated according to the content of the previous embodiment. Similarly, the initial time and the end time of the actual time period and the target time period of the waiting period in the second preset meal period can be calculated. And updating the two initial time periods adopted by the current day by the two calculated target time periods respectively.
For example, taking breakfast and lunch as an example, the initial period of the waiting period used in the preset meal period of the breakfast updated on the previous day is AT2 (7:30) -AT3 (9:00), the initial period of the waiting period used in the preset meal period of the lunch is BT2 (9:30) -BT3 (11:00), the recorded actual period is AT2 '(8:30) -AT3' (10:00), the period of the actual period coinciding with the initial period AT2-AT3 on the previous day is 8:30-9:00, the period coinciding with the initial period BT2-BT3 is 9:30-10:00, and when the user may eat the breakfast together in one meal, the target period AT2'-AT3' corresponding to AT2-AT3 and the target period BT 2'-AT3' corresponding to BT2 "(BT 2" -3 "may be calculated respectively, the target period BT2" (BT 2: 10:3 "(BT 2: 40) (for example, BT 2: 10:10) may be calculated on the previous day) and the target period BT2" (BT 2: 10:10:10) (BT 2: 10) (for example). The calculated target time period AT2 "(8:10) -AT3" (9:40), BT2 "(10:10) -BT3" (11:40) was updated for the initial time periods of breakfast and lunch, respectively, for the day.
S450, merging the two preset dining periods into one preset dining period when the target time periods of the using waiting periods in the two preset dining periods overlap, and calculating the target time periods of the using waiting periods in the merged preset dining periods according to the target time periods of the using waiting periods in the two preset dining periods.
Specifically, when it is calculated that the target time periods of the use waiting phases in the two preset meal periods overlap, the two preset meal periods may be calculated according to the calculation method of the previous embodiment, the two preset meal periods are combined into one preset meal period, and the target time periods of the use waiting phases in the combined preset meal periods are calculated.
For example, taking breakfast and lunch as an example, the calculated target time periods of the use waiting period in the two preset meal periods are respectively AT2 "(9:10) -AT3" (10:40), BT2 "(10:10) -BT3" (11:40), it can be seen that a coincidence interval (10:10-10:40) still exists between the target time periods, AT this time, the fact that the user frequently takes breakfast and lunch together without separately taking two meals alone may exist, in order to meet the use habit of the user, the two preset meal periods may be combined into one preset meal period, specifically, the calculated target time period of the use waiting period in the combined preset meal period is (9:50-11:20) according to the calculation method of the previous embodiment, and the calculated target time period (9:50-11:20) is the initial time period of the breakfast and lunch after updating.
According to the technical scheme, when the actual time period is overlapped with the initial time period of the waiting period in the two preset dining periods updated in the previous day, the target time period of the waiting period in the two preset dining periods is calculated according to the overlapped actual time period and initial time period respectively so as to update each preset dining period adopted in the previous day, when the target time period of the waiting period in the two preset dining periods is overlapped, the two preset dining periods are combined into one preset dining period, and the target time period of the waiting period in the combined preset dining periods is calculated according to the target time period of the waiting period in the two preset dining periods. By utilizing the method, according to the actual eating habits of the user, the automatic update of each preset eating period adopted on the current day is better realized, the automation and the intellectualization of the disinfection equipment are ensured, and the experience of the user is improved.
Fig. 8 is a schematic structural diagram of a control device for a disinfection apparatus based on weight according to an embodiment of the present invention, where the disinfection apparatus includes a disinfection assembly, a temperature control assembly and a weight detection assembly, and referring to fig. 8, the control device includes:
the control module 110 is used for controlling the disinfection equipment to execute corresponding preset actions according to the stages of the real-time in each preset dining period, wherein the preset dining period comprises a waiting stage, and the preset actions corresponding to the waiting stage comprise controlling the disinfection assembly to stand still and controlling the temperature control assembly to execute a heat preservation program;
a detection recording module 120 for detecting and recording the total weight change of the tableware every day using the weight detecting assembly;
an actual time period determining module 130, configured to determine an actual time period of the use waiting period in each preset meal period formed after the user uses the tableware on the same day according to the total weight change of the tableware;
The first calculating module 140 is configured to calculate, when there is a coincidence between the actual time period and the initial time period of the waiting period in the preset meal periods updated on the previous day, a target time period of the waiting period in each preset meal period according to the actual time period and the initial time period, where there is a coincidence, so as to update each preset meal period adopted on the current day.
The control device for the disinfection equipment based on weight provided by the embodiment of the invention can execute the control method for the disinfection equipment based on weight provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Optionally, the control device further comprises a second calculation module, which is used for taking the first preset duration in advance as the target time period of the use preparation stage in each preset meal period on the basis of the target time period of the use waiting stage in each preset meal period so as to update each preset meal period adopted on the day.
Optionally, the control module 110 may be further configured to preset a time period of the sterilization procedure according to a total weight of the tableware, wherein the time period of the sterilization procedure is positively related to the total weight of the current tableware and is less than a first preset time period, and when the real-time is in a use preparation stage, control the sterilization device to continuously perform the sterilization procedure once according to the preset time period of the sterilization procedure.
Optionally, the actual time period determining module 130 may be further configured to determine a time when the total weight of the tableware is reduced as a start time, determine a time when the total weight of the tableware is increased after the start time and is not increased continuously for a second preset time period after the start time as an end time, and determine a set of time periods from the start time to the end time as an actual time period when the user uses the waiting period in one preset meal period formed after the use of the tableware.
Optionally, the actual time period determining module 130 may be further configured to determine a time period, in which the total weight change range of the tableware exceeds the preset weight threshold, among the time periods from the start time to the end time of each group, as an actual time period of the user using the waiting period in one preset dining period formed after the use of the tableware.
Optionally, the first calculation module 140 may be further configured to calculate, when there is a coincidence between the actual time period and the initial time period, determine a corresponding preset first iteration correction value according to the coincidence between the actual time period and the initial time period, wherein the preset first iteration correction value is positively correlated with the coincidence, calculate, based on the initial iteration value, an actual iteration value according to the first iteration correction value, wherein each waiting period in each preset meal period corresponds to a preset iteration value, an iteration value corresponding to the initial time period in the waiting period in the preset meal period updated in the previous day is the initial iteration value, an iteration value corresponding to the actual time period in the waiting period in the preset meal period formed after the use of the current day by a user is the actual iteration value, calculate weights of the corresponding initial time period and the actual time period relative to the target time period according to the initial time period and the actual iteration value, determine relative positions of the target time period in the time dimension and the actual time period relative to the initial time period according to the weights of the initial time period and the actual time period relative to the target time period, and determine the target time period.
Optionally, the first calculation module 140 may be further configured to calculate a time intersection and a time union of the actual time period and the initial time period, and calculate a duration ratio of the time intersection and the time union as a coincidence ratio of the actual time period and the initial time period.
Optionally, the first calculation module 140 may be further configured to assign the actual iteration value to a preset upper limit value when the initial iteration value reaches a preset upper limit value and the first iteration correction value is positive, and assign the actual iteration value to a preset lower limit value when the initial iteration value reaches a preset lower limit value and the first iteration correction value is negative.
Optionally, the first calculation module 140 may be further configured to calculate the weight Q of the initial period of time relative to the target period of time according to the formula q=d/(d+d '), and calculate the weight Q' of the actual period of time relative to the target period of time according to the formula Q '=d'/(d+d '), where D is an initial iteration value and D' is an actual iteration value.
Alternatively, the first calculation module 140 may be further configured to calculate the initial time and the end time of the target period to be T2 "and T3", respectively, according to the following formula T2 "/(t2+t2 ')=q/(q+q'), T3"/(t3+t3 ')=q/(q+q'), wherein T2 and T3 are the initial time and the end time of the initial period, respectively, and T2 'and T3' are the initial time and the end time of the actual period, respectively.
Optionally, the first calculating module 140 may be further configured to calculate, when there is coincidence between the actual time period and the initial time period of the use waiting period in the two preset meal periods updated on the previous day, the target time period of the use waiting period in the two preset meal periods according to the actual time period and the initial time period, respectively, where there is coincidence, so as to update each preset meal period adopted on the current day.
Optionally, the control device further comprises a third calculation module, configured to combine the two preset meal periods into one preset meal period when there is coincidence between the target time periods of the waiting phases in the two preset meal periods, and calculate the target time periods of the waiting phases in the combined preset meal periods according to the target time periods of the waiting phases in the two preset meal periods.
Optionally, the control device further comprises a deleting module, wherein the deleting module is used for correcting the initial iteration value by utilizing a preset second iteration correction value when the initial time period of the use waiting stage in the preset dining period updated in the previous day is not overlapped with the actual time period of the use waiting stage in each preset dining period formed by the user after the use of the current day, so that the initial iteration value is lower than a preset iteration value threshold after the initial time period is not overlapped with the actual time period of the current day and the preset second iteration correction value is utilized for correction, the use waiting stage in each preset dining period corresponds to the preset iteration value, the iteration value corresponding to the initial time period of the use waiting stage in the preset dining period updated in the previous day is the initial iteration value, and deleting the initial time period and the preset dining period corresponding to the initial time period when the initial iteration value is lower than the preset iteration value threshold.
In one embodiment, fig. 9 is a block diagram of a disinfection apparatus according to an embodiment of the present invention, and as shown in fig. 9, a schematic diagram of a disinfection apparatus 10 that may be used to implement an embodiment of the present invention is shown. The disinfection device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The disinfection device may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the sterilizing apparatus 10 includes at least one processor 11, and a memory such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the disinfection apparatus 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the disinfection apparatus 10 are connected to the I/O interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, speakers, etc., a storage unit 18, such as a magnetic disk, optical disk, etc., and a communication unit 19, such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the disinfection device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a weight-based disinfection apparatus control method.
In some embodiments, the weight-based disinfection apparatus control method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the disinfection device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above-described weight-based disinfection apparatus control method may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the weight-based disinfection apparatus control method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a disinfection device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the disinfection device. Other kinds of devices may also be used to provide for interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), a blockchain network, and the Internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.