Coder Social home page Coder Social logo

alzheimers-disease-detection-using-speech's Introduction

Alzheimers-Disease-Detection-Using-Spontaneous-Speech

This repository contains a Flask web application for detecting Alzheimer's disease from audio recordings using a deep learning model. The app uses librosa for audio processing, matplotlib for generating spectrograms, and tensorflow for model inference.

Dataset:

https://luzs.gitlab.io/adress/

et_classification-Page-9 drawio

How to Run

  • Clone this repository to your local machine.
  • Navigate to the project directory.

To Train the model:

  • First, Preprocess the data

  • In the Notebook Folder, open Process_data.ipynb file.

  • Give the link of dataset and path for a new directory to save the spectogram images.

  • 2: Train the model

  • In the notebook folder, open XceptionNet.ipybn file

  • Give the path of Spectogram images dataset path for training and audio dataset path for prediction.

  • Train the model and give the path to save the weights of best model.

To run the Webapp

  • Open app.py code and run it.
  • It will give a link of Flask webapp, open it in a browser.
  • Upload the audio file from the test dataset to predict.

The application will be available at http://localhost:5000.

Web-App

image

image

Screenshot 2023-04-10 220544

Project Structure The project is organized as follows:

  • static/: Contains static assets such as uploaded audio files and generated spectrogram images.
  • templates/: Contains HTML templates for rendering the web pages.
  • index.html: Home page template displaying the file upload form and the prediction result.
  • upload.html: File upload page template for uploading audio files.
  • app.py: Flask application script containing the routes and model prediction functions.

How It Works

The user visits the home page and can access the file upload page to submit an audio recording. Once the user uploads an audio file, the server creates a spectrogram image from the audio using librosa and saves it. The model then predicts the category of the audio file based on the spectrogram image. The result (whether the person has Alzheimer's or not) is displayed to the user along with the generated spectrogram image.

alzheimers-disease-detection-using-speech's People

Contributors

k-aniket47 avatar

Stargazers

MJ.Rahsepar avatar

Watchers

 avatar

Forkers

eshita-jain

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.