-
-
Cyber-Medical HUD: Real-time pharmaceutical packaging inspection console with GS1 DataMatrix decoding.
-
Authentic Batch Verification: 2D FFT micro-print analysis achieving 99.4% authenticity index with on-chain match.
-
Physical Tamper Alert: High-frequency vision engine detecting micro-print degradation and broken packaging seals.
-
Counterfeit QR Trap: Intercepting photocopied genuine QR codes via on-chain double-dispense state locks.
-
Immutable Ledger: Live Merkle block feed and GS1 EPCIS 2.0 compliant event chain for audit trails.
Inspiration
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
💡 Inspiration
Over 1 million people die each year due to counterfeit medication, with the global illicit drug trade exceeding $200 billion annually. Today's supply chain security relies almost entirely on 2D barcodes or standard QR stickers. Counterfeiters purchase genuine pharmaceuticals, duplicate the high-resolution QR codes, and affix them to fake or toxic drugs. Standard retail scanners cannot detect cloned codes.
TraceRx AI solves this problem by combining physical micro-print vision forensics with on-chain cryptographic state transitions.
⚙️ What It Does
- 2D FFT Micro-Print Forensics: Analyzes packaging print texture using 2D Fast Fourier Transforms (FFT) and Laplacian variance at 600 DPI to detect differences between authentic industrial offset printing and desktop inkjet/laser counterfeit reproduction.
- GS1 EPCIS 2.0 Compliance: Extracts and parses standard GS1 DataMatrix identifiers: GTIN (01), Serial Number (21), Expiration Date (17), and Lot Number (10) into FDA DSCSA and EU FMD compliant JSON-LD payloads.
- On-Chain Double-Dispense Interception: Once a medication is dispensed to a patient, its state transitions to
DISPENSEDon the blockchain. When an illicit party clones that code onto fake packaging, the system immediately flags:DUPLICATE QR REUSE ATTEMPT: Original package already dispensed.
🏗️ How We Built It
- Vision Pipeline: Python 3.11, OpenCV, and NumPy running high-frequency spectral density extraction in under 20ms.
- Smart Contracts: Solidity (
^0.8.20) role-based contracts (MANUFACTURER,DISTRIBUTOR,PHARMACY) deployable to Base Sepolia / Polygon Amoy. - Backend Service: FastAPI handling asynchronous batch validation, EPCIS serialization, and Web3 RPC integration.
- Mobile Scanner Client: Flutter edge-scanning application with an offline-first SQLite cache for low-bandwidth rural health centers.
- HUD Telemetry Dashboard: High-FPS Cyber-Medical inspection console deployed on Vercel.
🏆 Key Accomplishments
- 100% Test Coverage: 16 forensic vision, crypto ledger, and tamper classification tests passing in 1.31s.
- Zero-False-Sense-of-Security: Eliminates the classic blind spot of barcode scanners approving cloned labels.
- Production Ready: Built on international healthcare traceability standards (GS1 EPCIS 2.0). ## What's next for TraceRx AI

Log in or sign up for Devpost to join the conversation.