A Traceability Method and System for Hygiene Products Based on Data Processing

By obtaining and analyzing the traceability request records of sanitary products, determining the associated characteristics and encrypting the full-cycle traceability data, and storing it to a distributed storage node. Users can retrieve data through QR code scanning, solving the problem of difficult tracing sanitary products production data in the existing technology, achieving efficient and safe traceability query, enhancing user trust and healthy development of the industry.

CN119904250BActive Publication Date: 2025-06-27BEIJING BEISHUTE MATERNITY & CHILD ARTICLES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510388477.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-06-27
Estimated Expiration
2045-03-31

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively trace the raw materials, sources and production processes of sanitary products, resulting in users being unable to directly understand the production data of the products, and may be infringed on counterfeit and shoddy products.

Method used

By obtaining the traceability request records of multiple test sanitary products, determining the traceability request association characteristics of multiple sanitary products, encrypting the full-cycle traceability data, and storing it to multiple distributed storage nodes. By scanning the QR code, users can initiate traceability requests, retrieve and send full-cycle traceability data of target sanitary products.

Benefits of technology

It realizes the rapid and accurate processing of a large number of traceability requests, ensures the integrity and security of traceability information, protects the data privacy of users and enterprises, improves users' trust in the source and quality of products, and promotes the healthy development of the industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904250B_ABST
    Figure CN119904250B_ABST
Patent Text Reader

Abstract

The present invention relates to a traceability method and system for sanitary products based on data processing, belonging to the technical field of data processing. The method includes: obtaining traceability request records of multiple test sanitary products; determining traceability request correlation features of multiple types of sanitary products based on the traceability request records of the multiple test sanitary products; encrypting the full-cycle traceability data of the multiple sanitary products; storing the encrypted full-cycle traceability data of the multiple sanitary products into multiple distributed storage nodes based on the traceability request correlation features of the multiple types of sanitary products; for each sanitary product, generating a two-dimensional code corresponding to the sanitary product based on the storage location of the sanitary product; receiving a traceability request initiated by a mobile terminal based on the two-dimensional code corresponding to the sanitary product, retrieving the full-cycle traceability data of the target sanitary product from the multiple distributed storage nodes, and sending the full-cycle traceability data of the target sanitary product to the mobile terminal, which has the advantage of facilitating users to trace the sanitary products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular, to a traceability method and system for sanitary products based on data processing. Background Art

[0002] Currently, there are various sanitary products on the market. According to their different needs, users often choose different types of products. The existence of numerous sanitary products provides users with a wider selection space. However, in order to pursue greater economic benefits, some merchants sell inferior products as high-quality ones or even sell fake and shoddy products to users, which greatly damages the interests of users. At the same time, the phenomenon that the quality of sanitary products on the market is uneven and full of various fake and shoddy products is also not conducive to the healthy development of the sanitary product industry.

[0003] In the prior art, users usually directly read the instructions of sanitary products to understand data such as the raw materials, sources, and production processes of sanitary products. However, generally speaking, the above production data is not recorded or not detailed in the instructions of sanitary products, so that users cannot directly understand the production data during the production process of sanitary products.

[0004] Therefore, it is necessary to provide a traceability method and system for sanitary products based on data processing to facilitate users to trace sanitary products. Summary of the Invention

[0005] The present invention provides a traceability method for sanitary products based on data processing, including: obtaining traceability request records of multiple test sanitary products; determining traceability request correlation features of multiple types of sanitary products based on the traceability request records of multiple test sanitary products; obtaining full-cycle traceability data of multiple sanitary products; encrypting the full-cycle traceability data of multiple sanitary products; storing the encrypted full-cycle traceability data of multiple sanitary products into multiple distributed storage nodes based on the traceability request correlation features of multiple types of sanitary products; generating a two-dimensional code corresponding to each sanitary product based on the storage location of the sanitary product; receiving a traceability request initiated by a mobile terminal based on the two-dimensional code corresponding to the sanitary product; and retrieving the full-cycle traceability data of the target sanitary product from the multiple distributed storage nodes based on the traceability request initiated by the mobile terminal, and sending the full-cycle traceability data of the target sanitary product to the mobile terminal.

[0006] Further, based on the traceability request records of multiple test hygiene products, determine the traceability request correlation features of multiple hygiene products, including: based on the traceability request records of multiple test hygiene products, determine the traceability request curve corresponding to each hygiene product type in multiple sales regions, where the traceability request curve corresponding to each hygiene product type in the sales region is generated based on the number of traceability requests in multiple test time periods of the hygiene product type in the sales region; for each sales region, based on the traceability request curve corresponding to each hygiene product type in the sales region, generate the optimal variational mode decomposition parameters of the sales region, and based on the optimal variational mode decomposition parameters, perform variational mode decomposition on the traceability request curve corresponding to each hygiene product type in the sales region to determine the traceability request correlation coefficients of multiple hygiene products in the sales region; based on the traceability request curves corresponding to each hygiene product type in multiple sales regions, determine the traceability request correlation coefficients between any two sales regions, where the traceability request correlation features of multiple hygiene products include the traceability request correlation coefficients of multiple hygiene products in each sales region and the traceability request correlation coefficients between any two sales regions.

[0007] Further, based on the traceability request curve corresponding to each hygiene product type in the sales region, generate the optimal variational mode decomposition parameters of the sales region, including: extract the curve features of the traceability request curve corresponding to each hygiene product type in the sales region; based on the curve features of the traceability request curve corresponding to each hygiene product type in the sales region, generate multiple groups of variational mode decomposition parameters of the sales region; for each group of variational mode decomposition parameters, based on the variational mode decomposition parameters, evaluate the decomposition quality corresponding to the variational mode decomposition parameters for the traceability request curve corresponding to each hygiene product type in the sales region; based on the decomposition quality corresponding to each group of variational mode decomposition parameters, generate the optimal variational mode decomposition parameters of the sales region.

[0008] Further, based on the optimal variational mode decomposition parameters, perform variational mode decomposition on the traceability request curve corresponding to each hygiene product type in the sales region to determine the traceability request correlation coefficients of multiple hygiene products in the sales region, including: for each hygiene product type, perform variational mode decomposition on the traceability request curve corresponding to the hygiene product type in the sales region based on the optimal variational mode decomposition parameters to generate multiple modal decomposition components corresponding to the hygiene product type; for any two hygiene product types, based on the multiple modal decomposition components corresponding to the two hygiene product types, calculate the traceability request correlation coefficients of the two hygiene product types in the sales region.

[0009] Further, based on the traceability request curves corresponding to each type of hygiene product in multiple sales regions, determine the traceability request correlation coefficient between any two sales regions, including: for any two sales regions, based on the traceability request curves corresponding to each type of hygiene product in the two sales regions, calculate the traceability request correlation coefficient corresponding to each type of hygiene product in the two sales regions, and based on the traceability request correlation coefficients corresponding to each type of hygiene product in the two sales regions, determine the traceability request correlation coefficient between any two sales regions.

[0010] Further, based on the traceability request correlation characteristics of the multiple hygiene products, store the encrypted full-cycle traceability data of the multiple hygiene products in multiple distributed storage nodes, including: for each hygiene product, based on the traceability request correlation coefficient between any two sales regions, the traceability request correlation coefficients of multiple hygiene products in each sales region, and the full-cycle traceability data of the hygiene products already stored in each distributed storage node, determine the optimal distributed storage node for the hygiene product, and store the full-cycle traceability data of the hygiene product in the optimal distributed storage node.

[0011] Further, based on the traceability request correlation coefficient between any two sales regions, the traceability request correlation coefficients of multiple hygiene products in each sales region, and the full-cycle traceability data of the hygiene products already stored in each distributed storage node, determine the optimal distributed storage node for the hygiene product, including: for each distributed storage node, based on the sales region corresponding to the hygiene product, the traceability request correlation coefficient between any two sales regions, and the full-cycle traceability data of the hygiene products already stored in the distributed storage node, determine the first priority value of the distributed storage node; based on the first priority values of each distributed storage node, determine multiple candidate distributed storage nodes; for each candidate distributed storage node, based on the traceability request correlation coefficients of multiple hygiene products in the sales region corresponding to the hygiene product and the full-cycle traceability data of the hygiene products already stored in the distributed storage node, determine the second priority value of the candidate distributed storage node; based on the second priority values of each candidate distributed storage node, determine the optimal distributed storage node for the hygiene product.

[0012] Further, based on the sales region corresponding to the hygiene product, the traceability request correlation coefficient between any two sales regions, and the full-cycle traceability data of the hygiene products already stored in the distributed storage node, determine the first priority value of the distributed storage node, including: based on the full-cycle traceability data of the hygiene products already stored in the distributed storage node, determine the quantity of the hygiene products already stored in the distributed storage node corresponding to each sales region; based on the sales region corresponding to the hygiene product, the traceability request correlation coefficient between any two sales regions, and the quantity of the hygiene products already stored in the distributed storage node corresponding to each sales region, determine the first priority value of the distributed storage node.

[0013] Further, based on the traceability request initiated by the mobile terminal, retrieve the full-cycle traceability data of the target hygiene product from the multiple distributed storage nodes, including: based on the traceability request initiated by the mobile terminal, determine the target distributed storage node and storage location corresponding to the target hygiene product; based on the storage location of the target hygiene product, retrieve the full-cycle traceability data of the target hygiene product from the target distributed storage node corresponding to the target hygiene product.

[0014] The present invention provides a traceability system for hygiene products based on data processing, which is used to execute the above-mentioned traceability method for hygiene products based on data processing, including: a traceability test module, which is used to obtain the traceability request records of multiple test hygiene products; a correlation analysis module, which is used to determine the traceability request correlation characteristics of multiple hygiene products based on the traceability request records of multiple test hygiene products; a data processing module, which is used to obtain the full-cycle traceability data of multiple hygiene products and encrypt the full-cycle traceability data of multiple hygiene products; the data processing module is further used to store the encrypted full-cycle traceability data of multiple hygiene products in multiple distributed storage nodes based on the traceability request correlation characteristics of the multiple hygiene products; the data processing module is further used to generate a two-dimensional code corresponding to each hygiene product based on the storage location of the hygiene product; a traceability query module, which is used to receive the traceability request initiated by the mobile terminal based on the two-dimensional code corresponding to the hygiene product; the traceability query module is further used to retrieve the full-cycle traceability data of the target hygiene product from the multiple distributed storage nodes based on the traceability request initiated by the mobile terminal, and send the full-cycle traceability data of the target hygiene product to the mobile terminal.

[0015] Compared with the prior art, the traceability method and system for hygiene products based on data processing provided in this specification have at least the following beneficial effects:

[0016] 1. Through automated and digital means, a large number of traceability requests can be processed quickly. Compared with traditional manual traceability methods, the efficiency is significantly improved. With the help of full-cycle traceability data, the integrity and accuracy of traceability information can be ensured, enabling consumers or regulatory agencies to obtain true and reliable information on the source of hygiene products. Encrypting the full-cycle traceability data of hygiene products effectively prevents data leakage and illegal access, protecting personal privacy and enterprise data security. The use of distributed storage nodes further enhances the reliability and security of data. Even if some nodes fail, the data can still be recovered from other nodes. Consumers can easily initiate a traceability request by scanning the QR code on the hygiene product to obtain detailed product information, thereby increasing consumers' trust in the product source and quality. This transparency also helps consumers better supervise the market and promotes the healthy development of the hygiene product industry. When product quality problems are found, enterprises can quickly locate the batches and flows of the problem products through the traceability system to achieve efficient product recalls. Traceability data can also be used for product quality analysis and improvement to help enterprises improve product quality and management levels. It promotes the development of the hygiene product industry towards digitalization and intelligentization, improving the overall competitiveness of the industry. Through digital means, enterprises can better understand customer needs, optimize production processes, and improve operational efficiency;

[0017] 2. The application of variational mode decomposition technology enables the traceability request data to be decomposed and analyzed more effectively, thereby revealing the patterns and trends hidden behind the data. This improves the efficiency and accuracy of data processing and provides strong support for enterprise decision-making. By storing the full-cycle traceability data in the optimal distributed storage nodes based on the correlation features of traceability requests, fast access and efficient storage of data can be ensured. This reduces data retrieval time, improves the user experience, and reduces storage costs. The use of distributed storage nodes not only improves the reliability of data but also enhances its security. Even if some nodes are attacked or fail, the data can still be recovered from other nodes to ensure the integrity and continuity of traceability information. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] This specification will further illustrate in the form of exemplary embodiments, and these exemplary embodiments will be described in detail through the drawings. These embodiments are not restrictive. In these embodiments, the same numbers represent the same structures, where:

[0019] Figure 1 is a flowchart of a traceability method for hygiene products based on data processing shown in an embodiment of the present application;

[0020] Figure 2 is a module diagram of a traceability system for hygiene products based on data processing shown in an embodiment of the present application. Detailed implementation manners

[0021] To more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly introduces the drawings required for the description of the embodiments.

[0022] Figure 1 is a flowchart of a traceability method for hygiene products based on data processing shown in an embodiment of the present application. As Figure 1 shown, a traceability method for hygiene products based on data processing may include the following steps.

[0023] Step 1: Obtain traceability request records of multiple test hygiene products.

[0024] Specifically, the multiple test hygiene products may belong to different types of hygiene products. For example:

[0025] I. Absorbent hygiene products

[0026] 1. Feminine hygiene products

[0027] Sanitary napkins: Hygiene products designed specifically for women during menstruation, with the function of absorbing menstrual blood.

[0028] Panty liners: Used for mild protection during daily life or before and after menstruation. Usually smaller in size and convenient to carry.

[0029] Tampons: An internal hygiene product used to absorb menstrual blood, suitable for women who like to move freely.

[0030] 2. Men's hygiene products

[0031] Male incontinence pads: Incontinence care products designed specifically for men, usually with strong water absorption characteristics, suitable for patients with mild to moderate incontinence.

[0032] Male urine pads: Similar to incontinence pads, but may pay more attention to portability and easy replacement.

[0033] 3. Baby hygiene products

[0034] Baby diapers: Hygiene products designed specifically for babies, with strong water absorption and breathability to keep the baby's skin dry.

[0035] Baby pull-ups: A diaper design similar to underwear, convenient for the baby to move, suitable for toddlers.

[0036] 4. Adult incontinence products

[0037] Adult diapers: Similar to baby diapers, but the size and water absorption may be more suitable for adult needs.

[0038] Adult urine pads: Used for incontinence protection in bed or on a wheelchair, with waterproof and water-absorbing functions.

[0039] II. Non-absorbent hygiene products

[0040] 1. Wet wipes

[0041] Cleaning wet wipes: Used for cleaning hands, face or other parts of the body, usually containing moisturizing or antibacterial ingredients.

[0042] Makeup remover wet wipes: Wet wipes specifically for removing makeup, convenient and fast, suitable for travel or daily use.

[0043] 2. Dry wipes

[0044] Paper towels: Dry paper used for wiping hands, face or other parts of the body, usually divided into ordinary paper towels and premium paper towels.

[0045] Kitchen paper towels: Have stronger oil absorption and water absorption, suitable for kitchen cleaning and food handling.

[0046] 3. Other non-absorbent hygiene products

[0047] Toilet seat paper: Disposable sanitary seat paper for toilet seats to prevent cross-infection.

[0048] Hygiene gloves: Hygiene gloves used in specific situations, such as kitchen cooking, cleaning work, etc.

[0049] III. Hygiene products for special purposes

[0050] 1. Swimming / sports hygiene products

[0051] Swimming earplugs: Used to prevent water from entering the ears during swimming to protect hearing.

[0052] Nose clips: Used to prevent water from entering the nasal cavity during swimming or diving.

[0053] 2. Travel hygiene products

[0054] Portable toilet seat: Portable seat paper for maintaining toilet seat hygiene during travel.

[0055] Travel wet wipes and paper towels: Easy to carry, meeting the cleaning needs during travel.

[0056] 3. Other hygiene products for special purposes

[0057] Oral care products: Such as dental floss, mouthwash, etc., used for oral cleaning and care.

[0058] Eye care products: Such as eye wash, eye masks, etc., used for eye comfort and care.

[0059] The traceability request records of the test hygiene products may include the traceability requests for the test hygiene products initiated by a mobile terminal (e.g., the mobile phone used by the user) at multiple historical time points.

[0060] Step 2: Based on the traceability request records of multiple test hygiene products, determine the traceability request correlation features of various hygiene products.

[0061] Specifically, Step 2 may include:

[0062] Based on the traceability request records of multiple test hygiene products, determine the traceability request curve corresponding to each type of hygiene product in multiple sales regions, where the traceability request curve corresponding to each type of hygiene product in the sales region is generated based on the number of traceability requests for the hygiene product type in multiple test time periods in the sales region;

[0063] For each sales region, based on the traceability request curve corresponding to each type of hygiene product in the sales region, generate the optimal variational mode decomposition parameters for the sales region, and based on the optimal variational mode decomposition parameters, perform variational mode decomposition on the traceability request curve corresponding to each type of hygiene product in the sales region to determine the traceability request correlation coefficients of various hygiene products in the sales region;

[0064] Based on the traceability request curves corresponding to each type of hygiene product in multiple sales regions, determine the traceability request correlation coefficients between any two sales regions, where the traceability request correlation features of various hygiene products include the traceability request correlation coefficients of various hygiene products in each sales region and the traceability request correlation coefficients between any two sales regions.

[0065] Merely by way of example, generating the optimal variational mode decomposition parameters for the sales region based on the traceability request curve corresponding to each type of hygiene product in the sales region includes:

[0066] Extract the curve features of the traceability request curve corresponding to each type of hygiene product in the sales region, such as variance, mean, peak value, valley value, etc.;

[0067] Based on the curve features of the traceability request curve corresponding to each type of hygiene product in the sales region, generate multiple groups of variational mode decomposition parameters for the sales region, where the variational mode decomposition parameters may include the number of modes, balance parameter, time length, convergence tolerance, etc.;

[0068] For each group of variational mode decomposition parameters, based on the variational mode decomposition parameters, evaluate the decomposition quality corresponding to the variational mode decomposition parameters for the traceability request curve corresponding to each type of hygiene product in the sales region;

[0069] Based on the decomposition quality corresponding to each group of variational mode decomposition parameters, generate the optimal variational mode decomposition parameters for the sales region.

[0070] Specifically, the parameter generation model can generate multiple sets of variational mode decomposition parameters for the sales area based on the curve characteristics of the traceability request curve corresponding to each type of hygiene product in the sales area. Among them, the parameter generation model can be a recurrent neural network model.

[0071] Multiple decomposition quality evaluation indicators can be determined. Based on the multiple decomposition quality evaluation indicators, the decomposition quality corresponding to the variational mode decomposition parameters is evaluated. Among them, the multiple decomposition quality evaluation indicators can at least include:

[0072] 1. Central frequency stability index:

[0073] Evaluate whether the central frequency of each modal component obtained by decomposition is stable. Ideally, the central frequencies of each mode should remain relatively stable throughout the decomposition process and should not show excessive fluctuations.

[0074] 2. Bandwidth rationality index:

[0075] Check whether the bandwidth of each modal component is reasonable. The bandwidth should be moderate, neither too wide nor too narrow. An overly wide bandwidth may mean that the modal component contains too many different frequency components, while an overly narrow bandwidth may lead to information loss.

[0076] 3. Modal orthogonality index:

[0077] Evaluate the orthogonality between different modal components. Ideally, each modal component should be orthogonal to each other, that is, the correlation between them should be as small as possible. This helps to ensure that the decomposed modal components are independent of each other in the frequency domain.

[0078] 4. Reconstruction error index:

[0079] Calculate the error between the original traceability request curve and the curve reconstructed after variational mode decomposition. The smaller the reconstruction error, the higher the decomposition quality.

[0080] 5. Sparsity index:

[0081] Evaluate the sparsity of the modal components obtained by decomposition in the frequency domain. Sparsity is reflected in the bandwidth of the spectral domain, that is, each modal component should mainly surround its central frequency and have a limited bandwidth. Sparsity helps to extract the key features in the original signal.

[0082] 6. Algorithm convergence index:

[0083] Check the convergence of the variational mode decomposition algorithm. The algorithm should converge to a stable solution within a reasonable number of iterations. Poor convergence may mean that the parameter settings are unreasonable or there are problems with the algorithm implementation.

[0084] For example, for each set of variational mode decomposition parameters, based on the variational mode decomposition parameters, decompose the traceability request curve corresponding to each type of hygiene product in the sales area to generate a decomposition result. The decomposition quality corresponding to the variational mode decomposition parameters can be evaluated by a quality evaluation model based on multiple decomposition quality evaluation indicators and the decomposition result. Among them, the quality evaluation model can be a recurrent neural network model.

[0085] Based on the decomposition quality corresponding to each set of variational mode decomposition parameters, the optimal variational mode decomposition parameters for the sales area can be generated by a genetic algorithm.

[0086] Only as an example, based on the optimal variational mode decomposition parameters, perform variational mode decomposition on the traceability request curve corresponding to each type of hygiene product in the sales area to determine the traceability request correlation coefficients of various hygiene products in the sales area, including:

[0087] For each type of hygiene product, based on the optimal variational mode decomposition parameters, perform variational mode decomposition on the traceability request curve corresponding to the hygiene product type in the sales area to generate multiple modal decomposition components corresponding to the hygiene product type;

[0088] For any two types of hygiene products, based on the multiple modal decomposition components corresponding to the two types of hygiene products, calculate the traceability request correlation coefficients of the two types of hygiene products in the sales area.

[0089] Specifically, for any two types of hygiene products, the Pearson correlation coefficient of each modal decomposition component of the two types of hygiene products can be calculated, and based on the Pearson correlation coefficient of each modal decomposition component of the two types of hygiene products, the traceability request correlation coefficients of the two types of hygiene products in the sales area can be calculated.

[0090] For example, the traceability request correlation coefficients of the two types of hygiene products in the sales area can be calculated based on the following formula:

[0091]

[0092] Among them, is the traceability request correlation coefficient between the i-th type of hygiene product and the j-th type of hygiene product in the e-th sales area, is the Pearson correlation coefficient between the k-th modal decomposition component of the i-th type of hygiene product and the k-th modal decomposition component of the j-th type of hygiene product in the e-th sales area, is the number of modes of the optimal variational mode decomposition parameters corresponding to the e-th sales area.

[0093] It is understandable that the greater the correlation coefficient of the traceability requests for the two types of hygiene products in the sales area, the more similar the changes in the number of traceability requests for the two types of hygiene products in the sales area are. That is, in the sales area, when the number of traceability requests for one type of hygiene product increases during a certain period, the number of traceability requests for the other type of hygiene product may also increase during that period.

[0094] Only as an example, based on the traceability request curves corresponding to each type of hygiene product in multiple sales areas, determining the correlation coefficient of the traceability requests between any two sales areas includes:

[0095] For any two sales areas, based on the traceability request curves corresponding to each type of hygiene product in the two sales areas, calculating the correlation coefficient of the traceability requests corresponding to each type of hygiene product in the two sales areas, and based on the correlation coefficient of the traceability requests corresponding to each type of hygiene product in the two sales areas, determining the correlation coefficient of the traceability requests between any two sales areas.

[0096] Specifically, for any two sales areas, based on the traceability request curves corresponding to each type of hygiene product in the two sales areas, calculating the Pearson correlation coefficient corresponding to each type of hygiene product in the two sales areas as the correlation coefficient of the traceability requests corresponding to each type of hygiene product in the two sales areas.

[0097] For example, the correlation coefficient of the traceability requests between two sales areas can be calculated based on the following formula:

[0098]

[0099] Wherein, is the correlation coefficient of the traceability requests between the e-th sales area and the f-th sales area, is the total number of traceability requests for the i-th type of hygiene product corresponding to the e-th sales area in the traceability request records of multiple test hygiene products, is the total number of traceability requests for the i-th type of hygiene product corresponding to the f-th sales area in the traceability request records of multiple test hygiene products, is the total number of traceability requests for the j-th type of hygiene product corresponding to the e-th sales area in the traceability request records of multiple test hygiene products, is the total number of traceability requests for the j-th type of hygiene product corresponding to the f-th sales area in the traceability request records of multiple test hygiene products, is the correlation coefficient of the traceability requests corresponding to the i-th type of hygiene product between the e-th sales area and the f-th sales area, is the total number of types of hygiene products.

[0100] By calculating , higher weights can be assigned to the traceability request correlation coefficients corresponding to more types of hygiene products for the traceability request, so as to increase the influence degree of the types of hygiene products with more traceability requests when calculating the traceability request correlation coefficient between the e-th sales area and the f-th sales area. This formula comprehensively reflects the association between the two sales areas in terms of traceability requests by summarizing the total number of traceability requests of the two sales areas for different types of hygiene products, and provides auxiliary information for storing the full-cycle traceability data of multiple encrypted hygiene products in multiple distributed storage nodes later. The greater the traceability request correlation coefficient between the two sales areas, the more similar the change in the number of traceability requests of the two sales areas is, that is, when the number of traceability requests in a certain sales area increases during a certain period, the number of traceability requests in the other sales area may also increase.

[0101] Step 3, obtain the full-cycle traceability data of multiple hygiene products.

[0102] Specifically, the full-cycle traceability data of hygiene products may include:

[0103] 1. Raw material traceability data: raw material supplier name and contact information, raw material batch number and production date, raw material quality certification documents and test reports, raw material transportation and storage condition records;

[0104] 2. Production process traceability data: production manufacturer name and address, production batch number and date, production process and equipment usage records, production environment (such as temperature, humidity) monitoring records, quality control points and test results;

[0105] 3. Packaging and transportation traceability data: packaging material supplier and batch information, packaging date and location, transportation method and route, date and time of arrival at the test location;

[0106] 4. Test records and results: test methods and standards, test equipment and instrument calibration records, test personnel names and qualifications, test results and data analysis.

[0107] Step 4, encrypt the full-cycle traceability data of multiple hygiene products.

[0108] Specifically, according to the encryption scheme, the corresponding encryption key and decryption key are generated. For the asymmetric encryption method, a public key and a private key pair need to be generated. The generated encryption key is used to encrypt the full-cycle traceability data of the hygiene products. The full-cycle traceability data of the hygiene products can be divided into different data blocks and encrypted separately to improve the encryption efficiency and security.

[0109] Step 5, based on the traceability request association characteristics of multiple hygiene products, store the encrypted full-cycle traceability data of multiple hygiene products in multiple distributed storage nodes.

[0110] Specifically, step 5 specifically includes:

[0111] For each sanitary product, based on the traceability request correlation coefficients between any two sales regions, the traceability request correlation coefficients of multiple sanitary products in each sales region, and the full-cycle traceability data of the sanitary products stored in each distributed storage node, determine the optimal distributed storage node for the sanitary product, and store the full-cycle traceability data of the sanitary product in the optimal distributed storage node.

[0112] Merely by way of example, based on the traceability request correlation coefficients between any two sales regions, the traceability request correlation coefficients of multiple sanitary products in each sales region, and the full-cycle traceability data of the sanitary products stored in each distributed storage node, determining the optimal distributed storage node for the sanitary product includes:

[0113] For each distributed storage node, based on the sales region corresponding to the sanitary product, the traceability request correlation coefficients between any two sales regions, and the full-cycle traceability data of the sanitary products stored in the distributed storage node, determine the first priority value of the distributed storage node;

[0114] Based on the first priority values of each distributed storage node, determine multiple candidate distributed storage nodes;

[0115] For each candidate distributed storage node, based on the traceability request correlation coefficients of multiple sanitary products in the sales region corresponding to the sanitary product and the full-cycle traceability data of the sanitary products stored in the distributed storage node, determine the second priority value of the candidate distributed storage node;

[0116] Based on the second priority values of each candidate distributed storage node, determine the optimal distributed storage node for the sanitary product.

[0117] Merely by way of example, based on the sales region corresponding to the sanitary product, the traceability request correlation coefficients between any two sales regions, and the full-cycle traceability data of the sanitary products stored in the distributed storage node, determining the first priority value of the distributed storage node includes:

[0118] Based on the full-cycle traceability data of the sanitary products stored in the distributed storage node, determine the quantity of the sanitary products stored in the distributed storage node corresponding to each sales region;

[0119] Based on the sales region corresponding to the sanitary product, the traceability request correlation coefficients between any two sales regions, and the quantity of the sanitary products stored in the distributed storage node corresponding to each sales region, determine the first priority value of the distributed storage node.

[0120] For example, the first priority value of the distributed storage node can be calculated based on the following formula:

[0121]

[0122] Among them, is the first priority value of the g-th distributed storage node, is the quantity of the stored hygiene products corresponding to the g-th distributed storage node for the e-th sales area, is the traceability request correlation coefficient between the e-th sales area and the sales area corresponding to the hygiene products, is the total number of sales areas.

[0123] In order to optimize the data retrieval efficiency and avoid data retrieval congestion in a certain distributed storage node, the distributed storage nodes can be sorted according to the first priority value of the distributed storage nodes, and the distributed storage nodes with higher rankings (for example, the first 3, the first 5, etc.) are used as candidate distributed storage nodes.

[0124] It can be understood that the greater the traceability request correlation coefficient between two sales areas, the more similar the change situation of the number of traceability requests in the two sales areas is, that is, when the number of traceability requests in one sales area increases in a certain time period, the number of traceability requests in the other sales area may also increase. When allocating the full-cycle traceability data of hygiene products, if the traceability request correlation coefficient between the sales area corresponding to the full-cycle traceability data of the stored hygiene products in a certain distributed storage node and the sales area corresponding to the hygiene products to be stored is greater, it indicates that if the full-cycle traceability data of the hygiene products to be stored is stored in this distributed storage node, the probability that multiple sales areas simultaneously initiate traceability requests to retrieve data from this distributed storage node is greater, that is, the possibility of data retrieval congestion in this distributed storage node is greater, and the greater the quantity of the stored hygiene products in the sales area, the greater the possibility of data retrieval congestion. Therefore, the first priority value of this distributed storage node is lower.

[0125] For example, the second priority value of the candidate distributed storage node can be calculated based on the following formula:

[0126]

[0127] Among them, is the second priority value of the g-th candidate distributed storage node, is the quantity of the stored hygiene products of the i-th type of hygiene products corresponding to the sales area of the hygiene products corresponding to the g-th candidate distributed storage node, is the traceability request correlation coefficient between the i-th type of hygiene products corresponding to the sales area of the hygiene products and the type of hygiene products corresponding to the hygiene products.

[0128] The above formula comprehensively considers the number of sanitary products stored in the sales area of ​​sanitary products and the traceability request correlation coefficient, and can more accurately evaluate the priority of each candidate distributed storage node. It can be understood that the larger the traceability request correlation coefficient of the two types of sanitary products in the sales area, the more similar the changes in the number of traceability requests of the two types of sanitary products in the sales area, that is, in the sales area, if the number of traceability requests of one type of sanitary products in a certain time period increases, the number of traceability requests of the other type of sanitary products in the same time period may also increase. When allocating full-cycle traceability data of sanitary products, the greater the correlation coefficient between the i-th sanitary product type in the sales area corresponding to the sanitary products to be stored and the traceability request type corresponding to the sanitary products to be stored, it indicates that if the full-cycle traceability data of the sanitary products to be stored are stored in the distributed storage node, the probability that the sales area corresponding to the sanitary products to be stored will simultaneously initiate a traceability request to retrieve data from the distributed storage node is greater, that is, the possibility of data retrieval congestion in the distributed storage node is greater, and the greater the number of stored sanitary products of the i-th sanitary product type in the sales area corresponding to the sanitary products to be stored in the candidate distributed storage node, the greater the possibility of data retrieval congestion. Therefore, the second priority value of the distributed storage node is lower.

[0129] The calculated second priority value makes it easier to identify which nodes are more suitable for storing specific types of sanitary products, thereby optimizing the allocation of storage resources. With accurate priority evaluation, sanitary products can be more effectively allocated to nodes with high priority, reducing the waste of storage resources. This allocation method also helps to improve the efficiency and response speed of data access.

[0130] The second priority value of the candidate distributed storage node with the largest second priority value can be used as the optimal distributed storage node for sanitary products.

[0131] The full-cycle traceability data of sanitary products is stored in the optimal distributed storage node. During the data transmission process, secure transmission protocols (such as HTTPS, TLS, etc.) are used to ensure the security of data during transmission.

[0132] Step 6: For each sanitary product, generate a QR code corresponding to the sanitary product based on the storage location of the sanitary product.

[0133] Specifically, a QR code generator, such as QR Code Generator, Zxing, etc., may be used to generate a QR code corresponding to the sanitary product based on the storage location of the sanitary product.

[0134] Step 7: receiving a traceability request initiated by the mobile terminal based on the QR code corresponding to the sanitary product.

[0135] Specifically, the user can initiate a traceability request by scanning the QR code printed on the hygiene product through a mobile terminal (such as a mobile phone, etc.).

[0136] Step 8: Based on the traceability request initiated by the mobile terminal, retrieve the full-cycle traceability data of the target hygiene product from multiple distributed storage nodes, and send the full-cycle traceability data of the target hygiene product to the mobile terminal.

[0137] Specifically, Step 8 specifically includes:

[0138] Based on the traceability request initiated by the mobile terminal, determine the target distributed storage node and storage location corresponding to the target hygiene product;

[0139] Based on the storage location of the target hygiene product, retrieve the full-cycle traceability data of the target hygiene product from the target distributed storage node corresponding to the target hygiene product.

[0140] Figure 2 It is a module diagram of a traceability system for hygiene products based on data processing shown in an embodiment of the present application. As Figure 2 shown, a traceability system for hygiene products based on data processing may include a traceability test module, an association analysis module, a data processing module, and a traceability query module.

[0141] The traceability test module is used to obtain the traceability request records of multiple test hygiene products;

[0142] The association analysis module is used to determine the traceability request association characteristics of multiple hygiene products based on the traceability request records of multiple test hygiene products;

[0143] The data processing module is used to obtain the full-cycle traceability data of multiple hygiene products and encrypt the full-cycle traceability data of multiple hygiene products;

[0144] The data processing module is also used to store the encrypted full-cycle traceability data of multiple hygiene products into multiple distributed storage nodes based on the traceability request association characteristics of multiple hygiene products;

[0145] The data processing module is also used to generate a QR code corresponding to each hygiene product based on the storage location of the hygiene product;

[0146] The traceability query module is used to receive the traceability request initiated by the mobile terminal based on the QR code corresponding to the hygiene product;

[0147] The traceability query module is also used to retrieve the full-cycle traceability data of the target hygiene product from multiple distributed storage nodes based on the traceability request initiated by the mobile terminal, and send the full-cycle traceability data of the target hygiene product to the mobile terminal.

[0148] A traceability system for hygiene products based on data processing can be used to execute a traceability method for hygiene products based on data processing, which will not be elaborated here.

[0149] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other deformations may also fall within the scope of this specification. Therefore, by way of example and not limitation, alternative configurations of the embodiments of this specification can be regarded as consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims

1. A method for tracing the source of sanitary products based on data processing, characterized in that: include: Obtain traceability request records for multiple test hygiene products; Based on the traceability request records of multiple test sanitary products, the traceability request correlation features of multiple sanitary products are determined; Obtain full-cycle traceability data for multiple sanitary products; Encrypt the full-cycle traceability data of multiple sanitary products; Based on the traceability request association features of the multiple sanitary products, storing the encrypted full-cycle traceability data of the multiple sanitary products into multiple distributed storage nodes; For each sanitary product, a QR code corresponding to the sanitary product is generated based on the storage location of the sanitary product; Receiving a traceability request initiated by a mobile terminal based on a QR code corresponding to the sanitary product; Based on the traceability request initiated by the mobile terminal, retrieve the full-cycle traceability data of the target sanitary products from the multiple distributed storage nodes, and send the full-cycle traceability data of the target sanitary products to the mobile terminal; Based on the traceability request records of multiple test sanitary products, the traceability request correlation features of multiple sanitary products are determined, including: Based on the traceability request records of multiple test sanitary products, determining the traceability request curves corresponding to each type of sanitary products in multiple sales areas, wherein the traceability request curves corresponding to each type of sanitary products in the sales area are generated based on the number of traceability requests for the sanitary product type in multiple test time periods in the sales area; For each sales area, based on the traceability request curve corresponding to each type of sanitary products in the sales area, the optimal variational modal decomposition parameters of the sales area are generated; based on the optimal variational modal decomposition parameters, the traceability request curve corresponding to each type of sanitary products in the sales area is subjected to variational modal decomposition to determine the traceability request correlation coefficients of the various sanitary products in the sales area; Determine the traceability request correlation coefficient between any two sales areas based on the traceability request curves corresponding to each type of sanitary products in the multiple sales areas, wherein the traceability request correlation characteristics of the multiple sanitary products include the traceability request correlation coefficients of the multiple sanitary products in each sales area and the traceability request correlation coefficients of any two sales areas; Based on the traceability request association features of the multiple sanitary products, the encrypted full-cycle traceability data of the multiple sanitary products are stored in multiple distributed storage nodes, including: For each sanitary product, based on the traceability request correlation coefficient between any two sales areas, the traceability request correlation coefficients of multiple sanitary products in each sales area, and the full-cycle traceability data of sanitary products stored in each distributed storage node, the optimal distributed storage node for the sanitary product is determined, and the full-cycle traceability data of the sanitary product is stored in the optimal distributed storage node.

2. A method for tracing the source of sanitary products based on data processing according to claim 1, characterized in that: Based on the traceability request curve corresponding to each type of sanitary products in the sales area, the optimal variational mode decomposition parameters of the sales area are generated, including: Extract the curve characteristics of the traceability request curve corresponding to each type of sanitary products in the sales area; Based on the curve characteristics of the traceability request curve corresponding to each type of sanitary products in the sales area, multiple groups of variational mode decomposition parameters of the sales area are generated; For each set of variational mode decomposition parameters, based on the traceability request curve corresponding to each type of sanitary products in the sales area, the decomposition quality corresponding to the variational mode decomposition parameters is evaluated; Based on the decomposition quality corresponding to each set of variational mode decomposition parameters, the optimal variational mode decomposition parameters of the sales area are generated.

3. A method for tracing the source of sanitary products based on data processing according to claim 2, characterized in that: Based on the optimal variational mode decomposition parameters, the traceability request curve corresponding to each type of sanitary products in the sales area is subjected to variational mode decomposition to determine the traceability request correlation coefficients of various sanitary products in the sales area, including: For each type of sanitary product, variational modal decomposition is performed on the traceability request curve corresponding to the sanitary product type in the sales area based on the optimal variational modal decomposition parameters to generate multiple modal decomposition components corresponding to the sanitary product type; For any two types of sanitary products, based on multiple modal decomposition components corresponding to the two types of sanitary products, the traceability request correlation coefficient of the two types of sanitary products in the sales area is calculated.

4. A method for tracing the source of sanitary products based on data processing according to claim 1, characterized in that: Based on the traceability request curves corresponding to each type of sanitary products in multiple sales areas, the traceability request correlation coefficients of any two sales areas are determined, including: For any two sales areas, based on the traceability request curves corresponding to each type of sanitary products in the two sales areas, calculate the traceability request correlation coefficient corresponding to each type of sanitary products in the two sales areas; based on the traceability request correlation coefficient corresponding to each type of sanitary products in the two sales areas, determine the traceability request correlation coefficient of any two sales areas.

5. A method for tracing the source of sanitary products based on data processing according to claim 1, characterized in that: Based on the traceability request correlation coefficients of any two sales areas, the traceability request correlation coefficients of multiple sanitary products in each sales area, and the full-cycle traceability data of sanitary products stored in each distributed storage node, the optimal distributed storage node for sanitary products is determined, including: For each distributed storage node, based on the sales area corresponding to the sanitary products, the traceability request correlation coefficient between any two sales areas, and the full-cycle traceability data of the sanitary products stored in the distributed storage node, determine the first priority value of the distributed storage node; Determining a plurality of candidate distributed storage nodes based on the first priority value of each distributed storage node; For each candidate distributed storage node, based on the traceability request correlation coefficients of multiple sanitary products in the sales area corresponding to the sanitary products and the full-cycle traceability data of the sanitary products stored in the distributed storage node, determine the second priority value of the candidate distributed storage node; Based on the second priority value of each candidate distributed storage node, an optimal distributed storage node for sanitary products is determined.

6. A method for tracing the source of sanitary products based on data processing according to claim 5, characterized in that: Based on the sales area corresponding to the sanitary products, the traceability request correlation coefficient between any two sales areas, and the full-cycle traceability data of the sanitary products stored in the distributed storage node, the first priority value of the distributed storage node is determined, including: Based on the full-cycle traceability data of the stored sanitary products in the distributed storage nodes, determine the quantity of sanitary products stored in each sales area of ​​the distributed storage nodes; The first priority value of the distributed storage node is determined based on the sales area corresponding to the sanitary products, the traceability request correlation coefficient between any two sales areas, and the number of sanitary products stored in the distributed storage node corresponding to each sales area.

7. A method for tracing the source of sanitary products based on data processing according to any one of claims 1 to 4, characterized in that: Based on the traceability request initiated by the mobile terminal, the full-cycle traceability data of the target sanitary products are retrieved from the multiple distributed storage nodes, including: Based on the traceability request initiated by the mobile terminal, determine the target distributed storage node and storage location corresponding to the target sanitary products; Based on the storage location of the target sanitary products, the full-cycle traceability data of the target sanitary products is retrieved from the target distributed storage nodes corresponding to the target sanitary products.

8. A traceability system for sanitary products based on data processing, characterized in that: A method for tracing the source of sanitary products based on data processing according to any one of claims 1 to 7, comprising: A traceability test module is used to obtain traceability request records of multiple test sanitary products; A correlation analysis module, for determining correlation features of traceability requests for multiple sanitary products based on traceability request records for multiple test sanitary products; A data processing module, used for obtaining full-cycle traceability data of multiple sanitary products and encrypting the full-cycle traceability data of multiple sanitary products; The data processing module is further used to store the encrypted full-cycle traceability data of the plurality of sanitary products to a plurality of distributed storage nodes based on the traceability request association features of the plurality of sanitary products; The data processing module is also used to generate a QR code corresponding to each sanitary product based on the storage location of the sanitary product; A traceability query module, used to receive a traceability request initiated by a mobile terminal based on a QR code corresponding to the sanitary product; The traceability query module is also used to retrieve the full-cycle traceability data of the target sanitary products from the multiple distributed storage nodes based on the traceability request initiated by the mobile terminal, and send the full-cycle traceability data of the target sanitary products to the mobile terminal.

Citation Information

Patent Citations

  • Distributed storage big data migration system based on load balancing

    CN110019107A

  • Block chain-based fast moving consumer goods excitation method, device and medium

    CN110990895A