https://www.mdu.se/

mdu.sePublications
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Prompt Engineering Techniques for Personalizing a Virtual Coach for Fall-Preventive Physical Activity
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.
2026 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Fall injuries are the leading cause of hospital admissions and result in both health-related consequences and economic repercussions. This thesis contributes to the PRE-fall research project by focusing on the implementation and evaluation of utilizing different prompting techniques to personalize communication with a Large Language Model (LLM), integrated as a virtual coach in an e-health mobile application for fall-preventive physical activity(PA). Previous work within the PRE-fall research project built a solid foundation of the application, focusing on the knowledge- and practice components of The Knowledge, Attitude and Practice (KAP) theory. Building on this foundation, this thesis explores how the user’s attitude towards PA can help personalize the tonal output of a virtual coach, while still maintaining relevance and substance.

An onboarding module was implemented using Flutter and Python to collect information regarding the user’s attitude towards PA. This information is then utilized to increase personalization, aiming to enhance both motivation and adherence towards completing fall-preventive PA programs. Exploring two different prompting techniques, the LLM’s responses to exercise-related questions and statements were evaluated by ten respondents through a survey with respect to tone, relevance and substance in relation to the fictional users’ attitude.

The results show that the tonal output can be well adjusted with lightweight prompting techniques while maintaining relevance and substance but also highlights the importance of how the instructions and example prompts are formulated and structured. This work aims to guide in situations where prompting techniques are deemed suitable to adjust the tonal output of an LLM, in contexts where improving users’ motivation and adherence are important.

Place, publisher, year, edition, pages
2026. , p. 58
Keywords [en]
Prompt Engineering, Virtual coach, Fall-prevention, Artificial Intelligence, Mobile application
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:mdh:diva-78402OAI: oai:DiVA.org:mdh-78402DiVA, id: diva2:2081589
Subject / course
Computer Science
Supervisors
Examiners
Available from: 2026-08-05 Created: 2026-06-29 Last updated: 2026-08-05Bibliographically approved

Open Access in DiVA

fulltext(1886 kB)25 downloads
File information
File name FULLTEXT01.pdfFile size 1886 kBChecksum SHA-512
c0b54421cbd3456eecf681f9c7cd94d46642dfc03aeededc138f579c71bf2403fb482d32a72655c3c3d9136d5ad5f737068c037eb5d97060d26120e8b50a694c
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Larsson, GustavRocha Campuzano, Erick
By organisation
Department of Computer Science & Engineering
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1645 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf