A data processing method for food safety supervision

By collecting and analyzing microbial data sequences in food storage warehouses, calculating growth trends and anomaly indexes, combining clustering algorithms, and optimizing the isolated forest algorithm, the accuracy and reliability of traditional methods in detecting microbial anomalies in food storage environments are solved. Efficient and accurate positioning of food safety supervision has been achieved.

CN118094268BActive Publication Date: 2024-08-23SHANDONG HUAYI LIFE SCI CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410237567.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-01
Publication Date
2024-08-23
Estimated Expiration
2044-03-01

AI Technical Summary

Technical Problem

Traditional food storage safety supervision methods are difficult to effectively detect microbial abnormalities in the food storage environment, especially under high-dimensional data, which makes food safety supervision more difficult, and the accuracy of the traditional isolated forest algorithm is low, affecting the reliability of detection results.

Method used

By collecting microbial data sequences in food storage warehouses, we calculate the overall and local growth trend coefficients, fit continuous curves, obtain maximum values ​​and areas, construct location anomaly indexes, combine clustering algorithms and anomaly detection algorithms, and optimize the isolation forest algorithm to Improve the accuracy of food safety supervision.

Benefits of technology

It achieves accurate assessment of food microbial quantity change trends and efficient detection of growth status, reduces detection costs and time, improves the positioning accuracy and speed of food safety supervision, and solves the problem of untimely detection of food spoilage and difficulty in locating food spoilage. question.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118094268B
    Figure CN118094268B
Patent Text Reader

Abstract

The present invention relates to the technical field of food safety supervision, and specifically to a data processing method for food safety supervision, the method comprising: collecting microbial data sequences in a food storage environment, obtaining the overall growth trend coefficient and local growth stability coefficient of various microorganisms according to the numerical distribution of the microbial data sequences, and then obtaining the growth and reproduction coefficients of various microorganisms, obtaining the envelope mutation coefficient and envelope growth law matching degree of various microorganisms according to the change trend of the data in the microbial sequence, obtaining the position anomaly index of each position, thereby obtaining the microbial growth spread dispersion of each warehouse, and evaluating the anomaly index of each warehouse. The present invention aims to improve the speed and accuracy of finding problems in food safety supervision and realize rapid positioning of food safety supervision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of food safety supervision, and in particular to a data processing method for food safety supervision. Background Art

[0002] With the development of social economy and the exposure of some food safety issues, the society pays more and more attention to food safety issues. Improving the standardization of food production process and the cleanliness of production environment have become the focus of food safety supervision departments. Data processing methods for food safety supervision need to make full use of modern scientific and technological means to ensure the safety and quality of food. However, there is a correlation between the data in food safety supervision. If abnormal environmental conditions such as temperature and humidity occur during food storage, food safety problems will occur.

[0003] Traditional food storage safety supervision methods generally require dedicated personnel to regularly check the food storage status. However, the amount of food stored is generally large, and the stacking of goods and corners cannot be well inspected. Once food becomes spoiled or corrupt, the breeding bacteria may contaminate other normal foods, thereby greatly compromising the food storage environment and increasing the difficulty of food safety supervision.

[0004] The traditional isolation forest algorithm has low accuracy in anomaly detection of microbial data sequences and is not suitable for high-dimensional data, which reduces the reliability of the algorithm results. In addition, there is a large amount of noise and irrelevant dimensions in high-dimensional space, which affects the anomaly detection results. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a data processing method for food safety supervision to solve the existing problems.

[0006] A data processing method for food safety supervision of the present invention adopts the following technical solution:

[0007] An embodiment of the present invention provides a data processing method for food safety supervision, the method comprising the following steps:

[0008] Collect microbial data sequences at various locations in food storage warehouses;

[0009] The overall growth trend coefficients of various microorganisms are obtained according to the distribution of data in the microbial data sequence; the local growth stability coefficients of various microorganisms are obtained according to the differences between the data in the microbial data sequence and the adjacent data; the growth and reproduction coefficients of various microorganisms are obtained by combining the overall growth trend coefficient and the local growth stability coefficient; the microbial data sequence is fitted into a continuous curve; the maximum values ​​of the continuous curve and the area enclosed by the continuous curve between the minimum values ​​adjacent to the left and right of the maximum value point are obtained;

[0010] Each maximum value and the area corresponding to the maximum value are taken as each group; all groups of the continuous curves of various microorganisms are taken as each heat point sequence; the envelope mutation coefficient of various microorganisms is obtained according to the distribution of each maximum value and the area; the envelope growth law consistency of various microorganisms is obtained according to the relationship between the heat point sequences of each position; the position abnormality index of each position is obtained by combining the growth reproduction coefficient, the envelope mutation coefficient and the envelope growth law consistency;

[0011] The location anomaly index of all locations is clustered using a clustering algorithm to obtain clusters; the dispersion of microbial growth and spread of each warehouse is obtained according to the distribution of each cluster; the data processing for food safety supervision is completed by combining the anomaly detection algorithm and the dispersion of microbial growth and spread of each warehouse.

[0012] Preferably, the collecting of microbial data sequences at various locations in the food storage warehouse includes:

[0013] Multiple air samplers are placed in each warehouse where food is stored to collect air samples at different locations at different times. The concentrations of various microorganisms in the air samples are tested and the concentrations of the same microorganisms at all sampling times are taken as a microbial data sequence.

[0014] Preferably, the overall growth trend coefficients of various microorganisms are obtained according to the distribution of data in the microbial data sequence, including:

[0015] For various microbial data sequences, calculate the difference between the maximum data value and the minimum data value, calculate the absolute value of the difference between the sampling time corresponding to the maximum data value and the sampling time corresponding to the minimum data value, calculate the sum of the absolute value of the difference and a very small positive number, and use the ratio of the difference to the sum as the overall growth trend coefficient of various microorganisms.

[0016] Preferably, the local growth stability coefficients of various microorganisms are obtained based on the difference between the data in the microorganism data sequence and the adjacent data, including:

[0017] For various microbial data sequences, calculate the absolute value of the difference between each data and the next adjacent data, calculate the mean of all the absolute values ​​of the difference, calculate the absolute value of the difference between each absolute value of the difference and the mean, record it as the first absolute value of the difference, and take the mean of all the first absolute values ​​of the difference as the local growth stability coefficient of various microorganisms.

[0018] Preferably, the growth and reproduction coefficients of various microorganisms obtained by combining the overall growth trend coefficient and the local growth stability coefficient include:

[0019] The sum of the overall growth trend coefficient and the local growth stability coefficient of various microorganisms is taken as the growth and reproduction coefficient of various microorganisms.

[0020] Preferably, the envelope mutation coefficients of various microorganisms are obtained according to the distribution of each maximum value and the area, including:

[0021] For the continuous curves of various microorganisms, the product of each maximum value and the area is calculated, the sum of the products of all the maximum values ​​is calculated, and the product of the sum and the number of maximum values ​​is taken as the envelope mutation coefficient of various microorganisms.

[0022] Preferably, the degree of conformity of the envelope growth law of various microorganisms obtained according to the relationship between the hot point sequences at each position includes:

[0023] For each warehouse, the DTW distance between the hot point sequence at each position and the hot point sequences of all remaining positions is calculated, and the minimum value of the DTW distance is used as the degree of fit of the envelope growth law of various microorganisms.

[0024] Preferably, the position anomaly index of each position is obtained by combining the growth reproduction coefficient, the envelope mutation coefficient and the envelope growth law consistency, including:

[0025] For various microorganisms at each position, calculate the product of the growth and reproduction coefficient and the envelope mutation coefficient, calculate the ratio of the product to the envelope growth law, calculate the absolute value of the difference between the ratio and the ratio of other remaining microorganisms, obtain the maximum value of the absolute value of the difference, and take the sum of the maximum values ​​of all microorganisms as the position anomaly index of each position.

[0026] Preferably, the microbial growth spread dispersion of each warehouse is obtained according to the distribution of each cluster, including:

[0027] Calculate the center of the location where all air samplers are placed in the warehouse, calculate the Euclidean distance between the center of each cluster and the center of the location, calculate the sum of the location anomaly indexes of all locations in each cluster, calculate the product of the Euclidean distance, the sum and the number of locations in the cluster, and use the sum of the products of all clusters as the discreteness of microbial growth spread in each warehouse.

[0028] Preferably, the data processing for food safety supervision is completed by combining the anomaly detection algorithm and the dispersion of microbial growth in each warehouse, including:

[0029] The isolation forest algorithm is used to perform anomaly detection on the discrete degree of microbial growth and spread in each warehouse to obtain the anomaly index of each warehouse. If the anomaly index is greater than or equal to the preset threshold, it means that there is an abnormality in the food safety of the warehouse. Otherwise, it means that the food safety of the warehouse is normal.

[0030] The present invention has at least the following beneficial effects:

[0031] The present invention constructs the growth and reproduction coefficient of each microbial data sequence according to the overall and local stability and change trend of the microbial data sequence, more accurately evaluates the change trend and growth rate of the number of microorganisms in food samples, thereby effectively predicting the quality and safety of microorganisms in food. At the same time, according to the growth consistency of different microorganisms at each position, that is, the similarity of mutations between the maximum values ​​of continuous curves, the position abnormality index of each position is constructed to characterize the growth and reproduction state of the microorganism, accurately and efficiently detect food safety, help reduce detection costs and time, and improve detection efficiency;

[0032] The present invention analyzes the phenomenon of large-scale spread and infection caused by food spoilage and corruption, constructs the discrete degree of microbial growth and spread in each warehouse, and optimizes the isolation forest algorithm, so as to more accurately locate and supervise food storage safety issues, solving the problems of untimely discovery and difficult positioning of food spoilage in food safety supervision. The present invention has the beneficial effect of accurate and rapid positioning of food safety supervision. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 A flowchart of a data processing method for food safety supervision provided by an embodiment of the present invention;

[0035] Figure 2 Positioning flow chart for food safety regulation. DETAILED DESCRIPTION

[0036] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a data processing method for food safety supervision proposed by the present invention, its specific implementation method, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0037] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0038] The following is a detailed description of a specific scheme of a data processing method for food safety supervision provided by the present invention in conjunction with the accompanying drawings.

[0039] See also Figure 1 , which shows a step flow chart of a data processing method for food safety supervision provided by an embodiment of the present invention, the method comprising the following steps:

[0040] Step S001, collecting microbial data sequences in the food storage environment.

[0041] In this embodiment, multiple air samplers are placed in each warehouse storing food, wherein the number of air samplers placed can be set by the implementer according to the actual situation, and this embodiment does not limit this. The air samplers are used to collect air samples at different times in the warehouse at equal intervals, and the concentration of different microorganisms in the air samples is detected using polymerase chain reaction PCR technology, and the concentration of the same microorganism at all sampling times is used as a microorganism data sequence to obtain microorganism data sequences of various microorganisms. The polymerase chain reaction PCR technology is a well-known technology, and this embodiment will not be described in detail here.

[0042] Step S002, according to the microbial data sequence, the overall growth trend coefficient and the local growth stability coefficient of various microorganisms are obtained, and then the growth and reproduction coefficients of various microorganisms are obtained, and the envelope mutation coefficients and the envelope growth law consistency of various microorganisms are obtained. The position anomaly index of each position is obtained by combining the growth and reproduction coefficient, the envelope mutation coefficient and the envelope growth law consistency, so as to obtain the microbial growth spread dispersion of each warehouse.

[0043] Specifically, this embodiment will collect microbial data sequences in the food storage environment, obtain the overall growth trend coefficients and local growth stability coefficients of various microorganisms based on the numerical distribution of the microbial data sequences, and then obtain the growth and reproduction coefficients of various microorganisms. According to the change trend of the data in the microbial sequence, the envelope mutation coefficients and the envelope growth law consistency of various microorganisms are obtained, and the position anomaly index of each position is obtained, thereby obtaining the microbial growth spread dispersion of each warehouse, and evaluating the anomaly index of each warehouse. The food safety supervision positioning flow chart is shown as follows: Figure 2 The construction process of the microbial growth spread dispersion of each warehouse is as follows:

[0044] Since the microbial growth state of different foods is different, different pH, water activity and nutrients will affect the microbial growth conditions of different foods. For example, protein-rich foods such as meat and fish are more likely to cause bacterial growth. This embodiment performs abnormal analysis on each microorganism in various food storage environments to achieve food safety supervision.

[0045] When the traditional isolation forest algorithm performs anomaly detection on the microbial data sequences detected in each warehouse, it is easy to form a high dimension and cannot accurately determine the specific location of the anomaly. In addition, there may be irregular noise or irrelevant dimensions in a large amount of data. At the same time, it cannot be combined with the diffusion of microorganisms at different locations in the warehouse for analysis, which affects the accuracy of tree construction in the isolation forest algorithm and the results of anomaly detection.

[0046] This embodiment analyzes the changes in the concentration of microorganisms detected at various locations in the warehouse, extracts the change characteristics of multi-dimensional and irregular microbial data sequences, completes the generation of more accurate trees in the isolation forest algorithm, and realizes high-precision food safety supervision.

[0047] Since the abnormalities of the microbial data sequences at each location are closely related to the specific scenario, the abnormalities detected by the isolation forest algorithm are not necessarily real abnormalities. For example, in a special environment, microorganisms may multiply during the normal storage of food, but this multiplication state may not cause the food to deteriorate, thereby causing microbial changes in other foods in the warehouse. When selecting features, it is necessary to filter out irrelevant features and focus on the overall microbial change trend in the food storage environment, so as to more accurately locate and supervise food storage safety issues.

[0048] The temperature and humidity inside the warehouse are suitable for food storage. Under normal circumstances, there will be no growth and reproduction conditions for microorganisms that cause food spoilage. However, the food storage environment is not a sterile environment, and microorganisms will still reproduce and grow. Therefore, in order to identify the growth of various microorganisms, the overall and local changes in the data sequences of various microorganisms at various locations in each warehouse are analyzed to construct the growth and reproduction coefficients of various microorganisms. The expression is:

[0049]

[0050]

[0051]

[0052] In the formula, represents the growth and reproduction coefficient of the sth microorganism in the wth position of warehouse c, represents the overall growth trend coefficient of the sth microorganism at the wth position in warehouse c, represents the local growth stability coefficient of the sth microorganism at the wth position of warehouse c;

[0053] max() represents the maximum value function, min() represents the minimum value function. represents the microbial data sequence of the sth microorganism at the wth position of warehouse c, argmax() represents the sampling time corresponding to the maximum value, argmin() represents the sampling time corresponding to the minimum value, δ is a very small positive number, in this embodiment, δ=0.1, the implementer can set it according to the actual situation, and this embodiment does not limit it;

[0054] represents the number of data in the microbial data sequence of the sth microorganism at the wth position in warehouse c, represents the absolute value of the difference between the i-th data and the i+1-th data in the microbial data sequence of the s-th microorganism at the w-th position in warehouse c, represents the mean of the absolute values ​​of all the differences in the microbial data sequence of the sth microorganism at the wth position in warehouse c. Recorded as the absolute value of the first difference.

[0055] The more stable the microbial data sequence is and the more consistent the trend changes are, the more stable the growth and reproduction of the microorganisms are, that is, the more likely it is a normal microbial data sequence. When the growth and reproduction of microorganisms are abnormal, the growth and reproduction coefficient of the microorganisms will be greater relative to the normal reproduction situation.

[0056] Generally speaking, when food is spoiling and deteriorating, the higher the humidity of the environment in which the food is currently stored, the more likely various microorganisms that survive in the humid environment will grow and reproduce, and this microbial reproduction phenomenon can be reflected by the change amplitude and growth consistency in the microbial data sequence. First, for the microbial data sequence of various microorganisms, all the data therein are fitted using the least squares method to obtain continuous curves of various microorganisms, and the various maximum points of the continuous curve are calculated by differentiation. The area enclosed by the continuous curve between the adjacent minimum points on the left and right of each maximum point is calculated by integration, which is recorded as the maximum area. The heat point sequence corresponding to the microbial data sequence is constructed based on the maximum points and the maximum area. The least squares method, differentiation, and integration are all existing well-known technologies, and this embodiment will not be described in detail here.

[0057] Take the heat point sequence of the sth microorganism at the wth position of warehouse c For example, in, is the maximum number of the continuous curve of the s-th microorganism at the w-th position in warehouse c, The continuous curve of the sth microorganism at the wth position of warehouse c is A maximum value, The continuous curve of the sth microorganism at the wth position of warehouse c is The maximum area of ​​a maximum value.

[0058] By analyzing the coincidence and abnormality of growth and reproduction of various microorganisms at the same location, and combining the growth and reproduction coefficient of the microorganisms, the location anomaly index of each location is constructed, and the expression is:

[0059]

[0060]

[0061]

[0062] In the formula, vus c,w represents the location anomaly index of the w-th location of warehouse c, S represents the number of microbial species at the w-th location of warehouse c, represents the growth and reproduction coefficient of the sth microorganism in the wth position of warehouse c, represents the envelope mutation coefficient of the sth microorganism at the wth position in warehouse c, represents the degree of conformity of the envelope growth law of the sth microorganism at the wth position of warehouse c. As the first variable of the sth microorganism in the wth position of warehouse c, represents the absolute value of the difference between the first variable of the sth microorganism at the wth position in warehouse c and the first variables of all remaining microorganisms at the wth position, and max represents the maximum value function;

[0063] is the maximum number of the continuous curve of the s-th microorganism at the w-th position in warehouse c, represents the ith maximum value on the continuous curve of the sth microorganism at the wth position in warehouse c, represents the maximum area of ​​the ith maximum value on the continuous curve of the sth microorganism at the wth position in warehouse c;

[0064] min() represents the minimum value function, DTW() represents the DTW distance function, represents the heat point sequence of the sth microorganism at the wth position in warehouse c, Represents the heat point sequence of the zth microorganism at the wth position in warehouse c.

[0065] When the maximum value and the maximum area in the connecting curve corresponding to the microbial data sequence of various microorganisms at a certain position show regular changes, it means that the food at this position is more likely to be abnormal, resulting in more similar growth conditions of various microorganisms at this position.

[0066] Microorganisms may grow and spread at different locations inside each warehouse. That is, if food rots and spoils in one corner of the warehouse, it will have a certain impact on the surrounding food safety. The spread of this impact is reflected in the air samples collected by air samplers placed at different locations in the warehouse. The location anomaly index of each location in each warehouse is clustered using the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) clustering algorithm to obtain each cluster. In this embodiment, the minimum number of sample points of the DBSCAN clustering algorithm is set to 10, and the neighborhood radius is 0.5. The implementer can set it according to the actual situation. This embodiment does not limit this. The DBSCAN clustering algorithm is an existing well-known technology and is not described in detail in this embodiment.

[0067] Based on this, according to the clustering results of each warehouse, the discrete degree of microbial growth and spread of each warehouse is constructed, and the expression is:

[0068]

[0069] In the formula, ml c represents the dispersion of microbial growth in warehouse c, P c represents the number of clusters of warehouse c, d c,p N represents the Euclidean distance between the center of the pth cluster in warehouse c and the center of all air samplers in the warehouse. c ,p represents the number of locations contained in the pth cluster in warehouse c, Vus c,p Represents the sum of the location anomaly indices of all locations in the p-th cluster in warehouse c.

[0070] The more elements in each cluster, the larger the position anomaly index of the corresponding element, and the farther the center of the cluster is from the center of all air samplers in the warehouse, it indicates that there are local anomalies in the warehouse; at the same time, if there are more clusters, it indirectly represents the microbial growth phenomenon caused by food safety problems, that is, the greater the discreteness of the spread of microbial growth in the warehouse.

[0071] The isolation forest algorithm is used to detect the anomaly of the dispersion of microbial growth in each warehouse. The mean of the number of clusters of all warehouses is used as the number of samples randomly selected when constructing each isolated tree in the isolation forest algorithm. In this embodiment, the number of isolated trees is set to 100, and the maximum depth of the stop condition of isolated tree growth is 50. The implementer can set it according to the actual situation, and this embodiment does not limit this. The output of the isolation forest algorithm is the anomaly index of each warehouse.

[0072] Thus, an optimized isolation forest is obtained. Compared with the traditional isolation forest, this embodiment targets the abnormal microbial distribution in the warehouse by randomly extracting a corresponding number of samples, so that the food safety abnormalities are evenly distributed in the isolation tree, ensuring that the calculated abnormal results are more accurate.

[0073] Step S003, monitoring food safety issues based on the abnormality index of each warehouse storing food.

[0074] The abnormality index of each warehouse storing food is obtained. The closer the abnormality index is to 1, the more likely the food in the warehouse is abnormal. A threshold value β is set. If the abnormality index of the warehouse is greater than or equal to β, it indicates that the food safety of the warehouse is abnormal. If the abnormality index of the warehouse is less than β, it indicates that the food safety of the warehouse is normal. In this embodiment, β=0.8, and the implementer can set it according to the actual situation. This embodiment does not limit this.

[0075] In summary, the embodiments of the present invention solve the problems of untimely detection and difficult location of food spoilage in food safety supervision. By analyzing the distribution characteristics of microbial data sequences and obtaining the abnormal index of each warehouse, the accuracy and speed of supervision and location when food safety problems occur are improved.

[0076] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0077] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0078] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data processing method for food safety supervision, characterized in that: The method comprises the following steps: Collect microbial data sequences at various locations in food storage warehouses; The overall growth trend coefficients of various microorganisms are obtained according to the distribution of data in the microbial data sequence; the local growth stability coefficients of various microorganisms are obtained according to the differences between the data in the microbial data sequence and the adjacent data; the growth and reproduction coefficients of various microorganisms are obtained by combining the overall growth trend coefficient and the local growth stability coefficient; the microbial data sequence is fitted into a continuous curve; the maximum values ​​of the continuous curve and the area enclosed by the continuous curve between the minimum values ​​adjacent to the left and right of the maximum value point are obtained; Each maximum value and the area corresponding to the maximum value are taken as each group; all groups of the continuous curves of various microorganisms are taken as each heat point sequence; the envelope mutation coefficient of various microorganisms is obtained according to the distribution of each maximum value and the area; the envelope growth law consistency of various microorganisms is obtained according to the relationship between the heat point sequences of each position; the position abnormality index of each position is obtained by combining the growth reproduction coefficient, the envelope mutation coefficient and the envelope growth law consistency; The location anomaly index of all locations is clustered using a clustering algorithm to obtain clusters; the dispersion of microbial growth and spread of each warehouse is obtained according to the distribution of each cluster; the data processing for food safety supervision is completed by combining the anomaly detection algorithm and the dispersion of microbial growth and spread of each warehouse; The overall growth trend coefficients of various microorganisms are obtained according to the distribution of data in the microbial data sequence, including: For various microbial data sequences, calculate the difference between the maximum data value and the minimum data value, calculate the absolute value of the difference between the sampling time corresponding to the maximum data value and the sampling time corresponding to the minimum data value, calculate the sum of the absolute value of the difference and a very small positive number, and use the ratio of the difference to the sum as the overall growth trend coefficient of various microorganisms; The local growth stability coefficients of various microorganisms are obtained according to the difference between the data in the microorganism data sequence and the adjacent data, including: For various microbial data sequences, the absolute value of the difference between each data and the next adjacent data is calculated, the mean of all the absolute values ​​of the difference is calculated, the absolute value of the difference between each absolute value of the difference and the mean is calculated, recorded as the first absolute value of the difference, and the mean of all the first absolute values ​​of the difference is used as the local growth stability coefficient of various microorganisms; The envelope mutation coefficients of various microorganisms are obtained according to the distribution of each maximum value and the area, including: For the continuous curves of various microorganisms, the product of each maximum value and the area is calculated, the sum of the products of all the maximum values ​​is calculated, and the product of the sum and the number of maximum values ​​is used as the envelope mutation coefficient of various microorganisms; The degree of conformity of the envelope growth law of various microorganisms obtained according to the relationship between the heat point sequences at each position includes: For each warehouse, the DTW distance between the hot point sequence at each position and the hot point sequences of all remaining positions is calculated, and the minimum value of the DTW distance is used as the degree of fit of the envelope growth law of various microorganisms.

2. A data processing method for food safety supervision according to claim 1, characterized in that: The microbial data sequences collected at various locations in the food storage warehouse include: Multiple air samplers are placed in each warehouse where food is stored to collect air samples at different locations at different times. The concentrations of various microorganisms in the air samples are tested and the concentrations of the same microorganisms at all sampling times are taken as a microbial data sequence.

3. A data processing method for food safety supervision according to claim 1, characterized in that: The growth and reproduction coefficients of various microorganisms are obtained by combining the overall growth trend coefficient and the local growth stability coefficient, including: The sum of the overall growth trend coefficient and the local growth stability coefficient of various microorganisms is taken as the growth and reproduction coefficient of various microorganisms.

4. A data processing method for food safety supervision according to claim 1, characterized in that: The position anomaly index of each position is obtained by combining the growth reproduction coefficient, the envelope mutation coefficient and the envelope growth law consistency, including: For various microorganisms at each position, calculate the product of the growth and reproduction coefficient and the envelope mutation coefficient, calculate the ratio of the product to the envelope growth law, calculate the absolute value of the difference between the ratio and the ratio of other remaining microorganisms, obtain the maximum value of the absolute value of the difference, and take the sum of the maximum values ​​of all microorganisms as the position anomaly index of each position.

5. A data processing method for food safety supervision according to claim 2, characterized in that: The microbial growth spread dispersion of each warehouse is obtained according to the distribution of each cluster, including: Calculate the center of the location where all air samplers are placed in the warehouse, calculate the Euclidean distance between the center of each cluster and the center of the location, calculate the sum of the location anomaly indexes of all locations in each cluster, calculate the product of the Euclidean distance, the sum and the number of locations in the cluster, and use the sum of the products of all clusters as the discreteness of microbial growth spread in each warehouse.

6. A data processing method for food safety supervision according to claim 1, characterized in that: The data processing for food safety supervision is completed by combining the anomaly detection algorithm and the dispersion of microbial growth and spread in each warehouse, including: The isolation forest algorithm is used to perform anomaly detection on the discrete degree of microbial growth and spread in each warehouse to obtain the anomaly index of each warehouse. If the anomaly index is greater than or equal to the preset threshold, it means that there is an abnormality in the food safety of the warehouse. Otherwise, it means that the food safety of the warehouse is normal.

Citation Information

Patent Citations

  • Method for predicting food microorganisms by dimension plan model

    CN109055478A

  • Water quality index fusion data anomaly detection method and system

    CN113435547A

  • Method for monitoring growth and metabolism of microorganisms in koji making process of Luzhou-flavor yeast

    CN114414686A

  • Dynamic change detection method for spoilage microorganisms in takifugu obscurus preservation process

    CN114574568A

  • Contaminated site construction monitoring method and system

    CN116881749A