✨
International Peer-Reviewed Publisher
Serving Researchers Since 2012

SymptoCare: An AI-Driven Healthcare Support System for Symptom Analysis and Chronic Disease Risk Prediction

DOI : 10.5281/zenodo.24747342
Download Full-Text PDF Cite this Publication

Text Only Version

SymptoCare: An AI-Driven Healthcare Support System for Symptom Analysis and Chronic Disease Risk Prediction

Rashmi Paruti (1), Gayathri.S (2) , G M Kusuma (2), Jayashree Tarai (2), Harsha B (2)

(1) Assistant Professor ,Department of Computer Science and Engineering, BMS college of Engineering

(2) Department of Computer Science and Engineering, BMS college of Engineering

Abstract – SymptoCare is an AI supported application that aims to increase initial health awareness by providing an application which helps understand symptoms, estimate risk of chronic disease, provide chatbot features and analyse medical documents. This application uses a variety of machine learning techniques to help estimate risk of diabetes and chronic kidney disease (CKD) and natural language processing techniques to extract relevant information from symptoms and medical documents. All features can be accessed via the application, allowing users to have a chatbot to ask healthcare related questions. The frontend was created using Flutter and Dart, whilst the backend was created using Python and FastAPI. Scikit-learn was used to create machine learning features and Firebase was used for authentication and storing data on the cloud. This application aims to help provide more easily accessible initial health information. The outputs are for informative purposes only and should not be assumed as an alternative to professional medical diagnosis/advice.

KeywordsSymptoCare, healthcare support system, machine learning, symptom analysis, diabetes risk prediction, chronic kidney disease, natural language processing, medical report processing.

  1. INTRODUCTION

    The diseases mentioned such as diabetes and chronic kidney disease (CKD) are long term diseases which require continuous monitoring. Being able to detect early health risks can help medical professionals provide timely medical care. However, some individuals may struggle to identify symptoms and understand health risk factors due to lack of medical knowledge.

    This has lead to the creation of digital tools to assist individuals. With the increasing use of AI technology there are many opportunities to help with healthcare applications. Machine learning (ML) can help process health related data to find patterns related to specific diseases. Natural language processing (NLP) is used to extract useful information from text. Conversational AI allows individuals to interact with digital systems using natural language making healthcare information more accessible and easy to understand.

    This paper presents SymptoCare, an AI health assistant which combines different features to help meet the requirements mentioned. The application helps predict the risk of developing diabetes and CKD, analyse symptoms and provides chat based support and medical report analysis. The application was created using Flutter for the mobile based UI and FastAPI (Python) for the backend services.

    The primary purpose of SymptoCare is to increase awareness of potential health risks and provide an easy to access source of healthcare related information. This should not be used as an alternative to professional medical advice. The predictions and information provided should not be seen as a medical diagnosis.

  2. RELATED WORK

    A wide range of research has been performed using machine learning to predict diseases using clinical data and patient symptoms. Many papers have been written discussing the application of chatbots in healthcare, including symptom analysis [1], disease prediction [2] and providing health information [3]. Others have aimed to use chatbots in combination with multi-disease prediction and booking appointments between doctors and patients [4]. Burle et al. looked at using machine learning with geolocation to check symptoms and find nearby hospitals [5]. Velasco et al. provided a systematic literature review on the use of AI chatbot technology for disease prediction [6]. This can be difficult to implement into one system to accurately utilise structured health data, natural language symptom analysis and easily accessible medical information. SymptoCare provides a solution to this issue using machine learning to predict health risks, natural language processing, medical document handling and generative AI technology. A safety feature was included to provide an easy to understand initial recommendation whilst emphasising it should not replace medical professional assessment.

  3. PROPOSED METHODOLOGY

    This project consists of multiple modules working together providing functionality through a flutter app, python FastAPI backend, Machine Learning models, Natural Language Processing and cloud services. The backend is used to handle requests from the flutter app.

    1. Disease Risk Prediction

      For diabetes and chronic kidney disease (CKD), SymptoCare offers distinct prediction modules. Diabetes is predicted using a gradient boosting classifier, and chronic kidney disease (CKD) is predicted using logistic regression. Let = [1, 2, , ].the representation of the input clinical feature vector. The probability of the affirmative class is estimated by the trained model as

      = (())

      where represents the implemented preprocessing transformation, denotes the trained classifier, and is the estimated probability of the target class. The forecast is not a replacement for a qualified medical assessment; rather, it offers preliminary risk information.

    2. Symptom Analysis and Conversational Assistance

      The symptom analysis component extracts relevant medical terminology from user-provided descriptions using regular expressions and a named entity recognition (NER) model focused on healthcare. The retrieved entities for an input text (s) are shown as

      = NER()

      where (E) denotes the medical entities identified in the text. Regular expressions supplement entity extraction by identifying predefined symptom-related patterns. Conversational assistance is provided through the Groq API using a large language model to generate responses to healthcare-related queries.

    3. Medical Report Processing and Data Management

    The medical report processing component uses Pytesseract for optical character recognition (OCR) of scanned documents and PyPDF for text extraction from PDF documents. The recovered text facilitates additional analysis of essential medical data. Cloud Firestore offers cloud-based data storage, while Firebase Authentication controls user authentication.

    Backend APIs are used to integrate the components, which are then displayed via a single mobile interface. When necessary, a safety layer promotes expert medical consultation and explains the limitations of computerized predictions.

  4. SYSTEM ARCHITECTURE

    The complete SymptoCare framework follows this pipeline: User Input through Flutter Mobile Application FastAPI Backend Request Handling Disease Risk Prediction using Logistic Regression and Gradient Boosting NLP-Based Symptom Analysis and Conversational Assistance Medical Report Processing Firebase Authentication and Cloud Data Management Results Returned to the User.

    Fig. 1. The overall architecture of the proposed SymptoCare healthcare support system. This includes a mobile application, API services, Diabetes and Chronic Kidney Disease prediction models using Machine Learning, Natural Language Processing to analyse symptoms, Conversational AI using the Groq API and Mdical Report processing. Firebase services are used for User Authentication and Cloud Data Management. Results have been processed and displayed on

    the mobile application for initial awareness on risk to their health.

  5. IMPLEMENTATION AND RESULTS

    Flutter and Dart were used for the front end of SymptoCare, while Python and FastAPI were used for the back end. Pandas and NumPy facilitated data preparation and numerical operations, while Scikit-learn was utilized for the creation of machine learning models. The program includes Firebase services for data storage and authentication, medical report processing, a huge language model accessible via the Groq API, and NLP-based symptom analysis.

    1. Dataset Description

      After cleaning, 96,146 samples with eight original clinical features and extra designed features make up the diabetes dataset. 3,854 identical duplicate rows were eliminated during preprocessing. There are 8.82% diabetes samples and 91.18% non-diabetic samples in the collection. There are 400 samples with 24 input features in the CKD dataset, with 62.5% of the samples having CKD and 37.5% not. A preprocessing procedure is used to address missing values in the CKD dataset.

    2. Model Comparison and Selection

      Seven machine learning algorithms have been evaluated for predicting diabetes and CKD namely Logistic Regression, K Nearest Neighbors (KNN), Random Forest, Gradient Boosting, AdaBoost, XGBoost and Voting Ensemble. Table I shows the accuracy values obtained.

      Algorithm

      Diabetes (%)

      CKD (%)

      Logistic Regression

      88.61

      99.25

      KNN

      95.59

      98.75

      Random Forest

      96.80

      99.25

      Gradient Boosting

      97.10

      99.00

      AdaBoost

      97.08

      99.00

      XGBoost

      90.12

      98.75

      Voting Ensemble

      96.13

      98.75

      TABLE I. ACCURACY COMPARISON OF EVALUATED ALGORITHMS

      Gradient Boosting Classifier has the highest accuracy level, 97.10% and is used for predicting diabetes. Logistic Regression was chosen for predicting CKD due to it having an accuracy of 99.25%. Other considerations should be made when justifying the choice of Logistic Regression as the Random Forest achieved the same accuracy for CKD.

    3. Performance Evaluation

      The selected models were evaluated using accuracy, precision, recall, F1-score and ROC-AUC (area under receiver operating characteristic curve). The obtained results are given in Table II.

      Metric

      CKD: Logistic Regression

      Diabetes: Gradient Boosting

      Accuracy

      99.25%

      97.10%

      Precision

      99.18%

      98.54%

      Recall

      99.27%

      68.11%

      F1-score

      99.20%

      80.54%

      ROC-AUC

      100.00%

      97.85%

      This demonstrates that both models have shown good accuracy levels. However, based on the recall level of the Diabetic model being 68.11%, there could be a number of true positives that are being missed. The generalisation can also be tested by verifying the results from the CKD model. As it has a high result from the ROC-AUC, it was reported at 100%, to ensure the data did not leak. This does not prove that these models are clinically valid, but that they have performed well on the data they were tested upon.

    4. Application Implementation

    This mobile application has multiple healthcare features such as diabetes and CKD risk assessment, symptom interpretation, chat functionality and medical documentation. The front-end was developed using Flutter and Dart to communicate with the back-end FastAPI server built using Python. Sklearn was used to create the prediction models and NLP techniques were used to extract health related information from symptoms entered by the user. A large language model was used to provide chatting functionality, accessed through the Groq API. Firebase Authentication was used for user access and Cloud Firestore was used to store the data in the cloud. This allows for one platform to be used for initial disease risk assessment and healthcare information.

  6. LIMITATIONS

    There are limitations within the project. The accuracy of diabetes and chronic kidney disease (CKD) predictions depend on the quality and variety of data sets. In addition, the CKD data set was fairly limited meaning it could limit the application of the model.

    The diabetes prediction model only had an overall recall of 68.11%. This means there are likely to be missed positives and further improvements need to be made.

    The language model can produce incomplete or inaccurate medical answers. The quality of medical documents can affect how well text can be extracted. Further testing needs to be done before deploying this in a healthcare setting. This tool should be seen as an initial insight into potential health risks and should not be used as a replacement for medical professionals.

  7. CONCLUSION

SymptoCare is an AI-assisted healthcare system with features such as Machine Learning-based risk prediction for Diabetes and Chronic Kidney Disease (CKD), along with medical report processing, chatbot assistance and symptom analysis. These features are brought together through integration with the Flutter mobile application alongside FastAPI, Firebase and NLP components.

The Gradient Boosting model chosen for diabetes prediction had a high accuracy value of 97.10% and the Logistic Regression model used for CKD prediction had an accuracy of 99.25%. This indicates that the models performed well with the data provided. However further validation is required to prove that they can be applied generally. In future work, further improvements will be made to ensure data privacy, improve detection of diabetic cases, confirm CKD prediction performance, improve chatbot reliability, improve medical report extraction and test the models with larger and more diverse data sets. The goal of SymptoCare is to increase early awareness of risks to health and encourage users to seek professional medical advice where necessary.

REFERENCES

  1. R. Surve, T. Purohit, R. Joseph, and P. Shaikh, HealthCare chatbot using machine learning and NLP, in 2023 6th International Conference on Advances in Science and Technology (ICAST), 2023.

  2. P. I. Prayitno, R. P. P. Leksono, F. Chai, R. Aldy, and W. Budiharto, Health chatbot using natural language processing for disease prediction and treatment, in 2021 1st International Conference on Computer Science and Artificial Intelligence (ICCSAI), 2021.

  3. R. Goel, R. P. Goswami, S. Totlani, P. Arora, R. Bansal, and D. Vij, Machine learning based healthcare chatbot, in 2022 2nd International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE), 2022.

  4. A. R. George, J. E. Saji, J. Francis, L. Shibu, and H. Haritha, Multiple Disease Prediction Using Machine Learning with Chatbot and Doctor- Patient Appointment System, in 2024 IEEE International Conference on Smart Power Control and Renewable Energy (ICSPCRE), 2024.

  5. R. Burle, S. Gundewar, S. Gaurkhede, and B. Fulkar, Conversational Symptom Checker Chatbot for Disease Prediction and Suggesting Narby Hospitals using Machine Learning and Location Services, in 2025 International Conference on Electronics and Renewable Systems (ICEARS), 2025.

  6. V. Velasco, K. D. Setiawan, R. R. Sanjaya, M. S. Anggreainy, and A. Kurniawan, AI Chatbot Technology to Predict Disease: A Systematic Literature Review, in 2023 4th International Conference on Artificial Intelligence and Data Sciences (AiDAS), 2023.

  7. P. Mandepudi, G. Sindhu, S. S. Rohan, D. L. C. Reddy, and P. M., AI- driven medical chatbot for early disease detection, International Journal for Research in Applied Science and Engineering Technology (IJRASET), 2025.

  8. J. Seema, S. Suman, S. R. Chirag, G. Vinay, and D. Balakrishna, Doctor Chatbot-Smart Health Prediction, International Journal of Scientific Research in Science, 2021.

  9. N. Prasanna, I. Ogiboyina, A. Nallabothula, N. Somepalli, and N. Vempati, Healthcare Chatbot Using Machine Learning and Natural Language Processing, i-Managers Journal on Mobile Applications & Technologies, 2025.

  10. K. Mohamed Jasim, A. Malathi, S. Bhardwaj, and E. C. X. Aw, A systematic review of AI-based chatbot usages in healthcare services, Journal of Health Organization and Management, 2025.

  11. A. Choudhary, G. Prasad, A. Rawat, K. Upadhyay, M. M. Gowda, and

    A. K. Jain, MEDIMIND MATE: The Healthcare ChatBot Based on Machine Learning and Natural Language Processing, in 2024 Second International Conference on Advances in Information Technology (ICAIT), 2024.

  12. G. Shruthi, K. C. Sinchana, C. P. Soumya, and S. A. Sugnyan, A Comprehensive Approach To Healthcare Chatbots Using SpaCy NLP And Naive Bayes Algorithm, in 2024 2nd DMIHER International

  13. Conference on Artificial Intelligence in Healthcare, Education and Industry (IDICAIEI), 2024.

  14. K. Ravindar, M. Gupta, D. S. Abdul-Zahra, K. Subhashini, N. Maiti, and R. Chawla, Healthcare chatbots with NLP and cybersecurity: safeguarding patient data in the cloud, in 2023 International Conference on Artificial Intelligence for Innovations in Healthcare Industries (ICAIIHI), 2023.

  15. G. Megarajan, Mega BotThe Healthcare Chatbot, in 2021 Second International Conference on Electronics and Sustainable Communication Systems (ICESC), 2021.

  16. M. M. Rahman, R. Amin, M. N. K. Liton, and N. Hossain, Disha: an implementation of machine learning based Bangla healthcare chatbot, in 2019 22nd International Conference on Computer and Information Technology (ICCIT), 2019.

  17. S. Badlani, T. Aditya, M. Dave, and S. Chaudhari, Multilingual healthcare chatbot using machine learning, in 2021 2nd International Conference for Emerging Technology (INCET), 2021.

  18. H. Abdulla, A. M. Eltahir, S. Alwahaishi, K. Saghair, J. Platos, and V. Snasel, Chatbots development using natural language processing: a review, in 2022 26th International Conference on Circuits, Systems, Communications and Computers (CSCC), 2022.

  19. D. Lee, AI-based healthcare chatbot, International Research Journal of Engineering and Technology (IRJET), 2023.

  20. L. Athota, V. K. Shukla, N. Pandey, and A. Rana, Chatbot for healthcare system using artificial intelligence, in 2020 8th International Conference on Reliability, Infocom Technologies and Optimization (ICRITO), 2020

  21. N. A. Omoregbe, I. O. Ndaman, S. Misra, O. O. Abayomi-Alli, and R. Damasevicius, Text messaging-based medical diagnosis using natural language processing and fuzzy logic, Journal of Healthcare Engineering, 2020.

  22. A. Babu and S. B. Boddu, BERT-based medical chatbot: enhancing healthcare communication through natural language understanding, Exploratory Research in Clinical and Social Pharmacy, 2024.

  23. A. Zagade, V. Killedar, O. Mane, G. Nitalikar, and S. Bhosale, AI- based medical chatbot for disease prediction, International Journal of Innovative Science and Research Technology, 2024.

  24. R. Jegadeesan, D. Srinivas, N. Umapathi, G. Karthick, and N. Venkateswaran, Personal healthcare chatbot for medical suggestions using artificial intelligence and machine learning, European Chemical Bulletin, 2023.

  25. Chakraborty, S., Paul, H., Ghatak, S., Pandey, S.K., Kumar, A., Singh, K.U. and Shah, M.A., An AI-based medical chatbot model for infectious disease predic-tion, IEEE Access, 2022.

  26. Muneer, S., Ghazal, T.M., Alyas, T., Raza, M.A., Abbas, S., AlZoubi, O. and Ali, O., Explainable AI-Driven Chatbot System for Heart Disease Prediction Using Machine Learning, International Journal of Advanced Computer Science & Ap-plications, 2024.