Method and device for determining fresh-keeping duration, fresh-keeping equipment and storage medium
By monitoring and recording the changes in the ambient temperature in the cold chain fresh-keeping equipment, calculating the degree of deterioration of the ingredients and the remaining fresh-keeping time, the problem of inaccurate estimates of the fresh-keeping time in the prior art is solved, and a more accurate fresh-keeping time prediction is achieved.
Patent Information
- Application Number
- CN202510211055.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-06-13
AI Technical Summary
The prior art estimates of the fresh-keeping duration of food ingredients in cold chain fresh-keeping equipment are mainly due to the lack of research and treatment of environmental temperature changes.
By obtaining the ambient temperature change in the fresh storage space, determine whether the temperature change amplitude exceeds the preset change threshold, and record the relevant duration, start time and temperature change time. Based on this information, the degree of deterioration of the fresh-preserving object is calculated and the remaining fresh-preserving time is determined.
In the case of ambient temperature changes, the degree of deterioration of the ingredients and the remaining fresh-keeping time are automatically determined according to the temperature changes, making the estimate of the fresh-keeping time more accurate, and avoiding the problem of inaccurate estimates at a single temperature.
Smart Images

Figure CN120142588A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, device, preservation equipment and storage medium for determining the preservation duration. Background Art
[0002] During the processes of harvesting, transporting and storing food materials such as fruits and vegetables, due to various reasons such as senescence, microbial invasion and mechanical damage, the spoilage rate is relatively high. Therefore, the cold chain preservation equipment needs to continuously improve the monitoring system to give an early warning before the food materials deteriorate.
[0003] During the preservation of food materials, the preservation duration is greatly affected by temperature. Currently, the default of the preservation early warning is carried out under the condition of keeping the same temperature in the cold chain preservation equipment all the time, lacking research on the temperature change situation, resulting in inaccurate estimation of the preservation duration of food materials. Summary of the Invention
[0004] In order to solve the above technical problem of inaccurate estimation of the preservation duration under a single temperature, this application provides a method, device, preservation equipment and storage medium for determining the preservation duration.
[0005] In a first aspect, this application provides a method for determining the preservation duration, including:
[0006] Obtain the ambient temperature in the preservation space, where the preservation space is used for preserving the preservation object;
[0007] When the change amplitude of the ambient temperature from the first temperature to the second temperature exceeds a preset change threshold, obtain the duration for which the ambient temperature changes to the second temperature, obtain the preservation start time, and obtain the temperature change times at which each change amplitude exceeds the preset change threshold;
[0008] Determine the deterioration degree of the preservation object according to the duration, the preservation start time and each temperature change time;
[0009] Determine the remaining preservation duration of the preservation object according to the deterioration degree.
[0010] Optionally, determining the deterioration degree of the preservation object according to the duration, the preservation start time and each temperature change time includes:
[0011] Determine the preserved duration of the preservation object according to the duration, the preservation start time and each temperature change time;
[0012] Obtain the total preservation duration of the preservation object at the second temperature;
[0013] Determine the ratio of the preservation duration to the total preservation duration as the deterioration degree of the preservation object.
[0014] Optionally, determining the elapsed preservation time of the preservation object according to the duration, the start time of preservation, and each temperature change time includes:
[0015] Obtaining the number of times that the change amplitude of the ambient temperature exceeds a preset change threshold;
[0016] Determining the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the start time of preservation, and each temperature change time.
[0017] Optionally, determining the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the start time of preservation, and each temperature change time includes:
[0018] If it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold for the first time, obtaining the first duration of the preservation object preserved at the first temperature before the change amplitude exceeds the preset change threshold according to the start time of preservation and each temperature change time;
[0019] Converting the first duration into a second duration of the preservation object preserved at the second temperature after the change amplitude exceeds the preset change threshold;
[0020] Determining the elapsed preservation time of the preservation object at the second temperature based on the second duration and the duration.
[0021] Optionally, determining the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the start time of preservation, and each temperature change time further includes:
[0022] If it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold not for the first time, obtaining the first duration of the preservation object preserved at each first temperature before the change amplitude exceeds the preset change threshold according to the start time of preservation and each temperature change time;
[0023] Respectively converting each first duration into a second duration of the preservation object preserved at the second temperature after the change amplitude exceeds the preset change threshold;
[0024] Determining the elapsed preservation time of the preservation object at the second temperature based on each second duration and the duration.
[0025] Optionally, determining the remaining preservation time of the preservation object according to the degree of deterioration includes:
[0026] Calculating the freshness of the preservation object according to the degree of deterioration;
[0027] Determine the remaining freshness-keeping duration of the freshness-keeping object by multiplying the total freshness-keeping duration of the freshness-keeping object at the second temperature by the freshness degree.
[0028] Optionally, calculating the freshness degree of the freshness-keeping object according to the deterioration degree includes:
[0029] Calculate the difference of one minus the deterioration degree;
[0030] Determine the difference as the freshness degree of the freshness-keeping object.
[0031] Optionally, the method further includes:
[0032] If the remaining freshness-keeping duration exceeds a preset threshold, an alarm prompt is issued.
[0033] In a second aspect, the present application provides a device for determining the freshness-keeping duration, including:
[0034] A first acquisition module, configured to acquire the environmental temperature in a freshness-keeping space for keeping a freshness-keeping object fresh;
[0035] A second acquisition module, configured to acquire the duration of the environmental temperature changing to the second temperature, the freshness-keeping start time, and the temperature change times when each change amplitude exceeds a preset change threshold when the change amplitude of the environmental temperature changing from the first temperature to the second temperature exceeds the preset change threshold;
[0036] A first determination module, configured to determine the deterioration degree of the freshness-keeping object according to the duration, the freshness-keeping start time, and each temperature change time;
[0037] A second determination module, configured to determine the remaining freshness-keeping duration of the freshness-keeping object according to the deterioration degree.
[0038] Optionally, the first determination module includes:
[0039] A first determination sub-module, configured to determine the elapsed freshness-keeping duration of the freshness-keeping object according to the duration, the freshness-keeping start time, and each temperature change time;
[0040] A first acquisition sub-module, configured to acquire the total freshness-keeping duration of the freshness-keeping object at the second temperature;
[0041] A second determination sub-module, configured to determine the ratio of the freshness-keeping duration to the total freshness-keeping duration as the deterioration degree of the freshness-keeping object.
[0042] Optionally, the first determination sub-module includes:
[0043] A first acquisition unit, configured to acquire the number of times that the change amplitude of the ambient temperature exceeds a preset change threshold;
[0044] A first determination unit, configured to determine the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the preservation start time, and each temperature change time;
[0045] Optionally, the first determination unit includes:
[0046] A first acquisition subunit, configured to, if it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold for the first time, acquire, according to the preservation start time and each temperature change time, a first duration during which the preservation object is preserved at the first temperature before the change amplitude exceeds the preset change threshold;
[0047] A first conversion subunit, configured to convert the first duration into a second duration during which the preservation object is preserved at the second temperature after the change amplitude exceeds the preset change threshold;
[0048] A first determination subunit, configured to determine the elapsed preservation time of the preservation object at the second temperature based on the second duration and the duration;
[0049] Optionally, the first determination unit further includes:
[0050] A second acquisition subunit, configured to, if it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold not for the first time, acquire, according to the preservation start time and each temperature change time, a first duration during which the preservation object is preserved at each first temperature before the change amplitude exceeds the preset change threshold;
[0051] A second conversion subunit, configured to convert each of the first durations into a second duration during which the preservation object is preserved at the second temperature after the change amplitude exceeds the preset change threshold;
[0052] A second determination subunit, configured to determine the elapsed preservation time of the preservation object at the second temperature based on each of the second durations and the duration;
[0053] Optionally, the second determination module includes:
[0054] A calculation sub-module, configured to calculate the freshness of the preservation object according to the degree of deterioration;
[0055] A third determination sub-module, configured to determine the remaining preservation time of the preservation object as the product of the total preservation time of the preservation object at the second temperature and the freshness;
[0056] Optionally, the calculation sub-module includes:
[0057] A calculation unit for calculating the difference between one and the deterioration degree.
[0058] A second determination unit for determining the difference as the freshness degree of the fresh-keeping object.
[0059] Optionally, the device further includes:
[0060] An alarm module for sending an alarm prompt if the remaining fresh-keeping duration exceeds a preset threshold.
[0061] In a third aspect, the present application provides a fresh-keeping device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;
[0062] The memory is used for storing a computer program;
[0063] The processor is used for implementing the method for determining the fresh-keeping duration according to any one of the first aspects when executing the program stored in the memory.
[0064] In a fourth aspect, the present application provides a computer-readable storage medium, on which a program for the method for determining the fresh-keeping duration is stored. When the program for the method for determining the fresh-keeping duration is executed by a processor, the steps of the method for determining the fresh-keeping duration according to any one of the first aspects are implemented.
[0065] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art:
[0066] In the embodiments of the present application, when the environmental temperature in the fresh-keeping space changes and the change amplitude exceeds a preset change threshold, the deterioration degree of the fresh-keeping object can be determined according to the duration of the temperature change to the second temperature, the fresh-keeping start time, and each temperature change time, and then the remaining fresh-keeping duration of the fresh-keeping object can be determined. It can automatically determine the deterioration degree of the fresh-keeping object according to the change of the environmental temperature in the scenario where the environmental temperature changes, and then determine the remaining fresh-keeping duration of the fresh-keeping object according to the deterioration degree, making the estimation of the fresh-keeping duration more accurate and avoiding the problem of inaccurate estimation of the remaining fresh-keeping duration of the fresh-keeping object under a single temperature. Description of the Drawings
[0067] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present invention and used together with the description to explain the principles of the present invention.
[0068] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0069] Figure 1 Schematic diagram of the principle of a method for determining the fresh-keeping duration provided by an embodiment of the present application;
[0070] Figure 2 Schematic diagram of the structure of a fresh-keeping device provided by an embodiment of the present application;
[0071] Figure 3 Flowchart of a method for determining the fresh-keeping duration provided by an embodiment of the present application;
[0072] Figure 4 Schematic diagram of the timeline provided by an embodiment of the present application;
[0073] Figure 5 Structure diagram of a device for determining the fresh-keeping duration provided by an embodiment of the present application;
[0074] Figure 6 Structure diagram of a fresh-keeping device provided by an embodiment of the present application. Detailed implementation manners
[0075] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0076] During the fresh-keeping process of food ingredients, the fresh-keeping duration is greatly affected by temperature. Currently, the fresh-keeping warning defaults to being carried out at the same temperature in the cold-chain fresh-keeping equipment all the time, lacking research on the temperature change situation, resulting in inaccurate estimation of the fresh-keeping duration of food ingredients. Therefore, the embodiments of the present application provide a method, a device, a fresh-keeping equipment, and a storage medium for determining the fresh-keeping duration.
[0077] The method for determining the freshness preservation duration provided by the embodiments of the present application can be applied to freshness preservation equipment, which can refer to cold storages, cold chain transportation equipment, freshness preservation baskets, freshness preservation boxes, freshness preservation machines, refrigerated cabinets, refrigerators, etc. The freshness preservation equipment contains a freshness preservation space for accommodating freshness preservation objects, which can include fresh agricultural products and perishable agricultural products, etc. In addition, it can also include dairy products, meats and seafood, baked goods, prefabricated foods and ready-to-eat meals, flowers and plants, and so on.
[0078] To determine the freshness preservation duration, as Figure 1 shown, first, a database of freshness preservation information for various freshness preservation objects is established. The database includes basic information of the freshness preservation objects and information such as the freshness preservation duration at different temperatures. The basic information includes but is not limited to the object type of the freshness preservation object, the optimal freshness preservation temperature, the optimal freshness preservation duration, the corresponding freshness preservation duration Yn at different ambient temperatures Tn (n = 1, 2, 3...), etc., for algorithm call. For example: The optimal ambient temperature for a certain kind of fruit and vegetable is 2 degrees. After querying the database, it can be known that:
[0079] The ambient temperature T1 is 2 degrees, and the total freshness preservation duration Y1 is 10 days;
[0080] The ambient temperature T2 is 4 degrees, and the total freshness preservation duration Y2 is 8 days;
[0081] The ambient temperature T3 is 6 degrees, and the total freshness preservation duration Y3 is 6 days; ...
[0083] The ambient temperature is Tn degrees, and the total freshness preservation duration is Yn days; ...
[0085] If there is a freshness preservation object not included in the database, the database information of this freshness preservation object can be customarily added for future use. The database information is sourced from experimental tests or reference to existing databases. All database information is stored in the storage module 2 as Figure 2 shown, and the information in the storage module 2 can be read by the main control module 1.
[0086] As an example, the object to be preserved is fruits and vegetables. When the fruits and vegetables are picked, an initial interactive recognition is performed. That is, immediately after the fruits and vegetables are picked, image recognition is carried out through the camera 3 to identify the type of fruits and vegetables. After successful recognition, a timestamp is sent to the main control module 1 through communication to indicate that they have been picked, triggering the timing circuit to start the preservation timing. The current temperature of the preservation space is collected through the temperature sensor 4. Combining the information in the database, the current preservation duration of this type of fruits and vegetables is displayed, and the preservation timing after picking can be shown in the interactive module 6 (such as 24 hours have passed after picking or there are still 24 hours until spoilage is estimated). This time information can be selected by the user whether it is an important parameter and whether a password needs to be entered in the interactive module 6 to view it. Detect the remaining storage duration at the current moment t. If this value is less than the specified threshold, trigger the alarm generator 5 to alarm, reminding the user to take measures to reduce losses.
[0087] As Figure 3 shown, the method for determining the preservation duration may include the following steps:
[0088] Step S101, obtain the environmental temperature in the preservation space;
[0089] In the embodiment of the present application, the preservation space is used to preserve the object to be preserved. Since the environmental temperature in the preservation space is different, it will affect the preservation duration of the object to be preserved. Therefore, in this step, the environmental temperature in the preservation space can be obtained every preset time period. Exemplarily, the preset time period can be 5 seconds, half a minute, 1 minute, 5 minutes, 10 minutes, etc.
[0090] Step S102, when the change amplitude of the environmental temperature from the first temperature to the second temperature exceeds the preset change threshold, obtain the duration during which the environmental temperature changes to the second temperature, obtain the start time of preservation, and obtain the temperature change time when each change amplitude exceeds the preset change threshold;
[0091] In the embodiments of the present application, the first temperature refers to the ambient temperature before the change. The first temperature may be the same as the initial temperature or different from the initial temperature. The second temperature refers to the ambient temperature after the change. The preset change threshold can be determined according to the minimum temperature change amount that affects the change of the fresh-keeping duration. That is to say, assuming that for every 2-degree increase in the ambient temperature, the fresh-keeping duration is shortened by 2 days, and when the ambient temperature fluctuates by less than 2 degrees, the fresh-keeping duration does not change, then the preset change threshold can be set to 2 degrees. The fresh-keeping start time is the time when the fresh-keeping object is placed in the fresh-keeping space. The temperature change time is the time when the temperature changes each time and the change amplitude exceeds the preset change threshold. For example, when the ambient temperature changes from 1 degree to 4 degrees, the change amplitude of 3 degrees is greater than the preset change threshold of 2 degrees, then the time of this ambient temperature change is the temperature change time. Another example: when the ambient temperature changes from 1 degree to 2 degrees, the change amplitude of 1 degree is less than the preset change threshold of 2 degrees, then the time of this ambient temperature change is not the temperature change time.
[0092] In this step, the change amplitude of the ambient temperature obtained twice adjacent can be calculated, and the change amplitude of the first temperature obtained previously and the second temperature obtained subsequently in the two adjacent times can also be calculated. The difference between the first temperature and the second temperature can be calculated, and the absolute value of the difference can be taken to obtain the change amplitude.
[0093] In the case where the change amplitude exceeds the preset change threshold, the duration after the ambient temperature changes to the second temperature can be obtained. For example, when the ambient temperature changes from 1 degree to 4 degrees, the change amplitude of 3 degrees is greater than the preset change threshold of 2 degrees, then the duration after the temperature changes to 4 degrees can be obtained.
[0094] Step S103, determine the deterioration degree of the fresh-keeping object according to the duration, the fresh-keeping start time, and each temperature change time;
[0095] In the embodiments of the present application, the deterioration degree refers to the deterioration degree of the fresh-keeping object after the temperature change (the temperature change hereinafter all refers to the change amplitude exceeding the preset change threshold), that is, the deterioration degree corresponds to the second temperature.
[0096] Since the fresh-keeping object is in a continuous deterioration process before and after the temperature change, in an embodiment of the present application, in order to make the calculation result more accurate, it is necessary to consider the deterioration degree of the fresh-keeping object before the temperature change and the deterioration degree of the fresh-keeping object after the temperature change. Further, the deterioration degree of the fresh-keeping object within the duration, that is, after the temperature change, can be determined according to the duration, and then combined with the deterioration degree of the fresh-keeping object before the temperature change, the deterioration degree of the fresh-keeping object can be obtained.
[0097] In another embodiment of the present application, for simpler and faster calculation, it is also possible to only consider the impact on the predetermined total preservation duration corresponding to the initial temperature after the temperature change. Therefore, the degree of deterioration of the preservation object within the duration, that is, after the temperature change, can be determined according to the duration. Then, according to the ratio of the time point of the temperature change to the total preservation duration corresponding to the initial temperature, and the ratio of the change amplitude to the preset change threshold, two ratios are respectively multiplied by corresponding coefficients (the values of the coefficients can be preset in advance) to determine the deterioration impact factor. Multiply the degree of deterioration of the preservation object after the temperature change by the deterioration impact factor to obtain the degree of deterioration of the preservation object.
[0098] Step S104, determine the remaining preservation duration of the preservation object according to the degree of deterioration.
[0099] In this step, the freshness of the preservation object can be calculated according to the degree of deterioration, and the remaining preservation duration of the preservation object can be obtained by multiplying the freshness by the total preservation duration after the temperature change.
[0100] In practical applications, after obtaining the remaining preservation duration, if the remaining preservation duration reaches a preset duration threshold, an alarm can be issued to prompt relevant personnel.
[0101] In the embodiment of the present application, when the environmental temperature in the preservation space changes and the change amplitude exceeds the preset change threshold, the degree of deterioration of the preservation object can be determined according to the duration of the temperature change to the second temperature, the preservation start time, and each temperature change time, and then the remaining preservation duration of the preservation object can be determined. It can automatically determine the degree of deterioration of the preservation object according to the change of the environmental temperature in the scenario where the environmental temperature changes, and then determine the remaining preservation duration of the preservation object according to the degree of deterioration, making the estimation of the preservation duration more accurate and avoiding the problem of inaccurate estimation of the remaining preservation duration of the preservation object under a single temperature.
[0102] In another embodiment of the present application, step S103 determines the degree of deterioration of the preservation object according to the duration, the preservation start time, and each temperature change time, including:
[0103] Step S201, determine the elapsed preservation duration of the preservation object according to the duration, the preservation start time, and each temperature change time;
[0104] In the embodiment of the present application, the elapsed preservation duration is the elapsed preservation duration of the preservation object at the second temperature. However, in practice, the preservation object has experienced the preservation duration before the temperature change and the preservation duration after the temperature change. For the convenience of subsequent calculation, the preservation duration before the temperature change can be converted into the preservation duration after the temperature change, and the obtained preservation duration after conversion is added to the duration to obtain the elapsed preservation duration.
[0105] Step S202: Obtain the total preservation duration of the preservation object at the second temperature.
[0106] In the embodiments of the present application, the total preservation duration is a preset fixed value. In this step, the total preservation duration corresponding to the second temperature can be directly obtained from the database.
[0107] Step S203: Determine the deterioration degree of the preservation object as the ratio of the preservation duration to the total preservation duration.
[0108] The calculation formula for the deterioration degree is as follows: Deterioration degree = Preserved duration at the second temperature after temperature change / Total preservation duration at the second temperature after temperature change.
[0109] In the embodiments of the present application, by calculating the ratio of the preserved duration of the preservation object at the second temperature after temperature change to the total preservation duration corresponding to the second temperature, the deterioration degree of the preservation object is finally obtained. By calculating the ratio of the preserved duration to the total preservation duration corresponding to the second temperature, the deterioration degree can be obtained quickly and accurately.
[0110] In another embodiment of the present application, step S201 for determining the preserved duration of the preservation object according to the continuous duration includes:
[0111] Step S301: Obtain the number of times that the change amplitude of the ambient temperature exceeds a preset change threshold.
[0112] In practical applications, since the ambient temperature may change multiple times beyond the preset change threshold, the number of temperature changes of the ambient temperature that exceed the preset change threshold after the preservation object is placed in the preservation space can be obtained.
[0113] Step S302: Determine the preserved duration of the preservation object at the second temperature according to the number of times, the continuous duration, the preservation start time, and each temperature change time.
[0114] In this step, corresponding methods can be adopted according to the different numerical ranges to which the numerical value of the number of times belongs, and then combined with the continuous duration, the preservation start time, and each temperature change time to calculate the preserved duration.
[0115] In the embodiments of the present application, the preserved duration of the preservation object at the second temperature can be determined according to the number of temperature changes of the ambient temperature that exceed the preset change threshold and the continuous duration of the preservation object at the second temperature. By considering the situation before the current temperature change through the preservation start time and each temperature change time, it is convenient to obtain a more accurate deterioration degree.
[0116] In yet another embodiment of the present application, step S302 determines the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the preservation start time, and each temperature change time, including:
[0117] Step S401, if it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold for the first time, obtain the first duration during which the preservation object is preserved at the first temperature before the change amplitude exceeds the preset change threshold according to the preservation start time and each temperature change time;
[0118] Step S402, convert the first duration into a second duration during which the preservation object is preserved at the second temperature after the change amplitude exceeds the preset change threshold;
[0119] Step S403, determine the elapsed preservation time of the preservation object at the second temperature based on the second duration and the duration.
[0120] In the embodiment of the present application, when the change amplitude of the ambient temperature exceeds the preset change threshold for the first time, the first duration before the temperature change can be converted into the second duration at the second temperature, and then the sum of the second duration and the duration is determined as the elapsed preservation time, fully considering the preservation duration before the temperature change and the preservation duration after the temperature change, and converting the preservation duration before the temperature change to the duration corresponding to the same second temperature after the temperature change, so as to accurately calculate the deterioration degree with the total preservation duration at the second temperature.
[0121] In yet another embodiment of the present application, step S302 determines the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the preservation start time, and each temperature change time, further including:
[0122] Step S501, if it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold not for the first time, obtain the first duration during which the preservation object is preserved at each first temperature before the change amplitude exceeds the preset change threshold according to the preservation start time and each temperature change time;
[0123] Step S502, convert each of the first durations into a second duration during which the preservation object is preserved at the second temperature after the change amplitude exceeds the preset change threshold;
[0124] Step S503, determine the elapsed preservation time of the preservation object at the second temperature based on each of the second durations and the duration.
[0125] When the temperature change amplitude in the embodiments of the present application exceeds the preset change threshold multiple times, the first duration before each temperature change can be converted into the second duration at the second temperature after the last temperature change, and then the sum of multiple second durations and the continuous duration is determined as the preserved duration. This fully considers the preserved duration before the temperature change and the preserved duration after the temperature change, and converts the preserved duration before multiple temperature changes into the duration corresponding to the same second temperature after the temperature change, so as to accurately calculate the degree of deterioration with the total preserved duration at the second temperature.
[0126] In another embodiment of the present application, step S104 determines the remaining preserved duration of the preservation object according to the degree of deterioration, including:
[0127] Step S601, calculate the freshness of the preservation object according to the degree of deterioration;
[0128] Step S602, in an implementation manner of the present application, calculating the freshness of the preservation object according to the degree of deterioration includes: calculating the difference of one minus the degree of deterioration; determining the difference as the freshness of the preservation object.
[0129] Step S603, determine the product of the total preserved duration of the preservation object at the second temperature and the freshness as the remaining preserved duration of the preservation object.
[0130] In the embodiments of the present application, the remaining preserved duration can be calculated by the following formula:
[0131] Remaining preserved duration = total preserved duration at the second temperature after temperature change * freshness, where freshness = 1 - degree of deterioration.
[0132] The embodiments of the present application can calculate the freshness accurately through the degree of deterioration calculated in the foregoing embodiments, and then calculate the accurate remaining preserved duration, improving the accuracy of estimating the preserved duration of the preservation object.
[0133] For the sake of easy understanding, the embodiments of the present application also provide an embodiment in practical applications as follows:
[0134] As Figure 4 shown, assume that at t = 0, the detected ambient temperature is T 1 , when the difference from T 1 reaches ΔT, that is, the temperature jumps once, and the time point is recorded as X 1 ; when the difference from T 1 reaches ΔT, that is, the temperature jumps again, and the time point is recorded as X 2 , and so on.
[0135] At X 1 ≤t<X2 When the degree of deterioration and the remaining fresh-keeping time are calculated according to T 2 corresponding fresh-keeping duration;
[0136] At X n-1 ≤t<X n When, the degree of deterioration and the remaining fresh-keeping time are calculated according to T n corresponding fresh-keeping duration;
[0137] At X n ≤t<X n+1 When, the degree of deterioration and the remaining fresh-keeping time are calculated according to T n+1 corresponding fresh-keeping duration
[0138] 1) When 0≤t<X 1 When, calculate according to the heat preservation duration Y 1 corresponding, because 0≤t<X 1 There is no temperature jump in the interval, the existing duration is t, and the total fresh-keeping duration at this temperature is Y 1 , so the estimated degree of deterioration is: 1 The remaining storage time at this time, that is, the remaining fresh-keeping time, is C =Y 1 *(1 - F 1 ). 1 )
[0139] 2) At X 1 ≤t<X 2 When, the first jump occurs. Assume that the temperature becomes T 2 , because the degree of deterioration is the existing duration at this temperature (the degree of deterioration corresponds to the changed temperature), so it is necessary to convert the existing duration at the temperature of T 1 to the existing duration at the temperature of T 2 . At the temperature of T 1 the total fresh-keeping duration is Y 1 days, and at the temperature of T 2 the total fresh-keeping duration is Y 2 days. In order to make the degree of deterioration equal, let Storing for t 1 days at the temperature of T 1 is equivalent to storing for t 2 days at the temperature of T 2 :
[0140] At X 1 ≤t<X 2 When, it has already been stored for X 1 days at the temperature of T 1 plus storing for (t - X 2 ) days (the meaning of t) at the temperature of T 1 ), which is equivalent to at the temperature of T2 Stored at temperature k 21 *X 1 +(t - X 1 ) days, and the estimated degree of deterioration at this time is: The remaining storage time at this time, that is, the remaining freshness time, is C 2 = Y 2 *(1 - F 2 )
[0141] 3) Similarly, when X 2 ≤t < X 3 , the second jump occurs. Assume the temperature becomes T 3 , and the stored duration needs to be converted to the duration stored at T 3 temperature. At this time, it has been stored at T 1 temperature for X 1 days, plus the duration stored at T 2 temperature for (X 2 - X 1 ) days, plus the duration stored at T 3 temperature for (t - X 2 ) days. The estimated degree of deterioration at this time is The remaining storage time at this time, that is, the remaining freshness time, is C 3 = Y 3 *(1 - F 3 )
[0142] 4) And so on, when X n-1 ≤t < X n , the (n - 1)th jump occurs. Assume the temperature becomes T n , and the stored duration needs to be converted to the duration stored at T n temperature. The estimated degree of deterioration at this time is The remaining storage time at this time, that is, the remaining freshness time, is C n = Y n *(1 - F n )
[0143] 5) And so on, when X n ≤t < X n+1 , the nth jump occurs. Assume the temperature becomes T n+1 , and the stored duration needs to be converted to the duration stored at T n+1 temperature. The estimated degree of deterioration at this time is:
[0144] The remaining storage time at this time, that is, the remaining freshness time, is C n+1 = Y n+1 *(1 - F n+1 )
[0145] Since it is necessary to convert to the storage duration at the same temperature, the coefficient k cannot be derived from k n1 to k (n+1)1 , so F cannot be derived from F n to F n+1 . However, in F n , except that t is a variable, the others are all constants and can be directly calculated or queried.
[0146] Based on the above, Table 1 can be obtained as follows:
[0147] Table 1 Freshness and Estimated Storage Duration under Temperature Jump
[0148]
[0149]
[0150] In another embodiment of the present application, a device for determining the freshness duration is further provided. As Figure 5 shown, it includes:
[0151] The first acquisition module 11 is used to acquire the ambient temperature in the freshness preservation space, and the freshness preservation space is used to preserve the freshness preservation object;
[0152] The second acquisition module 12 is used to acquire the duration of the ambient temperature changing to the second temperature, the freshness preservation start time, and the temperature change time when each change amplitude exceeds the preset change threshold when the change amplitude of the ambient temperature from the first temperature to the second temperature exceeds the preset change threshold;
[0153] The first determination module 13 is used to determine the deterioration degree of the freshness preservation object according to the duration, the freshness preservation start time, and each temperature change time;
[0154] The second determination module 14 is used to determine the remaining freshness duration of the freshness preservation object according to the deterioration degree.
[0155] Optionally, the first determination module includes:
[0156] The first determination sub-module is used to determine the preserved duration of the freshness preservation object according to the duration, the freshness preservation start time, and each temperature change time;
[0157] The first acquisition sub-module is used to acquire the total freshness preservation duration of the freshness preservation object at the second temperature;
[0158] The second determination sub-module is used to determine the ratio of the freshness preservation duration to the total freshness preservation duration as the deterioration degree of the freshness preservation object.
[0159] Optionally, the first determination sub-module includes:
[0160] A first acquisition unit for acquiring the number of times that the change amplitude of the ambient temperature exceeds a preset change threshold.
[0161] A first determination unit for determining the elapsed preservation time of the preservation object at the second temperature according to the number of times, the duration, the preservation start time, and each temperature change time.
[0162] Optionally, the first determination unit includes:
[0163] A first acquisition subunit for, if it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold for the first time, acquiring a first duration during which the preservation object is preserved at the first temperature before the change amplitude exceeds the preset change threshold according to the preservation start time and each temperature change time.
[0164] A first conversion subunit for converting the first duration into a second duration during which the preservation object is preserved at the second temperature after the change amplitude exceeds the preset change threshold.
[0165] A first determination subunit for determining the elapsed preservation time of the preservation object at the second temperature based on the second duration and the duration.
[0166] Optionally, the first determination unit further includes:
[0167] A second acquisition subunit for, if it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold non-first time, acquiring a first duration during which the preservation object is preserved at each first temperature before the change amplitude exceeds the preset change threshold according to the preservation start time and each temperature change time.
[0168] A second conversion subunit for respectively converting each first duration into a second duration during which the preservation object is preserved at the second temperature after the change amplitude exceeds the preset change threshold.
[0169] A second determination subunit for determining the elapsed preservation time of the preservation object at the second temperature based on each second duration and the duration.
[0170] Optionally, the second determination module includes:
[0171] A calculation sub-module for calculating the freshness of the preservation object according to the degree of deterioration.
[0172] A third determination sub-module for determining the remaining preservation time of the preservation object as the product of the total preservation time of the preservation object at the second temperature and the freshness.
[0173] Optionally, the calculation sub-module includes:
[0174] A calculation unit for calculating the difference between one and the deterioration degree;
[0175] A second determination unit for determining the difference as the freshness degree of the fresh-keeping object.
[0176] Optionally, the device further includes:
[0177] An alarm module for sending an alarm prompt if the remaining fresh-keeping duration exceeds a preset threshold.
[0178] In another embodiment of the present application, there is also provided a fresh-keeping device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus;
[0179] The memory is used for storing a computer program;
[0180] The processor, when executing the program stored on the memory, implements the method for determining the fresh-keeping duration described in any of the foregoing method embodiments.
[0181] In the fresh-keeping device provided by the embodiment of the present invention, when the processor executes the program stored on the memory, in the case where the environmental temperature in the fresh-keeping space changes and the change amplitude exceeds a preset change threshold, the deterioration degree of the fresh-keeping object can be determined according to the duration of the temperature change to the second temperature, and then the remaining fresh-keeping duration of the fresh-keeping object can be determined, realizing the automatic determination of the deterioration degree of the fresh-keeping object according to the change of the environmental temperature in the scenario where the environmental temperature changes, and then determining the remaining fresh-keeping duration of the fresh-keeping object according to the deterioration degree, making the estimation of the fresh-keeping duration more accurate and avoiding the problem of inaccurate estimation of the remaining fresh-keeping duration of the fresh-keeping object at a single temperature.
[0182] The communication bus 1140 mentioned in the above xx device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 6 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0183] The communication interface 1120 is used for communication between the above xx device and other devices.
[0184] The memory 1130 may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.
[0185] The aforementioned processor 1110 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0186] In another embodiment of the present application, a computer-readable storage medium is further provided. A program for the method of determining the freshness preservation duration is stored on the computer-readable storage medium. When the program for the method of determining the freshness preservation duration is executed by a processor, the steps of the method of determining the freshness preservation duration described in any of the foregoing method embodiments are implemented.
[0187] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.
[0188] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining the preservation time, characterized in that: include: Acquiring the ambient temperature in a fresh-keeping space, where the fresh-keeping space is used to keep fresh-keeping objects fresh; When the change amplitude of the ambient temperature from the first temperature to the second temperature exceeds the preset change threshold, obtain the duration of the ambient temperature change to the second temperature, obtain the start time of fresh-keeping, and obtain the temperature change time each time the change amplitude exceeds the preset change threshold; Determining the degree of deterioration of the preservation object according to the duration, the preservation start time and each of the temperature change times; The remaining preservation time of the preservation object is determined according to the degree of deterioration.
2. The method for determining the preservation time according to claim 1, characterized in that: Determining the degree of deterioration of the preservation object according to the duration, the preservation start time and each of the temperature change times includes: Determine the preservation time of the preservation object according to the duration, the preservation start time and each temperature change time; Obtaining the total preservation time of the preservation object at the second temperature; The ratio of the preservation time to the total preservation time is determined as the deterioration degree of the preservation object.
3. The method for determining the preservation time according to claim 2, characterized in that: Determining the preservation time of the preservation object according to the duration, the preservation start time and each of the temperature change times includes: Obtaining the number of times the change amplitude of the ambient temperature exceeds the preset change threshold; The preservation time of the preservation object at the second temperature is determined according to the number of times, the duration, the preservation start time and each temperature change time.
4. The method for determining the preservation time according to claim 3, characterized in that: Determining the preservation time of the preservation object at the second temperature according to the number of times, the duration, the preservation start time and each temperature change time includes: If it is determined according to the number of times that the change amplitude of the ambient temperature exceeds the preset change threshold for the first time, obtaining, according to the fresh-keeping start time and each of the temperature change times, a first duration of the fresh-keeping object being kept fresh at the first temperature before the change amplitude exceeds the preset change threshold; converting the first time duration into a second time duration for keeping the fresh-keeping object at a second temperature after the change amplitude exceeds the preset change threshold; The preservation time of the preservation object at the second temperature is determined based on the second time period and the continuous time period.
5. The method for determining the preservation time according to claim 3, characterized in that: Determining the preservation time of the preservation object at the second temperature according to the number of times, the duration, the preservation start time and each temperature change time, further comprising: If it is determined according to the number of times that the change amplitude of the ambient temperature does not exceed the preset change threshold for the first time, obtaining the first time length of the preservation of the preservation object at each first temperature before the change amplitude exceeds the preset change threshold according to the preservation start time and each temperature change time; converting each of the first time periods into a second time period for keeping the fresh-keeping object at a second temperature after the change amplitude exceeds a preset change threshold; The preservation time of the preservation object at the second temperature is determined based on each of the second time periods and the continuous time period.
6. The method for determining the preservation time according to claim 1, characterized in that: Determining the remaining preservation time of the preservation object according to the degree of deterioration includes: Calculating the freshness of the preservation object according to the degree of deterioration; The product of the total preservation time of the preservation object at the second temperature and the freshness level is determined as the remaining preservation time of the preservation object.
7. The method for determining the preservation time according to claim 6, characterized in that: Calculating the freshness of the preservation object according to the deterioration degree includes: calculating the difference of one minus the degree of deterioration; The difference is determined as the freshness of the preservation object.
8. The method for determining the preservation time according to claim 1, characterized in that: The method further comprises: If the remaining fresh-keeping time exceeds a preset threshold, an alarm is issued.
9. A device for determining the preservation time, characterized in that: include: A first acquisition module is used to acquire the ambient temperature in a fresh-keeping space, where the fresh-keeping space is used to preserve fresh-keeping objects; A second acquisition module is used to obtain the duration of the change of the ambient temperature to the second temperature, the start time of preservation, and the temperature change time when each change amplitude exceeds the preset change threshold when the change amplitude of the ambient temperature from the first temperature to the second temperature exceeds the preset change threshold when the ambient temperature changes from the first temperature to the second temperature; A first determination module is used to determine the degree of deterioration of the preservation object according to the duration, the preservation start time and each of the temperature change times; The second determining module is used to determine the remaining preservation time of the preservation object according to the degree of deterioration.
10. A fresh-keeping device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the method for determining the preservation time as described in any one of claims 1 to 8 when executing the program stored in the memory.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for determining the freshness-keeping time. When the program for determining the freshness-keeping time is executed by the processor, the steps of the method for determining the freshness-keeping time described in any one of claims 1 to 8 are implemented.