Method and device for establishing a viable count prediction model for probiotic ice cream
By establishing a live bacteria database of ice cream samples and constructing two-dimensional and three-dimensional prediction models with time and temperature as variables, the limitations and low accuracy of the probiotic ice cream live bacteria count prediction model were solved, achieving more efficient prediction and a more reliable database.
Patent Information
- Application Number
- CN202210864672.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-07-21
AI Technical Summary
Existing probiotic ice cream live bacteria count prediction models have limitations, low accuracy, high computational complexity, and low sample database reliability.
A database of live probiotics in ice cream samples was established. Two-dimensional and three-dimensional prediction models were constructed using time and temperature as variables to predict the number of live bacteria, thereby improving the accuracy of the models and the reliability of the database.
This broadens the application scope of the model, improves the accuracy of predictions, reduces the complexity of calculations, and ensures the reliability of the database.
Smart Images

Figure CN117473692B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of probiotic monitoring technology, and in particular to a method and apparatus for establishing a live bacteria count prediction model for probiotic ice cream. Background Technology
[0002] This section is intended to provide background or context for the embodiments of the invention set forth in the claims. The description herein is not an admission that it is prior art simply because it is included in this section.
[0003] Probiotics are defined as microorganisms that produce benefits to the human body after ingesting a certain amount of live probiotics, playing a vital role in human health. Probiotic ice cream is a relatively new probiotic product, and the low-temperature substrate of ice cream, which is high in protein, fat, and solids, is ideal for maintaining the long-term activity of probiotics.
[0004] The definition of probiotics states that a certain amount of live bacteria must be ingested to be beneficial to the human body, and according to the T / CNFIA131-2021 probiotic food standard quality requirements, the number of live bacteria must not be less than 10 during its shelf life. 7 Therefore, it is essential to predict the number of viable bacteria under different storage conditions, as the cfu / mL(g) count is crucial.
[0005] Currently, microbial count prediction models for food mainly aim to predict the growth of pathogens or spoilage bacteria under different conditions. Existing models often suffer from the following problems: 1. They can only predict the viable count of probiotics at specific temperatures, meaning their viable count prediction is limited; 2. The model's fit is not high enough, resulting in inaccurate predictions and high computational complexity; 3. The reliability of the sample database on which the model is based is relatively low because the samples contain a large number of viable bacteria, with 1 gram of sample containing nearly 100 viable bacteria. 7 The CFU / g count is relatively small, and even minor differences in the operation steps can lead to significant variations in the final viable count. Therefore, the original database may contain a number of outliers that deviate from the overall trend of the data, making the database less reliable. Summary of the Invention
[0006] This invention provides a method for establishing a live bacteria count prediction model for probiotic ice cream, to solve the problems of limited prediction, low accuracy, cumbersome calculation, high computational cost, and low reliability of sample databases in existing live bacteria count prediction models. The method includes:
[0007] A live probiotic database is established in ice cream samples. The data in the live probiotic database consists of sample data on the number of live bacteria for each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature, and the sampling time. The live probiotic database is preprocessed to obtain a live bacteria numerical database.
[0008] Using time as a variable, a two-dimensional prediction model for the number of viable bacteria is established based on the viable bacteria numerical database.
[0009] Using time and temperature as variables, a three-dimensional prediction model for viable cell count is established based on the viable cell count database.
[0010] When the temperature at which the predicted live bacteria count is located is the preset temperature, the two-dimensional prediction model for the live bacteria count is used to predict the live bacteria count; when the temperature at which the predicted live bacteria count is located is not the preset temperature, the three-dimensional prediction model for the live bacteria count is used to predict the live bacteria count.
[0011] This invention also provides a device for establishing a live bacteria count prediction model for probiotic ice cream, to solve the problems of limited prediction, low accuracy, cumbersome calculation, high computational load, and low reliability of sample database in existing live bacteria count prediction models. The device includes:
[0012] The database establishment module is used to establish a live bacteria database of probiotics in ice cream samples. The data in the live bacteria database of probiotics is sample data of the number of live bacteria of each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature and the sampling time. The live bacteria database of probiotics is preprocessed to obtain a live bacteria numerical database.
[0013] The two-dimensional prediction model acquisition module is used to establish a two-dimensional prediction model of the number of viable bacteria based on the viable bacteria numerical database, with time as the variable.
[0014] The three-dimensional prediction model acquisition module is used to establish a three-dimensional prediction model of viable bacteria number based on the viable bacteria number database, with time and temperature as variables.
[0015] The viable count prediction module is used to predict the viable count using a two-dimensional prediction model when the temperature at which the predicted viable count is set to a preset temperature; and to predict the viable count using a three-dimensional prediction model when the temperature at which the predicted viable count is not set to a preset temperature.
[0016] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned method for establishing a live bacteria count prediction model for probiotic ice cream.
[0017] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for establishing a live bacteria count prediction model for probiotic ice cream.
[0018] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-mentioned method for establishing a live bacteria count prediction model for probiotic ice cream.
[0019] In this embodiment of the invention, compared with existing live bacteria count prediction models that suffer from limitations, low accuracy, high computational complexity and volume, and low reliability of sample databases, the present invention establishes a live probiotic database in ice cream samples. The data in this probiotic database consists of sample data on the live bacteria count of each type of probiotic, including live bacteria count, sampling number, sampling temperature, and sampling time information. The probiotic live bacteria database is preprocessed to obtain a live bacteria numerical database, thus improving the reliability of the sample database. Using time as a variable, the live bacteria numerical data is used to... A two-dimensional prediction model for viable cell count is established based on the viable cell count database. Using time and temperature as variables, a three-dimensional prediction model for viable cell count is established based on the database, thus improving the reliability of the prediction model. When the temperature for predicting the viable cell count is the preset temperature, the two-dimensional prediction model is used for viable cell count prediction; when the temperature for predicting the viable cell count is not the preset temperature, the three-dimensional prediction model is used. By selecting the appropriate model based on the actual predicted temperature, the accuracy of the model prediction is ensured, and the limitation of the prediction model to storage temperature is overcome, thus broadening the application scope. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0021] Figure 1 The following is a flowchart of the method for establishing a live bacteria count prediction model for probiotic ice cream in this embodiment of the invention. Figure 1 ;
[0022] Figure 2 This is a flowchart of the two-dimensional prediction model domestication method in an embodiment of the present invention;
[0023] Figure 3 This is a flowchart of the anomaly point judgment method in an embodiment of the present invention;
[0024] Figures 4 to 6 The following are two-dimensional prediction model effect diagrams of bacteria A, bacteria B, and mixed bacteria A and B at a preset temperature of 2°C in the embodiments of the present invention.
[0025] Figures 7 to 9 This is a two-dimensional prediction model effect diagram of bacteria A, bacteria B, and a mixture of bacteria A and bacteria B at a preset temperature of -8℃ in an embodiment of the present invention.
[0026] Figures 10 to 12 This is a two-dimensional prediction model effect diagram of bacteria A, bacteria B, and mixed bacteria of bacteria A and bacteria B at a preset temperature of -18℃ in an embodiment of the present invention.
[0027] Figures 13 to 15 This is a three-dimensional prediction model diagram of bacteria A, bacteria B, and a mixture of bacteria A and bacteria B in an embodiment of the present invention.
[0028] Figure 16 This is a structural block diagram of the device for establishing a live bacteria count prediction model for probiotic ice cream in an embodiment of the present invention. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0030] Figure 1 The following is a flowchart of the method for establishing a live bacteria count prediction model for probiotic ice cream in this embodiment of the invention. Figure 1 ,like Figure 1 As shown, the method for establishing the live bacteria count prediction model for this probiotic ice cream includes:
[0031] S101: Establish a live bacteria database of probiotics in ice cream samples. The data in the live bacteria database of probiotics is sample data of the number of live bacteria of each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature, and the sampling time. The live bacteria database of probiotics is preprocessed to obtain a live bacteria numerical database.
[0032] S102: Using time as a variable, establish a two-dimensional prediction model for the number of viable bacteria based on the viable bacteria numerical database;
[0033] S103: Using time and temperature as variables, establish a three-dimensional prediction model for the number of viable bacteria based on the viable bacteria numerical database;
[0034] S104: When the temperature at which the predicted number of live bacteria is is the preset temperature, the two-dimensional prediction model for the number of live bacteria is used to predict the number of live bacteria; when the temperature at which the predicted number of live bacteria is not the preset temperature, the three-dimensional prediction model for the number of live bacteria is used to predict the number of live bacteria.
[0035] In this embodiment of the invention, step 1, the specific method for establishing a live bacteria database, is as follows: Several preset temperatures are set, and several ice cream samples containing probiotics are placed at the preset temperatures for constant temperature storage. The live bacteria counts of the several ice cream samples containing probiotics are periodically recorded, and the results of the counts are labeled with the probiotic species, the number of days of sampling, and the number of samplings, thereby obtaining a live bacteria database of probiotics in the ice cream samples. (The original database of samples). The data in the probiotic live bacteria database is sample data of the number of live bacteria for each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature, and the sampling time.
[0036] It should be noted that multiple preset temperatures can be set, and the interval can be adjusted according to actual conditions. Then, the food is stored at different preset temperatures under constant temperature, and viable bacteria counts are performed periodically, with the time interval measured in days. The detection method for this viable bacteria count can be based on GB 4789.35-2016, "Food Microbiology Examination: Lactic Acid Bacteria Examination," to obtain the count results. Let t = 1, ..., T represent the number of samplings, t = 1, ..., T represent the types of probiotics, j = 1, ..., m represent the labels of the ice cream samples, and x represent the number of samples. i =1,…,N represents the number of days in the i-th sampling. Precise labeling of the sample data facilitates accurate data segmentation, thereby enabling the effective use of this data in fitting and establishing the prediction model.
[0037] Then, the probiotic live bacteria database is preprocessed to obtain a live bacteria numerical database. for The numerical result after preprocessing is the result of the i-th viable cell count. The corresponding viable cell count, this preprocessing includes standardization and normalization, which is beneficial for subsequent model fitting, establishment and data analysis.
[0038] It should be noted that the definition
[0039] in, This represents the live count of the probiotics sampled in the i-th sampling, i.e., the measured live count of the probiotics to be predicted; when predicting the live count of a single probiotic, it is based on the probiotic live count database. Obtain the live bacteria database of the individual probiotic. This refers to the viable count of probiotic species t when sampling number i; when predicting the viable count of mixed bacteria, it is based on the probiotic viable count database. Obtain the viable cell database of the mixed bacteria. The viable count of the mixed bacteria is given when the number of samplings is i.
[0040] This embodiment provides a specific form of preprocessing, which includes standardization (taking lg) and normalization, wherein:
[0041] Taking lg: In microbiology, the expression of viable bacteria count in lg form is usually a simpler and clearer functional relationship with time compared to the actual viable bacteria count form. In statistics, datasets with large fluctuations are usually standardized to facilitate high-fit, goodness-of-fit data and the establishment of functional relationships.
[0042] Normalization: When multiple strains of lactic acid bacteria are present, normalizing the mixed bacterial count allows for a more intuitive observation of the average viable count of the strains contained in the probiotics. The normalized mixed bacterial count and the viable count of each single strain are within the same order of magnitude, which facilitates comparison and analysis with various single strains in actual production. Furthermore, the total viable count of the probiotic product can be calculated from the normalized mixed bacterial count using a simple formula.
[0043] In this embodiment of the invention, step 2 uses time as a variable and establishes a two-dimensional prediction model for the number of viable bacteria based on the viable bacteria numerical database, including:
[0044] Step 2.1: Using time as the variable, establish two-dimensional polynomial fitting models of different degrees using a polynomial fitting function;
[0045] Specifically, in this embodiment, the degree of the fitting equation is not limited; it can be a first-order linear fitting equation or a higher-order fitting equation.
[0046] With the temperature fixed, a two-dimensional prediction model is established for the viable count of each type of bacteria in the sample, with time as the independent variable and viable count as the dependent variable. This model can predict the change in viable count at any time.
[0047] For example, three two-dimensional polynomial fitting models can be established, with degrees of 1, 2, and 3, respectively. The specific two-dimensional polynomial fitting models are as follows:
[0048] Establish a two-dimensional polynomial fitting model of degree 1:
[0049] z = wx + b;
[0050] Where z is the predicted number of viable bacteria, i = 1, ..., n is the number of samplings, x = 1, ..., N is the number of days for sampling, w is the coefficient, and b is the coefficient of the constant term;
[0051] Establish the loss function:
[0052]
[0053] Where L is the loss function;
[0054] The loss function represents the expected value z. i and observed values The best fit is achieved when the difference between the expected value and the observed value is minimized, i.e., the loss function reaches its minimum value.
[0055] Taking the derivative of the loss function L, we find that L reaches its minimum when the derivative is zero. Specifically, by taking the partial derivatives with respect to w and b and setting them to zero, we obtain:
[0056]
[0057] At this point, when the loss function reaches its minimum value,
[0058] in, Right now It is x i The average value.
[0059] Finally, the fitting equation is obtained.
[0060] Goodness of fit in
[0061] Where R is the goodness of fit, R 2 The value of is between 0 and 1. The closer it is to 1, the more the fitted curve matches the trend of the original measured data. SSE is the residual sum of squares, which is the sum of the differences between the measured value and the predicted value. SST is the total sum of squares, which reflects the degree of deviation between the measured value and the mean. Both SSE and SST are used to calculate the goodness of fit R, which is used to judge the degree of deviation between the fitted function and the true measured value. The closer it is to 1, the smaller the deviation.
[0062] in, Right now yes The average value.
[0063] Using the same principle as the above fitting method, a two-dimensional polynomial fitting model of degree 2 is established:
[0064] z = w1x 2 +w2x+b;
[0065] Where z is the predicted number of viable bacteria, i = 1, ..., n is the number of samplings, x = 1, ..., N is the number of days of sampling, w1 and w2 are coefficients, and b is the coefficient of the constant term;
[0066] Establish a two-dimensional polynomial fitting model of degree 3:
[0067] z = w1x 3 +w2x 2 +w3x+b;
[0068] Where z is the predicted number of viable bacteria, i = 1, ..., n is the number of samplings, x = 1, ..., N is the number of days of sampling, w1, w2, w3 are coefficients, and b is the coefficient of the constant term;
[0069] Loss function:
[0070] in, Let z be the viable count of probiotics in the i-th sample. i Let x be the number of days for the i-th sampling. i The predicted value of the corresponding viable bacteria count.
[0071] Taking the partial derivative of the loss function and setting it equal to 0 yields:
[0072]
[0073] w1, ..., w can then be calculated. m ,b,R 2 The method for obtaining R in a two-dimensional polynomial fitting model of degree 1 2 The method for obtaining the result is the same.
[0074] This completes the establishment of a two-dimensional polynomial fitting model of any degree, where the degree can be selected according to actual requirements.
[0075] Step 2.2: Based on the live bacteria numerical database, select the highest-order two-dimensional polynomial fitting model as the initial two-dimensional prediction model. Based on the initial two-dimensional prediction model, acclimate the lower-order (referring to orders lower than the highest order) two-dimensional polynomial fitting models in descending order of degree. Replace the highest-order two-dimensional polynomial fitting model with the acclimatized lower-order two-dimensional polynomial fitting model. After satisfying the preset judgment conditions, the acclimatization ends, and the lower-order two-dimensional polynomial fitting model at the end of the acclimatization is set as the two-dimensional prediction model for the live bacteria count.
[0076] In this embodiment, step 2.2 is further defined, such as... Figure 2 As shown, it specifically includes:
[0077] Step 2.2.1: Set the highest-order two-dimensional polynomial fitting model as the initial two-dimensional prediction model;
[0078] Step 2.2.2: Calculate the goodness of fit of the lower-order two-dimensional polynomial fitting model, set a goodness preset value, and if the goodness of fit is greater than or equal to the goodness preset value, proceed to step 2.2.3.
[0079] If the goodness of fit is less than the preset goodness value, proceed to step 2.2.4;
[0080] Step 2.2.3: Determine whether the degree of the lower-order two-dimensional polynomial fitting model is 1. If the degree is 1, proceed to step 2.2.4.
[0081] If the number of occurrences is greater than 1, proceed to step 2.2.5;
[0082] Step 2.2.4: Determine whether the lower-order two-dimensional polynomial fitting model is monotonic. If it is monotonic, proceed to step 2.2.5; otherwise, proceed to step 2.2.6.
[0083] Step 2.2.5: Perform a t-test on the lower-order two-dimensional polynomial fitting model to determine whether the lower-order two-dimensional polynomial fitting model is correlated with the initial two-dimensional prediction model. If they are correlated, proceed to step 2.2.7.
[0084] Otherwise, proceed to step 2.2.6;
[0085] Step 2.2.6: Determine whether there are any outliers in the live bacteria numerical database that deviate from the trend of the lower-order two-dimensional polynomial fitting model. If there are outliers, discard the outliers in the live bacteria numerical database that deviate from the trend of the lower-order two-dimensional polynomial fitting model.
[0086] Based on the live bacteria numerical database that discards outliers, a lower-order two-dimensional polynomial fitting model for discarding outliers is established.
[0087] Replace the lower-order two-dimensional polynomial fitting model with the lower-order two-dimensional polynomial fitting model that discards outliers, and return to step 2.2.3;
[0088] Otherwise, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for the number of viable bacteria, and the domestication ends.
[0089] Step 2.2.7: Determine whether the degree of the lower-order two-dimensional polynomial fitting model is 1. If the degree is 1, determine the lower-order two-dimensional polynomial fitting model as the two-dimensional prediction model of viable bacteria count, and the domestication ends.
[0090] If the degree is greater than 1, replace the highest degree two-dimensional polynomial fitting model with the lower degree two-dimensional polynomial fitting model, and return to step 2.2.1.
[0091] In this embodiment, the above process is repeated until the lowest possible model order is reached. For example, after analysis, the final result can use a first-order fitting model instead of a higher-order fitting model.
[0092] In this embodiment, the method for judging abnormal points in step 2.2.6 is further specified, specifically including:
[0093] A preset confidence interval is set to determine whether the viable bacteria value exists within the preset confidence interval of the lower-order two-dimensional polynomial fitting model. If it does not exist, the viable bacteria value is an outlier.
[0094] For example, you can set the preset confidence interval to a 95% confidence interval.
[0095] like Figure 3 As shown, the specific process for identifying anomalies is as follows:
[0096] Select the specified temperature and bacterial strain data;
[0097] Linear regression was performed and the coefficients of the 95% confidence interval were calculated;
[0098] Substitute the number of days x into the fitting formula for the 95% confidence interval coefficient;
[0099] Determine if z is within the range. If it is, keep the value and complete the filtering; otherwise, discard the value and complete the filtering.
[0100] In this embodiment, the degree of the highest-degree two-dimensional polynomial fitting model is further limited, specifically: the degree of the highest-degree two-dimensional polynomial fitting model is set to 3.
[0101] Based on the actual situation of the live bacteria count prediction of probiotic ice cream, the degree of the highest and lowest two-dimensional polynomial fitting model is set to 3. This can meet the actual needs of model fitting without increasing the amount of computation, because under the condition of meeting the requirements, it is not necessary to establish a higher-degree two-dimensional polynomial fitting model.
[0102] This implementation method specifically includes three judgment criteria:
[0103] 1. Observe the goodness of fit R. 2 Is it greater than 0.5 (preset goodness value)?
[0104] 2. Whether the two-dimensional polynomial fitting model with an observation degree of 1 is monotonic overall;
[0105] 3. Perform a t-test on the low-order and high-order models to observe whether they are correlated.
[0106] It should be noted that because the sample contains a high amount of probiotics, the number of live bacteria per 1g of sample is close to 10.7 The CFU / g ratio and numerous operational steps, along with minor operational differences, can lead to significant variations in the final viable cell count. Therefore, the original database will contain a certain number of outliers that deviate from the overall trend of the data. If the above acclimatization conditions are met, the degree of reduction is successful. If not, the outliers (defined as original data points that significantly deviate from the fitted equation) are filtered out and discarded, and the fitted equation is reduced in degree again.
[0107] It should be noted that the advantage of establishing a high-order two-dimensional polynomial fitting model in step 2.2 is:
[0108] First, since the higher the degree of the polynomial fitting model, the better it fits the original data, a high-order two-dimensional polynomial fitting model is initially chosen as the two-dimensional prediction model for the number of viable bacteria. However, the calculation of the high-order two-dimensional polynomial fitting model is relatively cumbersome and wastes computing power. Therefore, the high-order two-dimensional polynomial fitting model can be used to play the role of the second advantage mentioned below.
[0109] Second, the high-order two-dimensional polynomial fitting model is used as the criterion for judging the domestication of the low-order two-dimensional polynomial fitting model. That is, the correlation between the low-order model and the high-order model is used to determine whether the low-order two-dimensional polynomial fitting model should be domesticated.
[0110] Specifically, if a correlation exists and other conditions are met, the lower-order two-dimensional polynomial fitting model can be used to replace the higher-order two-dimensional polynomial fitting model as the choice for the two-dimensional prediction model of viable bacteria count.
[0111] If there is no correlation or other conditions are not met, the low-order two-dimensional polynomial fitting model is tamed. Specifically, the original database of the low-order two-dimensional polynomial fitting model is improved, for example, some outliers that do not meet the requirements can be discarded. Then, based on the improved database, a low-order two-dimensional polynomial fitting model of the same degree as the original low-order model is rebuilt.
[0112] Under the condition that there is a correlation and other conditions are met, the above operation is repeated to reduce the number of times the two-dimensional polynomial fitting model is minimized. This makes the final two-dimensional prediction model of the number of viable bacteria not only more closely match the original data, but also makes the calculation less cumbersome.
[0113] In this embodiment of the invention, step 3 establishes a three-dimensional prediction model for the viable count of each type of bacteria in the sample, with temperature and time as independent variables and viable count as dependent variable, which can predict the change in viable count over a specific time at any temperature.
[0114] Establish a three-dimensional polynomial fitting model:
[0115]
[0116] Where z is the predicted number of viable bacteria, i = 1, ..., n is the number of samplings, x = 1, ..., N is the number of days for sampling, and w i y is the coefficient, b is the constant term coefficient, and y is the sample storage temperature.
[0117] Taking the partial derivative of the loss function and setting it equal to 0 yields:
[0118]
[0119] w1, ..., w can then be calculated. m ,b,R 2 The method for obtaining R in a two-dimensional polynomial fitting model of degree 1 2 The method for obtaining the result is the same.
[0120] In this embodiment, step 3 further defines the three-dimensional prediction model for the viable bacteria count, which uses time and temperature as variables and is based on the viable bacteria count. Specifically, it includes:
[0121] Based on the viable cell count database that excludes outliers, a three-dimensional prediction model for viable cell counts is established, using time and temperature as variables. This makes the database used to build the three-dimensional prediction model more reliable, thus improving the model's reliability.
[0122] It should be noted that the viable cell database that discards outliers can be the viable cell database used by the two-dimensional prediction model for the final determined viable cell count.
[0123] In this embodiment of the invention, for step 4, it should be noted that since the original data is sampled and measured from a preset temperature (the temperature at which samples are taken during model building), if the storage temperature is the preset temperature, the two-dimensional prediction model for the corresponding viable number of bacteria will have the best effect and the least computational cost; if it is a temperature other than the preset temperature, then a three-dimensional prediction model will be used. The three-dimensional prediction model incorporates the temperature variable, thereby enabling the prediction of the viable number of bacteria at any temperature.
[0124] For example, there are three preset ice cream storage temperatures: 2℃, -8℃, and -18℃. These three temperatures cover the temperature range that frozen drinks may experience during cold chain transportation and sales, with a temperature difference of 10℃ between each pair of temperatures. The three-dimensional model built using data from these three temperatures can also be applied to predict the storage of ice cream within the range of 2℃ to -18℃. The preset temperature can be selected based on the actual situation, choosing the most representative temperature.
[0125] In this embodiment, the live count of a single probiotic and the live count of a mixed probiotic strain are predicted separately, specifically including:
[0126] Step 8.1: Several ice cream samples contain two types of probiotics: bacteria A and bacteria B. The ice cream samples are stored at constant temperatures of 2℃, -8℃ and -18℃ respectively, and viable bacteria are counted periodically. The viable bacteria counts of bacteria A and bacteria B are obtained at constant temperatures of 2℃, -8℃ and -18℃ respectively. The viable bacteria counts are pretreated to obtain the viable bacteria counts of bacteria A, bacteria B and mixed bacteria A and bacteria B at constant temperatures of 2℃, -8℃ and -18℃.
[0127] Step 8.2: Three two-dimensional polynomial fitting models can be established, with degrees 1, 2, and 3 respectively. Using the steps in step 2.2 for establishing the probiotic ice cream live bacteria count prediction model, the following models are obtained respectively:
[0128] When the preset temperature is 2℃,
[0129] A two-dimensional prediction model for the viable count of bacteria A:
[0130] z = -0.0041x + 5.0609, R 2 =0.962;
[0131] A two-dimensional prediction model for the viable count of bacteria B:
[0132] z = -0.0043x + 4.2547, R 2 =0.9422
[0133] A two-dimensional prediction model for the viable count of a mixture of bacteria A and B:
[0134] z = -0.0037x + 4.6224, R 2 =0.5375;
[0135] When the preset temperature is -8℃,
[0136] A two-dimensional prediction model for the viable count of bacteria A:
[0137] z = -0.0003x + 4.293, R 2 =0.8814;
[0138] A two-dimensional prediction model for the viable count of bacteria B:
[0139] z = -0.0011x + 5.4504, R 2 =0.7324;
[0140] A two-dimensional prediction model for the viable count of a mixture of bacteria A and B:
[0141] z = -0.004x + 4.1233, R 2 =0.5933;
[0142] When the preset temperature is -18℃,
[0143] A two-dimensional prediction model for the viable count of bacteria A:
[0144] z = -0.0011x + 5.4504, R 2 =0.7324;
[0145] A two-dimensional prediction model for the viable count of bacteria B:
[0146] z = -0.001x + 5.2009, R 2 =0.6285;
[0147] A two-dimensional prediction model for the viable count of a mixture of bacteria A and B:
[0148] z = -0.001x + 5.3084, R 2 =0.5255;
[0149] The goodness-of-fit R of the above model is used to determine its performance. 2 As can be seen, the goodness of fit of each model is greater than 0.5. The fitting effect can fully meet the requirements of data fit and actual use. Furthermore, the degree of the polynomial fitting model has been reduced to one, which greatly reduces the tediousness and amount of computation.
[0150] Step 8.3: Using time and temperature as variables, establish a three-dimensional prediction model for the viable cell count based on the stated viable cell count, and obtain the following models:
[0151] like Figure 13 As shown, the three-dimensional prediction model for the viable count of bacteria A is as follows:
[0152]
[0153] like Figure 14 As shown, the three-dimensional prediction model for the viable count of bacteria B is as follows:
[0154]
[0155] like Figure 15 As shown, a three-dimensional prediction model for the viable count of a mixed culture of bacteria A and B is presented:
[0156]
[0157] Step 8.4: When the predicted viable cell count is at temperatures of 2℃, -8℃, and -18℃, the two-dimensional prediction model from Step 8.2 is used to predict the viable cell counts of bacteria A, B, and the mixed count of bacteria A and B, respectively, to obtain the predicted viable cell counts. The predicted values are the viable cell counts obtained through the prediction model, while the measured values are the actual viable cell counts obtained during sampling, as shown in Tables 1-9.
[0158] Table 1. Measured data for predicting bacterial A at 2℃
[0159] Days Predicted value Measured value 0 5.060937 5.62185 15 4.999065 5.105125 30 4.937193 4.923317 45 4.875321 4.77528 60 4.813449 4.22917 75 4.751578 4.66431 90 4.689706 4.31521 105 4.627834 4.44144
[0160] Table 2. Measured data for Bacterium B at 2℃ prediction
[0161] Days Predicted value Measured value 0 4.254711 4.053547 15 4.189624 4.108456 30 4.124538 4.305745 45 4.059451 4.258546 60 3.994365 3.758912 75 3.929278 3.794521 90 3.864192 3.982547 105 3.799105 3.599754
[0162] Table 3. Measured data for predicted 2℃ for mixed cultures.
[0163] Days Predicted value Measured value 0 4.582212 4.778655 15 4.52996 4.681223 30 4.477708 4.55782 45 4.425456 4.51502 60 4.373204 4.44369 75 4.320952 4.30152 90 4.268701 4.20223 105 4.216449 4.18142
[0164] Table 4. Measured data for the prediction of Bacterium A at -8℃
[0165] Days Predicted value Measured value 0 4.292962 4.25452 15 4.24737 4.25991 30 4.291778 4.19563 45 4.156186 4.14788 60 4.110594 3.99135 75 4.065001 3.76464 90 4.019409 3.75689 105 3.973817 3.55497
[0166] Table 5. Measured data for Bacterium B at -8℃ prediction
[0167] Days Predicted value Measured value 0 4.134777 4.46458 15 4.075272 4.3132 30 4.015766 4.11728 45 3.956261 4.0257 60 3.896755 3.60629 75 3.83725 3.55427 90 3.777745 3.53298 105 3.718239 3.51523
[0168] Table 6. Measured data for predicted mixed culture at -8℃
[0169] Days Predicted value Measured value 0 6.010239 6.125462 15 5.958007 5.825121 30 5.905776 5.832368 45 5.853545 5.965412 60 5.801313 5.712365 75 5.749082 5.856123 90 5.696851 5.802154 105 5.644625 5.552234
[0170] Table 7. Measured data for predicted -18℃ for Bacterium A
[0171] Days Predicted value Measured value 0 5.450363 5.440215 15 5.434204 5.436366 30 5.418045 5.421585 45 5.401886 5.44156 60 5.385727 5.378441 75 5.369568 5.11125 90 5.353408 5.02138 105 5.337249 4.89876
[0172] Table 8. Measured data for Bacterium B's predicted temperature of -18℃
[0173] Days Predicted value Measured value 0 5.200894 5.335468 15 5.185792 5.274158 30 5.17069 5.159745 45 5.155587 5.165678 60 5.140485 5.152469 75 5.125383 5.116549 90 5.110281 5.909965 105 5.095178 5.1 52548
[0174] Table 9. Measured data for predicted -18℃ for mixed cultures.
[0175] Days Predicted value Measured value 0 5.270232 5.33665 15 5.257174 5.23258 30 5.244116 5.22469 45 5.237057 5.21432 60 5.217999 5.19969 75 5.204941 5.18946 90 5.191883 5.18629 105 5.178825 5.17564
[0176] Establish based on Tables 1-9 Figures 4-12 The model fitting effect diagram, such as Figures 4-12As shown in the figure, the straight line represents the prediction model and the points represent the measured values. It can be seen that the observed values and the prediction model have a good fit and the same trend. The model has achieved a good prediction effect. That is, under the conditions of meeting the requirements of fit, actual use and calculation, the fitting model in this embodiment has achieved a good fitting effect.
[0177] Step 8.5: When the predicted temperature is a temperature other than the preset temperature, such as when the number of live bacteria of probiotics is detected at -5℃ and -11℃, the three-dimensional prediction model of the number of live bacteria in step 8.3 is used to predict the number of live bacteria.
[0178] The predicted values are the viable cell counts obtained through the prediction model, while the measured values are the actual viable cell counts obtained during sampling, as shown in Tables 10-12:
[0179] Table 10. Predicted and measured data for Bacterium A at -5℃ and -11℃
[0180] Days Predicted value (-5℃) Forecast value (-11℃) Measured value (-5℃) Measured value (-11℃) 0 4.29075 4.41351 4.31105 4.6156214 15 4.238096288 4.374167288 4.297984 4.578512347 30 4.18584015 4.33522215 4.283705 4.33522215 45 4.133981588 4.296674588 4.034056 4.396674588 60 4.0825206 4.2585246 4.683216 4.4585246 75 4.031457188 4.220772188 4.1028788 4.020772188 90 3.98079135 4.18341735 3.782552166 4.25216348 105 3.930523088 4.146460088 3.828864 3.95486219
[0181] Table 11 Predicted and measured data for Bacteria at -5℃ and -11℃
[0182] Days Predicted value (-5℃) Forecast value (-11℃) Measured value (-5℃) Measured value (-11℃) 0 3.59825 3.90317 3.89965 3.88512346 15 3.53462387 3.85524887 3.63846587 3.95524887 30 3.47078048 3.80711048 3.27081349 3.68512348 45 3.40671983 3.75875483 3.306846125 3.68512345 60 3.34244192 3.71018192 3.61548213 3.98123455 75 3.27794675 3.66139175 3.17813468 3.87561345 90 3.21323432 3.61238432 3.29123456 3.58163458 105 3.14830463 3.56315963 3.235123486 3.75123385
[0183] Table 12 Predicted and measured data for mixed cultures at -5℃ and -11℃
[0184] Days Predicted value (-5℃) Forecast value (-11℃) Measured value (-5℃) Measured value (-11℃) 0 3.87925 4.11481 3.9648513 4.45123486 15 3.82809793 4.07524093 3.72938452 4.18751334 30 3.77689672 4.03562272 3.66985127 3.85845612 45 3.72564637 3.99595537 3.79685123 4.08512346 60 3.67434688 3.95623888 3.67484268 3.83564859 75 3.62299825 3.91647325 3.82854625 4.35216489 90 3.57160048 3.87665848 3.39559234 3.58612348 105 3.52015357 3.83679457 3.23856495 3.68451232
[0185] The fitting effect of this three-dimensional prediction model is evaluated by using the sum of squared residuals and the difference of squared residuals as indicators. The closer the sum of squared residuals and the difference of squared residuals are to 0, that is, the smaller they are, the better the prediction effect is. As shown in Table 13, it can be seen that the sum of squared residuals in the table is relatively small, indicating that the model has achieved a good prediction effect.
[0186] Table 13. Residual sum of squares and residual difference of squares data for the three-dimensional prediction model of viable cell count.
[0187]
[0188] The acquisition, storage, use, and processing of data in this application all comply with the relevant provisions of national laws and regulations.
[0189] This invention also provides a device for establishing a live bacteria count prediction model for probiotic ice cream, as described in the following embodiments. Since the principle behind this device is similar to the method for establishing a live bacteria count prediction model for probiotic ice cream, the implementation of this device can refer to the implementation of the method for establishing a live bacteria count prediction model for probiotic ice cream; repeated details will not be elaborated further.
[0190] Figure 16 This is a block diagram of the device for establishing a live bacteria count prediction model for probiotic ice cream in an embodiment of the present invention. Figure 16 As shown, the device includes:
[0191] Database establishment module 02 is used to establish a live bacteria database of probiotics in ice cream samples. The data in the live bacteria database of probiotics is sample data of the number of live bacteria of each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature and the sampling time. The live bacteria database of probiotics is preprocessed to obtain a live bacteria numerical database.
[0192] The two-dimensional prediction model acquisition module 04 is used to establish a two-dimensional prediction model of the number of viable bacteria based on the viable bacteria numerical database, with time as the variable.
[0193] The three-dimensional prediction model acquisition module 06 is used to establish a three-dimensional prediction model of the number of viable bacteria based on the viable bacteria numerical database, with time and temperature as variables.
[0194] The viable count prediction module 08 is used to predict the viable count using the two-dimensional prediction model when the temperature for predicting the viable count is the preset temperature; and to predict the viable count using the three-dimensional prediction model when the temperature for predicting the viable count is not the preset temperature.
[0195] In this embodiment of the invention, the database establishment module 02 is specifically used for:
[0196] Obtain the live bacteria database of the probiotics. Where, x i =1,…,N represents the number of days for the i-th sampling, i=1,…,n represents the number of samplings, t=1,…,T represents the types of probiotics, and j=1,…,m represents the label of the ice cream sample;
[0197] When predicting the live count of a single probiotic, the live count database of the probiotic is used. Obtain the live bacteria database of the individual probiotic. The calculation formula is:
[0198]
[0199] in, This represents the viable count of probiotic species t when the number of samplings is i.
[0200] When predicting the viable count of the mixed bacteria, the viable count of the probiotics is based on the probiotic database. Obtain the viable cell database of the mixed bacteria. The calculation formula is:
[0201]
[0202] in, The viable count of the mixed bacteria h is given when the number of samplings is i.
[0203] In this embodiment of the invention, the two-dimensional prediction model acquisition module 04 is specifically used for:
[0204] Using time as a variable, two-dimensional polynomial fitting models of different degrees are established using a polynomial fitting function.
[0205] Based on the live bacteria numerical database, the highest-order two-dimensional polynomial fitting model is selected as the initial two-dimensional prediction model. Based on the initial two-dimensional prediction model, the lower-order two-dimensional polynomial fitting models are acclimated in descending order of degree. The acclimated lower-order two-dimensional polynomial fitting models are used to replace the highest-order two-dimensional polynomial fitting model. After the preset judgment conditions are met, the acclimation ends, and the lower-order two-dimensional polynomial fitting model at the end of the acclimation is set as the two-dimensional prediction model for the live bacteria number.
[0206] In this embodiment of the invention, the two-dimensional prediction model acquisition module 04 is specifically used for:
[0207] Set the highest-order two-dimensional polynomial fitting model as the initial two-dimensional prediction model;
[0208] Calculate the goodness of fit of the lower-order two-dimensional polynomial fitting model. If the goodness of fit is greater than or equal to the goodness preset value, determine whether the degree of the lower-order two-dimensional polynomial fitting model is 1. If the goodness of fit is less than the goodness preset value, determine whether the lower-order two-dimensional polynomial fitting model is monotonic.
[0209] If the degree is determined to be 1, then it is determined whether the lower-order two-dimensional polynomial fitting model is monotonic; if the degree is determined to be greater than 1, then a t-test is performed on the lower-order two-dimensional polynomial fitting model to determine whether the lower-order two-dimensional polynomial fitting model is correlated with the initial two-dimensional prediction model.
[0210] If the model is determined to be monotonic, a t-test is performed on the lower-order two-dimensional polynomial fitting model to determine whether it is correlated with the initial two-dimensional prediction model. If the model is determined not to be monotonic, it is determined whether there are outliers in the viable cell database that deviate from the trend of the lower-order two-dimensional polynomial fitting model. If outliers exist, they are discarded from the viable cell database. Based on the viable cell database with outliers discarded, a lower-order two-dimensional polynomial fitting model with outliers discarded is established and replaced with the lower-order two-dimensional polynomial fitting model with outliers discarded. If no outliers exist, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for viable cell count, and the acclimatization process ends.
[0211] If a correlation is determined, the degree of the lower-order two-dimensional polynomial fitting model is determined to be 1. If no correlation is determined, it is determined whether there are outliers in the viable cell database that deviate from the trend of the lower-order two-dimensional polynomial fitting model. If outliers exist, they are discarded from the viable cell database. Based on the viable cell database with outliers discarded, a lower-order two-dimensional polynomial fitting model with outliers discarded is established and replaced with the lower-order two-dimensional polynomial fitting model with outliers discarded. If no outliers exist, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for viable cell count, and the domestication ends.
[0212] If the degree is determined to be 1, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for the number of viable bacteria, and the domestication ends; if the degree is determined to be greater than 1, the lower-order two-dimensional polynomial fitting model is used to replace the highest-order two-dimensional polynomial fitting model.
[0213] In this embodiment of the invention, the two-dimensional prediction model acquisition module 04 is specifically used for:
[0214] A preset confidence interval is set to determine whether the viable bacteria value exists within the preset confidence interval of the lower-order two-dimensional polynomial fitting model. If it does not exist, the viable bacteria value is an outlier.
[0215] In this embodiment of the invention, the three-dimensional prediction model acquisition module 06 is specifically used for:
[0216] Based on the database of viable bacteria numbers after discarding outliers, a three-dimensional prediction model for viable bacteria numbers is established with time and temperature as variables.
[0217] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned method for establishing a live bacteria count prediction model for probiotic ice cream.
[0218] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for establishing a live bacteria count prediction model for probiotic ice cream.
[0219] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-mentioned method for establishing a live bacteria count prediction model for probiotic ice cream.
[0220] In this embodiment of the invention, compared with existing live bacteria count prediction models that have limitations, low accuracy, high computational complexity and volume, and low reliability of sample databases, the live bacteria count prediction model establishment method for probiotic ice cream proposed in this invention can achieve the following beneficial effects:
[0221] 1. The characteristic of polynomial fitting is that the fitted equation fits the original data trend to the greatest extent. Other fitting formulas have a preset trend, and their fitting results are affected by their inherent trends and are applicable to a smaller range of data. Polynomial fitting is generally applicable to various types of data and can truly reflect the trend of data changes. Therefore, a polynomial fitting model that is closer to the prediction of the number of live bacteria in ice cream containing probiotics is selected. The higher the degree of the model, the better the fit to the number of live bacteria in ice cream, and thus the more accurate the prediction results.
[0222] 2. Since high-order polynomial fitting models are computationally cumbersome and computationally expensive, this invention uses high-order polynomial fitting models to "domesticate" low-order polynomial fitting models. This allows the fitting effect of the domesticated low-order fitting model to replace that of the high-order fitting model in a statistical sense. Thus, using the low-order fitting model as a prediction model for viable bacteria count can reduce the computational complexity and workload of the low-order fitting model, provided that the fitting effect is satisfactory, thereby reducing computational power consumption.
[0223] 3. The outlier filtering method in the algorithm can also optimize the original data, filter out outliers, make the database more reliable, and improve the reliability of the sample database; and use the optimized database to build two-dimensional and three-dimensional models respectively, thereby improving the reliability of the prediction model.
[0224] 4. This invention establishes two-dimensional prediction models for viable cell counts at a preset temperature when the sample database is created; for other temperatures, a three-dimensional prediction model incorporating time as a variable is established. The two-dimensional prediction model shows the best prediction effect for viable cell counts at the preset temperature, but it cannot predict viable cell counts at other temperatures. Therefore, the three-dimensional prediction model can be used to predict viable cell counts at other temperatures, meaning the appropriate model can be selected based on the actual predicted temperature. This ensures the accuracy of the model predictions while overcoming the limitation of prediction models to storage temperature, thus broadening the application scope.
[0225] 5. The method of the present invention can establish prediction models for individual bacterial species in ice cream samples, and can also establish prediction models for mixed bacteria of the whole bacterial species, which is beneficial to control the quantity of each bacterial species in probiotics and ensure the integrity of the efficacy of probiotic products.
[0226] This invention is applicable to predicting the number of live bacteria in probiotic-containing ice cream.
[0227] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0228] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0229] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1The function specified in one or more boxes.
[0230] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0231] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for establishing a live bacteria count prediction model for probiotic ice cream, characterized in that, include: A live probiotic database is established in ice cream samples. The data in the live probiotic database consists of sample data on the number of live bacteria for each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature, and the sampling time. The live probiotic database is preprocessed to obtain a live bacteria numerical database. Using time as a variable, a two-dimensional prediction model for the number of viable bacteria is established based on the viable bacteria numerical database. Using time and temperature as variables, a three-dimensional prediction model for viable cell count is established based on the viable cell count database. When the temperature at which the predicted live bacteria count is located is the preset temperature, the two-dimensional prediction model for the live bacteria count is used to predict the live bacteria count; when the temperature at which the predicted live bacteria count is located is not the preset temperature, the three-dimensional prediction model for the live bacteria count is used to predict the live bacteria count. Using time as a variable, a two-dimensional prediction model for viable cell count is established based on the viable cell count database, including: Using time as a variable, two-dimensional polynomial fitting models of different degrees are established using a polynomial fitting function. Based on the live bacteria numerical database, the highest-order two-dimensional polynomial fitting model is selected as the initial two-dimensional prediction model. Based on the initial two-dimensional prediction model, the lower-order two-dimensional polynomial fitting models are acclimated in descending order of degree. The acclimated lower-order two-dimensional polynomial fitting models are used to replace the highest-order two-dimensional polynomial fitting model. After the preset judgment conditions are met, the acclimation ends, and the lower-order two-dimensional polynomial fitting model at the end of the acclimation is set as the two-dimensional prediction model for the live bacteria number.
2. The method for establishing a live bacteria count prediction model for probiotic ice cream as described in claim 1, characterized in that, The probiotic live bacteria database is preprocessed to obtain a live bacteria numerical database, including: Obtain the live bacteria database of the probiotics. ,in, Let i be the number of days since the i-th sampling. For the number of samplings, For types of probiotics, The label for the ice cream sample; When predicting the live count of a single probiotic, the live count database of the probiotic is used. Obtain the live bacteria database of the individual probiotic. The calculation formula is: ; in, This represents the viable count of probiotic species t when the number of samplings is i. When predicting the viable count of the mixed bacteria, the viable count of the probiotics is based on the probiotic database. Obtain the viable cell database of the mixed bacteria. The calculation formula is: ; in, The viable count of the mixed bacteria is given when the number of samplings is i.
3. The method for establishing a live bacteria count prediction model for probiotic ice cream as described in claim 1, characterized in that, Based on the viable cell count database, the highest-order two-dimensional polynomial fitting model is selected as the initial two-dimensional prediction model. Based on the initial two-dimensional prediction model, lower-order two-dimensional polynomial fitting models are acclimated in descending order of degree. The acclimated lower-order two-dimensional polynomial fitting models replace the highest-order two-dimensional polynomial fitting model. Acclimation ends after a preset judgment condition is met, and the lower-order two-dimensional polynomial fitting model at the end of acclimation is set as the two-dimensional prediction model for viable cell count, including: Set the highest-order two-dimensional polynomial fitting model as the initial two-dimensional prediction model; Calculate the goodness of fit of the lower-order two-dimensional polynomial fitting model. If the goodness of fit is greater than or equal to the goodness preset value, determine whether the degree of the lower-order two-dimensional polynomial fitting model is 1. If the goodness of fit is less than the goodness preset value, determine whether the lower-order two-dimensional polynomial fitting model is monotonic. If the degree is determined to be 1, then it is determined whether the lower-order two-dimensional polynomial fitting model is monotonic; if the degree is determined to be greater than 1, then a t-test is performed on the lower-order two-dimensional polynomial fitting model to determine whether the lower-order two-dimensional polynomial fitting model is correlated with the initial two-dimensional prediction model. If the model is determined to be monotonic, a t-test is performed on the lower-order two-dimensional polynomial fitting model to determine whether it is correlated with the initial two-dimensional prediction model. If the model is determined not to be monotonic, it is determined whether there are outliers in the viable cell database that deviate from the trend of the lower-order two-dimensional polynomial fitting model. If outliers exist, they are discarded from the viable cell database. Based on the viable cell database with outliers discarded, a lower-order two-dimensional polynomial fitting model with outliers discarded is established and replaced with the lower-order two-dimensional polynomial fitting model with outliers discarded. If no outliers exist, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for viable cell count, and the acclimatization process ends. If a correlation is determined, the degree of the lower-order two-dimensional polynomial fitting model is determined to be 1. If no correlation is determined, it is determined whether there are outliers in the viable cell database that deviate from the trend of the lower-order two-dimensional polynomial fitting model. If outliers exist, they are discarded from the viable cell database. Based on the viable cell database with outliers discarded, a lower-order two-dimensional polynomial fitting model with outliers discarded is established and replaced with the lower-order two-dimensional polynomial fitting model with outliers discarded. If no outliers exist, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for viable cell count, and the domestication ends. If the degree is determined to be 1, the lower-order two-dimensional polynomial fitting model is determined as the two-dimensional prediction model for the number of viable bacteria, and the domestication ends; if the degree is determined to be greater than 1, the lower-order two-dimensional polynomial fitting model is used to replace the highest-order two-dimensional polynomial fitting model.
4. The method for establishing a live bacteria count prediction model for probiotic ice cream as described in claim 3, characterized in that, Determining whether there are outliers in the live bacteria numerical database that deviate from the trend of the lower-order two-dimensional polynomial fitting model includes: A preset confidence interval is set to determine whether the viable bacteria value exists within the preset confidence interval of the lower-order two-dimensional polynomial fitting model. If it does not exist, the viable bacteria value is an outlier.
5. The method for establishing a live bacteria count prediction model for probiotic ice cream as described in claim 3, characterized in that, Using time and temperature as variables, a three-dimensional prediction model for viable cell counts is established based on the viable cell count database, including: Based on the database of viable bacteria numbers after discarding outliers, a three-dimensional prediction model for viable bacteria numbers is established with time and temperature as variables.
6. A device for establishing a live bacteria count prediction model for probiotic ice cream, characterized in that, include: The database establishment module is used to establish a live bacteria database of probiotics in ice cream samples. The data in the live bacteria database of probiotics is sample data of the number of live bacteria of each type of probiotic. The sample data includes information on the number of live bacteria, the number of samplings, the sampling temperature and the sampling time. The live bacteria database of probiotics is preprocessed to obtain a live bacteria numerical database. The two-dimensional prediction model acquisition module is used to establish a two-dimensional prediction model of the number of viable bacteria based on the viable bacteria numerical database, with time as the variable. The three-dimensional prediction model acquisition module is used to establish a three-dimensional prediction model of viable bacteria number based on the viable bacteria number database, with time and temperature as variables. The viable count prediction module is used to predict the viable count using a two-dimensional prediction model when the temperature for predicting the viable count is a preset temperature; and to predict the viable count using a three-dimensional prediction model when the temperature for predicting the viable count is not a preset temperature. The two-dimensional prediction model acquisition module is specifically used for: Using time as a variable, two-dimensional polynomial fitting models of different degrees are established using a polynomial fitting function. Based on the live bacteria numerical database, the highest-order two-dimensional polynomial fitting model is selected as the initial two-dimensional prediction model. Based on the initial two-dimensional prediction model, the lower-order two-dimensional polynomial fitting models are acclimated in descending order of degree. The acclimated lower-order two-dimensional polynomial fitting models are used to replace the highest-order two-dimensional polynomial fitting model. After the preset judgment conditions are met, the acclimation ends, and the lower-order two-dimensional polynomial fitting model at the end of the acclimation is set as the two-dimensional prediction model for the live bacteria number.
7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for establishing a live bacteria count prediction model for probiotic ice cream according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method for establishing a live bacteria count prediction model for probiotic ice cream according to any one of claims 1 to 5.
9. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for establishing a live bacteria count prediction model for probiotic ice cream according to any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent quality detection method and system in logistics process of cold-chain meat and meat products
CN109852677A
Method for predicting proliferation of microbial count
WO2013129655A2
