How to Create a Deep Learning Model and Deploy it in Web App: A demo with Keras and Flask for Malaria Detection

Dipendra Pant
Aug 24, 2021

--

As medical diagnosis is a major application area of Machine Learning. Here we created a Machine Learning Model by applying a Convolution Neural Network thus obtaining an accuracy of 97.1% and minimal loss. Then we integrated the trained model in a Flask-based web app.

UI of the Malaria Detection Web App

In order to make our model better, we have applied the concept of EarlyStopping, ReduceLROnPlateau, ModelCheckpoint. Talking about integrating the trained model with the web app we embedded the .h5 file with the flask backend and returned the obtained prediction and prediction percentage to the HTML template.

Code for training the model can be obtained from this link

The complete code of the web application for malaria detection along with the already trained model is available on my GitHub (Link Here)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Dipendra Pant
Dipendra Pant

Written by Dipendra Pant

Python, OpenCV, Evidence Based Software Engineering, Artificial Intelligent Technologies

No responses yet

Write a response