Care operations · Research feature

Trustworthy Blockchain-based Federated Learning for Electronic Health Records: Securing Participant Identity with Decentralized Identifiers and Verifiable Credentials

The study evaluated a blockchain-based federated learning system that uses Decentralized Identifiers and Verifiable Credentials to authenticate healthcare institutions.

Adapted from research by Rodrigo Tertulino, Ricardo Almeida, Laercio Alencar.

arXiv preprint revision · 2026-02-02 · Attribution & reuse
In this article
Editorial illustration of stack of documents.

Editor’s introduction

The study evaluated a blockchain-based federated learning system that uses Decentralized Identifiers and Verifiable Credentials to authenticate healthcare institutions. The research found the system neutralized 100% of Sybil attacks and maintained strong predictive performance with an AUC of 0.954 and recall of 0.890. The framework demonstrated minimal computational overhead and low operational costs, with total expenses of about $18 for 100 training rounds.

Introduction

The digital transformation of healthcare has catalyzed an exponential growth in Electronic Health Records (EHRs), creating vast repositories of clinical data with substantial potential for training high-performance Artificial Intelligence (AI) models. These models promise to enhance diagnostic accuracy, predict patient outcomes, and optimize treatment strategies. Nevertheless, the utility of this data is severely constrained by stringent privacy regulations, including the General Data Protection Regulation (GDPR) in Europe and the Health Insurance Portability and Accountability Act (HIPAA) in the United States. These regulatory frameworks mandate strict controls on patient data, effectively creating isolated data silos that prohibit the centralization of sensitive medical information across institutions.

In response to these challenges, Federated Learning (FL) has emerged as a compelling decentralized paradigm that enables multiple healthcare institutions to collaboratively train machine learning models without directly sharing their local datasets. Instead of centralizing raw data, FL participants exchange only computational updates, specifically, model gradients or parameters, thereby preserving patient privacy while enabling collaborative intelligence. This approach represents a fundamental shift from traditional centralized learning architectures, offering a promising solution to the inherent tension between data utility and privacy protection in healthcare analytics.

To address these security concerns, researchers have increasingly turned to Blockchain technology as a complementary infrastructure for FL systems. Blockchain integration offers several advantages, including providing an immutable audit trail for all transactions, removing single points of failure associated with central aggregators, and enabling transparent enforcement of consensus protocols. Furthermore, novel frameworks have explored sophisticated incentive mechanisms designed to reward honest participation and penalize malicious behavior. These blockchain-based FL (BFL) systems represent significant progress toward more secure collaborative learning environments.

Nevertheless, a critical gap persists in current BFL architectures: the overwhelming majority of existing solutions rely on post-hoc reputation scoring mechanisms rather than a priori cryptographic identity verification. In these systems, trust is typically established reactively, based on the statistical quality of submitted gradients or participants’ historical behavior, rather than through proactive institutional authentication. This approach proves insufficient for critical healthcare environments, where verifying the legitimacy of a participating node, for instance, confirming that it represents a licensed hospital or authorized research institution, is paramount to ensuring both data security and clinical safety.

To bridge this fundamental gap, this paper proposes a comprehensive Trustworthy Blockchain-based Federated Learning (TBFL) framework that integrates Self-Sovereign Identity (SSI) standards into the collaborative learning infrastructure. Specifically, our architecture leverages Decentralized Identifiers (DIDs) and Verifiable Credentials (VCs) to shift the trust model from “trust in behavior” to “trust in identity.” By enforcing strict authentication protocols at the network entry point, we ensure that only verified healthcare providers with legitimate credentials can participate in the federation, thereby preemptively neutralizing potential security threats.

Methodology

This section presents the comprehensive experimental methodology employed to validate the proposed TBFL framework. We describe the data acquisition and preprocessing pipeline, the algorithmic formalization of both on-chain security mechanisms and off-chain learning procedures, and the experimental setup used for empirical evaluation.

The Identity Layer: Self-Sovereign Identity Infrastructure

The Identity Layer serves as the foundational mechanism for establishing trust, cryptographically verifying the legitimacy of all network participants before any computational tasks commence. This layer implements two core standards defined by the World Wide Web Consortium (W3C), specifically designed to enable decentralized, privacy-preserving identity management.

Decentralized Identifiers (DIDs): Each participating entity in the TBFL network, including hospitals, research institutions, clinical laboratories, and aggregation nodes, generates a globally unique Decentralized Identifier. Unlike traditional centralized identity systems, where identifiers are issued and controlled by certificate authorities, DIDs are self-generated and cryptographically secured through public-key cryptography. Each DID is intrinsically linked to a private-public key pair, where the private key remains exclusively under the control of the entity that created it, thereby ensuring that no central authority can revoke, modify, or impersonate the identity without cryptographic proof.

The DID specification follows the format did:method:identifier, where the method component specifies the blockchain or distributed ledger used for DID resolution. For instance, a hospital might possess a DID such as did:ethr:0x1234…abcd, which can be publicly resolved on the Ethereum blockchain to retrieve the associated public key and service endpoints. This design ensures both global uniqueness and cryptographic verifiability while eliminating single points of failure associated with centralized identity providers.

Verifiable Credentials (VCs): While DIDs establish cryptographic identity, they alone cannot distinguish between a legitimate healthcare institution and a malicious actor. To address this limitation, we introduce the role of a Trusted Issuer, typically a regulatory body such as a Ministry of Health, a national medical licensing board, or an accredited healthcare consortium. The Trusted Issuer is responsible for conducting rigorous off-chain verification of an entity’s real-world credentials, including institutional licenses, regulatory compliance certifications, and ethical review approvals.

Upon successful verification, the Issuer creates a Verifiable Credential that formally attests to specific attributes of the healthcare institution. For example, a VC might assert that “Hospital A is a licensed Level-III Trauma Center authorized to process patient data for research purposes.” This credential is then cryptographically signed using the Issuer’s private key and transmitted to the hospital’s digital identity wallet. The credential structure includes essential metadata such as issuance date, expiration date, and revocation status identifiers, enabling dynamic trust management throughout the credential lifecycle.

Critically, VCs leverage zero-knowledge proof techniques when appropriate, allowing institutions to prove possession of certain attributes (e.g., “is a licensed hospital”) without revealing unnecessary details (e.g., specific patient volume or financial data). This selective disclosure mechanism preserves institutional privacy while maintaining the necessary trust guarantees for secure collaboration.

The Coordination Layer: Blockchain-Based Access Control

The Coordination Layer implements the enforcement mechanisms for the identity policies defined in the Identity Layer. Rather than processing computationally intensive model weight matrices directly on-chain, which would be prohibitively expensive given current blockchain transaction costs, this layer employs smart contracts as lightweight yet cryptographically secure gatekeepers.

Registry Smart Contract: The Registry Contract maintains an immutable, append-only mapping of DIDs to their corresponding public keys and authorization status. This contract implements two primary functions. First, it stores the verification results of Verifiable Credentials, recording which DIDs have been authenticated by which Trusted Issuers. Second, it manages the revocation registry, enabling Issuers to invalidate credentials in cases of institutional misconduct, license expiration, or security breaches. All state changes within the Registry Contract are logged as blockchain events, creating a permanent audit trail that can be retrospectively analyzed for security monitoring and compliance verification.

Federated Learning Task Contract: The FL Task Contract orchestrates individual training rounds and enforces participation requirements. When a new federated learning task is initialized, for instance, training a sepsis prediction model across oncology centers, the task creator specifies eligibility criteria through a combination of required credential types and issuer whitelist. For example, eligibility might be restricted to institutions holding VCs issued by specific national health authorities and certified for oncological data processing.

When a participant wishes to join a specific training round, they submit a transaction containing a Verifiable Presentation derived from their VC. The smart contract executes a deterministic verification protocol: it retrieves the Issuer’s public key from the Registry Contract, validates the cryptographic signature on the credential, checks the credential’s expiration and revocation status, and confirms that the credential attributes match the task requirements. Only if all verification steps succeed is the participant’s DID added to the authorized set for that specific round. This granular, per-round authorization enables fine-grained access control while maintaining computational efficiency.

Summary of Principal Findings

Clinical Utility and Patient Safety. Beyond mere algorithmic stability and security, the global model achieved clinically meaningful predictive performance that would be suitable for real-world clinical decision support applications. Specifically, the model attained an Area Under the Receiver Operating Characteristic Curve of 0.954, indicating excellent discriminative ability between high-risk and low-risk patients. The recall (sensitivity) metric of 0.890 demonstrates that the model successfully identifies approximately 89% of patients who ultimately experience in-hospital mortality, thereby enabling timely clinical interventions that could potentially prevent adverse outcomes. The confusion matrix analysis revealed a conservative, safety-oriented decision strategy wherein the model prioritizes minimizing False Negatives, the clinically dangerous error type where high-risk patients are incorrectly classified as low-risk and may consequently receive inadequate monitoring. This safety-conscious behavior is particularly appropriate for intensive care environments, where the consequences of failing to identify a critical patient (potential mortality) far outweigh the costs associated with providing enhanced monitoring to patients who ultimately survive (resource allocation). Importantly, this clinical performance was maintained despite the substantial heterogeneity of local institutional datasets, confirming that the FedProx algorithm effectively synthesizes complementary knowledge from diverse patient populations with varying demographic characteristics, disease prevalences, and clinical practice patterns.

Limitations and Directions for Future Research

Future research should investigate multi-layered defense mechanisms that complement identity verification with behavioral anomaly detection. Potential approaches include integrating gradient-based anomaly detection algorithms that identify updates exhibiting unusual statistical properties, implementing Byzantine-robust aggregation rules such as Krum, Median, or Trimmed Mean that mathematically limit the influence of outlier updates, or employing differential privacy techniques that add calibrated noise to individual contributions, thereby limiting the maximum impact any single participant can exert on the global model. Additionally, longitudinal reputation systems could be developed wherein institutions accumulate trust scores based on the consistency and quality of their historical contributions, with these scores influencing their aggregation weights or triggering enhanced scrutiny of submissions from low-reputation participants.

Alternatively, Zero-Knowledge Proofs (ZKPs) or Secure Multi-Party Computation (SMPC) could enable participants to prove that their model updates satisfy certain quality constraints or statistical properties (for example, ”this gradient was computed from at least 1,000 patients” or ”the gradient norm is below a specified threshold”) without revealing the actual gradient values or any information about individual patients. These cryptographic techniques offer the tantalizing possibility of achieving both perfect privacy and complete verifiability simultaneously, though at the cost of substantial computational overhead that must be carefully evaluated.

Transition to Permissioned Distributed Ledger Technologies. While the Ethereum public testnet provided an effective proof-of-concept platform for validating our architectural design and demonstrating technical feasibility, real-world healthcare consortia operating under strict regulatory frameworks may require properties that public blockchains cannot readily provide. Specifically, healthcare organizations may demand higher transaction throughput to support real-time or near-real-time model updates, lower and more predictable latency to meet service-level agreements, guaranteed finality to avoid the possibility of transaction reversals, and tighter integration with existing governance structures and regulatory compliance frameworks.

Permissioned distributed ledger technologies such as Hyperledger Fabric, R3 Corda, or enterprise-grade blockchain-as-a-service platforms offer potential advantages in these dimensions. These platforms typically provide fine-grained, role-based access control that can be aligned with institutional hierarchies, support for confidential transactions wherein only authorized parties can view transaction contents, consensus mechanisms optimized for known validator sets rather than fully open participation, and governance models that can be tailored to healthcare regulatory requirements including audit trails, data retention policies, and right-to-erasure provisions mandated by privacy regulations.

Future research should systematically investigate porting the TBFL architecture to these permissioned platforms, evaluating trade-offs between decentralization (favored by public blockchains, which resist censorship and single points of control) and regulatory compliance, operational efficiency, and governance alignment (potentially easier with permissioned systems). Hybrid approaches may prove optimal, wherein identity anchors and high-value transactions are recorded on public blockchains for maximum tamper-resistance, while routine model update transactions are processed on permissioned ledgers for efficiency.

Extension to Multi-Modal Clinical Data and Complex Medical Tasks. The current implementation processes structured, tabular clinical data extracted from the MIMIC-IV relational database, specifically focusing on predicting in-hospital mortality based on demographic and admission characteristics. However, comprehensive clinical decision-making in real-world healthcare settings often requires integrating multiple heterogeneous data modalities, each presenting unique technical challenges. These modalities include unstructured clinical notes and discharge summaries (requiring natural language processing with medical domain adaptation), medical imaging such as chest X-rays, CT scans, and MRI sequences (requiring computer vision and potentially 3D convolutional architectures), continuous physiological time-series data from bedside monitors capturing vital signs (requiring recurrent or attention-based temporal modeling), genomic and proteomic sequences (requiring specialized bioinformatics algorithms), and structured electronic health records spanning longitudinal patient histories (requiring temporal reasoning and causal inference).

Broader Impact and Concluding Remarks

The implications of this research extend beyond narrow technical contributions to machine learning security or distributed systems engineering. By demonstrating a viable, empirically validated path toward secure inter-institutional data collaboration, the TBFL framework directly addresses one of the most fundamental barriers to realizing the transformative promise of artificial intelligence in healthcare: the fragmentation of medical knowledge across isolated institutional silos. Current healthcare systems face a paradox: vast amounts of potentially life-saving clinical data are available in aggregate, yet cannot be effectively used to train robust AI models due to privacy regulations and institutional data governance policies.

Enabling hospitals, clinics, research institutions, and public health agencies to pool their collective clinical intelligence while simultaneously respecting patient privacy, complying with regulatory constraints, and maintaining institutional autonomy could catalyze substantial advances across multiple dimensions of healthcare delivery. These advances include accelerating medical discovery through the identification of subtle patterns in rare diseases that require multi-institutional data aggregation, reducing diagnostic errors by training models on diverse patient populations that reflect real-world demographic and clinical heterogeneity, personalizing treatment strategies through models that have learned from millions of patient outcomes across varied clinical contexts, and improving public health surveillance by enabling privacy-preserving analysis of disease trends without requiring centralized collection of sensitive data.

Moreover, the identity-first security paradigm introduced and validated in this work has potential applications extending well beyond healthcare. Any domain characterized by sensitive data, strict regulatory frameworks, and the need for collaborative learning could benefit from similar architectural approaches. Financial services institutions could use TBFL to collaboratively detect fraud patterns without sharing proprietary transaction data. Critical infrastructure operators could train anomaly detection models for cybersecurity without revealing sensitive system configurations. Social science researchers could conduct privacy-preserving analyses of sensitive behavioral data. In each case, the core principle remains constant: establish cryptographic trust in participant identity before allowing contribution to collaborative intelligence, rather than attempting to infer trustworthiness from behavioral patterns alone.

In conclusion, the Trustworthy Blockchain-based Federated Learning framework represents not merely an incremental improvement to existing collaborative learning systems, but rather a fundamental reconceptualization of how trust is established, verified, and enforced in decentralized machine learning networks. By anchoring trust in cryptographically verifiable institutional identity, supported by Verifiable Credentials issued by trusted regulatory authorities, rather than purely statistical reputation metrics or post-hoc behavioral analysis, we create a more robust, transparent, equitable, and legally defensible foundation for collaborative medical intelligence. As healthcare systems worldwide continue their inexorable digital transformation, and as artificial intelligence becomes increasingly central to clinical decision-making, frameworks such as TBFL will prove essential to ensuring that the substantial benefits of AI-driven medicine are realized safely, securely, ethically, and in full compliance with the rigorous ethical and regulatory standards designed to protect patient welfare and autonomy.

The path forward requires continued interdisciplinary collaboration among computer scientists developing security and privacy technologies, healthcare professionals articulating clinical requirements and safety constraints, legal scholars and ethicists navigating regulatory frameworks and ethical principles, and policymakers creating governance structures that enable beneficial innovation while protecting vulnerable populations. Our work contributes one important piece to this complex puzzle: a technically sound, empirically validated, and economically feasible architecture for secure collaborative learning. We hope it serves as a foundation for the broader research and clinical communities to build increasingly sophisticated, trustworthy, and impactful healthcare AI systems.