Intelligent traceability system for veterinary drug safety information

CN122840420APending Publication Date: 2026-09-29SUZHOU TEYIJIE BIOTECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611009181.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-08
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

[0002]兽药是指专门用于动物身上的用于预防、治疗等目的的辅助性药物,对于兽药来说由于其应用在动物身上,因此,经常出现各种盗版药物,而为了应用药物的仿制和贴牌,各个生产厂家设计了各种防伪方式,最常见的就是在兽药包装上加装防伪码,但是由于防伪码的可复制性,依然无法阻止市面上各种仿制的兽药通过在外包装上复刻防伪码的方式来进行售卖,由于防伪码是通过正品完全一比一复制的,因此即使卖家通过官方扫码也可能会出现识别为正品的情况

Benefits of technology

通过在云端设计主状态机的形式对二维码的状态进行识别,这样在不同的使用阶段,二维码会通过不同形式的方法在云端记录下当前二维码的状态,并通过与主体状态进行位置分析等方法来确定使用的可能范围,进一步查验用户的使用范围,通过状态和范围的双重校验来确定用户的产品是否为正品,能够避免仿制品通过复制正品二维码的方式来以假乱真。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122840420A_ABST
    Figure CN122840420A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data tracing, and particularly relates to an intelligent tracing system for veterinary drug safety information, comprising: a tracing code state management module for establishing a tracing code for a drug and maintaining a main state machine corresponding to the tracing code in a cloud server; an identity authentication module for performing identity authentication on a subject unit participating in the circulation of the drug; a circulation state updating module for receiving circulation state data submitted by an authenticated subject and updating the main state machine according to the circulation state data; and a data analysis module for receiving scanning and checking data of a purchase user, performing credibility analysis according to the scanning and checking data, the main state machine and a trusted circulation record, and generating a checking result. The present application identifies the state of a two-dimensional code by designing a main state machine in the cloud, and determines whether the product of the user is a genuine product through double verification of the state and the range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data traceability technology, and in particular to an intelligent traceability system for veterinary drug safety information. Background Technology

[0002] Veterinary drugs are auxiliary medications specifically used on animals for prevention and treatment. Because they are applied to animals, counterfeit veterinary drugs are frequently produced. To prevent counterfeiting and rebranding, manufacturers have designed various anti-counterfeiting measures, the most common being adding anti-counterfeiting codes to the packaging. However, due to the replicability of these codes, it is still impossible to prevent counterfeit veterinary drugs from being sold by copying the anti-counterfeiting codes onto the outer packaging. Since the anti-counterfeiting codes are completely copied one-to-one from the genuine products, even if the seller scans the code through official channels, it may still be identified as a genuine product. Summary of the Invention

[0003] To address the shortcomings of existing technologies, this invention provides the following technical solution: The intelligent traceability system for veterinary drug safety information includes: a traceability code status management module, an identity authentication module, a circulation status update module, and a data analysis module.

[0004] Specifically, the traceability code status management module is used to establish traceability codes for drugs and maintain the master state machine corresponding to the traceability codes in the cloud server; the identity authentication module is used to authenticate the entities involved in drug circulation; the circulation status update module is used to receive circulation status data submitted by the certified entities and update the master state machine according to the circulation status data; the data analysis module is used to receive the scan verification data from purchasing users, perform credibility analysis based on the scan verification data, the master state machine, and the trusted circulation records, and generate verification results.

[0005] As an improvement to the above technical solution, a data storage module is included, which is used to store the circulation status data, the state change records of the main state machine, and the scanning verification records of purchasing users.

[0006] After receiving the scan verification data from the purchasing user, the data analysis module does not update the main state machine based on the scan verification data. Instead, it reads the previous trusted circulation record in the main state machine and determines whether the traceability link of the current scanned product is trustworthy based on the subject identity information, IP information, location information and time information in the previous trusted circulation record.

[0007] As an improvement to the above technical solution, the main state machine includes multiple circulation state nodes and state transition edges connecting adjacent circulation state nodes. The circulation state nodes are the set states of the device when it passes through each circulation node for scanning, and each state transition edge corresponds to a circulation event.

[0008] The circulation status nodes include at least the traceability code generation status, activated status, production entity inventory status, transportation status, distribution entity inventory status, sold status, used status, recalled status, and invalidated status. Each status transition edge corresponds to a circulation event and is configured with a preceding status, target status, allowed operation entity type, and current holding entity constraints.

[0009] As an improvement to the above technical solution, after the identity authentication module authenticates the entity, it generates an authentication entity identifier corresponding to the entity. The authentication entity identifier is bound to the entity's operation account, device fingerprint, client IP, and location area. The circulation status update module only receives circulation status data carrying the authentication entity identifier.

[0010] As an improvement to the above technical solution, the circulation status update module includes a state transition verification unit, a subject permission verification unit, and a regional constraint verification unit. The state transition verification unit is used to determine whether the circulation event corresponding to the circulation status data conforms to the current state of the main state machine; the subject permission verification unit is used to determine whether the authentication subject submitting the circulation status data meets the current holding subject constraint; and the regional constraint verification unit is used to determine whether the IP home region and / or location region in the circulation status data meet the regional constraint conditions of the corresponding subject unit.

[0011] As an improvement to the above technical solution, the regional constraint verification unit generates a regional constraint model based on the registration area, historical trusted operation area and preset operating radius of the main unit. When the IP attribution area and / or location area in the circulation status data exceeds the regional constraint model, the circulation status update module does not update the main state machine and records the corresponding circulation status data as abnormal circulation data.

[0012] As an improvement to the above technical solution, the circulation state update module generates a trusted circulation record simultaneously when updating the main state machine. The trusted circulation record corresponds to the state transition edge in the main state machine and is used to characterize the trusted circulation fact that the traceability code has been transferred from the previous circulation state node to the next circulation state node.

[0013] As an improvement to the above technical solution, the data analysis module includes a trusted record backtracking unit, a verification feature construction unit, and a trustworthiness judgment unit. The trusted record backtracking unit is used to read the previous trusted circulation record corresponding to the current traceability code from the main state machine. The verification feature construction unit is used to generate a verification feature vector based on the correspondence between the previous trusted circulation record and the scanned verification data. The trustworthiness judgment unit is used to determine whether the traceability link of the current scanned product is trusted based on the verification feature vector.

[0014] As an improvement to the above technical solution, the verification feature vector includes state consistency features, subject link features, regional consistency features, and spatiotemporal reachability features. The state consistency features are used to characterize whether the current traceability code status allows the purchasing user to verify it. The subject link features are used to characterize the matching relationship between the subject unit corresponding to the previous trusted circulation record and the actual purchase source of the purchasing user. The regional consistency features are used to characterize the matching relationship between the region corresponding to the scan verification data and the operation region corresponding to the previous trusted circulation record. The spatiotemporal reachability features are used to characterize whether the operation time and operation region corresponding to the previous trusted circulation record and the scan time and scan region corresponding to the scan verification data meet the physical reachability conditions.

[0015] As an improvement to the above technical solution, the credibility judgment unit first performs hard conflict judgment, and then performs credibility calculation. When the verification status is within the range of hard conflict judgment, the traceability link abnormal result is directly generated. When there is no hard conflict, the credibility judgment unit calculates the credibility value based on the verification feature vector, and generates a link credibility result, a confidence insufficient result, or a link abnormal result based on the credibility value.

[0016] The beneficial effects of this invention are: By designing a master state machine in the cloud to identify the state of the QR code, the QR code will record its current state in the cloud in different ways at different stages of use. The possible range of use can be determined by methods such as position analysis with the master state, and the user's usage range can be further verified. Through dual verification of state and range, it can be determined whether the user's product is genuine, which can prevent counterfeit products from passing off as genuine products by copying the QR code of the genuine product. Attached Figure Description

[0017] Figure 1 This is a flowchart of the present invention. Detailed Implementation

[0018] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.

[0019] In order to facilitate the counterfeiting and rebranding of drugs, various manufacturers have designed various anti-counterfeiting methods. The most common one is to add anti-counterfeiting codes to veterinary drug packaging. However, due to the replicability of anti-counterfeiting codes, it is still impossible to prevent various counterfeit veterinary drugs from being sold by replicating anti-counterfeiting codes on the outer packaging. Since the anti-counterfeiting codes are completely copied one-to-one from the genuine products, even if the seller scans the code through the official channels, it may still be recognized as a genuine product.

[0020] To resolve the above issues, please refer to Figure 1 This invention provides an intelligent traceability system for veterinary drug safety information, comprising: a traceability code status management module, an identity authentication module, a circulation status update module, and a data analysis module.

[0021] Specifically, the traceability code status management module is used to establish traceability codes for drugs and maintain the master state machine corresponding to the traceability code in the cloud server. The master state machine is used to represent the state changes of the traceability code in the circulation process, but does not record the user's scanning behavior.

[0022] The main state machine is constructed in the form of a state chain, which may be tree-like or a single chain, depending on the specific sales status. The design of the main state machine includes multiple circulation state nodes and state transition edges connecting adjacent circulation state nodes. The circulation state is marked according to the transition state. The circulation state node is the set state of the device when it passes through each circulation node for scanning. Each state transition edge corresponds to a circulation event.

[0023] In the design of circulation status nodes, the following statuses are preset: traceability code generation status, activated status, production entity inventory status, transportation status, distribution entity inventory status, sold status, used status, recalled status, and obsolete status. Of course, new statuses may be discovered in specific applications, and the specific situation will be modified according to the specific application environment.

[0024] For each state transition edge, the default definition is a circulation event. For circulation events, conditions such as the preceding state, the target state, the allowed types of operators, and the current holder constraints need to be configured.

[0025] By designing nodes and edges, the links of the master state machine can be accurately located, and the system can constrain the traceability code to change only along a preset trusted flow path through state transition edges.

[0026] In one embodiment, the identity authentication module is used to authenticate the entities involved in drug distribution. In this embodiment, participating entities typically include manufacturers, distributors, warehousing entities, stores, and regulatory bodies. After authentication, the system generates an authentication entity identifier for each entity and binds this identifier to its operating account, device fingerprint, client IP address, and location area. When an entity submits distribution status data, the system first determines whether the data carries a valid authentication entity identifier. Data without a valid identifier cannot be used to update the main state machine. The distribution status update module only receives distribution status data carrying an authentication entity identifier and updates the main state machine accordingly.

[0027] In one embodiment, the circulation status update module includes a status transition verification unit, a subject authority verification unit, and a region constraint verification unit.

[0028] The state transition verification unit is used to determine whether the circulation event corresponding to the circulation status data matches the current state of the main state machine. For example, when the traceability code is in the production entity's inventory state, an outbound event can be executed; when the traceability code is in the transportation state, an inbound event can be executed; when the traceability code is already in the used state, it cannot be used again as a newly purchased product to execute sales or purchase confirmation related events. If the circulation event does not match the current state, the system rejects the current state update and stores the data as abnormal circulation data.

[0029] The entity authorization verification unit is used to determine whether the authenticated entity submitting circulation status data meets the constraints of the current holding entity. Specifically, the master state machine records the current holding entity after each trusted update, and the entity that can drive the state change next should be the current holding entity or an authorized downstream entity designated by the current holding entity. For example, if a manufacturer designates a certain distributor as the receiving entity after the goods are shipped out, then when the traceability code is in the transportation state, only the designated distributor or its authorized account can submit the warehousing confirmation data.

[0030] The regional constraint verification unit is used to determine whether the IP address's attribution region and / or location region in the circulation status data meets the regional constraint conditions of the corresponding entity. The regional constraint verification unit generates a regional constraint model based on the entity's registration region, historical trusted operating region, and preset operating radius. The constraint model applies location constraints based on conditions, typically limited by the entity's registered area, historically reliable operating area, and preset operating radius. If a distributor operates within the registered area and reasonable operating radius of location A for an extended period, but the IP address and location of a particular inbound or sales transaction show an abnormal city far from the registered area, the regional constraint verification will fail. In this case, the circulation status update module will not update the main state machine but will instead record it as abnormal circulation data.

[0031] When the state transition verification, subject authorization verification, and area constraint verification all pass, the circulation state update module updates the main state machine from the previous state to the target state and simultaneously generates a trusted circulation record. The trusted circulation record corresponds to the state transition edges in the main state machine and is used to represent the trusted circulation fact that the traceability code has transitioned from the previous circulation state node to the next circulation state node. This trusted circulation record may include, but is not limited to, trusted operating subjects, circulation events, operation time, operation area, and upstream and downstream relationships.

[0032] In one embodiment, the system further includes a data storage module for storing circulation status data, state change records of the master state machine, and barcode verification records of purchasing users.

[0033] To distinguish between credible circulation facts and ordinary verification behavior, the data storage module records data submitted by the certified entity and verified as credible circulation records, and records the QR code verification data submitted by the purchasing user as verification records. Verification records can be used for subsequent risk analysis, but are not used as the basis for updating the state of the master state machine.

[0034] In one embodiment, the data analysis module is used to receive the QR code verification data from the purchasing user, perform credibility analysis based on the QR code verification data, the master state machine, and the trusted circulation record, and generate the verification result.

[0035] Since purchasing users typically cannot perform strong identity authentication like manufacturers or distributors, the data analysis module, upon receiving the scanning verification data from the purchasing user, does not update the main state machine based on this data. Instead, it performs a read-only verification. This involves reading the previous trusted circulation record from the main state machine and determining the trustworthiness of the traceability link for the currently scanned product based on the entity's identity information, IP address, location information, and time information from that record.

[0036] Specifically, the data analysis module includes a trusted record backtracking unit, a verification feature construction unit, and a trustworthiness judgment unit, among which: The trusted record backtracking unit is used to read the previous trusted circulation record corresponding to the current traceability code from the main state machine. The previous trusted circulation record refers to the most recent state update record of the traceability code submitted and verified by the authenticated entity in the main state machine before the purchasing user scanned the code. By backtracking the previous trusted circulation record, the system can obtain the entity information and operational scenario of the previous layer in the trusted circulation link for the current product.

[0037] The verification feature construction unit is used to generate verification feature vectors based on the correspondence between the previous trusted circulation record and the QR code verification data. Specifically, the verification feature vectors include state consistency features, main link features, regional consistency features, and spatiotemporal reachability features.

[0038] Among them, the state consistency feature is used to characterize whether the current traceability code status allows the purchasing user to verify it. For example, when the traceability code is in the activated, sold, or distributor inventory status, different verification results can be shown to the user according to the specific business scenario; when the traceability code is in the recalled or invalidated status, the state consistency feature directly points to an anomaly; when the traceability code is in the used status and is then verified as a newly purchased product, the state consistency feature also points to an anomaly.

[0039] The main link feature is used to characterize the matching relationship between the entity corresponding to the previous trusted circulation record and the actual purchase source of the purchasing user. When the purchasing user scans the code, the data analysis module can display the information of the previous layer's selling entity or holding entity in the previous trusted circulation record. The purchasing user can determine whether the entity is the real purchase source based on their actual purchase location, seller name, or transaction voucher. If the purchase source reported by the user is significantly inconsistent with the previous trusted circulation entity, the credibility of the main link feature is reduced; if the two are consistent or there is an authorized distribution relationship, the credibility of the main link feature is increased.

[0040] The regional consistency feature is used to characterize the matching relationship between the region corresponding to the QR code verification data and the operating region corresponding to the previous trusted circulation record. The data analysis module compares the IP address and / or location region of the purchasing user when scanning the QR code with the trusted operating region, entity registration region, or authorized operating region in the previous trusted circulation record. The regional consistency feature is high when the current QR code scanning region is within the previous trusted operating region or its reasonable operating radius; the regional consistency feature is low when the current QR code scanning region is significantly inconsistent with the previous trusted operating region, and there is no subsequent trusted circulation record for the corresponding region in the main state machine.

[0041] The spatiotemporal reachability feature is used to characterize whether the operation time corresponding to the previous trusted circulation record, the operation area, the scanning time corresponding to the scanning verification data, and the scanning area meet the physical reachability conditions. The data analysis module can calculate the theoretical movement speed of the product corresponding to the traceability code from the previous trusted node to the current scanning location based on the distance between the previous trusted operation area and the current scanning area, and the time difference between the previous trusted operation time and the current scanning time. When this theoretical movement speed exceeds a preset speed threshold, it indicates that the same traceability code is physically difficult to transfer, and the data analysis module determines it as a spatiotemporal conflict.

[0042] In one embodiment, the credibility judgment unit is used to determine whether the traceability link of the currently scanned product is credible based on the verification feature vector. The credibility judgment unit first performs a hard conflict determination, and then performs a credibility calculation. The hard conflict determination is used to identify situations that can be directly identified as traceability link anomalies, including traceability code non-existent, traceability code inactive, traceability code invalidated, traceability code recalled, traceability code registered and used and then verified again as a newly purchased product, or the same traceability code appearing in multiple physically inaccessible areas within a preset time. If any of the above situations exist, the data analysis module directly generates a traceability link anomaly result.

[0043] When no hard conflict exists, the credibility assessment unit calculates the credibility value based on state consistency characteristics, main link characteristics, regional consistency characteristics, and spatiotemporal reachability characteristics. Specifically, corresponding weights can be assigned to each of these characteristics, and the weighted sum of each characteristic value is performed to obtain the credibility value of the traceability link for the current scanned product. State consistency characteristics ensure that the current state of the traceability code supports verification; main link characteristics reflect the consistency between the actual purchase source of the user and the previous trusted entity; regional consistency characteristics reflect the consistency between the current scanning location and the previous trusted circulation area; and spatiotemporal reachability characteristics exclude abnormal links where physical movement is impossible.

[0044] The data analysis module generates verification results based on the credibility value. If the credibility value is greater than the first threshold, a reliable traceability result is generated, indicating that the current scanned product is basically consistent with the reliable circulation path stored in the cloud server. If the credibility value is less than the second threshold, an abnormal traceability result is generated, indicating that the current scanned product has a duplicate code, abnormal channel, or other traceability anomaly risks. If the credibility value is between the first and second thresholds, an insufficient confidence result is generated, and the subject identity information, IP information, location information, and time information from the previous reliable circulation record are sent back to the purchasing user, who then verifies the information based on the actual purchase location and seller.

[0045] For example, in a specific application scenario, a manufacturer establishes and activates a traceability code for a veterinary drug product, and then sends the product to a distributor in location A via an outbound event. After the distributor in location A completes the warehousing, the current holding entity in the main state machine is updated to the distributor. If the distributor sells the product to a buyer and submits verified sales data, the main state machine is updated to the "sold" state, and a previous trusted circulation record containing the distributor's identity and the sales operation area is formed. When a buyer scans the code to verify, the data analysis module reads this previous trusted circulation record and compares it with the buyer's scanning area, scanning time, and the purchase source confirmed by the user, thereby generating a trustworthiness judgment result.

[0046] Through the methods described above, users can directly discover the status of the purchased product, thereby distinguishing whether the product is genuine or potentially counterfeit. This method can directly identify whether a product is genuine, but it will not directly output that the product is counterfeit. Instead, it will output that the product is in a suspicious state and output the problematic nodes based on the traceability link. In this way, the buyer can combine their purchase memory to analyze and determine whether the product is counterfeit. It also leaves room for remediation of system analysis errors.

[0047] The above embodiments are merely illustrative of the technical solutions of the present invention and are not intended to limit it. Anyone skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. An intelligent traceability system for veterinary drug safety information, characterized in that, include: The traceability code status management module is used to establish traceability codes for drugs and maintain the master state machine corresponding to the traceability codes in the cloud server. The identity authentication module is used to authenticate the identities of the entities involved in drug circulation. The circulation status update module is used to receive circulation status data submitted by the certified entity and update the main state machine according to the circulation status data. The data analysis module is used to receive the QR code verification data from purchasing users, perform credibility analysis based on the QR code verification data, the main state machine, and the trusted circulation record, and generate verification results.

2. The intelligent traceability system for veterinary drug safety information according to claim 1, characterized in that, It includes a data storage module for storing the circulation status data, the state change records of the main state machine, and the scan verification records of purchasing users; After receiving the scan verification data from the purchasing user, the data analysis module does not update the main state machine based on the scan verification data. Instead, it reads the previous trusted circulation record in the main state machine and determines whether the traceability link of the current scanned product is trustworthy based on the main information in the previous trusted circulation record.

3. The intelligent traceability system for veterinary drug safety information according to claim 1, characterized in that: The master state machine includes multiple circulation state nodes and state transition edges connecting adjacent circulation state nodes. The circulation state nodes are the set states of the device when it passes through each circulation node for scanning. Each state transition edge corresponds to a circulation event.

4. The intelligent traceability system for veterinary drug safety information according to claim 1, characterized in that: After the identity authentication module authenticates the entity, it generates an authentication entity identifier corresponding to the entity. The authentication entity identifier is bound to the entity's operation account, device fingerprint, client IP, and location area. The circulation status update module only receives circulation status data carrying the authentication entity identifier.

5. The intelligent traceability system for veterinary drug safety information according to claim 1, characterized in that: The circulation status update module includes a status transition verification unit, a subject permission verification unit, and a regional constraint verification unit. The state transition verification unit is used to determine whether the circulation event corresponding to the circulation state data conforms to the current state of the main state machine; The subject authority verification unit is used to determine whether the certified subject submitting the circulation status data meets the current holding subject constraints; the regional constraint verification unit is used to determine whether the IP home region and / or location region in the circulation status data meet the regional constraint conditions of the corresponding subject unit.

6. The intelligent traceability system for veterinary drug safety information according to claim 5, characterized in that: The regional constraint verification unit generates a regional constraint model based on the main entity's registered area, historical trusted operation area, and preset operating radius. When the IP address region and / or location region in the circulation status data exceed the region constraint model, the circulation status update module does not update the master state machine and records the corresponding circulation status data as abnormal circulation data.

7. The intelligent traceability system for veterinary drug safety information according to claim 1, characterized in that: When updating the main state machine, the circulation status update module synchronously generates a trusted circulation record. The trusted circulation record corresponds to the state transition edge in the master state machine and is used to characterize the trusted circulation fact that the traceability code is transferred from the previous circulation state node to the next circulation state node.

8. The intelligent traceability system for veterinary drug safety information according to claim 7, characterized in that: The data analysis module includes a trusted record backtracking unit, a verification feature construction unit, and a trustworthiness judgment unit; The trusted record backtracking unit is used to read the previous trusted circulation record corresponding to the current traceability code from the main state machine; The verification feature construction unit is used to generate a verification feature vector based on the correspondence between the previous trusted circulation record and the QR code verification data; The credibility judgment unit is used to determine whether the traceability link of the current scanned product is credible based on the verification feature vector.

9. The intelligent traceability system for veterinary drug safety information according to claim 8, characterized in that: The verification feature vector includes state consistency features, main link features, regional consistency features, and spatiotemporal reachability features; The state consistency feature is used to characterize whether the current traceability code status allows the purchasing user to verify it. The main link feature is used to characterize the matching relationship between the main entity corresponding to the previous trusted circulation record and the actual purchase source of the purchasing user; The regional consistency feature is used to characterize the matching relationship between the region corresponding to the scanned verification data and the operation region corresponding to the previous trusted circulation record. The spatiotemporal reachability feature is used to characterize whether the operation time and operation area corresponding to the previous trusted circulation record and the scanning time and scanning area corresponding to the scanning verification data meet the physical reachability conditions.

10. The intelligent traceability system for veterinary drug safety information according to claim 8, characterized in that: The credibility determination unit first performs hard conflict determination, and then performs credibility calculation; When the inspection status is within the hard conflict determination range, a traceability link abnormality result is generated directly; When there is no hard conflict, the credibility judgment unit calculates the credibility value based on the verification feature vector, and generates a link credibility result, a confidence insufficient result, or a link abnormal result based on the credibility value.