A dairy production monitoring system based on data processing
Through the processing of abnormal indicators and noise indicators in the dairy production monitoring system, the noise data is corrected and predicted, which solves the problem of noise data affecting the accuracy of abnormal judgment of sterilization processing in the traditional method, and improves the accuracy of early warning.
Patent Information
- Application Number
- CN202410970758.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-19
AI Technical Summary
When the traditional exponential smoothing method processes temperature data during the sterilization process of dairy products, due to the existence of noise data, the accuracy of the prediction value is low, which in turn affects the accuracy of abnormal judgment and early warning during the sterilization process.
A dairy production monitoring system based on data processing is adopted. Through the abnormal index acquisition module, noise index acquisition module, prediction module and early warning module, the abnormal index, noise index, corrected noise data and prediction of the data are calculated respectively. Finally, based on the prediction Alert on the difference between the value and the actual value.
It improves the accuracy of data prediction and abnormal judgment of the sterilization process, enhances the accuracy of early warning, and reduces the impact of noise data on the prediction results.
Smart Images

Figure CN118520401B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data prediction and a dairy product production monitoring system based on data processing. Background Art
[0002] In the dairy industry, as consumers' requirements for product quality and safety are increasing, higher requirements are also placed on data monitoring during the dairy production process. In the production of dairy products, the sterilization of dairy products is a crucial link, and the effect of sterilization is directly related to the safety and quality of dairy products. Therefore, it is necessary and meaningful to monitor the data during the sterilization process.
[0003] Milk is a type of dairy product. For example, milk is used as an example. Data such as the temperature of milk can be obtained because milk is sterilized mainly by high temperature. For example, temperature data has a certain degree of continuity, so the temperature data can be predicted by exponential smoothing, and then based on the predicted value, it can be judged whether there is an abnormality in the sterilization process.
[0004] Exponential smoothing is a commonly used algorithm for prediction. For example, the related prior art, such as the patent application document with application publication number CN106845669A, discloses a method for predicting the annual continuous load of a power grid based on the exponential smoothing method, which includes: predicting the power grid load by the exponential smoothing method.
[0005] The traditional exponential smoothing method controls the influence of historical data on future prediction values by adjusting the smoothing coefficient. However, in practical applications, for example, the collected temperature data often contains certain noise data, which is caused by sensor errors and the influence of the surrounding environment. If the exponential smoothing method is used directly to predict the data in the data sequence with noise data, the noise data will make the accuracy of the obtained prediction value lower, which will lead to a lower accuracy in judging whether there is an abnormality in the sterilization process based on the prediction value, and then lead to a lower accuracy in early warning. Summary of the invention
[0006] In order to solve the technical problem that the noise data will result in low accuracy of the obtained prediction value, which in turn leads to low accuracy in judging whether there is an abnormality in the sterilization process based on the prediction value, the present invention proposes a dairy production monitoring system based on data processing.
[0007] A dairy product production monitoring system based on data processing, comprising:
[0008] Abnormal index acquisition module: used to acquire a data set related to dairy products within a set time, the data set includes at least two data points, each data point includes a temperature data of the dairy product and a humidity data in the sterilization container where the dairy product is located, wherein the data collection time in any data point is the same; the data of the same type in all data points constitute a data sequence, and then multiple data sequences are obtained; any data sequence is called a target sequence, and the product of an isolated index and a difference index of any data in the target sequence is used as the abnormal index of the any data; wherein the isolated index is negatively correlated with the standard deviation and range of all first data corresponding to the any data, and is positively correlated with the difference between the any data and the median of all first data, wherein all first data are all data before the any data; the difference index is the mean of the difference between the any data and all second data, and the second data are a preset number of data before the any data;
[0009] Noise index acquisition module: used to perform positive correlation normalization on the standard deviation of the abnormal index of all types of data at any data point in the data set to obtain the noise index of each type of data; based on the noise index, the data in the target sequence is divided into non-noise data and noise data;
[0010] Prediction module: used to correct the noise data based on the non-noise data in the target sequence, obtain the actual value of any data, and use the exponential smoothing method to obtain the predicted value for all the actual values;
[0011] Early warning module: used to calculate the difference between the predicted value and the corresponding actual value. The early warning indicator is positively correlated with the mean of all differences. If the maximum value of all early warning indicators is greater than the threshold, an early warning is issued.
[0012] The set of all data before the i-th data in the target sequence is called the set P1 corresponding to the i-th data. The present invention determines the degree of dispersion of the data in the set P1 by calculating the standard deviation and range of the data in the set P1, and further determines the degree of outlier of the i-th data by calculating the difference between the i-th data in the target sequence and the data in the set P1. When the degree of dispersion is smaller and the difference is larger, it means that the possibility that the degree of outlier of the i-th data is larger is greater. The difference between the multiple data closest to the i-th data and the i-th data is also considered, and then the abnormal index of the i-th data is obtained. Not only the difference between all data before the i-th data and the i-th data is considered, but also the difference between the local data of the i-th data and the i-th data is considered, so that the abnormal index can better reflect the degree of abnormality of the data.
[0013] The larger the standard deviation of the abnormal index of the data at the i-th moment, that is, the greater the degree of dispersion, the more likely the data at the i-th moment is noise data. Based on this, the noise index of the data can be obtained, which reflects the possibility that the data is noise.
[0014] The noise data is corrected based on the non-noise data in the data sequence, and then the data is predicted. Finally, based on the difference between the predicted value and the actual value, it is determined whether to issue an early warning. The greater the difference, the greater the possibility of abnormality in the sterilization process of dairy products.
[0015] The present invention takes into account the influence of noise data on predicted data. Specifically, it takes into account the influence of multiple factors on the abnormality of the data, so that the accuracy of the abnormality of the calculated data is higher, and then the accuracy of judging whether the data is noise data is higher, and then the accuracy of the obtained predicted value is higher, and then the accuracy of judging whether there is an abnormality in the sterilization process based on the predicted value and the actual value is higher, thereby improving the accuracy of early warning.
[0016] In one embodiment, the expression of the isolation indicator is:
[0017]
[0018] in: is the isolated indicator of the i-th data in the target sequence; is the i-th data; is the total number of all data before the i-th data in the target sequence; is the mth data in the target sequence; is the median of all data before the i-th data in the target sequence; is the standard deviation of all data before the i-th data in the target sequence; is the maximum value of all data before the i-th data in the target sequence; is the minimum value of all data before the i-th data in the target sequence; Indicates absolute value.
[0019] The smaller it is, the more likely it is that the data before the i-th data is more stable. The larger it is, the more likely it is that the i-th data is outliers, which in turn means that the i-th data is more likely to be abnormal.
[0020] In one embodiment, the expression of the abnormality indicator is:
[0021]
[0022] in: is the abnormal indicator of the i-th data in the target sequence; is the isolated indicator of the i-th data; is the i-th data in the target sequence; a preset number of data before the i-th data is taken in the target sequence, the order of the preset number of data in the target sequence is continuous, and the order of the preset number of data and the i-th data in the target sequence is continuous, k is the preset number, It is the jth data among the preset number of data.
[0023] The influence of the difference between the local data of the ith data and the ith data on the degree of abnormality is also considered. The larger it is, the greater the abnormality of the i-th data.
[0024] In one embodiment, the expression of the early warning indicator is:
[0025]
[0026] in: is the early warning indicator of the target sequence, n is the total number of all data in the target sequence, is the predicted value corresponding to the i-th data in the target sequence, is the actual value corresponding to the i-th data of the target sequence, is the positive correlation normalization function, is the default value, The role of is to prevent the denominator from being zero. is called the predicted difference of the i-th data, is the standard deviation of the predicted differences for all data in the target series.
[0027] The smaller and The larger it is, the greater the possibility of abnormalities occurring during the sterilization process.
[0028] In one embodiment, the function used to perform positive correlation normalization on the standard deviations of abnormal indicators of all types of data of any data point in the data set is a maximum-minimum normalization function.
[0029] In one embodiment, each data point in the data set also includes a pH data of the dairy product.
[0030] In one embodiment, the noise data is corrected based on the non-noise data in the target sequence to obtain the actual value of any data, including:
[0031] The least square method is used to correct the noise data based on the non-noise data in the target sequence to obtain the actual value of any of the data.
[0032] The noise data is corrected to reduce the impact of the noise data on the predicted data.
[0033] In one embodiment, the process of obtaining the predicted value includes:
[0034] Based on the quadratic exponential smoothing method, the predicted values of each actual value are obtained.
[0035] Beneficial effects of the present invention:
[0036] The influence of noise data on the accuracy of predicted data is considered, the accuracy of data prediction is improved, and then the accuracy of judging whether there is an abnormality in the sterilization process based on the predicted value and the actual value is improved. Specifically, the influence of the difference between the i-th data and all the data before the i-th data, the discrete degree of all the data before the i-th data, and the difference between the i-th data and its local data on the abnormality of the i-th data is considered; because there is a certain correlation between multiple data at the i-th moment, the possibility that the multiple data are noise data is also determined according to the discrete degree of the abnormal indicators of the multiple data.
[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0039] Figure 1 is a flowchart schematically showing the method steps performed by a dairy product production monitoring system based on data processing according to an embodiment of the present invention;
[0040] Figure 2 The diagram schematically shows a dairy product production monitoring system based on data processing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", "A1", "B1", etc. in this article are used to distinguish different messages, devices, modules, etc., and do not represent the order of precedence, nor do they limit "A1", "B1", "first" and "second" to be different types; in other words, the serial numbers themselves for the components in this article, such as "A1", "B1", "first", "second", etc., are only used to distinguish the objects described, and do not have any order or technical meaning.
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0043] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0044] Figure 2 FIG. 1 is a schematic diagram of a dairy product production monitoring system based on data processing according to an embodiment of the present invention. Figure 2 201 is an abnormality index acquisition module, which is used to calculate the abnormality index of any data in any data sequence; 202 is a noise index acquisition module, which is used to calculate the noise index of any data in any data sequence, wherein the noise index of data corresponding to the same time in different data sequences is the same, which will be described in detail later; 203 is a prediction module, which is used to calculate the predicted value corresponding to any data in any data sequence; 204 is an early warning module, which is used to monitor and warn the production process of dairy products, and specifically, to monitor and warn the sterilization and disinfection process of dairy products.
[0045] Figure 1 FIG. 1 is a flowchart schematically showing the steps of a method performed by a dairy product production monitoring system based on data processing according to an embodiment of the present invention. Figure 1 The specific instructions are as follows.
[0046] S1: Obtain a data set related to dairy products within a set time. Each data point in the data set includes at least two types of data, and data of the same type constitute a data sequence.
[0047] In one embodiment, each data point in the data set includes a temperature data of the dairy product, a pH data of the dairy product, and a humidity data in the sterilization container. The data in any data point are collected at the same time. The implementer can set the collection time according to the specific scenario. The set time can be 60 minutes.
[0048] The following is an explanation using milk as an example.
[0049] In one embodiment, the temperature data of milk during the sterilization process is obtained, and the temperature data constitutes a one-dimensional data sequence, which is recorded as the temperature data sequence, wherein the temperature data can be obtained by a temperature sensor, and the time interval for collecting the temperature data can be 1 second. The pH data of milk during the sterilization process is obtained, and the pH data constitutes a one-dimensional data sequence, which is recorded as the pH data sequence, wherein the pH data can be obtained by an acidometer sensor, and the time interval for collecting the pH data can be 1 second. The humidity data of the air inside the sterilization treatment instrument of milk during the sterilization process is obtained, and the humidity data constitutes a one-dimensional data sequence, which is recorded as the humidity data sequence, wherein the humidity data can be obtained by a humidity sensor, and the time interval for collecting the humidity data can be 1 second. It should be noted that the start time for collecting temperature, humidity, pH and other data is the same. The implementer can set the time interval for collecting data according to the specific scenario.
[0050] The temperature data series, the PH data series and the humidity data series constitute the above data set.
[0051] For ease of understanding, let's take an example: the data set is: ((W1, D1), (W2, D2), (W3, D3), (W4, D4), (W5, D5)). For example, (W1, D1) is a data point, in which W1 is the temperature data of the dairy product, and D1 is the humidity data in the sterilization container where the dairy product is located, where W1 and D1 are collected at the same time. Temperature data is one type of data, and humidity data is another type of data. For example, a data sequence corresponding to the data set is: (W1, W2, W3, W4, W5).
[0052] So far, a data set related to dairy products has been obtained.
[0053] S2: Calculate the anomaly index of any data in any data sequence.
[0054] Any data sequence is called the target sequence, and the anomaly index of any data in the target sequence is calculated.
[0055] Next, we calculate the isolated index of any data in the target sequence.
[0056] In one embodiment, the expression of the isolation indicator is:
[0057]
[0058] in: is the isolated indicator of the i-th data in the target sequence; is the i-th data; is the total number of all data before the i-th data in the target sequence; is the mth data in the target sequence; is the median of all data before the i-th data in the target sequence; is the standard deviation of all data before the i-th data in the target sequence; is the maximum value of all data before the i-th data in the target sequence; It is the minimum value of all data before the i-th data in the target sequence. Represents the range of all data before the i-th data in the target sequence.
[0059] For the i-th data in the target sequence, the set consisting of all data before the i-th data in the target sequence is called the set P1 corresponding to the i-th data. The data in the set P1 corresponding to the i-th data is called the first data corresponding to the i-th data. It should be noted that each data in the target sequence corresponds to the set P1 one-to-one, that is, each data in the target sequence corresponds to a set P1.
[0060] It is explained below. It should be noted that the set P1 described below is the set P1 corresponding to the i-th data.
[0061] In one embodiment, if the isolation index of the first two data in the target sequence cannot be calculated through the expression of the isolation index, the isolation index of the third data may be used as the isolation index of the first two data.
[0062] It represents the difference between the i-th data and the data in set P1, and characterizes the degree of isolation or outlier of the i-th data.
[0063] The smaller and The smaller it is, the more stable the data in set P1 is, and the smaller the discreteness of the data in set P1 is, that is, the less likely set P1 is to have outliers, or the less likely set P1 is to have outliers. The explanation of outliers is: if the difference between a certain data in set P1 and other data in the set is greater than the corresponding preset threshold, the data is considered to be outliers; outliers may be abnormal data or noise data.
[0064] The larger it is, the greater the difference between the i-th data and the data in set P1, which means that the possibility that the i-th data is outlier is greater.
[0065] The larger it is, the greater the difference between the i-th data and the data in set P1, which means that the possibility that the i-th data is outlier is greater.
[0066] In short, when The smaller and The larger it is, the greater the possibility that the i-th data is outlier.
[0067] It should be noted that if only right The impact of When it is smaller, there is a greater possibility that outliers exist in the set P1. and right The impact of Smaller and When is smaller, the possibility of outlier data in set P1 is smaller, the discreteness of data in set P1 is smaller, and the difference between data in set P1 is smaller. The reason is that in a data sequence, when there are fewer outlier data in the data sequence, the standard deviation of all data in the data sequence may be smaller.
[0068] Compared to , It can better reflect the degree of outlier of the i-th data. The reason is that when For outlier data, The larger the value, the greater the probability. In other words, the greater the accuracy of the outlier degree of the i-th data calculated by the median, the greater the probability.
[0069] So far, the isolated indicators of each data in the target sequence have been obtained.
[0070] In another embodiment, the expression of the isolation indicator is:
[0071]
[0072] in: is the isolated indicator of the i-th data in the target sequence. is a positive correlation normalization function, which can be a positive correlation maximum and minimum normalization function. Calculate the value of each data in the target sequence The maximum value in the positively correlated maximum and minimum normalized functions is the maximum value of all differences H1, and the minimum value in the positively correlated maximum and minimum normalized functions is the minimum value of all differences H1.
[0073] Next, we calculate the abnormal indicators of each data in the target sequence.
[0074] In one embodiment, the expression of the abnormality indicator is:
[0075]
[0076] in: is the abnormal indicator of the i-th data in the target sequence; is the isolated indicator of the i-th data; is the i-th data in the target sequence; a preset number of data before the i-th data is taken in the target sequence, the order of the preset number of data in the target sequence is continuous, and there is no data between the preset number of data and the i-th data in the target sequence, that is, the order of the preset number of data and the i-th data is continuous, k is the preset number, is the jth data in the preset number of data, and the data in the preset number of data is called the second data; the implementer can set the preset number according to the specific scenario, and the preset number can be an empirical value of 5. For example, if the target sequence is 1, 2, 3, 4, 5 and 6, and the preset number is 2, then the two data before the 5th data are 3 and 4.
[0077] The following explains.
[0078] In one embodiment, for example, when k is 5, it is impossible to calculate the first 5 data in the target sequence. value, the sixth data The value is the first 5 data value.
[0079] Characterizes the abnormality of the i-th data in the target sequence.
[0080] The larger it is, the more likely it is that the i-th data is outliers, which in turn means that the i-th data is more likely to be abnormal.
[0081] The larger it is, the greater the difference between the i-th data and the previous preset number of data, which further indicates that the possibility of the i-th data being more abnormal is greater.
[0082] It should be noted that if only right The accuracy of the abnormality of the i-th data may be low because only the difference between all the data before the i-th data and the i-th data is considered, where the difference reflects the abnormality of the i-th data. In order to improve the accuracy of the abnormality of the i-th data, the difference between data U1 and the i-th data is also considered, where the difference reflects the abnormality of the i-th data. Data U1 is the data that is closer to the i-th data. Specifically, consider and right impact.
[0083] So far, the abnormal index of each data in the target sequence is obtained. Specifically, the abnormal index of each data in the temperature data sequence, the abnormal index of each data in the PH data sequence, and the abnormal index of each data in the humidity data sequence are obtained.
[0084] In another embodiment, the expression of the abnormality index is:
[0085]
[0086] in, is a positive correlation normalization function, which can be a positive correlation maximum and minimum normalization function. Calculate the value of each data in the target sequence The maximum value in the positively correlated maximum and minimum normalized functions is the maximum value of all differences H2, and the minimum value in the positively correlated maximum and minimum normalized functions is the minimum value of all differences H2.
[0087] S3: Based on the anomaly index, calculate the noise index of any data in any data sequence.
[0088] It is worth mentioning that the i-th data point in the data set related to dairy products includes the i-th temperature data in the temperature data sequence, the i-th humidity data in the humidity data sequence, and the i-th PH data in the PH data sequence. The collection time of the i-th temperature data, the i-th humidity data, and the i-th PH data is the same time, which can be called the i-th time.
[0089] In one embodiment, the standard deviation of the abnormal index of the i-th temperature data, the i-th humidity data and the i-th PH data is calculated, and then the standard deviation is normalized by positive correlation to obtain the noise index of the i-th temperature data, the i-th humidity data and the i-th PH data. The noise index of the i-th temperature data, the i-th humidity data and the i-th PH data is the same.
[0090] In one embodiment, the standard deviation is positively correlated and normalized, including: the i-th data corresponds to the i-th moment, and the standard deviation corresponding to each moment is calculated and recorded as the first standard deviation. The first standard deviation can be positively correlated and normalized using a positively correlated maximum and minimum normalization function, thereby obtaining a noise index corresponding to the data at each moment. The maximum value in the positively correlated maximum and minimum normalization function is the maximum value of the first standard deviation corresponding to all moments. The minimum value in the positively correlated maximum and minimum normalization function is the minimum value of the first standard deviation corresponding to all moments. The maximum and minimum normalization function is a prior art and will not be described in detail.
[0091] The following explains.
[0092] The noise index represents the possibility that the corresponding data is noise, or in other words, represents the degree of noise of the corresponding data.
[0093] The larger the standard deviation of the abnormal indicators of all data corresponding to the i-th moment, the greater the dispersion of the abnormal indicators of the data corresponding to the i-th moment, which further indicates that the data corresponding to the i-th moment is more likely to be noise.
[0094] The reason is that temperature data, pH data and humidity data have a certain correlation. In the process of sterilizing milk: the higher the temperature of milk, the faster the water in the milk evaporates, and the greater the air humidity inside the sterilization instrument; the higher the temperature of milk, the decomposition reaction of certain components in milk (such as lactose) produces acidic substances such as lactic acid, thereby reducing the pH value, making the pH value of milk lower. Therefore, at the i-th moment, when the i-th temperature data is abnormal data, the i-th pH data is also likely to be abnormal data, and the i-th humidity data is also likely to be abnormal data. If all the data corresponding to the i-th moment are not noise data, the larger the abnormal index of the i-th temperature data, the larger the abnormal index of the i-th humidity data, and the larger the abnormal index of the i-th pH data. If there is noise data in all the data corresponding to the i-th moment, the degree of dispersion of the abnormal index of all the data corresponding to the i-th moment is large, that is, the standard deviation of the abnormal index of all the data corresponding to the i-th moment is large. It should be noted that abnormal data is not noise data.
[0095] That is to say, when the degree of dispersion of the abnormal index of the data corresponding to the i-th moment is small, the data corresponding to the i-th moment is more likely to be non-noise data. If the degree of dispersion of the abnormal index of the data corresponding to the i-th moment is large, the data corresponding to the i-th moment is more likely to be noise data.
[0096] When the noise index of the data corresponding to the i-th moment is large, it means that the abnormal index of some or a certain data at the i-th moment is large, and the abnormal index of some or a certain data at the i-th moment is small. The data with large abnormal index is more likely to be noise data, and the data with small abnormal index is more likely to be non-noise data. It can be considered that there is noise data in the data corresponding to the i-th moment. All data at the i-th moment can be considered as noise data, and all data at the i-th moment can be corrected later to achieve the purpose of denoising.
[0097] So far, the noise index of any data in any data sequence has been obtained.
[0098] S4: Based on the noise index, determine whether the data is noise data.
[0099] In the target sequence: the data whose noise index is greater than the noise threshold is called noise data, that is, noise data. The data in the target sequence other than the noise data is called normal data, that is, non-noise data.
[0100] Implementers can set the noise threshold according to specific implementation scenarios. The noise threshold can be set to an empirical value of 0.7.
[0101] In another embodiment, the standard deviation of the abnormal index of all data corresponding to the i-th moment is calculated. If the ratio of the standard deviation to the standard value is greater than 1, all data corresponding to the i-th moment is considered to be noise data. The implementer can set the standard value according to the specific implementation scenario. That is, if the standard deviation of the abnormal index is greater than the standard value, the corresponding data is considered to be noise.
[0102] S5: Based on the noise data, calculate the predicted value corresponding to any data in any data sequence.
[0103] The noise data in the target sequence is removed, and then the target sequence after the noise data is removed is fitted using the least squares method to obtain the corrected value of the noise data, and then the target sequence after the noise data is corrected is obtained, which is recorded as the denoised target sequence.
[0104] The data in the denoised target sequence are referred to as actual values.
[0105] Note: After removing the noise data, the noise data will correspond to "blanks". The "blanks" corresponding to the noise data are filled by the least squares method. The filling value corresponding to the noise data is the correction value, that is, the actual value of the noise data.
[0106] In another embodiment, in the target sequence, for any noise data, the mean of two non-noise data adjacent to the noise data is called mean Y1, and the noise data is replaced by mean Y1, thereby obtaining a denoised target sequence.
[0107] In one embodiment, a quadratic exponential smoothing method is used to predict all data in the denoised target sequence to obtain a predicted value for each data in the denoised target sequence.
[0108] S6: Issue early warning based on the predicted value.
[0109] In one embodiment, the expression of the early warning indicator is:
[0110]
[0111] in: is the early warning indicator of the target sequence, n is the total number of all data in the target sequence, is the predicted value of the i-th data in the target sequence, is the actual value of the i-th data in the target sequence, that is, the i-th data in the denoised target sequence corresponding to the target sequence, is the default value. It can be 0.001. The role of is to prevent the denominator from being zero.
[0112] For the target sequence, calculate the corresponding , recorded as difference H3 (i.e. predicted difference), is the standard deviation of all the differences H3.
[0113] is a positive correlation normalization function, which can be a positive correlation maximum and minimum normalization function. For example, for a temperature data sequence, denoted as the current temperature data sequence, which corresponds to multiple historical temperature data sequences, the above formula can be used to calculate the current temperature data sequence and the corresponding temperature of the multiple historical temperature data sequences. value, recorded as value C1, calculate the current temperature data When , the maximum value in the maximum and minimum normalization function is the maximum value of all values C1, and the minimum value in the maximum and minimum normalization function is the minimum value of all values C1. It should be noted that other temperature data sequences except the current temperature data sequence are historical data, and the historical temperature data sequence is only used for the corresponding Normalization is performed. The multiple historical temperature data sequences contain abnormal temperature data sequences. The abnormal temperature data sequences correspond to is an outlier.
[0114] The following explains.
[0115] The smaller the value, the smaller the corresponding value of all data in the target sequence. The smaller the discreteness, the smaller the corresponding The smaller the difference between the values, the greater the probability.
[0116] The smaller and The larger the value, the more corresponding all the data are. The greater the possibility, the greater the possibility that there is an abnormality in the sterilization and disinfection process of milk, the greater the possibility that there is an abnormality in the equipment used for sterilization and disinfection, and the greater the possibility that there is an abnormality in the parameters of the equipment. The reason is that if there is no abnormality in the sterilization and disinfection process of milk, then Smaller and Smaller.
[0117] At this point, the early warning indicators for any data series are obtained.
[0118] If the maximum value of the warning indicator of all data sequences is greater than the threshold, all data sequences are the current data sequences, that is, the target sequences, and it is considered that there is an abnormality in the sterilization process of milk, and an early warning is issued to remind relevant personnel to handle it, thereby ensuring the quality of milk. Implementers can set the threshold according to specific scenarios. The threshold can be taken as an empirical value of 0.6.
[0119] In one embodiment, if the mean value of the warning indicators of all data sequences is greater than a threshold, a warning is issued.
[0120] In another embodiment, for a target sequence, the corresponding , recorded as difference H3, and the maximum value of all differences H3 is used as the warning indicator of the target sequence. If the warning indicator corresponding to the temperature data sequence is greater than the first abnormal threshold, or the warning indicator corresponding to the humidity data sequence is greater than the second abnormal threshold, or the warning indicator corresponding to the PH data sequence is greater than the third abnormal threshold, then a warning is issued. The implementer can set the first abnormal threshold, the second abnormal threshold, and the third abnormal threshold according to the specific scenario.
[0121] It should be noted that milk is sterilized by high temperature, but when the temperature of milk is too high, it may cause fat oxidation and protein denaturation, further affecting the quality of dairy products. When the temperature of milk is too low, the effect of sterilizing milk is poor. Therefore, it is necessary to analyze and process data such as temperature. When temperature and other data are abnormal, an early warning should be issued to remind relevant personnel to handle it.
[0122] The above embodiments are all described by taking milk as an example. The dairy product may also be other similar products.
[0123] In one embodiment, since the temperature data is highly correlated with the humidity data in the sterilization container, only the predicted value corresponding to the data in the temperature data sequence and the predicted value corresponding to the data in the humidity data sequence can be calculated, and then the early warning index corresponding to the temperature data sequence and the early warning index corresponding to the humidity data sequence can be calculated. Then, whether to issue an early warning can be determined based on the early warning index.
[0124] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0125] As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." Additionally, the articles "a" and "an" as used in this application and the appended claims are generally understood to mean "one or more" unless specified otherwise or clear from context to be directed to a singular form.
[0126] Where the terms "includes," "having," "having," "having," or variations thereof are used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term "comprising."
[0127] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims
1. A dairy product production monitoring system based on data processing, characterized in that: include: Abnormal index acquisition module: used to obtain a data set related to dairy products within a set time. The data set includes at least two data points. Each data point includes a temperature data of the dairy product and a humidity data in the sterilization container where the dairy product is located. The data collection time of any data point is the same. The data of the same type in all data points constitute a data sequence, and then multiple data sequences are obtained. Any data sequence is called a target sequence, and the abnormal index of the i-th data in the target sequence is The calculation formula is: ; is the isolated indicator of the i-th data; is the i-th data; In the target sequence, a preset number of data before the i-th data is taken, and the order of the preset number of data and the i-th data is continuous, k is the preset number, The jth data among the preset number of data; The isolated index of the i-th data The calculation formula is: ; is the mth data in the target sequence; , , , and They are the total number, median, standard deviation, maximum value and minimum value of all data before the i-th data in the target sequence; Noise index acquisition module: used to perform positive correlation normalization on the standard deviation of abnormal indicators of all types of data at any data point in the data set to obtain the noise index of each type of data; Based on the noise index, the data in the target sequence is divided into non-noise data and noise data; Prediction module: used to correct the noise data based on the non-noise data in the target sequence, obtain the actual value of any data in the target sequence, and use the exponential smoothing method to obtain the predicted value for all actual values; Warning module: If the maximum value of the warning indicator of the data sequence is greater than the threshold, a warning is issued; among them, the warning indicator of the target sequence The expression is: ; n is the total number of all data in the target sequence, is the predicted value corresponding to the i-th data, is the actual value corresponding to the i-th data, is the positive correlation normalization function, is the default value, The role of is to prevent the denominator from being zero. is called the predicted difference of the i-th data, is the standard deviation of the predicted differences for all data in the target series.
2. A dairy product production monitoring system based on data processing according to claim 1, characterized in that: The function used to perform positive correlation normalization on the standard deviation of the abnormal indicators of all types of data at any data point of the data set is the maximum and minimum normalization function.
3. A dairy product production monitoring system based on data processing according to claim 1, characterized in that: Each data point in the data set also includes a pH data of the dairy product.
4. A dairy product production monitoring system based on data processing according to claim 1, characterized in that: The noise data is corrected based on the non-noise data in the target sequence to obtain the actual value of any data in the target sequence, including: The least squares method is used to correct the noise data based on the non-noise data in the target sequence to obtain the actual value of any data in the target sequence.
5. A dairy product production monitoring system based on data processing according to claim 1, characterized in that: The process of obtaining the predicted value includes: Based on the quadratic exponential smoothing method, the predicted values of each actual value are obtained.
