journal article·2025-11-03Open access

From Knowledge Extraction to Assertive Response: An LLM Chatbot for Information Retrieval in Telemedicine Systems

Bruna D. Pupo, Daniel G. Costa, Roger Immich, Aldo von Wangenheim, Alex Sandro Roschildt Pinto, Douglas D. J. de Macedo

Applied Sciences· Volume 15· Issue 21

Abstract

The development of new technologies, improved by advances in artificial intelligence, has enabled the creation of a new generation of applications in different scenarios. In medical systems, adopting AI-driven solutions has brought new possibilities, but their effective impacts still need further investigation. In this context, a chatbot prototype trained with large language models (LLMs) was developed using data from the Santa Catarina Telemedicine and Telehealth System (STT) Dermatology module. The system adapts Llama 3 8B via supervised Fine-tuning with QLoRA on a proprietary, domain-specific dataset (33 input-output pairs). Although it achieved 100% Fluency and 89.74% Coherence, Factual Correctness remained low (43.59%), highlighting the limitations of training LLMs on small datasets. In addition to G-Eval metrics, we conducted expert human validation, encompassing both quantitative and qualitative aspects. This low factual score indicates that a retrieval-augmented generation (RAG) mechanism is essential for robust information retrieval, which we outline as a primary direction for future work. This approach enabled a more in-depth analysis of a real-world telemedicine environment, highlighting both the practical challenges and the benefits of implementing LLMs in complex systems, such as those used in telemedicine.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: AI in Service Interactions · Artificial Intelligence in Healthcare and Education · Digital Mental Health Interventions

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Telemedicine Laboratory, Federal University of Santa Catarina (UFSC), Florianópolis 88040-900, Brazil

SYSTEC-ARISE, Faculty of Engineering, University of Porto, 4200-465 Porto, Portugal

Instituto Metrópole Digital (IMD/UFRN), Natal 59078-900, Brazil

Brazilian Institute for Digital Convergence (INCoD), Florianópolis 88040-900, Brazil

Funding

Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—Brasil · National Council for Scientific and Technological Development · Telemedicine Laboratory (LabTelemed) of Federal University of Santa Catarina

References (36)

Show source-provided references
1. Edge Intelligence and Internet of Things in Healthcare: A Survey10.1109/ACCESS.2020.3045115 ↗
2. Al Khatib, I., Shamayleh, A., and Ndiaye, M. (2024). Healthcare and the Internet of Medical Things: Applications, Trends, Key Challenges, and Proposed Resolutions. Informatics, 11.10.3390/informatics11030047 ↗
3. He, P., Huang, D., Wu, D., He, H., Wei, Y., Cui, Y., Wang, R., and Peng, L. (2024). A Survey of Internet of Medical Things: Technology, Application and Future Directions. Digit. Commun. Netw., in press.10.1016/j.dcan.2024.11.013 ↗
4. Telemedicine Adoption before, during, and after COVID-19: The Role of Socioeconomic and Built Environment Variables10.1016/j.tra.2024.104351 ↗
5. Alenoghena, C.O., Ohize, H.O., Adejo, A.O., Onumanyi, A.J., Ohihoin, E.E., Balarabe, A.I., Okoh, S.A., Kolo, E., and Alenoghena, B. (2023). Telemedicine: A Survey of Telecommunication Technologies, Developments, and Challenges. J. Sens. Actuator Netw., 12.10.3390/jsan12020020 ↗
6. Telemedicine and Health Care10.1089/15305620252933365 ↗
7. The role of telemedicine in healthcare: An overview and update10.1186/s43162-023-00234-z ↗
8. Xiao, Y., Takahashi, D., and Hu, F. (2007, January 11–15). Telemedicine Usage and Potentials. Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC), Hong Kong, China.10.1109/WCNC.2007.508 ↗
9. Shakor, M.Y., and Khaleel, M.I. (2024). Recent Advances in Big Medical Image Data Analysis Through Deep Learning and Cloud Computing. Electronics, 13.10.3390/electronics13244860 ↗
10. Wallauer, J., von Wangenheim, A., Andrade, R., and Macedo, D.D.J. (2008, January 17–19). A Telemedicine Network Using Secure Techniques and Intelligent User Access Control. Proceedings of the 21st IEEE International Symposium on Computer-Based Medical Systems (CBMS), Jyväskylä, Finland.10.1109/CBMS.2008.124 ↗
11. LLM-based edge intelligence: A comprehensive survey on architectures, applications, security and trustworthiness10.1109/OJCOMS.2024.3456549 ↗
12. Chatbot breakthrough in the 2020s? An ethical reflection on the trend of automated consultations in health care10.1007/s11019-021-10049-w ↗
13. Nazi, Z.A., and Peng, W. (2024). Large Language Models in Healthcare and Medical Domain: A Review. Informatics, 11.10.3390/informatics11030057 ↗
14. Teixeira, B.N., Leitão, A., Nascimento, G., Campos-Fernandes, A., and Cercas, F. (2024). Can ChatGPT Support Clinical Coding Using the ICD-10-CM/PCS?. Informatics, 11.10.3390/informatics11040084 ↗
15. Li, C., Wong, C., Zhang, S., Usuyama, N., Liu, H., Yang, J., Naumann, T., Poon, H., and Gao, J. (2023). LLaVA–Med: Training a Large Language–and–Vision Assistant for Biomedicine in One Day. arXiv.
16. De Souza Inácio, A., Andrade, R., von Wangenheim, A., and de Macedo, D.D.J. (2014, January 15–18). Designing an information retrieval system for the STT/SC. Proceedings of the 2014 IEEE International Conference on e-Health Networking, Applications and Services (Healthcom), Natal, Brazil.10.1109/HealthCom.2014.7001893 ↗
17. Can We Trust a Chatbot like a Physician? A Qualitative Study on Understanding the Emergence of Trust toward Diagnostic Chatbots10.1016/j.ijhcs.2022.102848 ↗
18. Investigating the Impact of Innovative AI Chatbot on Post-Pandemic Medical Education and Clinical Assistance: A Comprehensive Analysis10.1111/ans.18666 ↗
19. Managing healthcare product demand effectively in the post-COVID-19 environment: Navigating demand variability and forecasting complexities10.58631/ajemb.v2i8.55 ↗
20. Sharing service in healthcare systems: A recent survey10.1016/j.omega.2024.103158 ↗
21. COVID-19 pandemic: A review of smart-city initiatives to face new outbreaks10.1049/iet-smc.2020.0044 ↗
22. Pap, I.A., and Oniga, S. (2024). eHealth Assistant AI Chatbot Using a Large Language Model to Provide Personalized Answers through Secure Decentralized Communication. Sensors, 24.10.3390/s24186140 ↗
23. A blueprint for large language model-augmented telehealth for HIV mitigation in Indonesia: A scoping review of a novel therapeutic modality10.1177/14604582251315595 ↗
24. Bolton, E., Venigalla, A., Yasunaga, M., Hall, D., Xiong, B., Lee, T., Daneshjou, R., Frankle, J., Liang, P., and Carbin, M. (2024). BioMedLM: A 2.7B Parameter Language Model Trained on Biomedical Text. arXiv.
25. Toward expert-level medical question answering with large language models10.1038/s41591-024-03423-7 ↗
26. BioBERT: A Pre-trained Biomedical Language Representation Model for Biomedical Text Mining10.1093/bioinformatics/btz682 ↗
27. O’Neil, M. (2025, September 01). The Inside Story of Babylon Health. Prospect Magazine. Available online: https://www.prospectmagazine.co.uk/ideas/technology/40385/the-inside-story-of-babylon-health.
28. Puel, A., Meurer, M.I., von Wangenheim, A., and Macedo, D.D.J. (2014, January 27–29). BUCOMAX: Collaborative Multimedia Platform for Real-Time Support of Diagnosis and Teaching Based on Bucomaxillofacial Diagnostic Images. Proceedings of the IEEE Symposium on Computer-Based Medical Systems (CBMS), New York, NY, USA.10.1109/CBMS.2014.12 ↗
29. Meta AI Team (2024, December 18). LLaMA 3: Advancing the State of Large Language Models with Efficiency and Scalability. Available online: https://ai.meta.com/blog/meta-llama-3/.
30. Ollama Team (2024, December 18). Ollama: A Platform to Run and Customize Large Language Models Locally with Privacy and Performance. Available online: https://ollama.com/.
31. Open WebUI Team (2024, December 18). Open WebUI is an Extensible, Self-Hosted AI Interface that Adapts to Your Workflow, All While Operating Entirely Offline. Available online: https://openwebui.com/.
32. Know where to go: Make LLM a relevant, responsible, and trustworthy searcher10.1016/j.dss.2024.114354 ↗
33. (2025, October 20). Brazil. Lei n° 13.709, de 14 de Agosto de 2018—Lei Geral de Proteção de Dados Pessoais (LGPD). Presidência da República, Casa Civil, Subchefia para Assuntos Jurídicos, Available online: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/l13709.htm.
34. Significance of Epochs on Training a Neural Network
35. Liu, Y., Iter, D., Xu, Y., Wang, S., Xu, R., and Zhu, C. (2023). G-Eval: NLG Evaluation Using GPT-4 with Better Human Alignment. arXiv.10.18653/v1/2023.emnlp-main.153 ↗
36. The challenges for regulating medical use of ChatGPT and other large language models10.1001/jama.2023.9651 ↗