Giter Site home page Giter Site logo

pyariesfl's Introduction

Distributed Deep-learning with HL-Aries

This repo has been forked from Hyperledger Aries Cloud agent link provided by British Columbia Government.

We have created a set of agents that can be run using docker to experiment with a federated deep learning scenario using didCOMM to pass secure messages between the participants - e.g. the ML model parameters. Furthermore the scenario explores using credentials so that participants can verify that who they are communicating with. In the example this is verifying a hospital is indeed a hospital and a researcher has been accredited by a regulator. However the credentials abnd issuers within this use case could be adapted to any ecosystem.

The agents connect, by default, to the BC government development instance of Hyperledger Indy ledger link.

Guide

Full Aries Scenario

To run the scenario:

git clone https://github.com/blockpass-identity-lab/aries-fl-demo.git

cd demo

Hospital gets verified by the NHS Trust.

  1. Start the NHS Trusted agent.
    ./run_demo nhsheadoffice
    
  1. Start each of the hospitals in separate terminals.

    ./run_demo hospital1(2,3)
    
  2. Copy NHS's invitation URL into the hospitals terminal to initiate DIDExchange and establish pairwise DID connection.

  3. Issue verified hospital credential to the Hospital. This first requests a self attested proof of hospital name from the hospital then issues this name in a credential.

  4. Create new invitation from the NHSTrust and repeat steps 3 and 4 for each hospital

The Researcher gets accredited by the regulatory authority.

  1. Start the Coordinator.
./run_demo coordinator
  1. Start the regulator.
./run_demo regulator
  1. Enter command to allow coordinator to accept new invitation

  2. Copy regulator's invitation URL into coordinator terminal.

  3. Issue a credential from the Regulator to the Coordinator.

The researcher validates the hospital's credential. The hospital validates the researcher's accreditation. The training procedure starts.

Researcher and hospital verify respective credentials

  1. Create New Invitation in the coordinator for the hospital.

  2. Input new connection into the hospital terminal

  3. Coordinator request proof connection is from a valid hospital. If proof is valid, the coordinator adds this hospital to the list of the trusted connections.

  4. Hospital to request proof that the coordinator connection is from a certified research. If so add to list of trusted connections.

  5. Either add another trusted connection between a new hospital and current researcher by repeating steps 11 - 14

or..

  1. In the coordinator terminal initiate training process which loops through all trusted hospital connections in turn, sending a message containing the model. The hospital checks if the message is from a trusted research, if so they initiate the training process using their private date. Once complete the trained model is sent back to the coordinator who validates the model and forwards it onto the next trusted connection.

Researcher coordinates federated learning

Created by

Will Abramson (wip-abramson)
Adam James Hall (H4LL)
Pavlos Papadopoulos (pavlos-p)

pyariesfl's People

Contributors

alexitc avatar andrewwhitehead avatar dappsec avatar dbluhm avatar esune avatar h4ll avatar ianco avatar jljordan42 avatar jordanmmck avatar nobody4t avatar nrempel avatar pavlos-p avatar rosenbrockc avatar ryjones avatar sklump avatar swcurran avatar telegramsam avatar theoturner avatar wadebarnes avatar wip-abramson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyariesfl's Issues

Adapt FL example to include weighted average

  • Make NHS Head Office issue rating to hospitals
  • Coordinator request proofs of rating from hospital
  • Coordinator tracks rating for each hospital
  • Coordinator aggregates training result based on weights for each hospital

Rename project

Description

We need to rename this project slightly to fit our new project naming standards.

The new name for this repo should be: PyAriesFL
The new release name for this repo should be: openmined/ariesfl

I have gone ahead and renamed the repo, but I will need someone else to be in charge of changing the release name.

If you have any questions about this issue, please comment here or message @cereallarceny on Slack.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.