Product information traceability system based on two-dimensional code

Through the QR code-based product information traceability system, combined with automatic data collection and encryption technology, the problems of inefficiency of traditional traceability methods and the risk of data tampering are solved, and the full traceability and efficient traceability of product information are realized, enhancing consumers Trust and data security.

CN118886922AInactive Publication Date: 2024-11-01马成勇
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410990932.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional product information traceability methods are inefficient and there is a risk that data will be tampered with.

Method used

The product information traceability system based on QR code is adopted, combined with automatic data collection, data encryption and QR code technology, and the full traceability of product information is achieved through data collection, summary, processing, encryption and QR code generation modules.

Benefits of technology

It improves the transparency and credibility of product information, enhances data security, and improves traceability efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886922A_ABST
    Figure CN118886922A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of product information traceability, and provides a two-dimensional code-based product information traceability system, which comprises a data acquisition module, a data summarization module, a data processing module, an encryption module, a two-dimensional code generation module and a traceability query module, the data acquisition module, the data summarization module, the data processing module, the encryption module, the two-dimensional code generation module and the traceability query module are electrically connected in sequence; through the two-dimensional code technology, a consumer can conveniently inquire detailed information of a product, including a production flow, a raw material source and the like, so that the sense of trust of the consumer to the product is enhanced; meanwhile, the advanced encryption algorithm is adopted to encrypt the data, the risk that the data is illegally acquired or tampered is effectively prevented, and through the automatic data acquisition and processing flow, the links and time cost of manual operation are greatly reduced, and the traceability efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of product information tracing, and in particular is a product information tracing system based on a two-dimensional code. Background Art

[0002] As consumers pay more and more attention to product quality and safety, product information traceability has become an important issue.

[0003] Traditional traceability methods often rely on paper records or centralized databases, which are not only inefficient but also have the risk of data tampering. Therefore, it is particularly important to develop an efficient, secure and convenient product information traceability system.

[0004] To this end, those skilled in the art have proposed a product information traceability system based on QR codes, which achieves full traceability of product information by combining automatic data collection, data encryption and QR code technology to solve the problems raised by the background technology. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a product information traceability system based on a QR code to solve the problems of low efficiency and the risk of data tampering in the prior art.

[0006] A product information traceability system based on a two-dimensional code comprises a data acquisition module, a data aggregation module, a data processing module, an encryption module, a two-dimensional code generation module and a traceability query module, wherein the data acquisition module, the data aggregation module, the data processing module, the encryption module, the two-dimensional code generation module and the traceability query module are electrically connected in sequence:

[0007] A data collection module, which is responsible for collecting product information;

[0008] A data aggregation module, which is used to aggregate the product information data collected by the data collection module;

[0009] A data processing module, which is used to process and analyze the aggregated data so as to subsequently generate a QR code and provide traceability services;

[0010] An encryption module, wherein the encryption module is used to encrypt the data processed by the data processing module;

[0011] A two-dimensional code generation module, which is used to convert the encrypted product information data into a two-dimensional code image, which can be conveniently printed or saved on the product packaging;

[0012] The traceability query module is used for consumers to query detailed information of the product by scanning the QR code on the product.

[0013] Preferably, the product information includes but is not limited to the product's production environment parameters (such as temperature, humidity, etc.), production process data, and raw material sources.

[0014] Preferably, the steps of processing and analyzing the aggregated data are as follows:

[0015] S1. First, the aggregated data is cleaned. Data cleaning improves the overall quality of the data by identifying and correcting errors, anomalies, duplications, or inconsistencies in the data.

[0016] S2. Then the cleaned data is normalized to improve the convergence speed of the network. The normalization formula is as follows:

[0017]

[0018] Among them, y is the normalized output result, x is the output data of the convolution layer, E(x) is the mean output result of the convolution layer, Var(x) is the variance of the convolution layer, ε is the minimum, γ and β are constant factors;

[0019] S3. Then, the normalized data is deeply analyzed using Gaussian radial technology to extract the key features, trends and correlations of the products, that is, the normalized data is mapped to a high-dimensional space using a Gaussian radial kernel function; in the high-dimensional space, nonlinear data is converted into linearly separable data, and the covariance matrix of the linear data is found. The Gaussian radial kernel function formula is as follows:

[0020]

[0021] Among them, ||x i -x j || represents the sample point x i and x j The Euclidean distance between them; σ is a parameter of the Gaussian kernel function, which controls the width of the Gaussian function;

[0022] l(X)=[l(x 1 ),...,l(x n )] (2)

[0023] l(X)l(X) T w i =λ i w i (3)

[0024] Among them, λ iare the eigenvalues ​​of the covariance matrix;

[0025] Since the space vector x i It can be expressed by l(X) linear calculation:

[0026]

[0027] Substitute equation (3) into equation (4) and eliminate w i , we get formula (5):

[0028] l(X)l(X) T l(X)α=λ i l(X)α (5)

[0029] where α is l(X)l(X) T The feature vector of .

[0030] Preferably, the encryption module uses a multi-chaotic data encryption algorithm, and the H mapping model of the multi-chaotic data encryption algorithm is:

[0031]

[0032] Among them, x i ,y i Respectively represent the model input and output; the state of the mapping system under the condition of parameters a=1.4, b=0.3, x0=y0=0.4 is chaotic; the specific steps of the multi-chaotic data encryption algorithm are as follows:

[0033] S101, determine the initial values ​​x0, x′0, y0 of the two mapping models, and the control parameters 0, a, b, use them as the encryption key for multi-source big data, and carry out initialization processing;

[0034] S102, in order to conceal the original value of multi-source big data, set the number of iterations to 15, iterate the key processing, and improve the security of the data;

[0035] S103, select L mapping processing key, take x0 as initial parameter, input into L mapping model, obtain parameter x′0 through iteration, multiply x′0 by parameter y0, select the above product result as initial parameter of H mapping model, expand mapping operation to obtain parameter x n ,y n ,x n ,y n That is the final iterative result P of the H mapping model; the L mapping model is as follows:

[0036] x n+1 =x n ×0×σ(1-x n );

[0037] Where x∈[0,1]; o represents the control parameter; x n Represents any value;

[0038] S104, perform a modulo operation P to obtain a chaotic key P′:

[0039] P′=Pmod 256×(x i+1 +y i+1 );

[0040] S105. Finally, process the key byte P′ and the plaintext byte M to obtain the encrypted multi-source big data S:

[0041]

[0042] Preferably, the detailed information of the traceability query module includes production process, source of raw materials, and quality inspection report, thereby achieving full traceability of product information.

[0043] A processor is configured to execute the above-mentioned product information tracing system based on QR code.

[0044] A machine-readable storage medium stores instructions, which, when executed by a processor, configure the processor to execute the above-mentioned product information tracing system based on a two-dimensional code.

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] 1. Improved transparency and credibility of product information: Through QR code technology, consumers can easily query detailed information about the product, including production process, source of raw materials, etc., thereby enhancing consumers' trust in the product.

[0047] 2. Enhanced data security: Using advanced encryption algorithms to encrypt data effectively prevents the risk of data being illegally obtained or tampered with.

[0048] 3. Improved traceability efficiency: Through automated data collection and processing procedures, the manual operation links and time costs are greatly reduced, and the efficiency and accuracy of traceability are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a framework diagram of the product information traceability system based on QR code of the present invention. DETAILED DESCRIPTION

[0050] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0051] like Figure 1 As shown:

[0052] Embodiment: The present invention provides a product information tracing system based on a two-dimensional code, comprising:

[0053] A data collection module, which is responsible for collecting product information; the product information includes but is not limited to the production environment parameters of the product (such as temperature, humidity, etc.), production process data, and the source of raw materials;

[0054] A data aggregation module, which is used to aggregate the product information data collected by the data collection module;

[0055] A data processing module, which is used to process and analyze the aggregated data so as to subsequently generate a QR code and provide traceability services;

[0056] An encryption module, which is used to encrypt the data processed by the data processing module;

[0057] A two-dimensional code generation module, which is used to convert the encrypted product information data into a two-dimensional code image, which can be conveniently printed or saved on the product packaging;

[0058] A traceability query module, which allows consumers to scan the QR code on the product to query detailed information about the product. The detailed information in the traceability query module includes the production process, the source of raw materials, and the quality inspection report, thus achieving full traceability of product information;

[0059] The traceability query module can also be used to transmit information back. No matter which channel you purchase our products through, as long as there are any quality problems within the shelf life, you can upload the unpacking video and related evidence by scanning the QR code or other convenient methods, so as to facilitate fast and accurate compensation processing;

[0060] This policy aims to provide customers with maximum convenience and protection and ensure a worry-free shopping experience. Once video and complaint information is received, the quality review process will be immediately initiated to resolve the problem in the shortest time possible and provide corresponding reasonable compensation.

[0061] From the above, it can be seen that the present invention uses QR code technology to allow consumers to easily query detailed information about products, including production processes, sources of raw materials, etc., thereby enhancing consumers' trust in the products; at the same time, advanced encryption algorithms are used to encrypt data, effectively preventing the risk of data being illegally obtained or tampered with, and through automated data collection and processing procedures, the manual operation links and time costs are greatly reduced, thereby improving the efficiency and accuracy of traceability.

[0062] Specifically, the steps for processing and analyzing the aggregated data are as follows:

[0063] S1. First, the aggregated data is cleaned. Data cleaning improves the overall quality of the data by identifying and correcting errors, anomalies, duplications, or inconsistencies in the data.

[0064] S2. Then the cleaned data is normalized to improve the convergence speed of the network. The normalization formula is as follows:

[0065]

[0066] Among them, y is the normalized output result, x is the output data of the convolution layer, E(x) is the mean output result of the convolution layer, Var(x) is the variance of the convolution layer, ε is the minimum, γ and β are constant factors;

[0067] S3. Then, the normalized data is deeply analyzed using Gaussian radial technology to extract the key features, trends and correlations of the products, that is, the normalized data is mapped to a high-dimensional space using a Gaussian radial kernel function; in the high-dimensional space, nonlinear data is converted into linearly separable data, and the covariance matrix of the linear data is found. The Gaussian radial kernel function formula is as follows:

[0068]

[0069] Among them, || i -x j || represents the sample point x i and x j The Euclidean distance between them; σ is a parameter of the Gaussian kernel function, which controls the width of the Gaussian function;

[0070] l(X)=[l(x 1 ),...,l(x n )] (2)

[0071] l(X)l(X) T w i =λ i w i (3)

[0072] Among them, λ i are the eigenvalues ​​of the covariance matrix;

[0073] Since the space vector x i It can be expressed by l(X) linear calculation:

[0074]

[0075] Substitute equation (3) into equation (4) and eliminate w i , we get formula (5):

[0076] l(X)l(X) T l(X)α=λ i l(X)α (5)

[0077] where α is l(X)l(X) T The feature vector of .

[0078] From the above, we can see that data cleaning and normalization processing improve the overall quality of data and the convergence speed of the network; at the same time, Gaussian radial technology (through the Gaussian radial kernel function formula) helps to convert nonlinear data into linearly separable data, thereby extracting the key characteristics, trends and correlations of products in high-dimensional space, providing an accurate data basis for traceability services.

[0079] Specifically, the encryption module uses a multi-chaotic data encryption algorithm, and the H mapping model of the multi-chaotic data encryption algorithm is:

[0080]

[0081] Among them, x i ,y i Respectively represent the model input and output; the state of the mapping system under the condition of parameters a=1.4, b=0.3, x0=y0=0.4 is chaotic; the specific steps of the multi-chaotic data encryption algorithm are as follows:

[0082] S101, determine the initial values ​​x0, x′0, y0 of the two mapping models, and the control parameters 0, a, b, use them as the encryption key for multi-source big data, and carry out initialization processing;

[0083] S102, in order to conceal the original value of multi-source big data, set the number of iterations to 15, iterate the key processing, and improve the security of the data;

[0084] S103, select L mapping processing key, take x0 as initial parameter, input into L mapping model, obtain parameter x′0 through iteration, multiply x′0 by parameter y0, select the above product result as initial parameter of H mapping model, expand mapping operation to obtain parameter x n ,y n ,x n ,y n That is the final iterative result P of the H mapping model; the L mapping model is as follows:

[0085] x n+1 =x n ×0×σ(1-x n );

[0086] Where x∈[0,1]; o represents the control parameter; x n Represents any value;

[0087] S104, perform a modulo operation P to obtain a chaotic key P′:

[0088] P′=Pmod 256×(x i+1 +y i+1 );

[0089] S105. Finally, process the key byte P′ and the plaintext byte M to obtain the encrypted multi-source big data S:

[0090]

[0091] From the above, it can be seen that by setting up a multi-chaotic data encryption algorithm, the H mapping model of the multi-chaotic data encryption algorithm encrypts through chaotic states, which enhances the security of the data and effectively avoids the risk of illegal acquisition or tampering of the data.

[0092] Those skilled in the art will appreciate that the embodiments of the present application may be provided as a system or a computer program product. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0093] The present application is described with reference to the flowcharts and / or block diagrams of the devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0096] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0097] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0098] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0099] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, commodity or device including the elements.

[0100] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A product information traceability system based on QR code, characterized in that: include: A data collection module, which is responsible for collecting product information; A data aggregation module, which is used to aggregate the product information data collected by the data collection module; A data processing module, which is used to process and analyze the aggregated data so as to subsequently generate a QR code and provide traceability services; An encryption module, wherein the encryption module is used to encrypt the data processed by the data processing module; A two-dimensional code generation module, which is used to convert the encrypted product information data into a two-dimensional code image, which can be conveniently printed or saved on the product packaging; The traceability query module is used for consumers to query detailed information of the product by scanning the QR code on the product.

2. A product information tracing system based on a two-dimensional code as claimed in claim 1, characterized in that: The product information includes but is not limited to the product's production environment parameters (such as temperature and humidity), production process data, and raw material sources.

3. A product information tracing system based on a two-dimensional code as claimed in claim 1, characterized in that: The steps for processing and analyzing the aggregated data are as follows: S1. First, the aggregated data is cleaned. Data cleaning improves the overall quality of the data by identifying and correcting errors, anomalies, duplications, or inconsistencies in the data. S2. Then the cleaned data is normalized to improve the convergence speed of the network. The normalization formula is as follows: Among them, y is the normalized output result, x is the output data of the convolution layer, E(x) is the mean output result of the convolution layer, Var(x) is the variance of the convolution layer, ε is the minimum, γ and β are constant factors; S3. Then, the normalized data is deeply analyzed using Gaussian radial technology to extract the key features, trends and correlations of the products, that is, the normalized data is mapped to a high-dimensional space using a Gaussian radial kernel function; in the high-dimensional space, nonlinear data is converted into linearly separable data, and the covariance matrix of the linear data is found. The Gaussian radial kernel function formula is as follows: Among them, ||x i -x j || represents the sample point x i and x j The Euclidean distance between them; σ is a parameter of the Gaussian kernel function, which controls the width of the Gaussian function; l(X)=[l(x 1 ),...,l(x n )] (2) l(X)l(X) T w i =λ i w i (3) Among them, λ i are the eigenvalues ​​of the covariance matrix; Since the space vector x i It can be expressed by l(X) linear calculation: Substitute equation (3) into equation (4) and eliminate w i , we get formula (5): l(X)l(X) T l(X)α=λ i l(X)a (5) where α is l(X)l(X) T The feature vector of .

4. A product information tracing system based on a two-dimensional code as claimed in claim 1, characterized in that: The encryption module uses a multi-chaotic data encryption algorithm, and the H mapping model of the multi-chaotic data encryption algorithm is: Among them, x i ,y i Respectively represent the model input and output; the state of the mapping system under the condition of parameters a=1.4, b=0.3, x0=y0=0.4 is chaotic; the specific steps of the multi-chaotic data encryption algorithm are as follows: S101, determine the initial values ​​x0, x′0, y0 of the two mapping models, and the control parameters 0, a, b, use them as the encryption key for multi-source big data, and carry out initialization processing; S102, in order to conceal the original value of multi-source big data, set the number of iterations to 15, iterate the key processing, and improve the security of the data; S103, select L mapping processing key, take x0 as initial parameter, input into L mapping model, obtain parameter x′0 through iteration, multiply x′0 by parameter y0, select the above product result as initial parameter of H mapping model, expand mapping operation to obtain parameter x n ,y n ,x n ,y n That is the final iterative result P of the H mapping model; the L mapping model is as follows: x n+1 =x n ×0×σ(1-x n ); Where x∈[0,1]; o represents the control parameter; x n Represents any value; S104, perform a modulo operation P to obtain a chaotic key P′: P′=Pmod 256×(x i+1 +y i+1 ); S105. Finally, process the key byte P′ and the plaintext byte M to obtain the encrypted multi-source big data S:

5. A product information tracing system based on a two-dimensional code as claimed in claim 1, characterized in that: The detailed information of the traceability query module includes production process, source of raw materials, and quality inspection report, thus realizing the full traceability of product information.

6. A processor, characterized in that: The system is configured to execute the product information tracing system based on a two-dimensional code according to any one of claims 1 to 5.

7. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the product information tracing system based on a two-dimensional code according to any one of claims 1 to 5.

Citation Information

Cited By

  • Malathion detection card two-dimensional code traceability batch parameter automatic matching method

    CN122366490A

  • A malathion detection card two-dimensional code traceability batch parameter automatic matching method

    CN122366490B