A method for checking precise association of cigarette multi-codes

CN122904923APending Publication Date: 2026-10-13GUANGXI SHENGXIN FUBANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610770052.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-29
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

[0004]1、多码之间缺乏有效关联,目前常见的校验方式多为对单一码制或单一包装单元的独立验证,例如仅扫描条包二维码查询数据库,或仅读取小包RFID标签信息,这种方式下,各个码制之间相互孤立,且条包、小包、件烟纸箱之间的包装层级逻辑是割裂的

Benefits of technology

[0063]1、本发明将香烟包装表面的一号码(由一维码、二维码、激光喷码与RFID标签中的至少一种构成)与包装表面的图案位置共同形成的结构防伪特征进行同步采集,并通过第一层级的基础身份比对、第二层级的加密解密验证以及第三层级的生产信息逻辑校验,构建了多维度的交叉认证体系,同时,本发明建立了从件烟纸箱五号码、条包一号码/二号码/三号码到小包四号码的固定数量关联关系,其中二号码、三号码与四号码之间的关联关系是在工业生产端预先建立的,与一号码和五号码共同构成互相关联且互相认证的层级绑定关系,通过这种固定数量的层级对应关系与工业生产端预建关联机制的结合,能够实现多码之间的深度绑定与双向交叉验证,从而解决了现有技术中多码独立验证、缺乏有效关联的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122904923A_ABST
    Figure CN122904923A_ABST
Patent Text Reader

Abstract

The application discloses a cigarette multi-code precise correlation verification method and belongs to the technical field of cigarette and electronic cigarette coding verification. The application solves the problems of lack of effective correlation between multi-codes in the existing cigarette and electronic cigarette anti-fake verification method, easy to be broken one by one, and lack of hierarchical verification mechanism, and the anti-fake system has loopholes. The application establishes the fixed number correlation from the five-number code of the cigarette paper box, the one-number code / two-number code / three-number code of the cigarette carton to the four-number code of the small package, adopts the deep binding and step-by-step verification strategy of the surface visual code and the built-in electronic tag, combines the forward and reverse bidirectional correlation verification mechanism between multi-codes, realizes the deep binding and step-by-step verification of the surface visual code and the built-in electronic tag, and builds the cross verification mechanism between multi-source anti-fake identification, effectively prevents local replacement or batch counterfeiting behavior, and thus improves the accuracy and reliability of the anti-fake verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cigarette and electronic cigarette coding verification technology, specifically a verification method for accurate association of multiple cigarette codes. Background Technology

[0002] Cigarettes, as a high-value-added consumer product, have long been a major target for counterfeiting and substandard products. Counterfeit cigarettes not only seriously damage the brand reputation and economic interests of legitimate tobacco companies, but also pose a potential threat to consumers' health. To combat counterfeiting, the tobacco industry has widely adopted various anti-counterfeiting technologies, such as printing one-dimensional barcodes, two-dimensional barcodes, and laser coding on cigarette packaging, embedding RFID (Radio Frequency Identification) electronic tags inside cigarette packs, and printing barcodes on cigarette cartons.

[0003] However, in practical applications, existing verification methods have the following problems:

[0004] 1. There is a lack of effective correlation between multiple codes. Currently, common verification methods mostly involve independent verification of a single code or a single packaging unit. For example, only scanning the QR code on the carton to query the database, or only reading the RFID tag information of the small package. In this way, the different code systems are isolated from each other, and the packaging hierarchy logic between the carton, small package, and cigarette carton is fragmented. This single-point verification mechanism makes it difficult to detect even if a certain code system or a certain packaging level is counterfeited or replaced, and it is impossible to form a full-chain anti-counterfeiting traceability from a single package to the whole carton.

[0005] 2. Lack of a hierarchical and two-way binding deep verification mechanism: Existing technologies often only perform simple information comparisons and fail to establish progressive verification logic between different verification dimensions. For example, they fail to perform two-way encrypted identity authentication between the visible code on the packaging surface and the built-in electronic tag (RFID), fail to incorporate the physical micro-features of the surface inkjet printing into the identification system, and fail to transform the fixed quantity correspondence between the barcode, barcode side code, barcode inner code, small package code and carton code into anti-counterfeiting verification basis. These deficiencies result in structural loopholes in the anti-counterfeiting system, making it difficult to effectively prevent illegal acts such as partial replacement of genuine packaging or bulk counterfeiting using recycled packaging.

[0006] Therefore, this method does not meet the existing requirements, and we propose a verification method for accurate association of multiple cigarette codes. Summary of the Invention

[0007] The purpose of this invention is to provide a verification method for accurate association of multiple codes on cigarettes. This method involves simultaneously collecting and progressively binding a single code (composed of a one-dimensional barcode, a two-dimensional barcode, a laser-engraved code, and an embedded RFID tag on the surface of the cigarette pack) with a second code on the side of the pack, a third code on the inside of the pack, a fourth code on the small pack, and a fifth code on the cigarette carton. A multi-level association and bidirectional verification mechanism based on a fixed quantitative relationship is established between the first, second, third, fourth, and fifth codes. This not only achieves the identification of the authenticity of a single code value but also constructs a cross-authentication relationship between different code systems based on encryption algorithms, production logic, physical characteristics, and structural anti-counterfeiting features. This effectively prevents partial replacement or mass counterfeiting, solving the problems mentioned in the background section.

[0008] To achieve the above objectives, the present invention provides the following technical solution: a verification method for accurate association of multiple cigarette codes, comprising the following steps:

[0009] Step 1: Collect the numbers 1, 2, 3, and 4 from the cigarette packaging to be verified, and the number 5 from the cigarette carton;

[0010] The number is composed of at least one of the following: a one-dimensional barcode image, a two-dimensional barcode image, a laser-printed image, and a built-in RFID tag on the surface of the package. The position of the number on the surface of the package and the pattern on the packaging surface together constitute a structural anti-counterfeiting feature.

[0011] The second number is a QR code printed on the side of the package;

[0012] The three numbers are digital codes or QR codes printed on the inside of the package;

[0013] The four numbers are the QR code printed on the side of the small package and the QR code or digital code printed on the inside or back of the small package flap.

[0014] The number five refers to the barcode on the large cardboard box of cigarettes;

[0015] The second, third, and fourth numbers are pre-established with each other at the industrial production end, and together with the first and fifth numbers, they form a hierarchical binding relationship that is mutually associated and mutually authenticated.

[0016] Step 2: Analyze the number to obtain the first product identification code, the second product identification code, the dynamic production traceability code, and the RFID storage information;

[0017] Step 3: Based on the parsing result of the first number, and based on the mutual association and mutual authentication relationship, parse out the expected encoding information of the second, third, fourth, and fifth numbers;

[0018] Step 4: Perform the first-level basic verification to verify the consistency of identity among the code values ​​in the number;

[0019] Step 5: Perform the second-level deep verification, which verifies the authenticity of the RFID tag and its binding relationship with the packaging based on the encryption algorithm;

[0020] Step Six: Perform the third-level production information verification to verify the consistency of production logic among the first, second, third, fourth, and fifth numbers, and confirm the validity of the interrelated and mutual authentication relationships;

[0021] Step 7: If any verification level fails, remove the cigarette packaging and generate an alarm signal. If all verifications pass, record the verification results, timestamps, and operator information for all levels, and generate a comprehensive verification report containing all associated code values ​​and verification conclusions.

[0022] Furthermore, the verification method also includes a bidirectional association verification step based on a fixed number of association relationships, specifically including:

[0023] The verification process introduces a preset fixed number association logic, wherein one of the five numbers uniquely corresponds to and is associated with fifty of the first numbers, fifty of the second numbers, fifty of the third numbers, and five hundred of the fourth numbers;

[0024] And each of the first numbers uniquely corresponds to and is associated with one of the second numbers, one of the third numbers, and ten of the fourth numbers;

[0025] By parsing and reading the encoding information contained in the number, the expected encoding values ​​of the second number, third number and ten fourth numbers associated with the number are interpreted, and a positive consistency comparison is performed with the actual encoding values ​​of the collected second number, third number and fourth number respectively.

[0026] By parsing and reading the encoding information contained in any four-digit number, the expected encoding values ​​of the first, second, and third digits corresponding to the four-digit number are deduced through reverse association, and then reverse consistency comparison is performed with the actual encoding values ​​of the first, second, and third digits collected respectively.

[0027] If the consistency comparison in any direction fails, the mutual association and mutual authentication relationship between the first, second, third, fourth and fifth numbers is deemed invalid, and the verification process is terminated.

[0028] Furthermore, the laser-printed image is segmented and recognized to obtain a dynamic production traceability code consisting of the production date, production shift, and serial number, specifically including:

[0029] The acquired laser marking images are preprocessed, including grayscale conversion, noise filtering, and binarization.

[0030] Based on the connected component features of characters, the preprocessed image is used to locate and segment characters to obtain a single character image;

[0031] The segmented individual character images are input into a character recognition model based on a convolutional neural network for recognition. This character recognition model is specifically trained for characters with defects, tilting, and uneven lighting in cigarette inkjet printing.

[0032] The identified character sequence is parsed according to the preset inkjet coding rules to extract the production date, production shift, and serial number information.

[0033] Furthermore, before performing character segmentation and recognition on the laser-printed image, a authenticity verification step based on the physical characteristics of the laser-printed code is included, specifically including:

[0034] Analyze the grayscale distribution and edge diffraction characteristics of the laser-marked image under illumination at a specific angle;

[0035] The extracted grayscale distribution curve and edge diffraction intensity are compared with the standard feature data generated by a pre-established physical characteristic model based on genuine laser marking equipment.

[0036] If the similarity of the comparison results is lower than the preset threshold, the laser marking is determined to be counterfeit, and all subsequent verification steps are terminated directly.

[0037] Furthermore, a second-level depth check is performed, specifically including:

[0038] Extract a character of a preset length from the second product identification code as a verification code;

[0039] Input the verification key and the verification code from the RFID tag into the pre-stored two-way identity authentication model;

[0040] The two-way authentication model uses the verification code as the public key to attempt to decrypt the RFID verification key. If the decryption is successful and a plaintext string conforming to the predetermined data format is obtained, the RFID tag is determined to be genuine.

[0041] The two-way authentication model uses the plaintext string to encrypt the verification code and compares the encryption result with the original RFID verification key. If they are completely consistent, the association between the RFID tag and the cigarette packaging is confirmed to be valid.

[0042] Furthermore, a third-level production information verification is performed, specifically including:

[0043] Product batch information is parsed from the two numbers, and production date range and production line shift information are extracted from them;

[0044] Perform an inclusion relationship check between the production date in the three numbers and the production date range;

[0045] The production shift information in the three numbers is compared with the production line team information for consistency.

[0046] In the preset production database, the serial number range is queried according to the production date and production shift, and it is verified whether the serial number in the three numbers exists in the serial number range, and whether the RFID production traceability code matches the serial number range;

[0047] At the same time, the consistency of the coding information in the four numbers with the association relationship of the first number, the second number, and the third number is verified, and it is verified whether the quantity association satisfies the fixed relationship of one first number corresponding to ten fourth numbers;

[0048] And to perform logical consistency verification between the five numbers and the batch information of cigarettes to which the current verification unit belongs, and to verify whether their quantity association satisfies the fixed relationship that one five number corresponds to fifty one numbers;

[0049] Through the above verification, the final confirmation of the mutual association and authentication relationship between the first, second, third, fourth and fifth numbers is completed.

[0050] Furthermore, before performing the first-level basic verification, a synchronization triggering step is also included, specifically:

[0051] When a cigarette package is detected entering a preset verification station, a photoelectric sensor triggers an RFID reader to start reading the RFID tag information, and simultaneously triggers an industrial camera to capture the one-dimensional barcode image, two-dimensional barcode image, and laser-printed image of the number.

[0052] Furthermore, the steps for performing the second-level depth verification also include:

[0053] While decrypting and verifying, the number of verifications and timestamp information for this verification are written to a specific storage area within the RFID tag;

[0054] If the write operation fails or the information read from the storage area shows that the tag has been abnormally verified multiple times, it is determined that the RFID tag may be reused or poses a security risk, and the verification process is terminated and a security warning is generated.

[0055] Furthermore, a comprehensive verification report is generated, containing all associated code values ​​and verification conclusions, specifically including:

[0056] Establish a master record with the first product identification code as the unique index, and create sub-record tables under the master record that are associated with the second product identification code, dynamic production traceability code, RFID information, four-number and five-number respectively;

[0057] For each level of the verification process, an uneditable process log is generated. The process log records the input parameters, intermediate calculation results, final judgment threshold, and judgment result of the verification process at that level.

[0058] The verification conclusions of all levels are weighted and synthesized according to preset weights to obtain a quantified overall confidence score, and this overall confidence score, together with the verification conclusions of each level, is written into the comprehensive verification report.

[0059] Furthermore, after generating a comprehensive verification report containing all associated code values ​​and verification conclusions, it also includes:

[0060] The data in the comprehensive verification report, including the coding information corresponding to the first number, the second number, the third number, the fourth number, the fifth number, and the final verification conclusion, are used to calculate a unique hash value.

[0061] The hash value is used as the transaction identifier on the blockchain, and the core summary information of the comprehensive verification report is uploaded to the blockchain network for evidence storage.

[0062] Compared with the prior art, the beneficial effects of the present invention are:

[0063] 1. This invention synchronously collects the structural anti-counterfeiting features formed by the number on the surface of cigarette packaging (composed of at least one of one-dimensional barcode, two-dimensional barcode, laser marking, and RFID tag) and the pattern position on the packaging surface. Through the first level of basic identity comparison, the second level of encryption and decryption verification, and the third level of production information logic verification, a multi-dimensional cross-authentication system is constructed. At the same time, this invention establishes a fixed number of association relationships from the five numbers on the cigarette carton, the first / second / third numbers on the carton, to the fourth number on the small pack. The association relationship between the second, third, and fourth numbers is pre-established at the industrial production end, and together with the first and fifth numbers, they constitute a hierarchical binding relationship of mutual association and mutual authentication. Through the combination of this fixed number of hierarchical correspondence relationships and the pre-established association mechanism at the industrial production end, deep binding and two-way cross-verification between multiple codes can be achieved, thereby solving the problem of independent verification of multiple codes and lack of effective association in the prior art.

[0064] 2. This invention introduces a two-way identity authentication model based on encryption algorithms, which can solve the problem that RFID tags are easily cloned or information is easily tampered with in the prior art. In the second-level deep verification, the verification code in the QR code is used to decrypt and verify the RFID verification key, which not only confirms the physical authenticity of the RFID tag itself, but also verifies the validity of the association and binding relationship between the RFID tag and the packaging surface code. At the same time, by writing the verification count and timestamp information into the RFID tag, the anti-reuse and anti-tampering capabilities are further enhanced.

[0065] 3. This invention verifies production information at the third level by comparing the dynamic production traceability code in the laser-engraved code with the product batch information in the QR code and the RFID production traceability code for logical consistency. It also performs synchronous verification by combining the pre-established association between the four numbers and the first, second, and third numbers at the industrial production end, thus solving the problem that existing technologies fail to fully utilize production logic for anti-counterfeiting verification. In addition, this invention supports bidirectional association verification based on the entire chain of barcode values. That is, the first number can be interpreted to reveal the second, third, and ten fourth numbers, and any fourth number can be reverse-associated to reveal the corresponding first, second, and third numbers. At the same time, it can also trace back to verify the hierarchical relationship of the fifth number, thereby realizing a closed-loop verification of the entire chain where all numbers are interconnected and mutually authenticated, comprehensively improving the comprehensiveness and reliability of the verification. Attached Figure Description

[0066] Figure 1 This is a flowchart of the verification method for accurate association of multiple cigarette codes according to the present invention;

[0067] Figure 2 This is an execution diagram of the verification method for accurate association of multiple cigarette codes according to the present invention. Detailed Implementation

[0068] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0069] To address the technical issues in existing cigarette anti-counterfeiting verification methods, such as the lack of effective correlation between multiple codes, susceptibility to individual attacks, lack of hierarchical verification mechanisms, and vulnerabilities in the anti-counterfeiting system, please refer to [link to relevant documentation]. Figures 1-2 This embodiment provides the following technical solution:

[0070] This invention provides a verification method for precise association of multiple codes on cigarette packaging. This method aims to perform multi-level, in-depth association verification of information from five codes on the cigarette packaging: a first code (composed of at least one of a 1D barcode, 2D barcode, laser-printed code, or embedded RFID tag on the surface of the carton), a second code (a 2D barcode printed on the side of the carton), a third code (a digital or 2D barcode printed on the inside of the carton), a fourth code (a 2D barcode printed on the side of the pack, or a 2D or digital barcode printed on the inside / back of the pack's flap), and a fifth code (a barcode on the large carton). This allows for precise traceability of the entire cigarette product chain, from the carton to the individual pack, to identify authenticity and track production and distribution information. The method specifically includes the following steps:

[0071] 1) Synchronous acquisition of multi-source data

[0072] Collect the numbers one, two, three, and four on the cigarette packaging to be verified, as well as the number five on the cigarette carton;

[0073] The number is composed of at least one of the following: a one-dimensional barcode image, a two-dimensional barcode image, a laser-printed image, and a built-in RFID tag on the surface of the package. The position of the number on the surface of the package and the pattern on the packaging surface together constitute a structural anti-counterfeiting feature.

[0074] The second number is a QR code printed on the side of the package;

[0075] The three numbers are digital codes or QR codes printed on the inside of the package;

[0076] The four numbers are the QR code printed on the side of the small package and the QR code or digital code printed on the inside or back of the small package flap.

[0077] The number five refers to the barcode on the large cardboard box of cigarettes;

[0078] The second, third, and fourth numbers are pre-associated at the industrial production end, and together with the first and fifth numbers, they form a hierarchical binding relationship that is mutually associated and mutually authenticated.

[0079] Specifically, when the conveyor belt carrying cigarette packs transports them to the preset verification station, the photoelectric sensor installed at that station is triggered. This trigger signal is simultaneously sent to the RFID reader and the industrial camera control system. The RFID reader then activates, emitting an RFID signal to activate the RFID tag embedded in the cigarette pack and reading all information within its storage area, including but not limited to the pre-written RFID product code, RFID production traceability code, and RFID verification key. Simultaneously, under the control of the trigger signal, the industrial camera performs high-speed synchronous imaging of the one-dimensional barcode, two-dimensional barcode, and laser-printed code areas at designated locations on the cigarette pack, obtaining one-dimensional barcode images. Images, including one-dimensional barcode images, two-dimensional barcode images, and laser-printed images, together with RFID tags, constitute the first number. In addition, the second number printed on the side of the carton, the third number printed on the inside of the carton, and the fourth number on the small package are simultaneously collected, as well as the fifth number on the large carton of cigarettes. This synchronous triggering mechanism ensures that the data from each source in the collected first number originates from the same physical packaging. The collected second, third, fourth, and fifth numbers are logically associated with the first number through a hierarchical binding relationship pre-established and mutually authenticated at the industrial production end, thus laying the data foundation for subsequent multi-level precise association verification.

[0080] The technical effects of the above solution are as follows: By simultaneously acquiring multi-source visual code images that constitute a single number and reading the built-in RFID information, it is possible to achieve instantaneous capture and spatial alignment of multi-source anti-counterfeiting data on the same physical packaging. Furthermore, by utilizing the structural anti-counterfeiting features formed by the placement of the single number on the packaging and the pattern on the packaging surface, the integrity of the anti-counterfeiting information is enhanced. Simultaneously, by acquiring the pre-established associated second, third, and fourth numbers at the industrial production end, as well as the fifth number on the cigarette carton, a hierarchical binding relationship is formed between all numbers, ensuring mutual association and authentication. By systematically extracting three core types of information from the RFID tags—product code, production traceability code, and verification key—and combining them with the simultaneously acquired second, third, fourth, and fifth number information, necessary data support can be provided for subsequent verification at each level, thereby establishing a progressive, multi-dimensional verification mechanism covering the entire chain from cigarette cartons to individual packages.

[0081] 2) Image Decoding and Information Extraction

[0082] The number is parsed to obtain a first product identification code, a second product identification code, a dynamic production traceability code, and RFID storage information;

[0083] Based on the parsing result of the first number, and based on the mutual association and mutual authentication relationship, the expected encoding information of the second, third, fourth, and fifth numbers is parsed out.

[0084] Specifically, the laser-printed image is segmented and recognized to obtain a dynamic production traceability code consisting of the production date, production shift, and serial number, including:

[0085] The acquired laser marking images are preprocessed, including grayscale conversion, noise filtering, and binarization.

[0086] Based on the connected component features of characters, the preprocessed image is used to locate and segment characters to obtain a single character image;

[0087] The segmented individual character images are input into a character recognition model based on a convolutional neural network for recognition. This character recognition model is specifically trained for characters with defects, tilting, and uneven lighting in cigarette inkjet printing.

[0088] The identified character sequence is parsed according to the preset inkjet coding rules to extract the production date, production shift, and serial number information.

[0089] The technical effects of the above solution are as follows: By performing preprocessing operations such as grayscale conversion, noise filtering, and binarization on the laser marking image, noise and light interference in complex industrial environments can be eliminated. Accurate character positioning and segmentation are achieved using the connected component features of characters, laying the foundation for high-precision recognition. In particular, the introduction of a convolutional neural network character recognition model specifically trained for common problems in cigarette marking (such as incomplete characters, tilting, and uneven lighting) improves the robustness and accuracy of laser marking recognition, thereby stably resolving the acquired laser marking image into a structure composed of production date, production shift, and serial number. The system constructs dynamic production traceability code information. Based on this, and considering the hierarchical binding relationship between numbers one, two, three, four, and five, which are mutually related and authenticated, as well as the pre-established associations between numbers two, three, and four at the industrial production end, it can accurately associate and parse the expected coding information of numbers two, three, four, and five based on the parsing result of number one. This ensures the reliable extraction of production dimension data and the accurate correspondence between the associations of each number, thus providing accurate data support for the logical consistency comparison with number two and RFID production traceability code in the subsequent third-level production information verification.

[0090] To further enhance anti-counterfeiting capabilities, before performing character segmentation and recognition on the laser-printed image, a authenticity verification step based on the physical characteristics of the laser-printed code is included, specifically:

[0091] Analyze the grayscale distribution and edge diffraction characteristics of the laser-marked image under illumination at a specific angle;

[0092] The extracted grayscale distribution curve and edge diffraction intensity are compared with the standard feature data generated by a pre-established physical characteristic model based on genuine laser marking equipment.

[0093] If the similarity of the comparison results is lower than the preset threshold, the laser marking is determined to be counterfeit, and all subsequent verification steps are terminated directly.

[0094] Specifically, the analysis examines the grayscale distribution and edge diffraction characteristics of laser-printed images under illumination at a specific angle. Since genuine laser marking equipment uses a laser beam to instantly burn or vaporize the packaging surface material at high temperatures to form permanent markings, its physical process is unique, resulting in character edges exhibiting specific microscopic diffraction textures and grayscale gradient patterns. The extracted grayscale distribution curves and edge diffraction intensities are compared with pre-established standard feature data generated based on a physical characteristic model of genuine laser marking equipment. If the similarity of the comparison results is lower than a preset high threshold (e.g., 85%), the laser marking is determined to be counterfeit, and all subsequent verification steps are immediately terminated, including stopping the parsing of other code values ​​in the number, stopping the second-level deep verification and the third-level production information verification, and directly issuing an alarm signal.

[0095] The technical effects of the above solution are as follows: By introducing authenticity verification based on the physical characteristics of laser marking as a pre-screening step, the authenticity of the laser marking material in a serial number can be quickly verified from a physical perspective. This solution utilizes the unique grayscale distribution and edge diffraction characteristics of genuine laser marking to establish a standard model, which can effectively identify counterfeit laser markings made using ordinary printing or inkjet printing methods. This not only avoids the waste of resources caused by subsequent parsing and calculation of one-dimensional and two-dimensional codes in a serial number, as well as the complex association verification involving two, three, four, and five serial numbers, thus improving the overall verification efficiency, but also ensures that the subsequent first-level basic verification, second-level deep verification, and third-level production information verification are all based on the real physical identifier, thereby guaranteeing the credibility of the entire multi-code accurate association verification system.

[0096] 3) Multi-level association verification

[0097] The core of this method lies in performing a three-level progressive verification. Failure at any level will cause the verification to terminate and the product to be removed.

[0098] Perform the first-level basic verification to verify the consistency of identity among the code values ​​in the number;

[0099] Perform a second-level deep verification, which verifies the authenticity of the RFID tag and its binding relationship with the packaging based on an encryption algorithm;

[0100] Perform third-level production information verification to verify the production logic consistency between the first, second, third, fourth, and fifth numbers, and confirm the validity of the interrelated and mutual authentication relationships.

[0101] In this embodiment, the second-level depth verification is performed, specifically including:

[0102] Extract a character of a preset length from the second product identification code as a verification code;

[0103] Input the verification key and the verification code from the RFID tag into the pre-stored two-way identity authentication model;

[0104] The two-way authentication model uses the verification code as the public key to attempt to decrypt the RFID verification key. If the decryption is successful and a plaintext string conforming to the predetermined data format is obtained, the RFID tag is determined to be genuine.

[0105] The two-way authentication model uses the plaintext string to encrypt the verification code and compares the encryption result with the original RFID verification key. If they are completely consistent, the association between the RFID tag and the cigarette packaging is confirmed to be valid.

[0106] In this embodiment, the third-level production information verification is performed, specifically including:

[0107] Product batch information is parsed from the two numbers, and production date range and production line shift information are extracted from them;

[0108] Perform an inclusion relationship check between the production date in the three numbers and the production date range;

[0109] The production shift information in the three numbers is compared with the production line team information for consistency.

[0110] In the preset production database, the serial number range is queried according to the production date and production shift, and it is verified whether the serial number in the three numbers exists in the serial number range, and whether the RFID production traceability code matches the serial number range;

[0111] At the same time, the consistency of the coding information in the four numbers with the association relationship of the first number, the second number, and the third number is verified, and it is verified whether the quantity association satisfies the fixed relationship of one first number corresponding to ten fourth numbers;

[0112] And to perform logical consistency verification between the five numbers and the batch information of cigarettes to which the current verification unit belongs, and to verify whether their quantity association satisfies the fixed relationship that one five number corresponds to fifty one numbers;

[0113] Through the above verification, the final confirmation of the mutual association and authentication relationship between the first, second, third, fourth and fifth numbers is completed.

[0114] The technical effects of the above solution are as follows: By constructing a progressive hierarchical verification architecture consisting of a first-level basic verification, a second-level deep verification, and a third-level production information verification, the first level verifies the consistency of identity among the code values ​​in a single number, ensuring mutual verification of multi-source identifiers on the surface of the package. The second level employs a closed-loop authentication model based on public key decryption and two-way encryption comparison, using the verification code in the QR code as a dynamic key to decrypt and re-encrypt the RFID verification key through two-way verification. This not only achieves accurate identification of the authenticity of RFID tags but also establishes encrypted association relationships. Two-way confirmation ensures the immutability of the binding relationship between the RFID tag and the physical packaging of the carton; the third level utilizes the pre-established association relationship between the second, third and fourth numbers at the industrial production end. By comparing the product batch information in the second number, the production date, production shift and serial number in the third number with the preset production database in multiple dimensions, and combining the association relationship verification between the fourth number and the first, second and third numbers, as well as the verification of the attribution relationship between the fifth number and the batch of cigarettes, a closed-loop verification of the entire chain of production information from the large carton of cigarettes to the carton and then to the small pack is realized.

[0115] Before performing the first-level basic verification, a synchronization triggering step is also included, specifically:

[0116] When a cigarette package is detected entering a preset verification station, a photoelectric sensor triggers an RFID reader to start reading the RFID tag information, and simultaneously triggers an industrial camera to capture the one-dimensional barcode image, two-dimensional barcode image, and laser-printed image of the number.

[0117] The technical effects of the above solution are as follows: By setting up photoelectric sensors at the verification station, the synchronous triggering step can simultaneously activate the radio frequency reading device and the industrial camera system using a single trigger signal. This enables instantaneous synchronous acquisition of RFID tag information embedded in cigarette packs and multi-source visual codes (1D barcodes, 2D barcodes, and laser markings) on the surface. This synchronous triggering mechanism ensures that all acquired data strictly originates from the same physical packaging unit, forming an inseparable data association between the code values ​​constituting the first number. Based on this, combined with the subsequent acquisition and analysis of the second, third, fourth, and fifth numbers, it provides reliable and tamper-proof source data for verifying the identity consistency between the code values ​​of the first number in the first-level basic verification, verifying the binding relationship between the RFID tag and the packaging in the second-level deep verification, and verifying the consistency of the entire production logic from cigarette packs to cartons to individual packages in the third-level production information verification.

[0118] The steps for performing the second-level depth verification also include:

[0119] While decrypting and verifying, the number of verifications and timestamp information for this verification are written to a specific storage area within the RFID tag;

[0120] If the write operation fails or the information read from the storage area shows that the tag has been abnormally verified multiple times, it is determined that the RFID tag may be reused or poses a security risk, and the verification process is terminated and a security warning is generated.

[0121] The technical effect of the above solution is as follows: By synchronously writing the verification count and timestamp information to a specific storage area of ​​the RFID tag during the decryption verification process of the second-level deep verification, a dynamic monitoring mechanism for tag usage behavior can be constructed. This mechanism can further record the tag's reading history on the basis of verifying the authenticity and binding relationship of the RFID tag by the two-way identity authentication model, thereby effectively identifying whether the RFID tag has been illegally disassembled and reused for counterfeit packaging. This mechanism complements the two-way identity authentication model, thus jointly ensuring the authenticity and immutability of the binding relationship between the RFID tag in the number and the physical packaging of the package.

[0122] The verification method also includes a bidirectional association verification step based on a fixed number of association relationships, specifically including:

[0123] The verification process introduces a preset fixed number association logic, wherein one of the five numbers uniquely corresponds to and is associated with fifty of the first numbers, fifty of the second numbers, fifty of the third numbers, and five hundred of the fourth numbers;

[0124] And each of the first numbers uniquely corresponds to and is associated with one of the second numbers, one of the third numbers, and ten of the fourth numbers;

[0125] By parsing and reading the encoding information contained in the number, the expected encoding values ​​of the second number, third number and ten fourth numbers associated with the number are interpreted, and a positive consistency comparison is performed with the actual encoding values ​​of the collected second number, third number and fourth number respectively.

[0126] By parsing and reading the encoding information contained in any four-digit number, the expected encoding values ​​of the first, second, and third digits corresponding to the four-digit number are deduced through reverse association, and then reverse consistency comparison is performed with the actual encoding values ​​of the first, second, and third digits collected respectively.

[0127] If the consistency comparison in any direction fails, the mutual association and mutual authentication relationship between the first, second, third, fourth and fifth numbers is deemed invalid, and the verification process is terminated.

[0128] The technical effect of the above solution is as follows: This two-way correlation verification step establishes a hierarchical fixed-quantity correlation relationship from the five numbers of a carton of cigarettes to the first, second, and third numbers of the carton, and then to the fourth number of the individual packs. The correlation between the second, third, and fourth numbers is pre-established at the industrial production stage, thus ensuring the authenticity and reliability of the correlation between packaging levels at the source. Based on this, a forward and reverse dual-analysis verification mechanism is implemented between the first number and the second, third, and ten fourth numbers. Through forward verification, the accuracy and completeness of the internal individual pack codes can be deduced and verified from the main code of the carton. Through reverse verification… The system can trace and verify the hierarchical relationship between the codes of any small package and the serial number of each cigarette item. It can independently complete the correlation consistency comparison in both forward and reverse directions, forming a closed-loop verification of the quantitative and content correlation relationships between multiple codes. If the verification fails in either direction, the process will be terminated and the mutually related and authenticated relationships will be determined to be invalid. This mechanism effectively avoids the correlation loopholes that may exist in one-way verification and solves the problems of independent verification of multiple codes, lack of effective correlation, and susceptibility to partial replacement or batch counterfeiting in traditional anti-counterfeiting methods. Thus, it comprehensively improves the overall reliability of the multi-code accurate correlation verification system.

[0129] 4) Generation of comprehensive report

[0130] If any verification level fails, the cigarette packaging is removed and an alarm signal is generated. If all verifications pass, the verification results, timestamps, and operator information of all levels are recorded, and a comprehensive verification report containing all associated code values ​​and verification conclusions is generated.

[0131] In this embodiment, a comprehensive verification report containing all associated code values ​​and verification conclusions is generated, specifically including:

[0132] Establish a master record with the first product identification code as the unique index, and create sub-record tables under the master record that are associated with the second product identification code, dynamic production traceability code, RFID information, four-number and five-number respectively;

[0133] For each level of the verification process, an uneditable process log is generated. The process log records the input parameters, intermediate calculation results, final judgment threshold, and judgment result of the verification process at that level.

[0134] The verification conclusions of all levels are weighted and synthesized according to preset weights to obtain a quantified overall confidence score, and this overall confidence score, together with the verification conclusions of each level, is written into the comprehensive verification report.

[0135] In this embodiment, after generating a comprehensive verification report containing all associated code values ​​and verification conclusions, the following steps are also included:

[0136] The data in the comprehensive verification report, including the coding information corresponding to the first number, the second number, the third number, the fourth number, the fifth number, and the final verification conclusion, are used to calculate a unique hash value.

[0137] The hash value is used as the transaction identifier on the blockchain, and the core summary information of the comprehensive verification report is uploaded to the blockchain network for evidence storage.

[0138] The technical effects of the above solution are as follows: By constructing a hierarchical report structure with a master record and multi-dimensional sub-record tables using the first product identification code as the unique index, it is possible to achieve structured archiving of all associated code values ​​from the first number, the second number, the third number, the fourth number, RFID information, and the fifth number, from the cigarette pack to the carton and then to the small pack. This ensures that the multi-code associated data of each cigarette packaging unit has complete traceability throughout the entire distribution chain. Furthermore, it generates an uneditable process log for each level of verification, forming a transparent chain of evidence for the entire verification process at each level, thereby preventing post-event verification. Tampering or data forgery can provide a reliable basis for quality traceability and responsibility determination. By pre-setting weights to weight and synthesize the verification conclusions at each level, a quantitative overall confidence score is generated, which can transform the complex results of multi-level progressive verification into a more intuitive credibility indicator, thereby facilitating subsequent product quality grading and risk control. Furthermore, the key data in the comprehensive verification report is calculated as a unique hash value, and the core summary information is uploaded to the blockchain network for evidence storage. Utilizing the immutability and distributed consensus mechanism of the blockchain, this evidence storage, together with the aforementioned uneditable process log, forms a double anti-tampering guarantee.

[0139] Working principle: The barcode, QR code, laser marking, and built-in RFID tag on the surface of the carton are collectively defined as a single number. Their placement and combination with the surface pattern constitute a structural anti-counterfeiting feature. Simultaneously, the QR code on the side of the carton is defined as the second number, the digital code or QR code on the inside of the carton as the third number, the QR code or digital code on the small package as the fourth number, and the barcode on the cigarette carton as the fifth number. The second, third, and fourth numbers are pre-associated at the industrial production level and form a hierarchical binding relationship with the first and fifth numbers, mutually reinforcing and authenticating each other. Based on this, a fixed number of associations are established between all numbers. During verification, all code values ​​are collected simultaneously, and the first-level basic identity comparison, the second-level encryption deep authentication, and the third-level production information logical verification are executed sequentially. Two-way association verification is introduced, allowing the second, third, and fourth numbers to be deciphered from the first number, and the first, second, and third numbers to be deciphered from any fourth number. It also supports upward verification of the hierarchical relationship of the fifth number, thus forming a multi-source anti-counterfeiting label cross-verification mechanism from the cigarette carton to the small package. This invention improves the overall reliability and anti-tampering capability of the anti-counterfeiting system through multi-level code verification and bidirectional association verification. At the same time, the accuracy of verification can be further improved by organically integrating pre-built associations at the industrial production end with structural anti-counterfeiting features and logical consistency verification.

[0140] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0141] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.

Claims

1. A method for verifying accurate association of multiple cigarette codes, characterized in that, Includes the following steps: Step 1: Collect the numbers 1, 2, 3, and 4 from the cigarette packaging to be verified, as well as the number 5 from the cigarette carton; The number is composed of at least one of the following: a one-dimensional barcode image, a two-dimensional barcode image, a laser-printed image, and a built-in RFID tag on the surface of the bar package. The position of the number on the surface of the bar package and the pattern on the packaging surface together constitute a structural anti-counterfeiting feature. The second number is a QR code printed on the side of the package; The three numbers are digital codes or QR codes printed on the inside of the package; The four numbers are the QR code printed on the side of the small package and the QR code or digital code printed on the inside or back of the small package flap. The number five refers to the barcode on the large cardboard box of cigarettes; The second, third, and fourth numbers are pre-associated at the industrial production end, and together with the first and fifth numbers, they form a hierarchical binding relationship that is mutually associated and mutually authenticated. Step 2: Analyze the number to obtain the first product identification code, the second product identification code, the dynamic production traceability code, and the RFID storage information; Step 3: Based on the parsing result of the first number, and based on the mutual association and mutual authentication relationship, parse out the expected encoding information of the second, third, fourth, and fifth numbers; Step 4: Perform the first-level basic verification to verify the consistency of identity among the code values ​​in the number; Step 5: Perform the second-level deep verification, which verifies the authenticity of the RFID tag and its binding relationship with the packaging based on the encryption algorithm; Step Six: Perform the third-level production information verification to verify the production logic consistency between the first number, second number, third number, fourth number, and fifth number, and confirm the validity of the interrelated and mutual authentication relationships; Step 7: If any verification level fails, remove the cigarette packaging and generate an alarm signal. If all verifications pass, record the verification results, timestamps, and operator information for all levels, and generate a comprehensive verification report containing all associated code values ​​and verification conclusions.

2. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, The verification method further includes a bidirectional association verification step based on a fixed number of association relationships, specifically including: The verification process introduces a preset fixed number association logic, wherein one of the five numbers uniquely corresponds to and is associated with fifty of the first numbers, fifty of the second numbers, fifty of the third numbers, and five hundred of the fourth numbers; And each of the first numbers uniquely corresponds to and is associated with one of the second numbers, one of the third numbers, and ten of the fourth numbers; By parsing and reading the encoding information contained in the number, the expected encoding values ​​of the second number, third number and ten fourth numbers associated with the number are interpreted, and a positive consistency comparison is performed with the actual encoding values ​​of the collected second number, third number and fourth number respectively. By parsing and reading the encoding information contained in any four-digit number, the expected encoding values ​​of the first, second, and third digits corresponding to the four-digit number are reverse-correlated and interpreted, and then reverse consistency comparisons are performed with the actual encoding values ​​of the first, second, and third digits collected respectively. If the consistency comparison in any direction fails, the mutual association and mutual authentication relationship between the first, second, third, fourth and fifth numbers is deemed invalid, and the verification process is terminated.

3. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, The laser-printed image is segmented and recognized to obtain a dynamic production traceability code consisting of the production date, production shift, and serial number, specifically including: The acquired laser marking images are preprocessed, including grayscale conversion, noise filtering, and binarization. Based on the connected component features of characters, the preprocessed image is used to locate and segment characters to obtain a single character image; The segmented individual character images are input into a character recognition model based on a convolutional neural network for recognition. This character recognition model is specifically trained for characters with defects, tilting, and uneven lighting in cigarette inkjet printing. The identified character sequence is parsed according to the preset inkjet coding rules to extract the production date, production shift, and serial number information.

4. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, Before performing character segmentation and recognition on the laser-printed image, a authenticity verification step based on the physical characteristics of the laser-printed code is included, specifically: Analyze the grayscale distribution and edge diffraction characteristics of the laser-marked image under illumination at a specific angle; The extracted grayscale distribution curve and edge diffraction intensity are compared with the standard feature data generated by a pre-established physical characteristic model based on genuine laser marking equipment. If the similarity of the comparison results is lower than the preset threshold, the laser marking is determined to be counterfeit, and all subsequent verification steps are terminated directly.

5. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, Performing a second-level depth check specifically includes: Extract a character of a preset length from the second product identification code as a verification code; Input the verification key and the verification code from the RFID tag into the pre-stored two-way identity authentication model; The two-way authentication model uses the verification code as a public key to attempt to decrypt the RFID verification key. If the decryption is successful and a plaintext string conforming to the predetermined data format is obtained, the RFID tag is determined to be genuine. The two-way authentication model uses the plaintext string to encrypt the verification code and compares the encryption result with the original RFID verification key. If they are completely consistent, the association between the RFID tag and the cigarette packaging is confirmed to be valid.

6. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, Performing third-level production information verification specifically includes: Product batch information is parsed from the two numbers, and production date range and production line shift information are extracted from them; Perform an inclusion relationship check between the production date in the three numbers and the production date range; The production shift information in the three numbers is compared with the production line team information for consistency. In the preset production database, the serial number range is queried according to the production date and production shift, and it is verified whether the serial number in the three numbers exists in the serial number range, and whether the RFID production traceability code matches the serial number range; At the same time, the consistency of the coding information in the four numbers with the association relationship of the first number, the second number, and the third number is verified, and it is verified whether the quantity association satisfies the fixed relationship of one first number corresponding to ten fourth numbers; And perform logical consistency verification between the five numbers and the batch information of cigarettes to which the current verification unit belongs, and verify whether their quantity association satisfies the fixed relationship of one five number corresponding to fifty one numbers; Through the above verification, the final confirmation of the mutual association and authentication relationship between the first, second, third, fourth and fifth numbers is completed.

7. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, Before performing the first-level basic verification, a synchronization triggering step is also included, specifically: When a cigarette package is detected entering a preset verification station, a photoelectric sensor triggers an RFID reader to start reading the RFID tag information, and simultaneously triggers an industrial camera to capture the one-dimensional barcode image, two-dimensional barcode image, and laser-printed image of the number.

8. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, The steps for performing the second-level depth verification also include: While decrypting and verifying, the number of verifications and timestamp information for this verification are written to a specific storage area within the RFID tag; If the write operation fails or the information read from the storage area shows that the tag has been abnormally verified multiple times, it is determined that the RFID tag may be reused or poses a security risk, and the verification process is terminated and a security warning is generated.

9. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, Generate a comprehensive verification report containing all associated code values ​​and verification conclusions, specifically including: Establish a master record with the first product identification code as the unique index, and create sub-record tables under the master record that are associated with the second product identification code, dynamic production traceability code, RFID information, four-number and five-number respectively; For each level of the verification process, an uneditable process log is generated. The process log records the input parameters, intermediate calculation results, final judgment threshold, and judgment result of the verification process at that level. The verification conclusions of all levels are weighted and synthesized according to preset weights to obtain a quantified overall confidence score, and this overall confidence score, together with the verification conclusions of each level, is written into the comprehensive verification report.

10. The verification method for accurate association of multiple cigarette codes according to claim 1, characterized in that, After generating a comprehensive verification report containing all associated code values ​​and verification conclusions, it also includes: The data in the comprehensive verification report, including the coding information corresponding to the first number, the second number, the third number, the fourth number, the fifth number, and the final verification conclusion, are used to calculate a unique hash value. The hash value is used as the transaction identifier on the blockchain, and the core summary information of the comprehensive verification report is uploaded to the blockchain network for evidence storage.