Biscuit food tracing method and system

By adjusting storage redundancy, compression rate, and collection frequency of biscuit food data, the method improves traceability accuracy by addressing voltage fluctuations and electromagnetic interference, ensuring timely and accurate data processing.

CN119107100AInactive Publication Date: 2024-12-10WEILONG FOOD CO LTD

Patent Information

Application Number
CN202411571932.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2024-12-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The capacity of the power supply system during peak periods of the power grid load cannot meet demand, leading to voltage fluctuations and inaccurate data monitoring by sensors, which reduces the accuracy of biscuit food traceability.

Method used

Adjusting storage redundancy, compression rate, and collection frequency of biscuit food data based on specific ratios and times to improve data accuracy and processing efficiency.

Benefits of technology

Enhances biscuit food traceability accuracy by ensuring more data is recorded and processed effectively, reducing errors due to voltage fluctuations and electromagnetic interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119107100A_ABST
    Figure CN119107100A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data traceability, in particular to a biscuit food traceability method and system, and the method comprises the steps: collecting biscuit food data, sequentially carrying out the cleaning, integration, compression and data analysis operation of the biscuit food data to output biscuit optimization data, and transmitting the biscuit optimization data to a traceability query port; storing the biscuit food data and the biscuit optimization data, and using the traceability query port to perform traceability query on the biscuit optimization data so as to output a traceability query result; determining the accuracy of the biscuit food traceability based on the ratio of the correct times of the traceability query result; if the accuracy of the biscuit food traceability does not meet the requirement, adjusting the storage redundancy of the biscuit food data; and if it is determined that the tracing efficiency does not meet the requirement, adjusting the compression ratio of the biscuit food data. According to the invention, the accuracy of biscuit food traceability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data traceability, and in particular to a biscuit food traceability method and system. Background Art

[0002] In the existing technology, as the circulation scale of biscuit food gradually expands, ensuring the quality and safety of biscuit food plays an important role in promoting the efficient, healthy and green ecological development of biscuit food. Biscuit food quality and safety involves different links such as production, processing, transportation and sales, each of which may have safety hazards. Accurately tracing the real information of biscuit food in each link is an important way to ensure the quality and safety of biscuit food, which also meets consumers' expectations for the quality and safety of biscuit food.

[0003] Chinese Patent Publication No.: CN115829597A discloses a method for uploading food traceability information to a chain and a food traceability system, the method is applied to a food traceability system, the food traceability system includes multiple blockchain nodes, the blockchain nodes include consensus nodes and control nodes, the method includes: the consensus node sends the node feature information of the node to the control node; the node feature information includes enterprise attribute information and spatial location information; the control node classifies each consensus node according to the node feature information of each consensus node and a preset node classification strategy, obtains multiple node clusters, and determines the master node in each node cluster respectively; each consensus node included in the node cluster performs a consensus verification on the food traceability information to be consensused, and the master node in each node cluster performs a secondary consensus verification on the food traceability information that passes the primary consensus verification; when the secondary consensus verification passes, each consensus node performs a chain operation on the food traceability information. It can be seen that the method of uploading food traceability information to the chain and the food traceability system have the problem that the capacity of the power supply system may not be able to meet the demand during the peak period of grid load, resulting in voltage fluctuations, which in turn leads to inaccurate data monitored by the sensor, thereby reducing the accuracy of biscuit food traceability. Summary of the invention

[0004] To this end, the present invention provides a biscuit food traceability method and system to overcome the problem in the prior art that the capacity of the power supply system may not be able to meet the demand during the peak period of the power grid load, resulting in voltage fluctuations, and then causing inaccurate data monitored by the sensor, thereby reducing the accuracy of biscuit food traceability.

[0005] To achieve the above-mentioned purpose, the present invention provides a biscuit food traceability method, comprising: collecting biscuit food data, cleaning, integrating, compressing and performing data analysis operations on the biscuit food data in sequence to output biscuit optimization data, and transmitting the biscuit optimization data to a traceability query port; storing the biscuit food data and the biscuit optimization data, using the traceability query port to perform a traceability query on the biscuit optimization data to output a traceability query result; respectively obtaining the correct number of traceability query results and the total number of traceability queries within a number of traceability cycles; determining the accuracy of biscuit food traceability based on the proportion of the correct number of traceability query results; if the accuracy of the biscuit food traceability does not meet the requirements, adjusting the storage redundancy of the biscuit food data, or determining the traceability performance of the biscuit optimization data based on the average delay time of the biscuit food data processing; if it is determined that the traceability performance does not meet the requirements, adjusting the compression rate of the biscuit food data or adjusting the collection frequency of the biscuit food data based on the packet loss rate of the biscuit food data.

[0006] Furthermore, determining the accuracy of the biscuit food traceability includes: Compare the correct number of times of the traceability query result with the preset first ratio; If the correct number of times of the traceability query results accounts for more than the preset first ratio, it is determined that the accuracy of the biscuit food traceability does not meet the requirements.

[0007] Further, determining the traceability effectiveness of the cookie optimization data includes: The correct times ratio of the traceability query result is compared with the preset first ratio and the preset second ratio respectively: If the correct number of times of the traceability query results accounts for more than the preset first ratio and is less than or equal to the preset second ratio, it is preliminarily determined that the traceability performance of the biscuit optimization data does not meet the requirements, and whether the traceability performance of the biscuit optimization data meets the requirements is determined based on the average delay time of biscuit food data processing.

[0008] Furthermore, the storage redundancy of the biscuit food data is adjusted, including: Comparing the correct number ratio of the tracing query result with the preset second ratio; If the correct number of times of the traceability query result accounts for more than a preset second ratio, the storage redundancy of the biscuit food data is increased.

[0009] Furthermore, the increase in the storage redundancy of the biscuit food data is determined by the difference between the correct number ratio of the traceability query result and a preset second ratio.

[0010] Furthermore, the compression rate of the biscuit food data is adjusted, including: Compare the average delay time of the biscuit food data processing with the preset first delay time and the preset second delay time respectively; If the average delay time of the biscuit food data processing is greater than the preset first delay time, it is determined that the traceability performance of the biscuit optimization data does not meet the requirements; If the average delay time of the biscuit food data processing is greater than the preset first delay time and less than or equal to the preset second delay time, increasing the compression rate of the biscuit food data; If the average delay time of the biscuit food data processing is greater than the preset second delay time, it is preliminarily determined that the validity of the traceability query does not meet the requirements, and whether the validity of the traceability query meets the requirements is determined based on the packet loss rate of the biscuit food data.

[0011] Furthermore, the increase range of the compression rate of the biscuit food data is determined by the difference between the average delay time of the biscuit food data processing and the preset first delay time.

[0012] Furthermore, the collection frequency of biscuit food data is adjusted, including: Compare the packet loss rate of cookie food data with the preset packet loss rate: If the packet loss rate of the biscuit food data is greater than the preset packet loss rate, it is determined that the validity of the traceability query does not meet the requirements, and the collection frequency of the biscuit food data is reduced.

[0013] Furthermore, the reduction range of the collection frequency of the biscuit food data is determined by the difference between the packet loss rate of the biscuit food data and a preset packet loss rate.

[0014] A biscuit food traceability system, comprising: A data collection module is used to collect biscuit food data; a data processing module connected to the data acquisition module and used to process the biscuit food data to output biscuit optimization data, comprising a preprocessing unit for preprocessing the biscuit food data, a compression unit connected to the preprocessing unit for compressing the preprocessed biscuit food data, a data analysis unit connected to the compression unit for analyzing the compressed biscuit food data to output the biscuit optimization data, and a data transmission unit connected to the data analysis unit for transmitting the biscuit optimization data to a traceability query port; A traceability module, which is connected to the data processing module and is used to perform a traceability query on the cookie optimization data to output a traceability query result; A storage module, which is connected to the data acquisition module, the data processing module and the traceability module respectively, and is used to store the biscuit food data, the biscuit optimization data and the traceability query result respectively; A control module is respectively connected to the data acquisition module, the data processing module, the traceability module and the storage module, and is used to determine the storage redundancy of the biscuit food data according to the proportion of the correct number of traceability query results, or to determine the compression rate of the biscuit food data according to the average delay time of the biscuit food data processing, and to determine the collection frequency of the biscuit food data according to the average delay time of the biscuit food data processing and the packet loss rate of the biscuit food data.

[0015] Compared with the prior art, the beneficial effect of the present invention lies in that the method of the present invention adjusts the storage redundancy of biscuit food data according to the proportion of correct times of traceability query results. Since the capacity of the power supply system may not be able to meet the demand during the peak period of power grid load, the voltage fluctuates, which in turn causes inaccurate data monitored by the sensor, thereby causing inaccurate traceability results. By increasing the storage redundancy of biscuit food data, more data can be recorded, and more data can be available for analysis during processing, which can better identify and correct abnormal data caused by voltage fluctuations. The compression rate of biscuit food data is adjusted according to the average delay time of biscuit food data processing. Since a large amount of data is generated in the biscuit production process, the amount of data will increase rapidly with the expansion of production scale and the improvement of automation, resulting in untimely data processing. By increasing the compression rate of biscuit food data, limited storage resources can be used more effectively, while reducing the amount of data transmission, thereby speeding up the transmission speed and processing speed. The collection frequency of biscuit food data is adjusted according to the packet loss rate of biscuit food data. Due to the presence of large-scale baking equipment in the biscuit production workshop, electromagnetic radiation will be generated during operation, interfering with nearby data transmission lines, which may cause some data packets to be lost during the transmission process, resulting in errors when integrating the data, and thus causing errors or confusing information in traceability queries. By reducing the collection frequency of biscuit food data, the burden on the data transmission line is reduced, and the probability of data packet loss due to excessive transmission pressure is reduced. This allows the transmission unit to have more time to process and transmit each sampled data, thereby improving the accuracy of biscuit food traceability.

[0016] Furthermore, the method of the present invention adjusts the storage redundancy of biscuit food data by setting a preset first ratio and a preset second ratio. Since the capacity of the power supply system may not be able to meet the demand during the peak period of grid load, resulting in voltage fluctuations, which in turn leads to inaccurate data monitored by the sensor, resulting in inaccurate traceability results. By increasing the storage redundancy of biscuit food data, more data can be recorded, and more data can be available for analysis during processing, which can better identify and correct abnormal data caused by voltage fluctuations, further improving the accuracy of biscuit food traceability.

[0017] Furthermore, the method of the present invention adjusts the compression rate of biscuit food data by setting a preset first delay time and a preset second delay time. Since a large amount of data will be generated in the biscuit production process, with the expansion of production scale and the improvement of automation, the amount of data will increase rapidly, resulting in untimely data processing. By increasing the compression rate of biscuit food data, limited storage resources can be used more effectively, while reducing the amount of data transmission, thereby speeding up the transmission speed and processing speed, and further improving the accuracy of biscuit food traceability.

[0018] Furthermore, the method of the present invention adjusts the collection frequency of biscuit food data by setting a preset packet loss rate. Since there are large-scale baking equipment in the biscuit production workshop, electromagnetic radiation will be generated during operation, interfering with nearby data transmission lines, which may cause part of the data packets to be lost during the transmission process, resulting in errors in data integration, thereby causing errors or confusing information in traceability queries. By reducing the collection frequency of biscuit food data, the burden on the data transmission line is reduced, and the probability of data packet loss due to excessive transmission pressure is reduced, which allows the transmission unit to have more time to process and transmit each sampled data, further improving the accuracy of biscuit food traceability. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is an overall flow chart of the biscuit food traceability method according to an embodiment of the present invention; Figure 2 This is an overall structural block diagram of a biscuit food traceability system according to an embodiment of the present invention; Figure 3 This is a logic flow chart of a biscuit food source tracing method according to an embodiment of the present invention; Figure 4 This is a specific flow chart of the process of adjusting the storage redundancy of biscuit food data in the biscuit food traceability method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0021] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0022] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0023] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] See also Figure 1 , Figure 2 , Figure 3 as well as Figure 4 As shown, they are respectively an overall flow chart, an overall structure block diagram, a logic flow chart and a specific flow chart of the process of adjusting the storage redundancy of biscuit food data of the biscuit food traceability method and system of the embodiment of the present invention. A biscuit food traceability method of the present invention comprises: Step S1, collecting biscuit food data, cleaning, integrating, compressing and performing data analysis operations on the biscuit food data in sequence to output biscuit optimization data, and transmitting the biscuit optimization data to a traceability query port; Step S2, storing the biscuit food data and the biscuit optimization data, and using the traceability query port to perform a traceability query on the biscuit optimization data to output a traceability query result; Step S3, respectively obtaining the correct number of traceability query results and the total number of traceability queries in several traceability cycles; Step S4, determining the accuracy of biscuit food traceability based on the correct number of traceability query results; Step S5, if the accuracy of the biscuit food traceability does not meet the requirements, the storage redundancy of the biscuit food data is adjusted, or the traceability efficiency of the biscuit optimization data is determined based on the average delay time of the biscuit food data processing; Step S6: if it is determined that the traceability performance does not meet the requirements, the compression rate of the biscuit food data is adjusted or the collection frequency of the biscuit food data is adjusted based on the packet loss rate of the biscuit food data.

[0025] Specifically, biscuit food data includes the name of the supplier of biscuit raw materials, the production time of the biscuit food, and the packaging time of the biscuit food.

[0026] Specifically, the data analysis process is to extract features from the cleaned and integrated biscuit food data, describe the basic characteristics of the biscuit food data by calculating statistical indicators, and present the characteristic data of the analyzed biscuit food data in the form of visual charts.

[0027] Specifically, biscuit optimization data include the quality grade of biscuit food, the production speed of biscuit raw materials, and the logistics route of biscuit food.

[0028] Specifically, the correct number of traceability query results is the number of times the user queries the biscuit food data and food optimization data through the traceability query port and the actual situation is consistent.

[0029] Specifically, the storage redundancy of the biscuit food data is the ratio between the number of data copies stored additionally to the original data in the data storage port and the number of original data.

[0030] Specifically, the traceability performance of biscuit optimization data refers to the accuracy of processing biscuit food data and the accuracy of tracing biscuit optimization data.

[0031] In implementation, the method of the present invention adjusts the storage redundancy of biscuit food data according to the proportion of correct times of traceability query results. Since the capacity of the power supply system may not be able to meet the demand during the peak period of power grid load, the voltage fluctuates, which in turn causes inaccurate data monitored by the sensor, resulting in inaccurate traceability results. By increasing the storage redundancy of biscuit food data, it can be ensured that more data is recorded, and more data is available for analysis during processing, which can better identify and correct abnormal data caused by voltage fluctuations. The compression rate of biscuit food data is adjusted according to the average delay time of biscuit food data processing. Since a large amount of data is generated in the biscuit production process, the amount of data will increase rapidly with the expansion of production scale and the improvement of automation, resulting in untimely data processing. By increasing the storage redundancy of biscuit food data, it is possible to ensure that more data is recorded, and more data is available for analysis during processing, so that abnormal data caused by voltage fluctuations can be better identified and corrected. The compression rate of biscuit food data is adjusted according to the average delay time of biscuit food data processing. Since a large amount of data is generated in the biscuit production process, the amount of data will increase rapidly with the expansion of production scale and the improvement of automation level, resulting in untimely data processing. The compression rate of food data can make more effective use of limited storage resources, while reducing the amount of data transmitted, thereby speeding up the transmission speed and processing speed. The collection frequency of biscuit food data is adjusted according to the packet loss rate of biscuit food data. Due to the presence of large-scale baking equipment in the biscuit production workshop, electromagnetic radiation will be generated during operation, interfering with nearby data transmission lines. This may cause some data packets to be lost during the transmission process, resulting in errors when integrating the data, which in turn causes erroneous or confusing information in traceability queries. By reducing the collection frequency of biscuit food data, the burden on the data transmission line is reduced, and the probability of data packet loss due to excessive transmission pressure is reduced. This allows the transmission unit to have more time to process and transmit each sampled data, thereby improving the accuracy of biscuit food traceability.

[0032] Specifically, the accuracy of the biscuit food traceability is determined, including: Compare the correct number of times of the traceability query result with the preset first ratio; If the correct number of times of the traceability query results accounts for more than the preset first ratio, it is determined that the accuracy of the biscuit food traceability does not meet the requirements.

[0033] Specifically, determine the traceability effectiveness of the cookie optimization data, including: The correct times ratio of the traceability query result is compared with the preset first ratio and the preset second ratio respectively: If the correct number of times of the traceability query results accounts for more than the preset first ratio and is less than or equal to the preset second ratio, it is preliminarily determined that the traceability performance of the biscuit optimization data does not meet the requirements, and whether the traceability performance of the biscuit optimization data meets the requirements is determined based on the average delay time of biscuit food data processing.

[0034] It can be understood that the three intervals corresponding to the preset first proportion and the preset second proportion correspond to three situations respectively: The first interval is when the correct number of traceability query results is less than or equal to the preset first ratio, corresponding to the situation where the accuracy of biscuit food traceability meets the requirements; The second interval is when the correct number of traceability query results is greater than the preset first ratio and less than or equal to the preset second ratio. This corresponds to the situation where a large amount of data is generated during the biscuit production process. With the expansion of production scale and the improvement of automation, the amount of data will increase rapidly, resulting in untimely data processing. The third interval is when the correct number of traceability query results accounts for a greater proportion than the preset second proportion. The capacity of the power supply system may not be able to meet the demand during the peak period of grid load, resulting in voltage fluctuations, which in turn leads to inaccurate data monitored by the sensor, resulting in inaccurate traceability results.

[0035] In practice, the preset first ratio is generally selected in the range of [0.91, 0.93], and the preset second ratio is generally selected in the range of [0.94, 0.96].

[0036] Preferably, the preferred embodiment of the preset first ratio is 0.92, and the preferred embodiment of the preset second ratio is 0.95.

[0037] In implementation, the method of the present invention determines the accuracy of biscuit food traceability by setting a preset first ratio and a preset second ratio, thereby reducing the impact of the decreased stability of biscuit food traceability due to inaccurate determination of the accuracy of biscuit food traceability, and further improving the accuracy of biscuit food traceability.

[0038] Specifically, the storage redundancy of biscuit food data is adjusted, including: Comparing the correct number ratio of the tracing query result with the preset second ratio; If the correct number of times of the traceability query result accounts for more than a preset second ratio, the storage redundancy of the biscuit food data is increased.

[0039] Specifically, the increase in the storage redundancy of the biscuit food data is determined by the difference between the correct number ratio of the traceability query result and a preset second ratio.

[0040] Specifically, when the difference between the correct number of times of the traceability query results and the preset second ratio is within 0.02, the storage redundancy of the biscuit food data is increased to 1 times the original; when the difference between the correct number of times of the traceability query results and the preset second ratio exceeds 0.02, the storage redundancy of the biscuit food data increases by 1 for every 0.01 that exceeds it. For example, the difference between the correct number of times of the traceability query results and the preset second ratio is 0.04, the current storage redundancy of the biscuit food data is 2, and the increased storage redundancy of the biscuit food data is 2×1+1×2=4.

[0041] In implementation, the method of the present invention adjusts the storage redundancy of biscuit food data by setting a preset first ratio and a preset second ratio. Since the capacity of the power supply system may not be able to meet the demand during the peak period of grid load, the voltage fluctuates, which in turn causes inaccurate data monitored by the sensor, resulting in inaccurate traceability results. By increasing the storage redundancy of biscuit food data, more data can be recorded, and more data can be available for analysis during processing, which can better identify and correct abnormal data caused by voltage fluctuations, further improving the accuracy of biscuit food traceability.

[0042] Specifically, the compression rate of biscuit food data is adjusted, including: Compare the average delay time of the biscuit food data processing with the preset first delay time and the preset second delay time respectively; If the average delay time of the biscuit food data processing is greater than the preset first delay time, it is determined that the traceability performance of the biscuit optimization data does not meet the requirements; If the average delay time of the biscuit food data processing is greater than the preset first delay time and less than or equal to the preset second delay time, increasing the compression rate of the biscuit food data; If the average delay time of the biscuit food data processing is greater than the preset second delay time, it is preliminarily determined that the validity of the traceability query does not meet the requirements, and whether the validity of the traceability query meets the requirements is determined based on the packet loss rate of the biscuit food data.

[0043] It can be understood that the three intervals corresponding to the preset first delay duration and the preset second delay duration correspond to three situations respectively: The first interval is when the average delay time of biscuit food data processing is less than or equal to the preset first delay time, corresponding to the situation where the traceability performance of the biscuit optimization data meets the requirements; The second interval is when the average delay time of biscuit food data processing is greater than the preset first delay time and less than or equal to the preset second delay time. A large amount of data will be generated during the biscuit production process. With the expansion of production scale and the improvement of automation, the amount of data will increase rapidly, resulting in untimely data processing. The third interval is when the average delay time for biscuit food data processing is greater than the preset second delay time. This corresponds to the presence of large-scale baking equipment in the biscuit production workshop. During operation, electromagnetic radiation will be generated, interfering with nearby data transmission lines. This may cause some data packets to be lost during transmission, leading to errors in data integration, and thus causing erroneous or confusing information during traceability queries.

[0044] In practice, the preset first delay time length is generally selected in the range of [530ms, 570ms], and the preset second delay time length is generally selected in the range of [580ms, 610ms].

[0045] Preferably, the preferred embodiment of the preset first delay time length is 550ms, and the preferred embodiment of the preset second delay time length is 600ms.

[0046] In implementation, the method of the present invention determines the traceability efficiency of biscuit optimization data by setting a preset first delay time and a preset second delay time, thereby reducing the impact of the reduced accuracy of biscuit food traceability due to inaccurate determination of the traceability efficiency of biscuit optimization data, and further improving the accuracy of biscuit food traceability.

[0047] Specifically, the increase range of the compression rate of the biscuit food data is determined by the difference between the average delay time of the biscuit food data processing and the preset first delay time.

[0048] Specifically, when the difference between the average delay time of biscuit food data processing and the preset first delay time is within 30ms, the compression rate of the biscuit food data increases to 1.1 times the original; when the difference between the average delay time of biscuit food data processing and the preset first delay time exceeds 30ms, the compression rate of the biscuit food data increases by 10% for every 50ms exceeding. For example, the difference between the average delay time of biscuit food data processing and the preset first delay time is 130ms, the current compression rate of the biscuit food data is 40%, and the increased compression rate of the biscuit food data is 40%×1.1+10×2=64%.

[0049] In implementation, the method of the present invention adjusts the compression rate of biscuit food data by setting a preset first delay time and a preset second delay time. Since a large amount of data is generated during the biscuit production process, the amount of data will increase rapidly with the expansion of production scale and the improvement of automation, resulting in untimely data processing. By increasing the compression rate of biscuit food data, limited storage resources can be used more effectively, while reducing the amount of data transmission, thereby speeding up the transmission speed and processing speed, and further improving the accuracy of biscuit food traceability.

[0050] Specifically, the collection frequency of biscuit food data is adjusted, including: Compare the packet loss rate of cookie food data with the preset packet loss rate: If the packet loss rate of the biscuit food data is greater than the preset packet loss rate, it is determined that the validity of the traceability query does not meet the requirements, and the collection frequency of the biscuit food data is reduced.

[0051] It is understandable that the two intervals corresponding to the preset packet loss rate correspond to two situations: The first interval is when the packet loss rate of biscuit food data is less than or equal to the preset packet loss rate, and the validity of the corresponding traceability query meets the requirements; The second interval is that the packet loss rate of biscuit food data is greater than the preset packet loss rate. This corresponds to the presence of large-scale baking equipment in the biscuit production workshop. During operation, electromagnetic radiation will be generated, interfering with nearby data transmission lines. This may cause some data packets to be lost during transmission, resulting in errors in data integration, which in turn may lead to erroneous or confusing information during traceability queries.

[0052] In practice, the preset packet loss rate is generally selected in the range of [2%, 4%].

[0053] Preferably, the preferred embodiment of the preset packet loss rate is 3%.

[0054] In implementation, the method of the present invention determines the validity of the traceability query by setting a preset packet loss rate, thereby reducing the impact of the reduced accuracy of biscuit food traceability due to inaccurate determination of the validity of the traceability query, and further improving the accuracy of biscuit food traceability.

[0055] Specifically, the reduction range of the collection frequency of the biscuit food data is determined by the difference between the packet loss rate of the biscuit food data and the preset packet loss rate.

[0056] Specifically, when the difference between the packet loss rate of biscuit food data and the preset packet loss rate is within 0.3%, the collection frequency of biscuit food data is reduced to 0.9 times of the original; when the difference between the packet loss rate of biscuit food data and the preset packet loss rate exceeds 0.3%, the collection frequency of biscuit food data is reduced by 2 times / minute for every 0.2% exceeding it. For example, when the difference between the packet loss rate of biscuit food data and the preset packet loss rate is 0.7%, when the collection frequency of biscuit food data is 8 times / minute, the reduced collection frequency of biscuit food data is 8×0.9-2×2≈4 times / minute.

[0057] Specifically, when the reduced collection frequency of the biscuit food data is a decimal, the reduced collection frequency of the biscuit food data is automatically rounded up to an integer.

[0058] In implementation, the method of the present invention adjusts the collection frequency of biscuit food data by setting a preset packet loss rate. Due to the presence of large-scale baking equipment in the biscuit production workshop, electromagnetic radiation is generated during operation, which interferes with nearby data transmission lines. This may cause part of the data packets to be lost during the transmission process, resulting in errors when integrating the data, and thus causing erroneous or confusing information in traceability queries. By reducing the collection frequency of biscuit food data, the burden on the data transmission line is reduced, and the probability of data packet loss due to excessive transmission pressure is reduced, allowing the transmission unit to have more time to process and transmit each sampled data, further improving the accuracy of biscuit food traceability.

[0059] The present invention also provides a biscuit food traceability system, comprising: A data collection module is used to collect biscuit food data; a data processing module connected to the data acquisition module and used to process the biscuit food data to output biscuit optimization data, comprising a preprocessing unit for preprocessing the biscuit food data, a compression unit connected to the preprocessing unit for compressing the preprocessed biscuit food data, a data analysis unit connected to the compression unit for analyzing the compressed biscuit food data to output the biscuit optimization data, and a data transmission unit connected to the data analysis unit for transmitting the biscuit optimization data to a traceability query port; A traceability module, which is connected to the data processing module and is used to perform a traceability query on the cookie optimization data to output a traceability query result; A storage module, which is connected to the data acquisition module, the data processing module and the traceability module respectively, and is used to store the biscuit food data, the biscuit optimization data and the traceability query result respectively; A control module is respectively connected to the data acquisition module, the data processing module, the traceability module and the storage module, and is used to determine the storage redundancy of the biscuit food data according to the proportion of the correct number of traceability query results, or to determine the compression rate of the biscuit food data according to the average delay time of the biscuit food data processing, and to determine the collection frequency of the biscuit food data according to the average delay time of the biscuit food data processing and the packet loss rate of the biscuit food data.

[0060] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A biscuit food traceability method, characterized in that: include: Collect biscuit food data, clean, integrate, compress and perform data analysis operations on the biscuit food data in sequence to output biscuit optimization data, and transmit the biscuit optimization data to a traceability query port; The biscuit food data and the biscuit optimization data are stored, and the biscuit optimization data is traced back and queried using the traceability query port to output a traceability query result; Obtain the correct number of traceability query results and the total number of traceability queries in several traceability cycles respectively; Determine the accuracy of biscuit food traceability based on the percentage of correct traceability query results; If the accuracy of the biscuit food traceability does not meet the requirements, the storage redundancy of the biscuit food data is adjusted, or the traceability performance of the biscuit optimization data is determined based on the average delay time of the biscuit food data processing; If it is determined that the traceability performance does not meet the requirements, the compression rate of the biscuit food data is adjusted or the collection frequency of the biscuit food data is adjusted based on the packet loss rate of the biscuit food data.

2. The biscuit food source tracing method according to claim 1, characterized in that: Determine the accuracy of the biscuit food traceability, including: Compare the correct number of times of the traceability query result with the preset first ratio; If the correct number of times of the traceability query results accounts for more than the preset first ratio, it is determined that the accuracy of the biscuit food traceability does not meet the requirements.

3. The biscuit food source tracing method according to claim 2, characterized in that: Determine the retrospective effectiveness of the cookie optimization data, including: The correct times ratio of the traceability query result is compared with the preset first ratio and the preset second ratio respectively: If the correct number of times of the traceability query results accounts for more than the preset first ratio and is less than or equal to the preset second ratio, it is preliminarily determined that the traceability performance of the biscuit optimization data does not meet the requirements, and whether the traceability performance of the biscuit optimization data meets the requirements is determined based on the average delay time of biscuit food data processing.

4. The biscuit food source tracing method according to claim 3, characterized in that: Adjust the storage redundancy of biscuit food data, including: Comparing the correct number ratio of the tracing query result with the preset second ratio; If the correct number of times of the traceability query result accounts for more than a preset second ratio, the storage redundancy of the biscuit food data is increased.

5. The biscuit food source tracing method according to claim 4, characterized in that: The increase in storage redundancy of the biscuit food data is determined by the difference between the correct number ratio of the traceability query result and a preset second ratio.

6. The biscuit food source tracing method according to claim 3, characterized in that: Adjust the compression rate of biscuit food data, including: Compare the average delay time of the biscuit food data processing with the preset first delay time and the preset second delay time respectively; If the average delay time of the biscuit food data processing is greater than the preset first delay time, it is determined that the traceability performance of the biscuit optimization data does not meet the requirements; If the average delay time of the biscuit food data processing is greater than the preset first delay time and less than or equal to the preset second delay time, increasing the compression rate of the biscuit food data; If the average delay time of the biscuit food data processing is greater than the preset second delay time, it is preliminarily determined that the validity of the traceability query does not meet the requirements, and whether the validity of the traceability query meets the requirements is determined based on the packet loss rate of the biscuit food data.

7. The biscuit food source tracing method according to claim 6, characterized in that: The increase range of the compression rate of the biscuit food data is determined by the difference between the average delay time of the biscuit food data processing and the preset first delay time.

8. The biscuit food source tracing method according to claim 7, characterized in that: Adjust the frequency of collecting biscuit food data, including: Compare the packet loss rate of cookie food data with the preset packet loss rate: If the packet loss rate of the biscuit food data is greater than the preset packet loss rate, it is determined that the validity of the traceability query does not meet the requirements, and the collection frequency of the biscuit food data is reduced.

9. The biscuit food source tracing method according to claim 8, characterized in that: The reduction range of the collection frequency of the biscuit food data is determined by the difference between the packet loss rate of the biscuit food data and the preset packet loss rate.

10. A biscuit food traceability system using the biscuit food traceability method according to any one of claims 1 to 9, characterized in that: include: A data collection module is used to collect biscuit food data; a data processing module connected to the data acquisition module and used to process the biscuit food data to output biscuit optimization data, comprising a preprocessing unit for preprocessing the biscuit food data, a compression unit connected to the preprocessing unit for compressing the preprocessed biscuit food data, a data analysis unit connected to the compression unit for analyzing the compressed biscuit food data to output the biscuit optimization data, and a data transmission unit connected to the data analysis unit for transmitting the biscuit optimization data to a traceability query port; A traceability module, which is connected to the data processing module and is used to perform a traceability query on the cookie optimization data to output a traceability query result; A storage module, which is connected to the data acquisition module, the data processing module and the traceability module respectively, and is used to store the biscuit food data, the biscuit optimization data and the traceability query result respectively; A control module is respectively connected to the data acquisition module, the data processing module, the traceability module and the storage module, and is used to determine the storage redundancy of the biscuit food data according to the proportion of the correct number of traceability query results, or to determine the compression rate of the biscuit food data according to the average delay time of the biscuit food data processing, and to determine the collection frequency of the biscuit food data according to the average delay time of the biscuit food data processing and the packet loss rate of the biscuit food data.

Citation Information

Patent Citations

  • Food traceability information uplink method and food traceability system

    CN115829597A

  • Method and apparatus for transmission of multimedia data

    CN103916367A

  • Beef food safety traceability management system

    CN118521326A

Cited By

  • Power transmission line tower footing red soil analysis method based on big data

    CN120408095A

  • A power transmission line tower foundation red soil analysis method based on big data

    CN120408095B