Blockchain Distributed Ledger Technologies for Biomedical...

18
bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966. bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966. Tsung-Ting Kuo, PhD, Hyeon-Eui Kim, PhD, Lucila Ohno-Machado, MD, PhD University of California, San Diego Blockchain Distributed Ledger Technologies for Biomedical and Health Care Applications 8/7/17 1

Transcript of Blockchain Distributed Ledger Technologies for Biomedical...

Page 1: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Tsung-Ting Kuo, PhD, Hyeon-Eui Kim, PhD, Lucila Ohno-Machado, MD, PhDUniversity of California, San Diego

Blockchain Distributed Ledger Technologies for Biomedical and Health Care Applications

8/7/17 1

Page 2: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Objective and Scope

• The Bitcoin and Blockchain• Bitcoin is one of the most famous crypto-currencies• Blockchain is the underlying technology• A new distributed database beyond coin applications

• Objective• A preliminary study to investigate the possibility to

adopt Blockchain technology on bioCADDIE

• Scope• Bitcoin Blockchain features, alternatives, & applications• Key benefits and biomedical/healthcare applications

8/7/17 2

Page 3: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

The Bitcoin Blockchain (1/6)

• Challenge 1: double-spending transactions (TXs)

• We need a timestamp to determine order

Alice

10coins

Bob

10coins

Valid TX

Alice

10coins

Double-spending (Invalid) TX

Charlie

10coins

Bob

10coins

?

(suppose Alice only has these 10 coins)

8/7/17 3

Page 4: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

The Bitcoin Blockchain (2/6)

• Challenge 2: single-point-of-failure

• We need a distributed timestamping mechanism

Node 1

Node 2

Node 3

Node 4

CentralIntermediary

Single-point-of-failure

FailedCentral

Intermediary

FailedTX

Node 1

Node 2

Node 3

Node 4

No single-point-of-failure

FailedNode

8/7/17 4

Page 5: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

The Bitcoin Blockchain (3/6)

• Solution Step 1: hash-chain timestamping

Node 1

Node 2

Node 3

Node 4

No single-point-of-failure with verified TXs

Double-spend?

Double-spend? Double-

spend?

Reject

Reject

Reject

Double-spending nodeDistributed timestamping

Everyone can see everything

(Alice’s 2 transactions)

8/7/17 5

Page 6: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

The Bitcoin Blockchain (4/6)

• Solution Step 1: hash-chain timestamping (cont.)

• Every node maintains a copy of all TXs• Hash-chain (blockchain) decides the order of TXs

• However, we still need to deal with invalid blocks• Blocks should be hard to create but easy to check

Block B2

Block B1

Hash of Block B0’s Header…

TX T11

Hash of Block B1’s Header

TX T12 TX T21

…TX T22

(Alice ➝ Charlie) (Alice ➝ Bob)

Accepted Rejected

TXs in B1 TXs in B2

8/7/17 6

Page 7: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

The Bitcoin Blockchain (5/6)

• Solution Step 2: proof-of-work algorithmBlock B1’s Header

Hash… Nonce N1 …Hash Nonce N2

…Nonce N2 = “7C 4D DB 29” ➝ Hash of B2’s header = “2D F8 8E 32 … 10 9A FE 1C”, NO (T = 10:14:20)Nonce N2 = “7C 4D DB 30” ➝ Hash of B2’s header = “41 2A B3 DC … 94 29 AB B5”, NO (T= 10:14:25)Nonce N2 = “7C 4D DB 31” ➝ Hash of B2’s header = “00 00 4F 65 … 2F ED 31 09”, YES (T = 10:14:30)

…Nonce N2 = “61 0A 3F 3A” ➝ Hash of B2’s header = “A8 C7 08 C9 … 3D F1 A2 F9”, NO (T = 10:14:23)Nonce N2 = “61 0A 3F 3B” ➝ Hash of B2’s header = “2A E9 84 66 … 91 B4 58 CE”, NO (T = 10:14:28)Stopped after identifying that Node 1 has completed proof-of-work at time = 10:14:30

…Nonce N2 = “99 06 10 13” ➝ Hash of B2’s header = “FB 2F 26 D9 … 39 F5 C1 0B”, NO (T = 10:14:21)Nonce N2 = “99 06 10 14” ➝ Hash of B2’s header = “E2 1C 09 05 … 25 3E AA CF”, NO (T = 10:14:26)Stopped after identifying that Node 1 has completed proof-of-work at time = 10:14:30

Every node starts proof-of-work Node 1 creates B2 for incentives

Node1

Node2

Node3

Block B2’s HeaderBlock B2’s HeaderTXs TXs

(require 4 hex digits of leading zeroes by the consensus protocol)

8/7/17 7

Page 8: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

The Bitcoin Blockchain (6/6)

• Solution Step 2: proof-of-work algorithm (cont.)

• Majority voting (honest CPUs malicious CPUs)

“Honest” Block H1

Hash Nonce

TXs

“Longest” branch chain

Not-“Longest” branch chains

“Malicious” Block M1

Hash Nonce

TXs

“Malicious” Block M2

Hash Nonce

TXs

“Honest” Block H2

Hash Nonce

TXs

“Honest” Block H3

Hash Nonce

TXs

“New” Block N

Nonce

TXs

Hash

8/7/17 8

Page 9: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Alternatives & Applications• Alternative crypto-currencies and blockchains

• Coins: Ethereum, Ripple, Dash, Litecoin, Monero, …• Protocols: proof-of-stake/burn/elapsed-time/…

• Blockchains as distributed ledgers• Metadata of TX: MultiChain, BigchainDB, …• Smart contract/property: Ethereum, Hyperledger, …

• Non-financial applications• Either permissioned or permission-less networks

• Use blockchain to help healthcare/research• Instead of being harmful (e.g., pay for ransomware)

8/7/17 9

Page 10: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Key Benefits

• Comparing to traditional distributed databases• Decentralized management• Immutable audit trail• Data provenance• Robustness/availability• Security/privacy

• Crucial for biomedical and healthcare applications• To share, exchange, analyze, record, and validate data• One of the most important emerging application area• Especially for Health Information Exchange (HIE)

8/7/17 10

Page 11: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Biomedical/Healthcare (1/4)

• Improved medical record management

Key Benefit Biomedical/Healthcare Use Case

Decentralized Management Patient-managed healthcare records

Immutable Audit Trail Unalterable patient records

Data Provenance Source-verifiable medical records

Robustness/Availability Reduced burden of patient record keeping

Security/Privacy Increased safety of medical records

8/7/17 11

Page 12: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Biomedical/Healthcare (2/4)

• Enhanced insurance claim process

Key Benefit Biomedical/Healthcare Use Case

Decentralized Management Real-time claim processing

Immutable Audit Trail Improved claim auditing and fraud detection:

Data Provenance Verifiable records for claim qualification:

Robustness/Availability Enhanced accessibility of patient data

Security/Privacy Increased security of patient medical insurance info

8/7/17 12

Page 13: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Biomedical/Healthcare (3/4)

• Advanced biomedical/healthcare data ledger

Key Benefit Biomedical/Healthcare Use Case

Decentralized Management Decentralized health data backbone

Immutable Audit Trail Unchangeable log of clinical research protocols

Data Provenance Ensured original manufacturer and ownershiptransferring in pharmaceutical supply chain

Robustness/Availability Improved robustness for counterfeit drug prevention anddetection systems in pharmaceutical supply chain

Security/Privacy Higher patient confidence for consent recording systems

8/7/17 13

Page 14: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Biomedical/Healthcare (4/4)

• Accelerated clinical/biomedical research

Key Benefit Biomedical/Healthcare Use Case

Decentralized Management Improved data sharing/analysis without ceding control

Immutable Audit Trail Trackable and timestamped patient-generated data

Data Provenance Evidenced provenance for medical research data

Robustness/Availability Superior healthcare data availability

Security/Privacy Secure and privacy-preserving healthcare data sharing

8/7/17 14

Page 15: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Potential Activity Area

Data ShopIndexing,

Linking data to articles

Software dev

New ideas via Pilot Projects, Supplements

Data Showcase

Search Engine

Prototype

User Feedback

Data Market

Incentives to Share, Data

Citation

Outreach

1 2 3

BlockchainDecentralized ManagementImmutable Audit TrailData ProvenanceRobustness/AvailabilitySecurity/Privacy

8/7/17 15

Page 16: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Challenges and Solutions

• Potential problems and challenges• Transparency/confidentiality: “pseudonymity”• Speed/scalability: max 7 TXs/second for Bitcoin• Threat of a 51% attack: honest CPUs malicious CPUs

• Proposed solutions and implementations• Aggregated-data/encrypted-data• Index-data/new-implementation• Private/VPN/HIPAA-cloud• Example: ModelChain

https://healthit.gov/blockchain

Office of the National Coordinator for Health IT

8/7/17 16

Page 17: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Conclusion

• Bitcoin and Blockchain technology• Decentralized management, immutable audit trail, data

provenance, robustness/availability, security/privacy

• Biomedical/healthcare Blockchain applications• Medical record, insurance claim, healthcare ledger,

clinical/biomedical research

• We expect many new applications to emerge soon • Adoption on bioCADDIE such as Data Market

• Review paper accepted by JAMIA• DOI: 10.1093/jamia/ocx068

8/7/17 17

Page 18: Blockchain Distributed Ledger Technologies for Biomedical ...pscanner.ucsd.edu/.../files/uploads/biocaddie_blockchain_tutorial_v8.… · • The Bitcoin and Blockchain • Bitcoin

bioCADDIE is supported by the National Institutes of Health through the Big Data to Knowledge, Grant U24AI117966.

Thank you

AcknowledgementsNIH U24AI117966PCORI CDRN-1306-04819NIH U54HL108460NIH UL1TR001442VA IIR12-068

8/7/17 18