Food quality safety tracing method and system for e-commerce sales
By using machine-generated traceability codes and anti-counterfeiting codes in the food traceability system, combined with blockchain technology, real-time comparison of quality and anti-counterfeiting difference coefficients solves the problem of inefficiency of traditional food traceability methods and improves the accuracy of food quality and safety traceability and reliability to ensure food authenticity and safety.
Patent Information
- Application Number
- CN202410911996.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the e-commerce sales environment, traditional food traceability methods are inefficient and have high risks of information inconsistency and tampering, making it difficult to quickly track and locate food quality issues and affecting consumer trust.
Machines are used to generate original traceability codes and anti-counterfeiting codes, and blockchain technology is used for data collection and processing to generate quality difference coefficients and anti-counterfeiting difference coefficients, which can be compared in real time to determine food abnormalities.
It improves the accuracy and reliability of the food quality and safety traceability system, enhances the accuracy and reliability of anti-counterfeiting measures, ensures food authenticity and safety, and enhances consumer confidence and satisfaction.
Smart Images

Figure CN118735547A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of food safety, and in particular to a method and system for tracing food quality and safety sold by e-commerce companies. Background Art
[0002] In the context of e-commerce sales, food quality and safety traceability has become an important issue. As consumers pay more attention to food safety and quality, specific areas of food quality and safety traceability have begun to receive widespread attention.
[0003] There are many problems in the current food supply chain management. Traditional food traceability methods usually rely on paper files and manual records, which are often inefficient and prone to information inconsistency and tampering risks. The lack of real-time data updates and transparency of the entire chain makes it difficult to quickly track and locate food quality problems when they occur, thus delaying the processing time and having a negative impact on consumer trust.
[0004] The root of these problems lies in the complexity and information asymmetry of the current food supply chain. The poor information transmission and management between manufacturers, suppliers and retailers leads to frequent information gaps and inconsistencies. If food quality problems are not discovered and resolved in a timely manner, they may lead to abnormal effects such as product batch recalls, market confidence crises, and threats to consumer health and safety. Summary of the invention
[0005] 1. Technical issues to be solved
[0006] In view of the deficiencies in the prior art, the present invention provides a method for tracing food quality and safety for e-commerce sales, which solves the problems mentioned in the above background technology.
[0007] (II) Technical solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: a food quality and safety traceability method for e-commerce sales, characterized in that: the specific steps are as follows;
[0009] S1. Generate a set of original traceability barcodes through a machine, disassemble the barcodes, obtain relevant data of the original traceability barcodes and record them to generate an original traceability code data set;
[0010] S2. Generate an additional set of anti-counterfeiting codes, and record the relevant data of the anti-counterfeiting codes to generate an original anti-counterfeiting code data set. Then, insert the anti-counterfeiting code into the original traceability code and add it to the food packaging. At the same time, collect data on the current food to generate an original food data set, and send the original food data set to the cloud platform to transport the food.
[0011] S3, after obtaining the transported food, collect data on the food to generate a real-time food data set, download the original food data set in the cloud platform through blockchain technology, process the original food data set and the real-time food data set to generate a first data set and a second data set;
[0012] S4, extracting the traceability code and the anti-counterfeiting code to generate a real-time traceability barcode data set and a real-time anti-counterfeiting code data set, and processing the original traceability code data set, the original anti-counterfeiting code data set, the real-time traceability barcode data set, and the real-time anti-counterfeiting code data set to generate a third data set and a fourth data set;
[0013] S5, integrating and calculating the first data set and the second data set to generate a quality difference coefficient PCZ, and integrating and calculating the third data set and the fourth data set to generate a security difference coefficient FWC;
[0014] S6. Compare the quality difference coefficient PZC with the first threshold value Y, and compare the anti-counterfeiting difference coefficient FWC with the second threshold value R, so as to generate a comparison result, and determine whether the food is abnormal based on the comparison result.
[0015] Preferably, in step S1, the original traceability code data set includes: original barcode length YMC, original barcode distribution rate YMF, original barcode occupancy rate YMZ and original barcode clarity YMD.
[0016] Preferably, in step S2, the original anti-counterfeiting code data set includes: the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of original anti-counterfeiting code restoration steps YWZ and the original anti-counterfeiting code clarity YWD.
[0017] Preferably, in step S2, the original food data set includes the original food capacity YSR, the original food freshness YSX and the original food freshness YSZ;
[0018] In step S3, the real-time food data set includes real-time food capacity SSR, real-time food freshness SSX and real-time food weight SSZ.
[0019] Preferably, in step S3, the first data set includes the original food capacity YSR, the original food freshness YSX and the original food freshness YSZ;
[0020] The second data set includes real-time food capacity SSR, real-time food freshness SSX, and real-time food weight SSZ.
[0021] Preferably, in step S4, the real-time traceability barcode data set includes the real-time barcode length SMC, the real-time barcode distribution rate SMF, the real-time barcode occupancy rate SMZ and the real-time barcode definition SMD;
[0022] The real-time anti-counterfeiting code dataset includes the real-time anti-counterfeiting code length SWC, the real-time anti-counterfeiting code distribution rate SWF, the real-time anti-counterfeiting code restoration steps SWZ and the real-time anti-counterfeiting code clarity SWD.
[0023] Preferably, the third data set includes the original barcode length YMC, the original barcode distribution rate YMF, the original barcode occupancy rate YMZ, the original barcode clarity YMD, the original security code length YWC, the original security code distribution rate YWF, the number of steps for restoring the original security code YWZ and the original security code clarity YWD;
[0024] The fourth data set includes: real-time barcode length SMC, real-time barcode distribution rate SMF, real-time barcode occupancy rate SMZ, real-time barcode clarity SMD, real-time anti-counterfeiting code length SWC, real-time anti-counterfeiting code distribution rate SWF, real-time anti-counterfeiting code restoration steps SWZ and real-time anti-counterfeiting code clarity SWD.
[0025] Preferably, the quality difference coefficient PZC and the anti-counterfeiting difference coefficient FWC are calculated and obtained by the following formulas:
[0026]
[0027] FWC=b1×S1+b2×S2+b3×S3+b4×S4;
[0028]
[0029]
[0030]
[0031]
[0032] Wherein: a1, a2, a3, b1, b2 and b3 are weight values, and the values of a1, a2, a3, b1, b2 and b3 are adjusted by the user, e is the base function, YSR is the original food capacity, SSR is the real-time food capacity, YSX is the original food freshness, SSX is the real-time food freshness, YSZ is the original food freshness, SSZ is the real-time food weight, S1 is the first stage value, S2 is the second stage value, S3 is the third stage value, S4 is the fourth stage value, YMC is the original barcode length, SMC is the real-time barcode Code length, YWC is the original security code length, SWC is the real-time security code length, YMF is the original barcode distribution rate, SMF is the real-time barcode distribution rate, YWF is the original security code distribution rate, SWF is the real-time security code distribution rate, YMZ is the original barcode occupancy rate, SMZ is the real-time barcode occupancy rate, YWZ is the number of steps for restoring the original security code, SWZ is the number of steps for restoring the real-time security code, YMD is the original barcode clarity, SMD is the real-time barcode clarity, YWD is the original security code clarity, SWD is the real-time security code clarity.
[0033] Preferably, in step 6, the specific comparison results are as follows: when PZC≤Y, and FWC≤R, it means that the current food has no abnormality;
[0034] When PZC>Y, and FWC≤R, and PZC≤Y, and FWC>R, it means that the current food has a first-level abnormality;
[0035] When PZC≥Y and FWC≥R, it means that the current food has a secondary abnormality.
[0036] The present application also includes a food quality and safety traceability system for e-commerce sales, including an original barcode recording unit, an original anti-counterfeiting code recording unit, an original food data recording unit, a real-time barcode recording unit, a real-time anti-counterfeiting code recording unit, a real-time food data recording unit, an analysis integration unit, and an abnormality analysis unit;
[0037] The original barcode recording unit is used to disassemble the barcode, obtain the relevant data of the original traceability barcode and record it to generate the original traceability code data set;
[0038] The original anti-counterfeiting code recording unit is used to record the relevant data of the anti-counterfeiting code to generate an original anti-counterfeiting code data set;
[0039] The original food data recording unit collects data of the current food to generate an original food data set, and sends the original food data set to the cloud platform;
[0040] The real-time barcode recording unit is used to generate a real-time traceability barcode data set;
[0041] The real-time anti-counterfeiting code recording unit is used to generate a real-time anti-counterfeiting code data set;
[0042] The real-time food data recording unit acquires the food after transportation and collects the data of the food, thereby generating a real-time food data set;
[0043] The analysis and integration unit integrates and calculates the first data set and the second data set to generate a quality difference coefficient PCZ, and integrates and calculates the third data set and the fourth data set to generate a security difference coefficient FWC;
[0044] The abnormality analysis unit compares the quality difference coefficient PZC with the first threshold value Y, and compares the anti-counterfeiting difference coefficient FWC with the second threshold value R, thereby generating a comparison result, and determines whether the food is abnormal based on the comparison result.
[0045] (III) Beneficial effects
[0046] The present invention provides a food quality and safety traceability method for e-commerce sales, which has the following beneficial effects:
[0047] 1. This food quality and safety traceability method for e-commerce sales effectively improves the accuracy and reliability of the food quality and safety traceability system through the combination of multiple steps. Compared with traditional technical means, this method has higher efficiency and security in data collection, processing and verification.
[0048] 2. This food quality and safety traceability method for e-commerce sales can comprehensively detect changes in the length, distribution rate, occupancy rate and clarity of barcodes and anti-counterfeiting codes through detailed stage-by-stage difference comparisons, thereby improving the accuracy and reliability of anti-counterfeiting measures. Using the quality difference coefficient PZC and the anti-counterfeiting difference coefficient FWC, this method can promptly detect and respond to any potential anti-counterfeiting code tampering to ensure that the products obtained by consumers are authentic and safe. By optimizing the calculation formula and introducing a weight adjustment mechanism, the above improvements not only improve the food quality and safety traceability system's ability to monitor food quality and anti-counterfeiting information, but also enhance the system's practicality and operability. These improvements enable the system to more accurately evaluate the authenticity of food quality and anti-counterfeiting information, further enhancing consumers' confidence and satisfaction with food safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic diagram of the steps of the method of the present invention.
[0050] Figure 2 It is a schematic diagram of the system flow of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Example 1
[0053] See also Figure 1 , a food quality and safety traceability method for e-commerce sales, the specific steps are as follows;
[0054] S1. Generate a set of original traceability barcodes through a machine, disassemble the barcodes, obtain relevant data of the original traceability barcodes and record them to generate an original traceability code data set;
[0055] S2. Generate an additional set of anti-counterfeiting codes, and record the relevant data of the anti-counterfeiting codes to generate an original anti-counterfeiting code data set. Then, insert the anti-counterfeiting code into the original traceability code and add it to the food packaging. At the same time, collect data on the current food to generate an original food data set, and send the original food data set to the cloud platform to transport the food.
[0056] S3, after obtaining the transported food, collect data on the food to generate a real-time food data set, download the original food data set in the cloud platform through blockchain technology, process the original food data set and the real-time food data set to generate a first data set and a second data set;
[0057] S4, extracting the traceability code and the anti-counterfeiting code to generate a real-time traceability barcode data set and a real-time anti-counterfeiting code data set, and processing the original traceability code data set, the original anti-counterfeiting code data set, the real-time traceability barcode data set, and the real-time anti-counterfeiting code data set to generate a third data set and a fourth data set;
[0058] S5, integrating and calculating the first data set and the second data set to generate a quality difference coefficient PCZ, and integrating and calculating the third data set and the fourth data set to generate a security difference coefficient FWC;
[0059] S6. Compare the quality difference coefficient PZC with the first threshold value Y, and compare the anti-counterfeiting difference coefficient FWC with the second threshold value R, so as to generate a comparison result, and determine whether the food is abnormal based on the comparison result.
[0060] In this embodiment: In step S1, a set of original traceability barcodes is generated by a machine, and the barcodes are disassembled to obtain and record the relevant data of the original traceability barcodes to generate an original traceability code data set. The beneficial effect of this step is to achieve a unique identification of each food product, laying a foundation for subsequent traceability and anti-counterfeiting. By disassembling the barcodes, the detailed information of each product can be accurately recorded.
[0061] In step S2, an additional set of anti-counterfeiting codes is generated, and the relevant data of the anti-counterfeiting codes is recorded to generate an original anti-counterfeiting code data set. The anti-counterfeiting code is inserted into the original traceability code and added to the food packaging. At the same time, data collection is performed on the current food to generate an original food data set, which is sent to the cloud platform to transport the food. The beneficial effect of this step is that the anti-counterfeiting ability of the food packaging is enhanced. By inserting and recording the anti-counterfeiting code, the food can be effectively prevented from being counterfeited and tampered with. In addition, the real-time collection and uploading of data ensures data tracking of the entire process of food from production to transportation, and improves the transparency and credibility of information.
[0062] In step S3, after obtaining the transported food, data collection is performed on the food to generate a real-time food data set. The original food data set in the cloud platform is downloaded through blockchain technology, and the original food data set and the real-time food data set are processed to generate a first data set and a second data set. The beneficial effect of this step is that it realizes real-time monitoring of food during transportation, and the data is tamper-proof and transparent through blockchain technology, ensuring the authenticity and reliability of food data during transportation, and effectively avoiding food quality problems in the transportation link.
[0063] In step S4, the traceability code and anti-counterfeiting code are extracted to generate a real-time traceability barcode data set and a real-time anti-counterfeiting code data set, and the original traceability code data set, the original anti-counterfeiting code data set, the real-time traceability barcode data set and the real-time anti-counterfeiting code data set are processed to generate a third data set and a fourth data set. The beneficial effect of this step is to further ensure the consistency and authenticity of the traceability code and the anti-counterfeiting code throughout the circulation process. Through the collection and processing of real-time data, any abnormal situation can be discovered and corrected in time, thereby improving the reliability and security of the traceability system.
[0064] In step S5, the first data set and the second data set are integrated and calculated to generate a quality difference coefficient. The third data set and the fourth data set are integrated and calculated to generate an anti-counterfeiting difference coefficient. The beneficial effect of this step is that by calculating and analyzing the differences between different data sets, the quality changes and anti-counterfeiting effects of food during production and transportation can be accurately evaluated, providing a scientific basis and data support for subsequent quality control and anti-counterfeiting testing.
[0065] In step S6, the quality difference coefficient is compared with the first threshold value Y, and the anti-counterfeiting difference coefficient is compared with the second threshold value R, a comparison result is generated, and whether the food is abnormal is determined based on the comparison result. The beneficial effect of this step is that by setting reasonable thresholds and comparative analysis, it is possible to quickly and accurately determine whether there are problems with the quality and anti-counterfeiting of the food, so as to take corresponding measures in time to ensure the safety and quality of the food.
[0066] This method effectively improves the accuracy and reliability of the food quality and safety traceability system by combining multiple steps. Compared with traditional technical means, this method has higher efficiency and security in data collection, processing and verification.
[0067] Example 2
[0068] See also Figure 1 In step S1, the original traceability code data set includes: original barcode length YMC, original barcode distribution rate YMF, original barcode occupancy rate YMZ and original barcode clarity YMD.
[0069] In this embodiment: a set of original traceability barcodes is generated by machine, and the barcodes are disassembled, and the relevant data of the original traceability barcodes are obtained and recorded to generate an original traceability code data set. The original traceability code data set includes: original barcode length YMC, original barcode distribution rate YMF, original barcode occupancy rate YMZ and original barcode clarity YMD. The improvement of this step is that by recording the various data parameters of the barcode in detail, the standardization and normalization of the traceability code can be ensured. The recording and analysis of these data parameters can help us better understand and control the quality of the barcode and ensure its effectiveness and readability in practical applications.
[0070] By recording and analyzing these detailed data parameters, the quality and reliability of the traceability code can be significantly improved, ensuring accurate and rapid traceability and verification in all aspects of production, transportation and sales. This lays a solid foundation for subsequent steps such as anti-counterfeiting code insertion, data collection and difference coefficient calculation, and comprehensively improves the efficiency and accuracy of the food quality and safety traceability system.
[0071] Example 3
[0072] See also Figure 1 In step S2, the original anti-counterfeiting code data set includes: the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of original anti-counterfeiting code restoration steps YWZ and the original anti-counterfeiting code clarity YWD.
[0073] In this embodiment: an additional set of anti-counterfeiting codes is generated, and the relevant data of the anti-counterfeiting codes is recorded to generate an original anti-counterfeiting code data set. The original anti-counterfeiting code data set includes: the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of steps for restoring the original anti-counterfeiting code YWZ, and the original anti-counterfeiting code clarity YWD. The anti-counterfeiting code is inserted into the original traceability code and added to the food packaging. At the same time, data collection is performed on the current food to generate an original food data set, which is sent to the cloud platform to transport the food. The improvement of this step is that by recording the various data parameters of the anti-counterfeiting code in detail, the anti-counterfeiting effect and verifiability of the anti-counterfeiting code can be significantly improved. The recording and analysis of these data parameters ensure the effectiveness and difficulty of forging of the anti-counterfeiting code in practical applications.
[0074] By recording and analyzing these detailed data parameters, the quality and anti-counterfeiting ability of the anti-counterfeiting code can be significantly improved, ensuring that food can be effectively prevented from being counterfeited and tampered with in all links of production, transportation and sales. This provides a reliable data basis for subsequent data collection and difference coefficient calculation, and comprehensively improves the security and credibility of the food quality and safety traceability system.
[0075] Example 4
[0076] See also Figure 1 ,In step S2, the original food data set includes the original food capacity YSR, the original food freshness YSX and the original food freshness YSZ;
[0077] In step S3, the real-time food data set includes real-time food capacity SSR, real-time food freshness SSX and real-time food weight SSZ.
[0078] In this embodiment: an additional set of anti-counterfeiting codes is generated, and the relevant data of the anti-counterfeiting codes is recorded to generate an original anti-counterfeiting code data set. The original anti-counterfeiting code data set includes: the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of steps for restoring the original anti-counterfeiting code YWZ, and the original anti-counterfeiting code clarity YWD. The anti-counterfeiting code is inserted into the original traceability code and added to the food packaging. At the same time, data collection is performed on the current food to generate an original food data set. The original food data set includes: original food capacity YSR, original food freshness YSX, and original food weight YSZ. These data sets are then sent to the cloud platform to transport the food. By recording the various data parameters of the anti-counterfeiting code and the food in detail, the anti-counterfeiting effect and the accuracy of food quality management can be significantly improved. The recording and analysis of these data parameters ensure the effectiveness and reliability of the anti-counterfeiting code and food data in practical applications.
[0079] After obtaining the transported food, data collection is performed on the food to generate a real-time food data set. The real-time food data set includes: real-time food capacity SSR, real-time food freshness SSX, and real-time food weight SSZ. The original food data set in the cloud platform is downloaded through blockchain technology, and the original food data set and the real-time food data set are processed to generate the first data set and the second data set. By recording and analyzing the transported food data in detail, real-time monitoring of the food during transportation can be achieved.
[0080] Example 5
[0081] See also Figure 1 , in step S3, the first data set includes the original food capacity YSR, the original food freshness YSX and the original food freshness YSZ;
[0082] The second data set includes real-time food capacity SSR, real-time food freshness SSX, and real-time food weight SSZ.
[0083] In this embodiment: after obtaining the food after transportation, data collection is performed on the food to generate a real-time food data set. The real-time food data set includes: real-time food capacity SSR, real-time food freshness SSX, and real-time food weight SSZ. The original food data set in the cloud platform is downloaded through blockchain technology, and the original food data set includes: original food capacity YSR, original food freshness YSX, and original food weight YSZ. The original food data set and the real-time food data set are processed to generate a first data set and a second data set. The first data set includes the original food capacity YSR, the original food freshness YSX, and the original food weight YSZ; the second data set includes the real-time food capacity SSR, the real-time food freshness SSX, and the real-time food weight SSZ, to achieve full traceability and monitoring of food quality, and ensure that key indicators such as food capacity, freshness, and weight do not change abnormally during transportation. Combined with blockchain technology, the immutability and transparency of data can be ensured, and the management level of the food quality and safety traceability system and the trust of consumers can be comprehensively improved.
[0084] Example 6
[0085] See also Figure 1 ,In step S4, the real-time traceability barcode data set includes the real-time barcode length SMC, the real-time barcode distribution rate SMF, the real-time barcode occupancy rate SMZ and the real-time barcode clarity SMD;
[0086] The real-time anti-counterfeiting code dataset includes the real-time anti-counterfeiting code length SWC, the real-time anti-counterfeiting code distribution rate SWF, the real-time anti-counterfeiting code restoration steps SWZ and the real-time anti-counterfeiting code clarity SWD.
[0087] In this embodiment: traceability codes and anti-counterfeiting codes are used to collect real-time data on food, thereby generating a real-time traceability barcode data set and a real-time anti-counterfeiting code data set. The real-time traceability barcode data set includes: real-time barcode length SMC, real-time barcode distribution rate SMF, real-time barcode occupancy rate SMZ, and real-time barcode clarity SMD. The real-time anti-counterfeiting code data set includes: real-time anti-counterfeiting code length SWC, real-time anti-counterfeiting code distribution rate SWF, real-time anti-counterfeiting code restoration step number SWZ, and real-time anti-counterfeiting code clarity SWD. Then the original traceability code data set, the original anti-counterfeiting code data set, the real-time traceability barcode data set, and the real-time anti-counterfeiting code data set are processed to generate a third data set and a fourth data set, so as to realize real-time monitoring and data comparison of traceability codes and anti-counterfeiting codes throughout the supply chain process, and ensure their authenticity and consistency in each link. Combined with blockchain technology, it can ensure the immutability and transparency of data, and comprehensively improve the management level of the food quality and safety traceability system and the trust of consumers.
[0088] Example 7
[0089] See also Figure 1 The third data set includes the original barcode length YMC, the original barcode distribution rate YMF, the original barcode occupancy rate YMZ, the original barcode clarity YMD, the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of original anti-counterfeiting code restoration steps YWZ and the original anti-counterfeiting code clarity YWD;
[0090] The fourth data set includes: real-time barcode length SMC, real-time barcode distribution rate SMF, real-time barcode occupancy rate SMZ, real-time barcode clarity SMD, real-time anti-counterfeiting code length SWC, real-time anti-counterfeiting code distribution rate SWF, real-time anti-counterfeiting code restoration steps SWZ and real-time anti-counterfeiting code clarity SWD.
[0091] In this embodiment: the third data set includes the original barcode length YMC, the original barcode distribution rate YMF, the original barcode occupancy rate YMZ, the original barcode clarity YMD, the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of original anti-counterfeiting code restoration steps YWZ and the original anti-counterfeiting code clarity YWD, which comprehensively records and analyzes various indicators of the original barcode and anti-counterfeiting code to ensure accuracy and standardization in the initial stage.
[0092] The fourth data set includes real-time barcode length SMC, real-time barcode distribution rate SMF, real-time barcode occupancy rate SMZ, real-time barcode clarity SMD, real-time anti-counterfeiting code length SWC, real-time anti-counterfeiting code distribution rate SWF, real-time anti-counterfeiting code restoration steps SWZ and real-time anti-counterfeiting code clarity SWD. It collects and records the changes of barcodes and anti-counterfeiting codes during transportation and storage in real time to ensure the continuity and consistency of each link.
[0093] By comparing the third and fourth data sets, any changes or abnormalities in the traceability code and anti-counterfeiting code in each link can be identified. For example, by comparing the barcode length YMC and SMC and the anti-counterfeiting code length YWC and SWC, it is possible to detect whether there is tampering or damage; by analyzing the distribution rate of the barcode and anti-counterfeiting code YMF and SMF, YWF and SWF, it is possible to identify whether the distribution is uniform; by comparing the occupancy rate YMZ and SMZ and the number of reduction steps YWZ and SWZ, it is possible to detect integrity and complexity; by comparing the clarity YMD and SMD, YWD and SWD, it is possible to ensure easy identification.
[0094] Example 8
[0095] See also Figure 1 The quality difference coefficient PZC and the anti-counterfeiting difference coefficient FWC are calculated by the following formulas:
[0096]
[0097] FWC=b1×S1+b2×S2+b3×S3+b4×S4;
[0098]
[0099]
[0100]
[0101]
[0102] Wherein: a1, a2, a3, b1, b2 and b3 are weight values, and the values of a1, a2, a3, b1, b2 and b3 are adjusted by the user, e is the base function, YSR is the original food capacity, SSR is the real-time food capacity, YSX is the original food freshness, SSX is the real-time food freshness, YSZ is the original food freshness, SSZ is the real-time food weight, S1 is the first stage value, S2 is the second stage value, S3 is the third stage value, S4 is the fourth stage value, YMC is the original barcode length, SMC is the real-time barcode Code length, YWC is the original security code length, SWC is the real-time security code length, YMF is the original barcode distribution rate, SMF is the real-time barcode distribution rate, YWF is the original security code distribution rate, SWF is the real-time security code distribution rate, YMZ is the original barcode occupancy rate, SMZ is the real-time barcode occupancy rate, YWZ is the number of steps for restoring the original security code, SWZ is the number of steps for restoring the real-time security code, YMD is the original barcode clarity, SMD is the real-time barcode clarity, YWD is the original security code clarity, SWD is the real-time security code clarity.
[0103] In step 6, the specific comparison results are as follows: when PZC≤Y, and FWC≤R, it means that the current food has no abnormality;
[0104] When PZC>Y, and FWC≤R, and PZC≤Y, and FWC>R, it means that the current food has a first-level abnormality;
[0105] When PZC≥Y and FWC≥R, it means that the current food has a secondary abnormality.
[0106] In this embodiment: through the application of the exponential function, the method can detect small changes in food quality more accurately, thereby improving the monitoring accuracy and reliability of the system.
[0107] Using the quality difference coefficient PZC and the anti-counterfeiting difference coefficient FWCC, the system can compare the differences between original food and real-time food in real time to ensure that the quality of food obtained by consumers meets the expected standards. This accurate assessment helps prevent health risks and consumer complaints caused by food quality issues.
[0108] Through detailed staged difference comparison, the system can comprehensively detect changes in length, distribution rate, occupancy rate and clarity of barcodes and anti-counterfeiting codes, thereby improving the accuracy and reliability of anti-counterfeiting measures. Using the quality difference coefficient PZC and the anti-counterfeiting difference coefficient FWC, the system can promptly detect and respond to any potential anti-counterfeiting code tampering to ensure that the products obtained by consumers are authentic and safe.
[0109] By optimizing the calculation formula and introducing a weight adjustment mechanism, the above improvements not only improve the food quality and anti-counterfeiting information monitoring capabilities of the food quality and safety traceability system, but also enhance the system's practicality and operability. These improvements enable the system to more accurately assess the authenticity of food quality and anti-counterfeiting information, further enhancing consumers' confidence and satisfaction with food safety.
[0110] In step 6, the specific comparison results are as follows: when PZC≤Y, and FWC≤R, it means that the current food has no abnormality;
[0111] When PZC>Y, and FWC≤R, and PZC≤Y, and FWC>R, it means that the current food has a first-level abnormality;
[0112] When PZC≥Y and FWC≥R, it means that the current food has a secondary abnormality.
[0113] The present application also includes a food quality and safety traceability system for e-commerce sales, including an original barcode recording unit, an original anti-counterfeiting code recording unit, an original food data recording unit, a real-time barcode recording unit, a real-time anti-counterfeiting code recording unit, a real-time food data recording unit, an analysis integration unit, and an abnormality analysis unit;
[0114] The original barcode recording unit is used to disassemble the barcode, obtain the relevant data of the original traceability barcode and record it to generate the original traceability code data set;
[0115] The original anti-counterfeiting code recording unit is used to record the relevant data of the anti-counterfeiting code to generate an original anti-counterfeiting code data set;
[0116] The original food data recording unit collects data of the current food to generate an original food data set, and sends the original food data set to the cloud platform;
[0117] The real-time barcode recording unit is used to generate a real-time traceability barcode data set;
[0118] The real-time anti-counterfeiting code recording unit is used to generate a real-time anti-counterfeiting code data set;
[0119] The real-time food data recording unit acquires the food after transportation and collects the data of the food, thereby generating a real-time food data set;
[0120] The analysis and integration unit integrates and calculates the first data set and the second data set to generate a quality difference coefficient PCZ, and integrates and calculates the third data set and the fourth data set to generate a security difference coefficient FWC;
[0121] The abnormality analysis unit compares the quality difference coefficient PZC with the first threshold value Y, and compares the anti-counterfeiting difference coefficient FWC with the second threshold value R, thereby generating a comparison result, and determines whether the food is abnormal based on the comparison result.
[0122] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A food quality and safety traceability method for e-commerce sales, characterized by: The specific steps are as follows; S1. Generate a set of original traceability barcodes through a machine, disassemble the barcodes, obtain relevant data of the original traceability barcodes and record them to generate an original traceability code data set; S2. Generate an additional set of anti-counterfeiting codes, and record the relevant data of the anti-counterfeiting codes to generate an original anti-counterfeiting code data set. Then, insert the anti-counterfeiting code into the original traceability code and add it to the food packaging. At the same time, collect data on the current food to generate an original food data set, and send the original food data set to the cloud platform to transport the food. S3, after obtaining the transported food, collect data on the food to generate a real-time food data set, download the original food data set in the cloud platform through blockchain technology, process the original food data set and the real-time food data set to generate a first data set and a second data set; S4, extracting the traceability code and the anti-counterfeiting code to generate a real-time traceability barcode data set and a real-time anti-counterfeiting code data set, and processing the original traceability code data set, the original anti-counterfeiting code data set, the real-time traceability barcode data set, and the real-time anti-counterfeiting code data set to generate a third data set and a fourth data set; S5, integrating and calculating the first data set and the second data set to generate a quality difference coefficient PCZ, and integrating and calculating the third data set and the fourth data set to generate a security difference coefficient FWC; S6. Compare the quality difference coefficient PZC with the first threshold value Y, and compare the anti-counterfeiting difference coefficient FWC with the second threshold value R, so as to generate a comparison result, and determine whether the food is abnormal based on the comparison result.
2. The food quality and safety traceability method for e-commerce sales according to claim 1 is characterized by: In step S1, the original traceability code data set includes: original barcode length YMC, original barcode distribution rate YMF, original barcode occupancy rate YMZ and original barcode clarity YMD.
3. The food quality and safety traceability method for e-commerce sales according to claim 2 is characterized by: In step S2, the original anti-counterfeiting code data set includes: the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of original anti-counterfeiting code restoration steps YWZ and the original anti-counterfeiting code clarity YWD.
4. The food quality and safety traceability method for e-commerce sales according to claim 3 is characterized by: In step S2, the original food data set includes the original food capacity YSR, the original food freshness YSX and the original food freshness YSZ; In step S3, the real-time food data set includes real-time food capacity SSR, real-time food freshness SSX and real-time food weight SSZ.
5. The food quality and safety traceability method for e-commerce sales according to claim 4 is characterized by: In step S3, the first data set includes the original food capacity YSR, the original food freshness YSX and the original food freshness YSZ; The second data set includes real-time food capacity SSR, real-time food freshness SSX, and real-time food weight SSZ.
6. The food quality and safety traceability method for e-commerce sales according to claim 5 is characterized by: In step S4, the real-time traceability barcode data set includes the real-time barcode length SMC, the real-time barcode distribution rate SMF, the real-time barcode occupancy rate SMZ and the real-time barcode definition SMD; The real-time anti-counterfeiting code dataset includes the real-time anti-counterfeiting code length SWC, the real-time anti-counterfeiting code distribution rate SWF, the real-time anti-counterfeiting code restoration steps SWZ and the real-time anti-counterfeiting code clarity SWD.
7. The food quality and safety traceability method for e-commerce sales according to claim 6 is characterized by: The third data set includes the original barcode length YMC, the original barcode distribution rate YMF, the original barcode occupancy rate YMZ, the original barcode clarity YMD, the original anti-counterfeiting code length YWC, the original anti-counterfeiting code distribution rate YWF, the number of steps for restoring the original anti-counterfeiting code YWZ and the original anti-counterfeiting code clarity YWD; The fourth data set includes: real-time barcode length SMC, real-time barcode distribution rate SMF, real-time barcode occupancy rate SMZ, real-time barcode clarity SMD, real-time anti-counterfeiting code length SWC, real-time anti-counterfeiting code distribution rate SWF, real-time anti-counterfeiting code restoration steps SWZ and real-time anti-counterfeiting code clarity SWD.
8. The food quality and safety traceability method for e-commerce sales according to claim 7 is characterized by: The quality difference coefficient PZC and the anti-counterfeiting difference coefficient FWC are calculated by the following formulas: FWC=b1×S1+b2×S2+b3×S3+b4×S4; Wherein: a1, a2, a3, b1, b2 and b3 are weight values, and the values of a1, a2, a3, b1, b2 and b3 are adjusted by the user, e is the base function, YSR is the original food capacity, SSR is the real-time food capacity, YSX is the original food freshness, SSX is the real-time food freshness, YSZ is the original food freshness, SSZ is the real-time food weight, S1 is the first stage value, S2 is the second stage value, S3 is the third stage value, S4 is the fourth stage value, YMC is the original barcode length, SMC is the real-time barcode Code length, YWC is the original security code length, SWC is the real-time security code length, YMF is the original barcode distribution rate, SMF is the real-time barcode distribution rate, YWF is the original security code distribution rate, SWF is the real-time security code distribution rate, YMZ is the original barcode occupancy rate, SMZ is the real-time barcode occupancy rate, YWZ is the number of steps for restoring the original security code, SWZ is the number of steps for restoring the real-time security code, YMD is the original barcode clarity, SMD is the real-time barcode clarity, YWD is the original security code clarity, SWD is the real-time security code clarity.
9. The food quality and safety traceability method for e-commerce sales according to claim 8 is characterized by: In step 6, the specific comparison results are as follows: when PZC≤Y, and FWC≤R, it means that the current food has no abnormality; When PZC>Y, and FWC≤R, and PZC≤Y, and FWC>R, it means that the current food has a first-level abnormality; When PZC≥Y and FWC≥R, it means that the current food has a secondary abnormality.
10. A food quality and safety traceability system for e-commerce sales, characterized by: The system is used to execute the food quality and safety traceability method for e-commerce sales according to any one of claims 1 to 9, comprising an original barcode recording unit, an original anti-counterfeiting code recording unit, an original food data recording unit, a real-time barcode recording unit, a real-time anti-counterfeiting code recording unit, a real-time food data recording unit, an analysis integration unit, and an abnormality analysis unit; The original barcode recording unit is used to disassemble the barcode, obtain the relevant data of the original traceability barcode and record it to generate the original traceability code data set; The original anti-counterfeiting code recording unit is used to record the relevant data of the anti-counterfeiting code to generate an original anti-counterfeiting code data set; The original food data recording unit collects data of the current food to generate an original food data set, and sends the original food data set to the cloud platform; The real-time barcode recording unit is used to generate a real-time traceability barcode data set; The real-time anti-counterfeiting code recording unit is used to generate a real-time anti-counterfeiting code data set; The real-time food data recording unit acquires the food after transportation and collects the data of the food, thereby generating a real-time food data set; The analysis and integration unit integrates and calculates the first data set and the second data set to generate a quality difference coefficient PCZ, and integrates and calculates the third data set and the fourth data set to generate a security difference coefficient FWC; The abnormality analysis unit compares the quality difference coefficient PZC with the first threshold value Y, and compares the anti-counterfeiting difference coefficient FWC with the second threshold value R, thereby generating a comparison result, and determines whether the food is abnormal based on the comparison result.
