An information tracing system for food regulation
By setting up data encryption and decryption plugins in the information acquisition module, and identifying and processing missing and distribution parameters of food regulatory information in the information verification module, the problems of low accuracy and traceability efficiency of food regulatory information are solved, and timely data updates and reliability are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING SIECAN TECH CO LTD
- Filing Date
- 2024-10-15
- Publication Date
- 2026-04-17
AI Technical Summary
Existing technologies do not consider verifying the collected information, which affects the accuracy and traceability efficiency of food regulatory information.
In the information acquisition module, data encryption and decryption plugins are set up. The information verification module verifies the archive information of a single batch of food, identifies blank and garbled cells, calculates the missing parameters and missing distribution parameters of the query information, processes the archived information based on the verification results, and adjusts the update frequency of the intermediate end and the available memory space of the data temporary storage area.
It has improved the traceability efficiency and accuracy of food regulatory information, prevented data loss, and ensured the timely updating and reliability of data.
Smart Images

Figure CN119477335B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of food supervision technology, and in particular to an information traceability system for food supervision. Background Technology
[0002] Industrial waste pollution, the overuse of additives in food processing, inadequate market access regulations, and lax food safety management by some enterprises have all contributed to the frequent occurrence of food safety problems. To address these issues, countries worldwide have established various safeguard systems, including legal and regulatory frameworks for food quality and safety, testing and standards systems, and certification systems.
[0003] Chinese Patent Publication No. CN107247977B discloses a food safety traceability system, relating to the field of food safety management technology. The system includes an enterprise information QR code module, which generates a QR code containing relevant enterprise information; an on-site monitoring module for monitoring the food processing site; and a food safety data traceability module for providing enterprise information data, employee health certificate data, purchase and sales records, and food sample retention data. However, the above technical solution suffers from the following problems: it fails to consider verifying the collected information, affecting the accuracy of food regulatory information and consequently impacting the traceability efficiency of food regulatory information. Summary of the Invention
[0004] Therefore, the present invention provides an information traceability system for food supervision, which overcomes the problem in the prior art that the verification of collected information is not considered, which affects the accuracy of food supervision information and thus the traceability efficiency of food supervision information.
[0005] To achieve the above objectives, the present invention provides an information traceability system for food supervision, comprising:
[0006] The information collection module includes several intermediate terminals, each of which is used to obtain the file information of each distributor in the food transfer process. Each intermediate terminal includes a data storage area and a data encryption plugin.
[0007] The information statistics module, which is connected to the information collection module, is used to receive and summarize the archive information of each intermediate end to obtain the archive information for each batch of food. The archive information of a single batch of food includes the archive information of each transit distributor. The information statistics module also includes a data decryption plugin for decrypting the received encrypted archive information.
[0008] The information verification module, which is connected to the information statistics module, is used to determine the missing parameters of query information based on the blank cells of each archive information of a single batch of food, and to verify whether the archive information of a single batch of food is qualified based on the missing parameters and the missing distribution parameters of query information.
[0009] The data control module, which is connected to the information acquisition module, the information statistics module, and the information verification module respectively, is used to process archived information based on the verification results, including:
[0010] Based on the archive information, determine the transit matching degree, and based on the transit matching degree, determine whether to adjust the update information request frequency of each intermediate end; or, divide the accuracy evaluation level of each archive information, and based on the comparison results of the number of each accuracy evaluation level, determine whether to adjust the available memory space of each data temporary storage area to the corresponding value or uniformly update the key information of each intermediate end data encryption plugin.
[0011] Furthermore, the information verification module is used to determine the missing query information parameters for each batch of food records, including:
[0012] Used to identify blank and garbled cells in the records of a single batch of food;
[0013] Used to identify blank cells and cells containing garbled characters as blank cells;
[0014] This is used to calculate the proportion of blank cells to the total number of information cells in a single batch of food, thus obtaining the missing information parameter.
[0015] The information verification module is used to verify whether the archived information of a single batch of food is qualified based on the query information missing parameters of each archive information of a single batch of food, including:
[0016] If the number of missing parameters in the query information is less than or equal to the first preset number of missing parameters, then the archived information of a single batch of food is deemed to be qualified.
[0017] If the number of missing parameters in the query information is less than or equal to the second preset number of missing parameters and greater than the first preset number of missing parameters, then it is determined whether the archived information of a single batch of food is qualified based on the missing distribution parameters.
[0018] If the number of missing parameters in the query information is greater than the second preset number of missing parameters, the archived information of a single batch of food is determined to be unqualified.
[0019] Furthermore, the information verification module is used to determine the missing distribution parameters, including:
[0020] This is used to obtain the spacing between each blank cell and to calculate the variance of each spacing to obtain the missing distribution parameter;
[0021] The information verification module is used to verify whether the archived information of a single batch of food is qualified based on the missing distribution parameter, including:
[0022] If the number of missing distribution parameters is greater than the preset number of missing distribution parameters, the pre-processing time of the information verification module will be adjusted to the corresponding value based on the number of missing parameters in the query information.
[0023] If the missing distribution parameter is less than or equal to the preset missing distribution parameter, the archived information of a single batch of food is deemed unqualified.
[0024] Furthermore, the information verification module is used to adjust the pre-processing time of the information verification module to a corresponding value based on the missing query information parameter, wherein:
[0025] The increase in the pre-processing time of the information verification module, which is determined based on the missing parameters of the query information, is positively correlated with the number of missing parameters of the query information.
[0026] Furthermore, the data control module is used to determine the processing method for archived information based on the verification results, including:
[0027] If the archived information of a single batch of food is not up to standard, the accuracy evaluation level of each archived information will be divided, and the available memory space of each data temporary storage area will be adjusted to the corresponding value or the key information of each intermediate data encryption plugin will be updated uniformly based on the comparison results of the number of each accuracy evaluation level.
[0028] If the archived information of a single batch of food is qualified, the transit matching degree is determined based on the archived information, and the frequency of update information requests from each intermediate end is adjusted based on the transit matching degree.
[0029] Furthermore, the data control module is used to determine the transit matching degree based on the archive information, including:
[0030] This is used to sequentially obtain the names of distributors, upstream distributors, and downstream distributors from each file information for a single batch of food.
[0031] This is used to check whether the data of the obtained archive information matches, and to mark cells with abnormal matches as mismatched cells;
[0032] The transit matching degree is obtained by taking the proportion of the number of mismatched cells out of the total number of cells corresponding to the distributor's name in the information of each batch of food.
[0033] Furthermore, the data control module is used to determine whether to adjust the update information request frequency of each intermediate end based on the relay matching degree, including:
[0034] If the transit matching degree is greater than or equal to the preset transit matching degree, then it is determined to store the current archive information;
[0035] If the relay matching degree is less than the preset relay matching degree, the update information request frequency of each intermediate end will be adjusted to the corresponding value based on the relay matching degree.
[0036] Furthermore, the data control module is used to adjust the update information request frequency of each intermediate end to a corresponding value based on the relay matching degree, wherein:
[0037] The increase in the frequency of update information requests from each intermediate end, determined by the relay matching degree, is negatively correlated with the relay matching degree.
[0038] Furthermore, the data control module is used to sequentially classify the accuracy evaluation levels of each archive information, including:
[0039] For a single file of information, the ratio of the number of garbled cells to the number of blank cells is calculated to obtain an evaluation parameter;
[0040] If the evaluation parameter is less than or equal to the preset evaluation parameter, then the individual file information will be classified into the first-level accurate evaluation level.
[0041] If the evaluation parameter is greater than the preset evaluation parameter, then the individual file information will be divided into a second-level accurate evaluation level.
[0042] The data control module is used to determine, based on the comparison results of the number of each accuracy evaluation level, whether to adjust the available memory space of each data temporary storage area to the corresponding value or to uniformly update the key information of each intermediate data encryption plugin, including:
[0043] If the number of Level 1 accurate evaluation grades is greater than or equal to the number of Level 2 accurate evaluation grades, then the available memory space of each data temporary storage area will be adjusted to the corresponding value based on the ratio of the number of Level 1 accurate evaluation grades to the number of Level 2 accurate evaluation grades.
[0044] If the number of Level 1 accurate evaluation grades is less than the number of Level 2 accurate evaluation grades, then the key information of each intermediate data encryption plugin will be updated uniformly.
[0045] Furthermore, the data control module is used to adjust the available memory space of each data temporary storage area to a corresponding value based on the ratio of the number of levels, wherein:
[0046] The increase in available memory space, determined by the ratio of the number of levels, is positively correlated with the ratio of the number of levels.
[0047] Compared with the prior art, the beneficial effects of the present invention are that by setting up intermediate terminals at each distributor to collect archive information of the food circulation process, effective supervision of food circulation can be achieved to ensure food safety. Each batch of food is classified and statistically analyzed, and the statistical archive information is regularly verified to improve the reliability of the data. The archive information is processed according to the verification results, and when the archive information is deemed qualified, it is further determined whether the archive information is matched. When the archive information is deemed unqualified, the operating parameters of each intermediate terminal are adjusted, thereby improving the traceability efficiency of food supervision information.
[0048] Furthermore, the archived information for a single batch of food is verified. Blank and garbled cells in the database are identified to determine the missing parameters of the query information. When the missing parameters of the query information are less than or equal to the second preset missing parameter and greater than the first preset missing parameter, a small number of data anomalies exist. The specific situation of the current dataset is determined by combining the missing distribution parameter, which represents the distribution of abnormal cells. When the missing distribution parameter is greater than the preset missing distribution parameter, the abnormal cells are scattered. In this case, some data may fail to be cached completely due to network anomalies, leading to verification errors. In this case, the pre-processing time of the information verification module is adjusted to provide sufficient buffering time for the data. After the pre-processing time is adjusted, the qualification of the current dataset is re-determined based on the missing distribution parameter. This ensures the efficiency of data verification while improving the accuracy of data verification, thereby improving the traceability efficiency of food supervision information.
[0049] Furthermore, when determining that the archived information of a single batch of food is qualified, the transit matching degree is determined to determine whether the name recorded by a single distributor is the same as the name of the upstream distributor recorded by the corresponding downstream distributor. The transit matching degree indicates whether the upstream and downstream distributor names in the records of each distributor are consistent, and whether there are any cases where distributors have not entered data or the data has not been updated in a timely manner. When the transit matching degree is less than the preset transit matching degree, there is an abnormality in the distributor data update. In this case, the update information request frequency of each intermediate end is adjusted to the corresponding value to ensure timely data updates, improve data reliability, and thus improve the traceability efficiency of food supervision information.
[0050] Furthermore, when the number of missing parameters in the query information exceeds the second preset missing parameter, a large amount of data is missing, and the archived information of a single batch of food is deemed unqualified. When the archived information of a single batch of food is determined to be unqualified, the archived information is processed, and the accuracy evaluation level of each file in the archived information is divided. The accuracy evaluation level represents the number of garbled cells and blank cells. When the number of first-level accuracy evaluation levels is greater than or equal to the number of second-level accuracy evaluation levels, there are a large number of blank cells in the archived information. In this case, data loss may occur due to transmission abnormalities during user input. At this time, the available memory space of each data temporary storage area is adjusted to ensure that the data is temporarily stored locally when transmission abnormalities occur, and then synchronized to the database of the information statistics module when the network is restored or conditions permit. This prevents data loss, improves the data transmission efficiency of distributors, and thus improves the traceability efficiency of food supervision information. Attached Figure Description
[0051] Figure 1 This is a block diagram of an information traceability system for food supervision according to an embodiment of the present invention;
[0052] Figure 2 This is a logic diagram of the information verification module in this embodiment of the invention, which verifies whether the archived information of a single batch of food is qualified based on the query information missing parameter.
[0053] Figure 3 This is a logic diagram of the information verification module in this embodiment of the invention, which verifies whether the archived information of a single batch of food is qualified based on the missing distribution parameter.
[0054] Figure 4 This is a logic diagram showing how the data control module of this invention determines the processing method for archived information based on the verification results. Detailed Implementation
[0055] To make the objectives and advantages of the present invention clearer, the present invention will be further described below with reference to embodiments; it should be understood that the specific embodiments described herein are merely for explaining the present invention and are not intended to limit the present invention.
[0056] Preferred embodiments of the present invention will now be described with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.
[0057] It should be noted that in the description of this invention, the terms "upper", "lower", "left", "right", "inner", "outer", etc., which indicate directions or positional relationships, are based on the directions or positional relationships shown in the accompanying drawings. This is only for the convenience of description and is not intended to indicate or imply that the device or element must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation of this invention.
[0058] Furthermore, it should be noted that, in the description of this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0059] Please see Figure 1 , Figure 2 , Figure 3 as well as Figure 4 The diagrams shown are, respectively, a block diagram of a food safety information traceability system according to an embodiment of the present invention; a logic diagram of an information verification module verifying the validity of archived information for a single batch of food based on missing query parameters; a logic diagram of an information verification module verifying the validity of archived information for a single batch of food based on missing distribution parameters; and a logic diagram of a data control module determining the processing method for archived information based on verification results. An embodiment of the present invention provides an information traceability system for food safety, comprising:
[0060] The information collection module includes several intermediate terminals, each of which is used to obtain the file information of each distributor in the food transfer process. Each intermediate terminal includes a data storage area and a data encryption plugin.
[0061] The information statistics module, which is connected to the information collection module, is used to receive and summarize the archive information of each intermediate end to obtain the archive information for each batch of food. The archive information of a single batch of food includes the archive information of each transit distributor. The information statistics module also includes a data decryption plugin for decrypting the received encrypted archive information.
[0062] The information verification module, which is connected to the information statistics module, is used to determine the missing parameters of query information based on the blank cells of each archive information of a single batch of food, and to verify whether the archive information of a single batch of food is qualified based on the missing parameters and the missing distribution parameters of query information.
[0063] The data control module, which is connected to the information acquisition module, the information statistics module, and the information verification module respectively, is used to process archived information based on the verification results, including:
[0064] Based on the archive information, determine the transit matching degree, and based on the transit matching degree, determine whether to adjust the update information request frequency of each intermediate end; or, divide the accuracy evaluation level of each archive information, and based on the comparison results of the number of each accuracy evaluation level, determine whether to adjust the available memory space of each data temporary storage area to the corresponding value or uniformly update the key information of each intermediate end data encryption plugin.
[0065] Specifically, the pre-processing time is the intermediate delay between the information verification module starting to acquire data and the start of the verification program running.
[0066] Specifically, the file information includes the distributor's name, address, identification information, upstream distributor name, and downstream distributor name.
[0067] Specifically, there are no restrictions on the specific structure of the intermediate terminal. It itself or its units can be composed of logic components or combinations of logic components. Logic components include field-programmable processors, computers or microprocessors in computers.
[0068] Specifically, the data encryption plugin is an extension used to encrypt data, which will not be elaborated further.
[0069] Specifically, by setting up intermediate points at each distributor to collect archival information on the food distribution process, effective supervision of food distribution can be achieved to ensure food safety. Each batch of food is classified and statistically analyzed, and the statistical archival information is regularly verified to improve data reliability. Based on the verification results, the archived information is processed to further determine whether the archival information is qualified when it is qualified, and to adjust the operating parameters of each intermediate point when the archival information is unqualified, thereby improving the traceability efficiency of food supervision information.
[0070] Specifically, the information verification module is used to determine the missing query information parameters for each batch of food records, including:
[0071] Used to identify blank and garbled cells in the records of a single batch of food;
[0072] Used to identify blank cells and cells containing garbled characters as blank cells;
[0073] This is used to calculate the proportion of blank cells to the total number of information cells in a single batch of food, thus obtaining the missing information parameter.
[0074] Specifically, the method by which the information statistics module receives and summarizes the archive information from each intermediate terminal is not limited. The information statistics module can be a database, which will not be elaborated here.
[0075] Specifically, there are no restrictions on the specific methods for identifying blank and garbled cells in the information of each batch of food. The corresponding function can be used through the database query language to determine whether the cell is blank; garbled characters can be identified through a predefined character encoding detection function. This is existing technology and will not be elaborated further.
[0076] Specifically, the information verification module is used to verify whether the archived information of a single batch of food is qualified based on the query information missing parameters of each archive information of a single batch of food, including:
[0077] If the number of missing parameters in the query information is less than or equal to the first preset number of missing parameters, then the archived information of a single batch of food is deemed to be qualified.
[0078] If the number of missing parameters in the query information is less than or equal to the second preset number of missing parameters and greater than the first preset number of missing parameters, then it is determined whether the archived information of a single batch of food is qualified based on the missing distribution parameters.
[0079] If the number of missing parameters in the query information is greater than the second preset number of missing parameters, the archived information of a single batch of food is determined to be unqualified.
[0080] Specifically, the first preset missing parameter W1 is selected in the interval [0.71, 0.78], and the second preset missing parameter W2 is selected in the interval [0.94, 0.97].
[0081] Specifically, the information verification module is used to determine the missing distribution parameters, including:
[0082] This is used to obtain the spacing between each blank cell and to calculate the variance of each spacing to obtain the missing distribution parameter;
[0083] The information verification module is used to verify whether the archived information of a single batch of food is qualified based on the missing distribution parameter, including:
[0084] If the number of missing distribution parameters is greater than the preset number of missing distribution parameters, the pre-processing time of the information verification module will be adjusted to the corresponding value based on the number of missing parameters in the query information.
[0085] If the missing distribution parameter is less than or equal to the preset missing distribution parameter, the archived information of a single batch of food is deemed unqualified.
[0086] Specifically, the system verifies archived information for a single batch of food, identifies blank and garbled cells in the database to determine missing parameters in the query information. When the missing parameters are less than or equal to a second preset missing parameter but greater than a first preset missing parameter, a small number of data anomalies exist. The system then uses the missing distribution parameter to determine the specific situation of the current dataset. The missing distribution parameter characterizes the distribution of abnormal cells. When the missing distribution parameter is greater than the preset missing distribution parameter, the abnormal cells are scattered. In this case, some data may fail to be cached completely due to network anomalies, leading to verification errors. In this situation, the pre-processing time of the information verification module is adjusted to provide sufficient buffering time for the data. After adjusting the pre-processing time, the system re-determines the compliance of the current dataset based on the missing distribution parameter. This ensures data verification efficiency while improving data verification accuracy, thereby improving the traceability efficiency of food regulatory information.
[0087] Specifically, the preset missing distribution parameters are selected within the range [0.17C0, 0.42C0], where C0 is the average value of each missing distribution parameter corresponding to the historical batch of food archive information.
[0088] Specifically, there is no limit to the number of batches of food archive information selected from historical data. It can be understood that in order to classify the qualified status of archive information, the number of selected items should not be less than 200, which will not be elaborated further.
[0089] Specifically, there is no limitation on the specific method for obtaining the spacing between each blank cell. For each pair of blank cells, the distance between them can be calculated based on their coordinates. This can be obtained by using the Euclidean distance formula, which is existing technology and will not be elaborated further.
[0090] Specifically, the information verification module is used to adjust the pre-processing time of the information verification module to a corresponding value based on the missing query information parameter, wherein:
[0091] The increase in the pre-processing time of the information verification module, which is determined based on the missing parameters of the query information, is positively correlated with the number of missing parameters of the query information.
[0092] In this embodiment, optionally:
[0093] If the number of missing parameters in the query information is less than or equal to the first preset missing comparison threshold, then the pre-set time is determined as the first pre-set time, which is 1.12 times the initial pre-set time.
[0094] If the number of missing parameters in the query information is less than or equal to the second preset missing comparison threshold and greater than the first preset missing comparison threshold, then the pre-set time is determined as the second pre-set time, which is 1.22 times the initial pre-set time.
[0095] If the number of missing parameters in the query information is greater than the second preset missing comparison threshold, the pre-set time will be determined as the third pre-set time, which is 1.32 times the initial pre-set time.
[0096] The first preset missing comparison threshold is set to 1.13W1, and the second preset missing comparison threshold is set to 1.18W1.
[0097] Specifically, the information verification module, after adjusting the pre-set time, re-determines the missing query information parameter of the archived information, and verifies whether the archived information of a single batch of food is qualified based on the missing query information parameter. If the missing query information parameter is less than or equal to the first preset missing parameter, the archived information of a single batch of food is determined to be qualified; if the missing query information parameter is greater than the first preset missing parameter, the archived information of a single batch of food is determined to be unqualified.
[0098] Specifically, the data control module is used to determine the processing method for archived information based on the verification results, including:
[0099] If the archived information of a single batch of food is not up to standard, the accuracy evaluation level of each archived information will be divided, and the available memory space of each data temporary storage area will be adjusted to the corresponding value or the key information of each intermediate data encryption plugin will be updated uniformly based on the comparison results of the number of each accuracy evaluation level.
[0100] If the archived information of a single batch of food is qualified, the transit matching degree is determined based on the archived information, and the frequency of update information requests from each intermediate end is adjusted based on the transit matching degree.
[0101] Specifically, when determining that the archived information of a single batch of food is qualified, the transit matching degree is determined. This determines whether the name recorded by a single distributor is the same as the name of the upstream distributor recorded by the corresponding downstream distributor. The transit matching degree indicates whether the upstream and downstream distributor names in the records of each distributor are consistent, and whether there are any cases where distributors have not entered data or the data has not been updated in a timely manner. When the transit matching degree is less than the preset transit matching degree, there is an abnormality in the distributor data update. In this case, the update information request frequency of each intermediate end is adjusted to the corresponding value to ensure timely data updates, improve data reliability, and thus improve the traceability efficiency of food supervision information.
[0102] Specifically, the data control module is used to determine the transit matching degree based on the archive information, including:
[0103] This is used to sequentially obtain the names of distributors, upstream distributors, and downstream distributors from each file information for a single batch of food.
[0104] This is used to check whether the data of the obtained archive information matches, and to mark cells with abnormal matches as mismatched cells;
[0105] The transit matching degree is obtained by taking the proportion of the number of mismatched cells out of the total number of cells corresponding to the distributor's name in the information of each batch of food.
[0106] Specifically, the data control module is used to determine whether to adjust the update information request frequency of each intermediate end based on the relay matching degree, including:
[0107] If the transit matching degree is greater than or equal to the preset transit matching degree, then it is determined to store the current archive information;
[0108] If the relay matching degree is less than the preset relay matching degree, the update information request frequency of each intermediate end will be adjusted to the corresponding value based on the relay matching degree.
[0109] Specifically, the preset transit matching degree D0 is set to 0.98.
[0110] Specifically, the data control module is used to adjust the update information request frequency of each intermediate end to a corresponding value based on the relay matching degree, wherein:
[0111] The increase in the frequency of update information requests from each intermediate end, determined by the relay matching degree, is negatively correlated with the relay matching degree.
[0112] In this embodiment, optionally:
[0113] If the transit matching degree is less than or equal to the first preset matching comparison value, the update information request frequency will be determined as the first update information request frequency, which is 1.32 times the initial update information request frequency.
[0114] If the transit matching degree is less than or equal to the second preset matching comparison value and greater than the first preset matching comparison value, then the update information request frequency is determined as the second update information request frequency, which is 1.23 times the initial update information request frequency.
[0115] If the transit matching degree is greater than the second preset matching comparison value, the update information request frequency will be determined as the third update information request frequency, which is 1.12 times the initial update information request frequency.
[0116] The first preset matching comparison value is 0.35, and the second preset matching comparison value is 0.77.
[0117] Specifically, the update information request frequency is the frequency at which each intermediary sends a window prompting the dealer to confirm the update file information.
[0118] Specifically, the data control module is used to sequentially classify the accuracy evaluation levels of each archive information, including:
[0119] For a single file of information, the ratio of the number of garbled cells to the number of blank cells is calculated to obtain an evaluation parameter;
[0120] If the evaluation parameter is less than or equal to the preset evaluation parameter, then the individual file information will be classified into the first-level accurate evaluation level.
[0121] If the evaluation parameter is greater than the preset evaluation parameter, then the individual file information will be divided into a second-level accurate evaluation level.
[0122] The data control module is used to determine, based on the comparison results of the number of each accuracy evaluation level, whether to adjust the available memory space of each data temporary storage area to the corresponding value or to uniformly update the key information of each intermediate data encryption plugin, including:
[0123] If the number of Level 1 accurate evaluation grades is greater than or equal to the number of Level 2 accurate evaluation grades, then the available memory space of each data temporary storage area will be adjusted to the corresponding value based on the ratio of the number of Level 1 accurate evaluation grades to the number of Level 2 accurate evaluation grades.
[0124] If the number of Level 1 accurate evaluation grades is less than the number of Level 2 accurate evaluation grades, then the key information of each intermediate data encryption plugin will be updated uniformly.
[0125] Specifically, the preset evaluation parameter is set to 1.
[0126] Specifically, the data control module is used to adjust the available memory space of each data temporary storage area to a corresponding value based on the ratio of the number of levels, wherein:
[0127] The increase in available memory space, determined by the ratio of the number of levels, is positively correlated with the ratio of the number of levels.
[0128] In this embodiment, optionally:
[0129] If the ratio of the number of grades is less than or equal to the first preset ratio of the number of grades, then the available memory space is determined as the first available memory space, which is 1.13 times the initial available memory space;
[0130] If the ratio of the number of grades is less than or equal to the second preset ratio of the number of grades and greater than the first preset ratio of the number of grades, then the available memory space is determined as the second available memory space, which is 1.25 times the initial available memory space.
[0131] If the ratio of the number of grades is greater than the second preset ratio of the number of grades, then the available memory space is determined as the third available memory space, which is 1.31 times the initial available memory space;
[0132] The ratio of the number of the first preset level is 1.5, and the ratio of the number of the second preset level is 3.6.
[0133] Specifically, when the number of missing parameters in the query information exceeds the second preset missing parameter, a large amount of data is missing, and the archived information of a single batch of food is deemed unqualified. When the archived information of a single batch of food is determined to be unqualified, the archived information is processed, and the accuracy evaluation level of each file in the archived information is divided. The accuracy evaluation level represents the number of garbled cells and blank cells. When the number of first-level accuracy evaluation levels is greater than or equal to the number of second-level accuracy evaluation levels, there are a large number of blank cells in the archived information. In this case, data loss may occur due to transmission abnormalities during user input. At this time, the available memory space of each data temporary storage area is adjusted to ensure that the data is temporarily stored locally when transmission abnormalities occur, and then synchronized to the database of the information statistics module when the network is restored or conditions permit. This prevents data loss, improves the data transmission efficiency of distributors, and thus improves the traceability efficiency of food supervision information.
[0134] The technical solution of the present invention has been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles 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 all fall within the scope of protection of the present invention.
[0135] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An information traceability system for food supervision, characterized in that, include: The information collection module includes several intermediate terminals, each of which is used to obtain the file information of each distributor in the food transfer process. Each intermediate terminal includes a data storage area and a data encryption plugin. The information statistics module, which is connected to the information collection module, is used to receive and summarize the archive information of each intermediate end to obtain the archive information for each batch of food. The archive information of a single batch of food includes the archive information of each transit distributor. The information statistics module also includes a data decryption plugin for decrypting the received encrypted archive information. The information verification module, which is connected to the information statistics module, is used to determine the missing parameters of query information based on the blank cells of each archive information of a single batch of food, and to verify whether the archive information of a single batch of food is qualified based on the missing parameters and the missing distribution parameters of query information. The data control module, which is connected to the information acquisition module, the information statistics module, and the information verification module respectively, is used to process archived information based on the verification results, including: Based on the archive information, determine the transit matching degree, and based on the transit matching degree, determine whether to adjust the update information request frequency of each intermediate end; or, divide the accuracy evaluation level of each archive information, and based on the comparison results of the number of each accuracy evaluation level, determine whether to adjust the available memory space of each data temporary storage area to the corresponding value or uniformly update the key information of each intermediate end data encryption plugin. The information verification module is used to determine the missing parameters of each record information for a single batch of food, including: Used to identify blank and garbled cells in the records of a single batch of food; Used to identify blank cells and cells containing garbled characters as blank cells; This is used to calculate the proportion of blank cells to the total number of information cells in a single batch of food, thus obtaining the missing information parameter. The information verification module is used to verify whether the archived information of a single batch of food is qualified based on the query information missing parameters of each archive information of a single batch of food, including: If the number of missing parameters in the query information is less than or equal to the first preset number of missing parameters, then the archived information of a single batch of food is deemed to be qualified. If the number of missing parameters in the query information is less than or equal to the second preset number of missing parameters and greater than the first preset number of missing parameters, then it is determined whether the archived information of a single batch of food is qualified based on the missing distribution parameters. If the number of missing parameters in the query information is greater than the second preset number of missing parameters, the archived information of a single batch of food is determined to be unqualified.
2. The information tracing system for food regulation according to claim 1, characterized in that, The information verification module is used to determine the missing distribution parameters, including: This is used to obtain the spacing between each blank cell and to calculate the variance of each spacing to obtain the missing distribution parameter; The information verification module is used to verify whether the archived information of a single batch of food is qualified based on the missing distribution parameter, including: If the number of missing distribution parameters is greater than the preset number of missing distribution parameters, the pre-processing time of the information verification module will be adjusted to the corresponding value based on the number of missing parameters in the query information. If the missing distribution parameter is less than or equal to the preset missing distribution parameter, the archived information of a single batch of food is deemed unqualified.
3. The information tracing system for food regulation according to claim 2, characterized in that, The information verification module is used to adjust the pre-processing time of the information verification module to a corresponding value based on the missing query information parameter, wherein: The increase in the pre-processing time of the information verification module, which is determined based on the missing parameters of the query information, is positively correlated with the number of missing parameters of the query information.
4. The information tracing system for food regulation according to claim 3, characterized in that, The data control module is used to determine the processing method for archived information based on the verification results, including: If the archived information of a single batch of food is not up to standard, the accuracy evaluation level of each archived information will be divided, and the available memory space of each data temporary storage area will be adjusted to the corresponding value or the key information of each intermediate data encryption plugin will be updated uniformly based on the comparison results of the number of each accuracy evaluation level. If the archived information of a single batch of food is qualified, the transit matching degree is determined based on the archived information, and the frequency of update information requests from each intermediate end is adjusted based on the transit matching degree.
5. The information tracing system for food regulation according to claim 4, characterized in that, The data control module is used to determine the transit matching degree based on the archive information, including: This is used to sequentially obtain the names of distributors, upstream distributors, and downstream distributors from each file information for a single batch of food. This is used to check whether the data of the obtained archive information matches, and to mark cells with abnormal matches as mismatched cells; The transit matching degree is obtained by taking the proportion of the number of mismatched cells out of the total number of cells corresponding to the distributor's name in the information of each batch of food.
6. The information tracing system for food regulation according to claim 5, characterized in that, The data control module is used to determine whether to adjust the update information request frequency of each intermediate end based on the relay matching degree, including: If the transit matching degree is greater than or equal to the preset transit matching degree, then it is determined to store the current archive information; If the relay matching degree is less than the preset relay matching degree, the update information request frequency of each intermediate end will be adjusted to the corresponding value based on the relay matching degree.
7. The information tracing system for food regulation according to claim 6, characterized in that, The data control module is used to adjust the update information request frequency of each intermediate end to a corresponding value based on the relay matching degree, wherein: The increase in the frequency of update information requests from each intermediate end, determined by the relay matching degree, is negatively correlated with the relay matching degree.
8. The information tracing system for food regulation according to claim 7, characterized in that, The data control module is used to sequentially classify the accuracy evaluation levels of each archive information, including: For a single file of information, the ratio of the number of garbled cells to the number of blank cells is calculated to obtain an evaluation parameter; If the evaluation parameter is less than or equal to the preset evaluation parameter, then the individual file information will be classified into the first-level accurate evaluation level. If the evaluation parameter is greater than the preset evaluation parameter, then the individual file information will be divided into a second-level accurate evaluation level. The data control module is used to determine, based on the comparison results of the number of each accuracy evaluation level, whether to adjust the available memory space of each data temporary storage area to the corresponding value or to uniformly update the key information of each intermediate data encryption plugin, including: If the number of Level 1 accurate evaluation grades is greater than or equal to the number of Level 2 accurate evaluation grades, then the available memory space of each data temporary storage area will be adjusted to the corresponding value based on the ratio of the number of Level 1 accurate evaluation grades to the number of Level 2 accurate evaluation grades. If the number of Level 1 accurate evaluation grades is less than the number of Level 2 accurate evaluation grades, then the key information of each intermediate data encryption plugin will be updated uniformly.
9. The information tracing system for food regulation according to claim 8, characterized in that, The data control module is used to adjust the available memory space of each data temporary storage area to a corresponding value based on the ratio of the number of levels, wherein: The increase in available memory space, determined by the ratio of the number of levels, is positively correlated with the ratio of the number of levels.
Citation Information
Patent Citations
Food safety traceability system
CN107247977B
Food sales tracing system
CN112365272A
Product quality safety tracing method and system based on wasabi sauce
CN118608177A