Giter Club home page Giter Club logo

lunion's Introduction

๐Ÿš€ Lunion

Open In Colab

Lung disease is one of the highest causes of death worldwide. Simple early detection can reduce death rate by hearing the sound of a patient's lung using a stethoscope. However, the access to detect this disease is still lacking and the results of the doctor's diagnosis are prone to errors. To tackle these problems, we build a mobile application that detects lung diseases based on the respiratory sound of patients.

๐Ÿ“Œ Usage ๐Ÿ“Œ

๐Ÿค– Machine Learning (Colab Notebook)

  • Download respiratory dataset from https://www.kaggle.com/vbookshelf/respiratory-sound-database
  • Create dataframe that contain filename and its label
  • Load and resample sound data to be 16 kHz sound using librosa library
  • Truncate or pad sound data to be 5s from beginning of sound so all of the data have same dimension.
  • Extract MFCC features from sound data
  • Build, train, and test deep learning model using tensorflow. You can use transfer learning from tensorflow hub or use our model architecture on our github. https://github.com/DaffRazan/Lunion
  • Save model as saved model format or MDF5
  • Create prediction python script.

โ˜๏ธ Cloud Computing (Google Cloud Storage, AI Platform, Flask Web Service)

  • Create a bucket in Google Cloud Storage with standard default storage class, choosing the closest region asia-southeast2(Jakarta), uniform access control and add allUsers with Cloud Storage Admin.
  • Create new model in AI Platform choosing the closest region asia-southeast2(Jakarta) and create new version inside it by specifying the pre-built container settings accordingly to Machine Learning model that has been tested locally and choose the n1-standard-2 machine type for cheaper deployment.
  • Create a Cloud Function that is triggered by Cloud Storage with Finalize/Create event type and select the target bucket that has been created before, then migrate the python script to run the preprocessing and calling the model from AI Platform into the Cloud Function, finally upload the prediction result into the bucket as json format file. Fill the requirements.txt for each version of the library used.
  • Create a web service using Flask to upload the file from user to the bucket then return the public URL of the predicted result from the bucket to user and deploy it to App Engine so that it can be served on mobile.

๐Ÿ“ฑ Mobile Development (Mobile App)

  • Download and install latest version of Android Studio
  • Clone mobile app project on github https://github.com/DaffRazan/Lunion
  • Open Android Studio and open folder app project named LunionApp
  • Connect App to Firebase
  • Add the Firebase Realtime Database to the app
  • Configure Realtime Database Rules
  • Write database query
  • Read database
  • Plug in real device with USB or connect via bluetooth to PC
  • Run the application with the real device or emulator via AVD Manager

  • The app-debug.apk file from the folder Lunion\Android Development\Simple Android Audio Classification App can directly be installed on to any device. The app also has the capability to directly boot-up onto any device when the device is powered on.

lunion's People

Contributors

devados avatar mkhairulramadhan avatar daffrazan avatar anasnafis77 avatar sheshanksk 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.