Tracing method and system for hygienic products based on data processing
By encrypting and distributed storage of full-cycle traceability data of sanitary products and using the QR code traceability system, the problem of difficult tracing of sanitary products production data in the existing technology is solved, and rapid, accurate and safe traceability services are achieved, enhancing user trust and industry development.
Patent Information
- Application Number
- CN202510388477.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-03-31
AI Technical Summary
The existing technology is difficult to effectively trace the raw materials, sources and production processes of sanitary products, making it difficult for users to understand the real information of the products, and the market is full of counterfeit and shoddy products, which harms user interests and industry development.
By obtaining and encrypting the full-cycle traceability data of sanitary products, the data is stored in a distributed storage node based on the traceability request association characteristics, and a QR code is generated, so that users can initiate traceability requests through mobile terminals, retrieve and send relevant data.
It realizes the rapid, accurate and secure handling of a large number of traceability requests, ensures the integrity and security of data, improves users' trust in product sources and quality, promotes the healthy development of the industry, and supports efficient management of enterprises and product quality improvement.
Smart Images

Figure CN119904250A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a tracing method and system for sanitary products based on data processing. Background Art
[0002] At present, there are various kinds of sanitary products on the market. Users often choose different types of products according to their own needs. The existence of numerous sanitary products provides users with a wider range of choices. However, in order to pursue greater economic benefits, some merchants do not hesitate to sell inferior products as good ones, or even fake and shoddy products to users, which greatly damages the interests of users themselves. At the same time, the uneven quality of sanitary products on the market and the prevalence of various fake and shoddy products are also not conducive to the healthy development of the sanitary products industry.
[0003] In the prior art, users who want to know the raw materials, sources, production process and other data of sanitary products usually read the instructions of sanitary products directly. However, generally speaking, the instructions of sanitary products do not record the above production data or record them in detail, so that users cannot directly understand the production data in the production process of sanitary products.
[0004] Therefore, it is necessary to provide a method and system for tracing the source of sanitary products based on data processing, so as to facilitate users to trace the source of sanitary products. Summary of the invention
[0005] The present invention provides a traceability method for sanitary products based on data processing, comprising: obtaining traceability request records of multiple sanitary products for testing; determining traceability request association features of multiple sanitary products based on the traceability request records of multiple sanitary products for testing; obtaining full-cycle traceability data of multiple sanitary products; encrypting 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 in multiple distributed storage nodes; for each sanitary product, generating a QR 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 QR code corresponding to the sanitary product; based on the traceability request initiated by the mobile terminal, 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.
[0006] Furthermore, based on the traceability request records of multiple tested sanitary products, the traceability request association characteristics of multiple sanitary products are determined, including: based on the traceability request records of multiple tested sanitary products, determining the traceability request curves corresponding to each type of sanitary products in multiple sales areas, wherein the traceability request curve corresponding to each type of sanitary products in the sales area is 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, generating the optimal variational modal decomposition parameters of the sales area, based on the optimal variational modal decomposition parameters, performing variational modal decomposition on the traceability request curve corresponding to each type of sanitary products in the sales area, and determining the traceability request association coefficients of multiple sanitary products in the sales area; based on the traceability request curves corresponding to each type of sanitary products in multiple sales areas, determining the traceability request association coefficients of any two sales areas, wherein the traceability request association characteristics of multiple sanitary products include the traceability request association coefficients of multiple sanitary products in each sales area and the traceability request association coefficients of any two sales areas.
[0007] Furthermore, based on the traceability request curve corresponding to each type of sanitary product in the sales area, the optimal variational modal decomposition parameters of the sales area are generated, including: extracting curve features of the traceability request curve corresponding to each type of sanitary product in the sales area; generating multiple groups of variational modal decomposition parameters of the sales area based on the curve features of the traceability request curve corresponding to each type of sanitary product in the sales area; for each group of variational modal decomposition parameters, evaluating the decomposition quality corresponding to the variational modal decomposition parameters based on the variational modal decomposition parameters for the traceability request curve corresponding to each type of sanitary product in the sales area; generating the optimal variational modal decomposition parameters of the sales area based on the decomposition quality corresponding to each group of variational modal decomposition parameters.
[0008] Furthermore, based on the optimal variational modal decomposition parameters, variational modal decomposition is performed on the traceability request curve corresponding to each type of sanitary product in the sales area, and the traceability request correlation coefficients of the multiple sanitary products in the sales area are determined, 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 the multiple modal decomposition components corresponding to the two types of sanitary products, the traceability request correlation coefficients of the two types of sanitary products in the sales area are calculated.
[0009] Furthermore, based on the traceability request curves corresponding to each type of sanitary products in multiple sales areas, the traceability request correlation coefficient between any two sales areas is 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, the traceability request correlation coefficient corresponding to each type of sanitary products in the two sales areas is calculated; based on the traceability request correlation coefficient corresponding to each type of sanitary products in the two sales areas, the traceability request correlation coefficient between any two sales areas is determined.
[0010] Furthermore, based on the traceability request association characteristics 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 association coefficient of any two sales areas, the traceability request association coefficient 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 products is determined, and the full-cycle traceability data of the sanitary products is stored in the optimal distributed storage node.
[0011] Furthermore, based on the traceability request correlation coefficient of any two sales areas, the traceability request correlation coefficient 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 of any two sales areas, and the full-cycle traceability data of sanitary products stored in the distributed storage node, a first priority value of the distributed storage node is determined; based on the first priority value of each distributed storage node, multiple candidate distributed storage nodes are determined; for each candidate distributed storage node, based on the traceability request correlation coefficient of multiple sanitary products in the sales area corresponding to the sanitary products and the full-cycle traceability data of sanitary products stored in the distributed storage node, a second priority value of the candidate distributed storage node is determined; based on the second priority value of each candidate distributed storage node, the optimal distributed storage node for sanitary products is determined.
[0012] Furthermore, 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: determining the number of sanitary products stored in each sales area corresponding to the distributed storage node based on 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 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 each sales area corresponding to the distributed storage node.
[0013] Furthermore, 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, determining the target distributed storage nodes and storage locations corresponding to the target sanitary products; based on the storage location of the target sanitary products, retrieving the full-cycle traceability data of the target sanitary products from the target distributed storage nodes corresponding to the target sanitary products.
[0014] The present invention provides a tracing system for sanitary products based on data processing, which is used to execute the above-mentioned tracing method for sanitary products based on data processing, including: a tracing test module, which is used to obtain tracing request records of multiple test sanitary products; an association analysis module, which is used to determine the tracing request association characteristics of multiple sanitary products based on the tracing request records of multiple test sanitary products; a data processing module, which is used to obtain the full-cycle tracing data of multiple sanitary products and encrypt the full-cycle tracing data of multiple sanitary products; the data processing module is also used to store the encrypted full-cycle tracing data of multiple sanitary products in multiple distributed storage nodes based on the tracing request association characteristics of the multiple 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 tracing query module, which is used to receive a tracing request initiated by a mobile terminal based on the QR code corresponding to the sanitary product; the tracing query module is also used to retrieve the full-cycle tracing data of the target sanitary product from the multiple distributed storage nodes based on the tracing request initiated by the mobile terminal, and send the full-cycle tracing data of the target sanitary product to the mobile terminal.
[0015] Compared with the prior art, the data processing-based traceability method and system for sanitary products provided in this specification has at least the following beneficial effects: 1. Through automation and digital means, a large number of traceability requests can be processed quickly, which significantly improves efficiency compared with traditional manual traceability methods. With the help of full-cycle traceability data, the integrity and accuracy of traceability information can be ensured, so that consumers or regulators can obtain authentic and reliable information on the source of sanitary products. The encryption of the full-cycle traceability data of sanitary products effectively prevents data leakage and illegal access, and protects personal privacy and corporate data security. The use of distributed storage nodes further enhances the reliability and security of data. Even if some nodes fail, data can still be recovered from other nodes. Consumers can easily initiate traceability requests by scanning the QR code on sanitary products to obtain detailed information about the product, thereby increasing consumers' trust in the source and quality of the product. This transparency also helps consumers better supervise the market and promote the healthy development of the sanitary products industry. When product quality problems are found, companies can quickly locate the batch and flow of the problem product through the traceability system to achieve efficient product recall. Traceability data can also be used for product quality analysis and improvement, helping companies improve product quality and management level. It has promoted the development of the sanitary products industry in the direction of digitalization and intelligence, and improved the overall competitiveness of the industry. Through digital means, companies can better understand customer needs, optimize production processes, and improve operational efficiency; 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 node based on the traceability request association characteristics, fast access and efficient storage of data can be ensured. This reduces data retrieval time, improves user experience, and reduces storage costs. The use of distributed storage nodes not only improves the reliability of data, but also enhances data security. Even if some nodes are attacked or fail, the data can still be recovered from other nodes, ensuring the integrity and continuity of the traceability information. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein: Figure 1 is a flow chart of a method for tracing the source of sanitary products based on data processing shown in an embodiment of the present application; Figure 2 It is a module diagram of a traceability system for sanitary products based on data processing shown in one embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly introduces the drawings required for describing the embodiments.
[0018] Figure 1 is a flow chart of a method for tracing the source of sanitary products based on data processing shown in an embodiment of the present application, such as Figure 1 As shown, a method for tracing the origin of sanitary products based on data processing may include the following steps.
[0019] Step 1: Obtain traceability request records for multiple test sanitary products.
[0020] Specifically, the multiple test hygiene products may belong to different types of hygiene products, for example: 1. Absorbent hygiene products 1. Feminine hygiene products Sanitary napkin: A sanitary product designed specifically for women during menstruation that has the function of absorbing menstrual blood.
[0021] Sanitary pads: used for light protection during daily use or before and after menstruation, usually small in size and easy to carry.
[0022] Tampon: An internal sanitary product used to absorb menstrual blood, suitable for women who prefer freedom of movement.
[0023] 2. Men's hygiene products Men's incontinence pads: Incontinence care products designed specifically for men, usually with strong absorbency and suitable for patients with mild to moderate incontinence.
[0024] Men’s urine pads: Similar to incontinence pads, but may be more focused on portability and ease of replacement.
[0025] 3. Baby hygiene products Baby diapers: sanitary products designed specifically for babies, with strong water absorption and breathability to keep baby's skin dry.
[0026] Baby Pull-Ups: Diaper-like design similar to underwear, easy for baby to move around, suitable for toddlers.
[0027] 4. Adult incontinence products Adult diapers: Similar to baby diapers, but the size and absorbency may be more suitable for adult needs.
[0028] Adult diaper pad: used for incontinence protection in bed or wheelchair, with waterproof and water-absorbent functions.
[0029] 2. Non-absorbent sanitary products 1. Wet wipes Cleansing wipes: Used for cleaning hands, face or other parts of the body, usually containing moisturizing or antibacterial ingredients.
[0030] Makeup Removing Wipes: Wet wipes specially used for removing makeup, convenient and quick, suitable for travel or daily use.
[0031] 2. Dry towel Tissues: Dry paper used to wipe hands, face, or other parts of the body, usually divided into regular and premium tissues.
[0032] Kitchen paper towel: has stronger oil and water absorption, suitable for kitchen cleaning and food processing.
[0033] 3. Other non-absorbent sanitary products Toilet Seat Paper: Disposable sanitary paper used on toilet seats to prevent cross infection.
[0034] Sanitary gloves: Sanitary gloves used in specific occasions, such as cooking in the kitchen, cleaning work, etc.
[0035] 3. Special purpose hygiene products 1. Swimming / sports hygiene products Swimming earplugs: used to prevent water from entering the ears when swimming and protect hearing.
[0036] Nose clip: used to prevent water from entering the nasal cavity when swimming or diving.
[0037] 2. Travel hygiene products Portable Toilet Seat Pad: Portable toilet seat pad for keeping toilet seat hygienic while traveling.
[0038] Travel wipes and tissues: easy to carry and meet your cleaning needs during travel.
[0039] 3. Other special purpose hygiene products Oral care products: such as dental floss, mouthwash, etc., used for oral cleaning and care.
[0040] Eye care products: such as eye wash solution, eye masks, etc., for eye comfort and care.
[0041] The traceability request record for the test sanitary product may include traceability requests for the test sanitary product initiated by a mobile terminal (eg, a mobile phone used by a user) at multiple historical time points.
[0042] Step 2: Based on the traceability request records of multiple test sanitary products, the traceability request correlation features of the multiple sanitary products are determined.
[0043] Specifically, step 2 may include: 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; Based on the traceability request curves corresponding to each type of sanitary products in multiple sales areas, the traceability request correlation coefficient between any two sales areas is determined, wherein the traceability request correlation characteristics of multiple sanitary products include the traceability request correlation coefficients of multiple sanitary products in each sales area and the traceability request correlation coefficients of any two sales areas.
[0044] As an example only, 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, such as variance, mean, peak value, valley value, etc.; Based on the curve characteristics of the traceability request curve corresponding to each type of sanitary products in the sales area, multiple sets of variational modal decomposition parameters of the sales area are generated, wherein the variational modal decomposition parameters may include the number of modes, balance parameters, time, convergence tolerance, etc.; 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.
[0045] Specifically, a parameter generation model can be used to generate multiple sets of variational mode decomposition parameters of the sales area based on the curve characteristics of the traceability request curve corresponding to each type of sanitary products in the sales area, wherein the parameter generation model can be a recurrent neural network model.
[0046] A plurality of decomposition quality evaluation indicators may be determined, and based on the plurality of decomposition quality evaluation indicators, the decomposition quality corresponding to the variational mode decomposition parameters is evaluated, wherein the plurality of decomposition quality evaluation indicators may at least include: 1. Center frequency stability index: Evaluate whether the center frequency of each modal component obtained by decomposition is stable. Ideally, the center frequency of each mode should remain relatively stable throughout the decomposition process and should not fluctuate too much.
[0047] 2. Bandwidth rationality index: Check whether the bandwidth of each modal component is reasonable. The bandwidth should be moderate, neither too wide nor too narrow. Too wide bandwidth may mean that the modal component contains too many different frequency components, while too narrow bandwidth may cause information loss.
[0048] 3. Modal orthogonality index: Evaluate the orthogonality between different modal components. Ideally, the modal components should be orthogonal to each other, that is, the correlation between them should be as small as possible. This helps ensure that the decomposed modal components are independent of each other in the frequency domain.
[0049] 4. Reconstruction error index: Calculate the error between the original traceability request curve and the curve reconstructed by variational mode decomposition. The smaller the reconstruction error, the higher the decomposition quality.
[0050] 5. Sparsity index: Evaluate the sparsity of the decomposed modal components in the frequency domain. Sparsity is reflected in the bandwidth of the spectral domain, that is, each modal component should be mainly around its center frequency and have a limited bandwidth. Sparsity helps to extract key features from the original signal.
[0051] 6. Algorithm convergence index: 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.
[0052] For example, for each set of variational modal decomposition parameters, the traceability request curve corresponding to each type of sanitary products in the sales area is decomposed based on the variational modal decomposition parameters to generate a decomposition result. The decomposition quality corresponding to the variational modal decomposition parameters can be evaluated based on the decomposition result according to multiple decomposition quality assessment indicators through a quality assessment model, wherein the quality assessment model can be a recurrent neural network model.
[0053] The optimal variational mode decomposition parameters of the sales area can be generated by a genetic algorithm based on the decomposition quality corresponding to each set of variational mode decomposition parameters.
[0054] As an example only, 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 the 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 parameter 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.
[0055] Specifically, for any two types of sanitary products, the Pearson correlation coefficient of each modal decomposition component of the two types of sanitary products can be calculated, and based on the Pearson correlation coefficient of each modal decomposition component of the two types of sanitary products, the traceability request correlation coefficient of the two types of sanitary products in the sales area can be calculated.
[0056] For example, the traceability request correlation coefficient for two types of hygiene products in a sales area can be calculated based on the following formula:
[0057] in, The traceability request correlation coefficient between the ith sanitary product type and the jth sanitary product type in the eth sales area, is the Pearson correlation coefficient between the kth modal decomposition component of the i-th sanitary product type in the e-th sales area and the kth modal decomposition component of the j-th sanitary product type, is the mode number of the optimal variational mode decomposition parameters corresponding to the e-th sales area.
[0058] It can be understood that the larger the correlation coefficient of traceability requests for two types of sanitary products in the sales area, the more similar the changes in the number of traceability requests for the two types of sanitary products in the sales area are, that is, within the sales area, if the number of traceability requests for one type of sanitary product increases in a certain time period, the number of traceability requests for the other type of sanitary product in the same time period may also increase.
[0059] As an example only, 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.
[0060] Specifically, for any two sales areas, based on the traceability request curves corresponding to each type of sanitary products in the two sales areas, the Pearson correlation coefficient corresponding to each type of sanitary products in the two sales areas is calculated as the traceability request correlation coefficient corresponding to each type of sanitary products in the two sales areas.
[0061] For example, the traceability request correlation coefficient of two sales regions can be calculated based on the following formula:
[0062] in, is the correlation coefficient of the traceability request between the e-th sales area and the f-th sales area, is the total number of traceability requests for the i-th sanitary product type in the e-th sales area in the traceability request records of multiple test sanitary products, is the total number of traceability requests for the i-th sanitary product type in the f-th sales area in the traceability request records of multiple test sanitary products, is the total number of traceability requests for the jth sanitary product type in the eth sales area in the traceability request records of multiple test sanitary products, is the total number of traceability requests for the jth sanitary product type in the fth sales area in the traceability request records of multiple test sanitary products, is the correlation coefficient of the traceability request between the e-th sales area and the f-th sales area for the i-th type of sanitary products, is the total number of sanitary product types.
[0063] By calculation , a higher weight can be assigned to the traceability request correlation coefficient corresponding to the sanitary product type with more traceability requests, so as to increase the influence of the sanitary product type 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 correlation between the two sales areas in terms of traceability requests by summarizing the total number of traceability requests for different types of sanitary products, and provides auxiliary information for the subsequent storage of encrypted full-cycle traceability data of multiple sanitary products in multiple distributed storage nodes. The larger the traceability request correlation coefficient of the two sales areas, the more similar the changes in the number of traceability requests representing the two sales areas are, that is, if 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 in the same time period may also increase.
[0064] Step 3: Obtain full-cycle traceability data for multiple sanitary products.
[0065] Specifically, the full-cycle traceability data of sanitary products may include: 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 conditions records; 2. Production process traceability data: 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; 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 testing location; 4. Test records and results: test methods and standards, test equipment and instrument calibration records, tester names and qualifications, test results and data analysis.
[0066] Step 4: Encrypt the full-cycle traceability data of multiple sanitary products.
[0067] Specifically, according to the encryption scheme, the corresponding encryption key and decryption key are generated. For asymmetric encryption methods, 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 sanitary products. The full-cycle traceability data of sanitary products can be divided into different data blocks and encrypted separately to improve encryption efficiency and security.
[0068] Step 5: Based on the traceability request association features of multiple sanitary products, the encrypted full-cycle traceability data of multiple sanitary products are stored in multiple distributed storage nodes.
[0069] Specifically, step 5 includes: 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.
[0070] As an example only, 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.
[0071] As an example only, 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.
[0072] For example, the first priority value of a distributed storage node can be calculated based on the following formula:
[0073] in, is the first priority value of the g-th distributed storage node, is the number of sanitary products stored in the e-th sales area corresponding to the g-th distributed storage node, is the traceability request correlation coefficient between the e-th sales area and the sales area corresponding to sanitary products, is the total number of sales territories.
[0074] In order to optimize 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 sorting (for example, the first 3, the first 5, etc.) are selected as candidate distributed storage nodes.
[0075] It can be understood that the larger the correlation coefficient of traceability requests of two sales areas, the more similar the changes in the number of traceability requests of the two sales areas are, that is, if the number of traceability requests of one sales area in a certain time period increases, the number of traceability requests of the other sales area in the same time period may also increase. When allocating the full-cycle traceability data of sanitary products, if the traceability request correlation coefficient between the sales area corresponding to the full-cycle traceability data of sanitary products stored in a distributed storage node and the sales area corresponding to the sanitary products to be stored is larger, it means that if the full-cycle traceability data of the sanitary products to be stored is stored in the distributed storage node, the probability of multiple sales areas initiating traceability requests to retrieve data from the distributed storage node at the same time is greater, that is, the possibility of data retrieval congestion in the distributed storage node is greater, and the greater the number of sanitary products stored in the sales area, the greater the possibility of data retrieval congestion. Therefore, the first priority value of the distributed storage node is lower.
[0076] For example, the second priority value of the candidate distributed storage node can be calculated based on the following formula:
[0077] in, is the second priority value of the g-th candidate distributed storage node, is the number of sanitary products stored in the i-th sanitary product type in the sales area corresponding to the sanitary products of the g-th candidate distributed storage node, It is the traceability request correlation coefficient of the i-th sanitary product type in the sales area corresponding to the sanitary product and the sanitary product type corresponding to the sanitary product.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] Step 6: For each sanitary product, generate a QR code corresponding to the sanitary product based on the storage location of the sanitary product.
[0083] 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.
[0084] Step 7: receiving a traceability request initiated by the mobile terminal based on the QR code corresponding to the sanitary product.
[0085] Specifically, the user can initiate a traceability request by scanning the QR code printed on the sanitary product through a mobile terminal (for example, a mobile phone, etc.).
[0086] Step 8: Based on the traceability request initiated by the mobile terminal, the full-cycle traceability data of the target sanitary products are retrieved from multiple distributed storage nodes, and the full-cycle traceability data of the target sanitary products are sent to the mobile terminal.
[0087] Specifically, step 8 includes: 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.
[0088] Figure 2 is a module diagram of a traceability system for sanitary products based on data processing shown in an embodiment of the present application, such as Figure 2 As shown, a traceability system for sanitary products based on data processing may include a traceability testing module, a correlation analysis module, a data processing module and a traceability query module.
[0089] 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 also used to store the encrypted full-cycle traceability data of multiple sanitary products in multiple distributed storage nodes based on the traceability request association features of multiple 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 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.
[0090] A traceability system for sanitary products based on data processing can be used to execute a traceability method for sanitary products based on data processing, which will not be described in detail here.
[0091] 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 variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered 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, the full-cycle traceability data of the target sanitary products are retrieved from the multiple distributed storage nodes, and the full-cycle traceability data of the target sanitary products are sent to the mobile terminal.
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 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; Based on the traceability request curves corresponding to each type of sanitary products in multiple sales areas, the traceability request correlation coefficient between any two sales areas is determined, wherein the traceability request correlation characteristics of multiple sanitary products include the traceability request correlation coefficients of multiple sanitary products in each sales area and the traceability request correlation coefficients of any two sales areas.
3. A method for tracing the source of sanitary products based on data processing according to claim 2, 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.
4. A method for tracing the source of sanitary products based on data processing according to claim 3, 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 parameter 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.
5. A method for tracing the source of sanitary products based on data processing according to claim 2, 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.
6. A method for tracing the source of sanitary products based on data processing according to any one of claims 2 to 5, characterized in that: 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.
7. A method for tracing the source of sanitary products based on data processing according to claim 6, 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.
8. A method for tracing the source of sanitary products based on data processing according to claim 7, 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.
9. A method for tracing the source of sanitary products based on data processing according to any one of claims 1 to 5, 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.
10. 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 9, 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
Block chain-based female hygienic product tracing method and device, and medium
CN111274292A
Object traceability data acquisition method and device, computer equipment and storage medium
CN116228257A
Commodity traceability method, system and device and storage medium
CN116629898A