Git Product home page Git Product logo

openfl-mri's Introduction

Federated learning system for learning MRI Images classifer

This project was created for learning MRI images classifier using the Federated Learning method (McMahan B., et al., 2016).

The project structure consists of two following folders:

  • distributed_federated_system - contains the implemented federated system, which can be deployed and run on multiple nodes.
  • experimtents - includes federated learning experiments using differently distributed data between clients

How to run the federated system?

In order to run the federated system on multiple different nodes, please, take the following steps:

  • Move every single envoy_# and director (aggregator) + workspace folders to separate nodes and install required packages using pip install -r requirements.txt
  • For every envoy_# download its corresponding data from here and extract all files to the according envoy's data folder.
  • On aggregator node:
    • Set listen_host and listen_port parameters in director.yaml

    • Open director folder in cmd or bash and run the following command to start the director:

      fx director start --disable-tls -c director_config.yaml

  • On envoys nodes:
    • Open envoy_# folder in cmd or bash and run the following command to start the envoy:

      fx envoy start -n ${ENVOY_NAME} --disable-tls --envoy-config-path envoy_config.yaml -dh ${AGGREGATOR_FQDN} -dp ${AGGREGATOR_PORT}

  • Open experiment-manager.ipynb in Jupyter Notebook and run all of its cells.

Some of the experiments data

Loss function for experiment with 4 collaborators using distributed system and model from Qu R., et al.

Loss Function

Loss function for experiment with 4 collaborators using simple CNN.

Loss Function

Loss function for experiment with 3 collaborators using simple CNN.

Loss Function

Client_1 train dataset distribution:

Data Distribution

Client_1 test dataset distribution:

Data Distribution

Client_2 train dataset distribution:

Data Distribution

Client_2 test dataset distribution:

Data Distribution

Client_3 train dataset distribution:

Data Distribution

Client_3 test dataset distribution:

Data Distribution

Client_4 train dataset distribution:

Data Distribution

Client_4 test dataset distribution:

Data Distribution

openfl-mri's People

Contributors

olegov99 avatar

Watchers

 avatar

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.