GithubHelp home page GithubHelp logo

har_flower's Introduction

Toward a Federated Model for Human Context Recognition on Edge Devices

This Repository contains the code used in the homonymous paper to be published after the CBA (Congresso Brasileiro de Automática) conference.

Contents:

  • module es_utils, containing classes and custom functions to build the model we used alongside the Extrasensory dataset
  • folder code containing:
    • model folder with all models we used as base-model
    • server.py file with the code to run the server for Federated Leaning
    • client_har.py file with the code to run the client for Federated Leaning
    • exploratory_analysis.ipynb notebook with the an exploratory analysis of the dataset
    • experimento_1_base_model.ipynb notebook with the code to run the experiment run_federated.sh bash script to run the federated learning. Receives the number of the experiment fold and the path-to-folder to search the clients' data
    • unzip_all_csv.sh bash script to unzip all the csv files in the dataset
  • folder sample_data containing the a small fraction of the data used in the experiment
  • file requirements.txt with the list of packages used in the experiment

Requirements:

As seen in file requirements.txt, the following packages are required to run the code:

  • numpy = "^1.23.0"
  • pandas = "^1.4.3"
  • sklearn = "^0.0"
  • tensorflow = "^2.9.1"
  • keras-tuner = "^1.1.2"
  • flwr = "^0.17.0"

How to run:

After installing all dependencies and build the base models (by running the notebooks in the code folder), you can run the federated learning by running:

  • the server by running the command: python server.py
  • the bash script run_federated.sh. It receives two arguments:
    • the number of the experiment fold (0 to 4)
    • the path-to-folder to search the clients' data

Citation:

The original paper can be found in the pre-proceedings here under the name Toward a Federated Model for Human Context Recognition on Edge Devices. It still doesn't have a DOI, but it will have it soon.

har_flower's People

Contributors

wandemberg-eldorado avatar fabiograssiotto avatar wandgibaut avatar

Watchers

 avatar  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.