Heart Care App
Tags: atlashackathon
Published: 2022-01-14 05:29:49


### Overview of My Submission

[Note]: # (Please make sure the project links to the appropriate GitHub repository, and includes the [Apache-2 permissive license](https://www.apache.org/licenses/LICENSE-2.0)  and README.)

Cardiovascular diseases normally represents a condition that involve narrowed or blocked blood vessels that lead to the heart failure, attack or stroke. It is one of the biggest mortality among the population of the world. 
Cardiovascular diseases (CVDs) are the number 1 cause of death globally, taking an estimated 17.9 million lives each year, which accounts for 31% of all deaths worldwide. Four out of 5CVD deaths are due to heart attacks and strokes, and one-third of these deaths occur prematurely in people under 70 years of age. 

So, people who have high risk of heart disease/ heart failure or also those who want to check, requires early detection and proper management of their disease. For this purpose, I developed the Heart Care App in which user will be classified whether he has heart disease or not.

### Submission Category: 

[Note]: # (E-Commerce Creation, Prime Time, Action Star, Automation Innovation, or Choose Your Own Adventure)
My own adventure


### Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)
[My Github Repository for Flutter App](https://github.com/Hina-softwareEngineer/heart_rate_app)
[My Github for fastAPI backend](https://github.com/Hina-softwareEngineer/heart_failure_backend)
[Github for Colab Repository](https://github.com/Hina-softwareEngineer/heart_failure_prediction)

## Images 

Images are loosing resolution so these can also check in the Readme.md of [HeartCare app](https://github.com/Hina-softwareEngineer/heart_rate_app)

![Login Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmy36xzi95y137vbtz5j.jpeg)

![Signup page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3m42buz56uu13kwcy2oo.jpeg)
![Dashboard loading](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6zlmj6jmt12oecjjvb2.jpeg)

![Dashboard chart 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l56yukdq0tfzix5smsmo.jpeg)
![Dashboard chart 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7b4fdq5g3qek20pxxdc.jpeg)
![Medical HIstory](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptmf7rm17qc85vpk9lv3.jpeg)
![Separate REcord](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i8bf4lz9zf1ogf0ms6rw.jpeg)
![Add New REcord 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdx2m3zr34x632gmfkrq.jpeg)
![aDd new record 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8b8hahmq8fl6lvivjwm.jpeg)

![Empty calculate beat screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3qzrj1gnx5avi128sate.jpeg)
![PErmission](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82ig922o7usp7d189t5s.jpeg)
![Heart beat calculating](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ja2zjv3uua33y8t884bh.jpeg)
![Calculated Beat Button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/izllkgq0jd6e8lfgzv74.jpeg)
![Prediction](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e0czh08vcqe89qbz7a56.jpeg)

### Calculating beat video
[Video which shows how heart beat is calculating](https://youtu.be/HZmwjmsMJMs)

## What it does
Currently, user have to make an account. A dashboard is availabe on which user monitoring of heart beat and daily heart disease prediction is showing. Downwards, medical history cards are present if user want to check his history. Second screen is to add medical record in which user has to fill few details like blood pressure, sugar, age, gender. One more button is present which is takes the user to calculate heart beat screen. On heart beat screen, user have to place finger on mobile camera and torch. Then using the **photoplethysmogram** technique, user's heart beat is recorded. Then user can save medical record. On successfully saving the record, user will be notified that whether he has heart disease or not. A firebase cloud messaging is also integrated which daily on 8PM generates a push notification that check your heart.

## How i built it

MongoDB - Obviously the best NoSQL database emerging rapidly. 
Flutter 
Fast API
Machine Learning
Flutter charts

## Challenges

I faced a lot of challenges in creating this app. First, I am not familiar with state management in flutter. So I got lot of errors in integrating it. Secondly, I have never used MongoDB Realm. So, I tried to generate push notifications using mongoDB Realm but it didn't work because few libraries are not supported when i tried to install node-fcm. Also MongoDB Realm SDK is not supporting Flutter yet. It is in progress. Then, I am not familiar with Data analysis and machine learning. So, lot of errors, bugs and functionalities are my challenges.

## Accomplishments I'm proud of:
I am proud that all the above technologies which are new for me, have learnt. The most important purpose of participating in MongoDB Atlas Hackathon is to learn all the technologies. I am proud that i have learnt FastAPI, MongoDB Realm, Flutter Provider State Management. This hackathon becomes most useful for me.

## What's next:
- More functionalities
- Validation of fields
- More Charts
- Also Make for doctors and patients (separate interface)

## Team
1- [Hina Khadim](https://github.com/Hina-softwareEngineer)
[My LinkedIn Connect](https://www.linkedin.com/in/hina-khadim-632845178/)

Thanks to all, especially MongoDB Team for organizing such a great Hackathon in which we all have learned new technologies, frameworks, explore amazing features of existing technologies. Expecting more hackathons in Future.