{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,17]],"date-time":"2026-08-17T19:16:53Z","timestamp":1786994213502,"version":"build-2736575974"},"reference-count":67,"publisher":"Association for Computing Machinery (ACM)","issue":"EICS","license":[{"start":{"date-parts":[[2024,6,17]],"date-time":"2024-06-17T00:00:00Z","timestamp":1718582400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100003246","name":"Dutch Research Council","doi-asserted-by":"crossref","award":["628.011.214"],"award-info":[{"award-number":["628.011.214"]}],"id":[{"id":"10.13039\/501100003246","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Hum.-Comput. Interact."],"published-print":{"date-parts":[[2024,6,17]]},"abstract":"<jats:p>The Experience Sampling Method (ESM) is commonly used to understand behaviors, thoughts, and feelings in the wild by collecting self-reports. Sustaining sufficient response rates, especially in long-running studies remains challenging. To avoid low response rates and dropouts, experimenters rely on their experience, proposed methodologies from earlier studies, trial and error, or the scarcely available participant behavior data from previous ESM protocols. This approach often fails in finding the acceptable study parameters, resulting in redesigning the protocol and repeating the experiment. Research has shown the potential of machine learning to personalize ESM protocols such that ESM prompts are delivered at opportune moments, leading to higher response rates. The corresponding training process is hindered due to the scarcity of open data in the ESM domain, causing a cold start, which could be mitigated by simulating participant behavior. Such simulations provide training data and insights for the experimenters to update their study design choices. Creating this simulation requires behavioral science, psychology, and programming expertise. Large language models (LLMs) have emerged as facilitators for information inquiry and programming, albeit random and occasionally unreliable. We aspire to assess the readiness of LLMs in an ESM use case. We conducted research using GPT-3.5 turbo-16k to tackle an ESM simulation problem. We explored several prompt design alternatives to generate ESM simulation programs, evaluated the output code in terms of semantics and syntax, and interviewed ESM practitioners. We found that engineering LLM-enabled ESM simulations have the potential to facilitate data generation, but they perpetuate trust and reliability challenges.<\/jats:p>","DOI":"10.1145\/3661143","type":"journal-article","created":{"date-parts":[[2024,6,17]],"date-time":"2024-06-17T18:25:37Z","timestamp":1718648737000},"page":"1-19","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":10,"title":["Evaluation of Code Generation for Simulating Participant Behavior in Experience Sampling Method by Iterative In-Context Learning of a Large Language Model"],"prefix":"10.1145","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9112-4695","authenticated-orcid":false,"given":"Alireza","family":"Khanshan","sequence":"first","affiliation":[{"name":"Industrial Design Department of Eindhoven University of Technology, Eindhoven, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5197-3986","authenticated-orcid":false,"given":"Pieter","family":"Van Gorp","sequence":"additional","affiliation":[{"name":"Industrial Engineering Department of Eindhoven University of Technology, Eindhoven, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2001-7251","authenticated-orcid":false,"given":"Panos","family":"Markopoulos","sequence":"additional","affiliation":[{"name":"Industrial Design Department of Eindhoven University of Technology, Eindhoven, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2024,6,17]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"2023. Introducing ChatGPT. Online. https:\/\/openai.com\/blog\/chatgpt Accessed on 2023-07-05."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv:2302.14600"},{"key":"e_1_2_1_3_1","unstructured":"A.Khanshan. 2023. Prompt4Code. https:\/\/github.com\/khnshn\/prompt4code Accessed on 2023-07-04."},{"key":"e_1_2_1_4_1","volume-title":"Artificial hallucinations in ChatGPT: implications in scientific writing. Cureus 15, 2","author":"Alkaissi Hussam","year":"2023","unstructured":"Hussam Alkaissi and Samy I McFarlane. 2023. Artificial hallucinations in ChatGPT: implications in scientific writing. Cureus 15, 2 (2023)."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-79840-6_2"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tate.2014.05.002"},{"key":"e_1_2_1_7_1","first-page":"147","article-title":"Teacher motivation and job satisfaction: A study employing the experience sampling method","volume":"3","author":"Bishay Andre","year":"1996","unstructured":"Andre Bishay. 1996. Teacher motivation and job satisfaction: A study employing the experience sampling method. Journal of undergraduate Sciences 3, 3 (1996), 147--155.","journal-title":"Journal of undergraduate Sciences"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/3593230"},{"key":"e_1_2_1_9_1","unstructured":"Tom Brown Benjamin Mann Nick Ryder Melanie Subbiah Jared D Kaplan Prafulla Dhariwal Arvind Neelakantan Pranav Shyam Girish Sastry Amanda Askell et al. 2020. Language models are few-shot learners. Advances in neural information processing systems 33 (2020) 1877--1901."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/302979.303040"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","unstructured":"Yuzhe Cai Shaoguang Mao Wenshan Wu Zehua Wang Yaobo Liang Tao Ge Chenfei Wu Wang You Ting Song Yan Xia Jonathan Tien and Nan Duan. 2023. Low-code LLM: Visual Programming over LLMs. https:\/\/doi.org\/10.48550\/arXiv.2304.08103 arXiv:2304.08103 [cs]","DOI":"10.48550\/arXiv.2304.08103"},{"key":"e_1_2_1_12_1","volume-title":"Charles Sutton, Sebastian Gehrmann, et al.","author":"Chowdhery Aakanksha","year":"2022","unstructured":"Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. 2022. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311 (2022)."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1109\/MPRV.2003.1203750"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3623809.3623931"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-94-017-9088-8_3"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","unstructured":"Yihong Dong Xue Jiang Zhi Jin and Ge Li. 2023. Self-collaboration Code Generation via ChatGPT. https:\/\/doi.org\/10.48550\/arXiv.2304.07590 arXiv:2304.07590 [cs]","DOI":"10.48550\/arXiv.2304.07590"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1177\/1073191120957102"},{"key":"e_1_2_1_18_1","unstructured":"Common Weakness Enumeration. 2023. CWE Definitions list and vulnerabilities for CWE entries. https:\/\/www.cvedetails.com\/cwe-definitions.php Accessed on 2023-07-03."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3511861.3511863"},{"key":"e_1_2_1_20_1","unstructured":"Yunfan Gao Yun Xiong Xinyu Gao Kangxiang Jia Jinliu Pan Yuxi Bi Yi Dai Jiawei Sun Meng Wang and Haofen Wang. 2024. Retrieval-Augmented Generation for Large Language Models: A Survey. arXiv:2312.10997 [cs.CL]"},{"key":"e_1_2_1_21_1","volume-title":"Simulation for the social scientist","author":"Gilbert Nigel","unstructured":"Nigel Gilbert and Klaus Troitzsch. 2005. Simulation for the social scientist. McGraw-Hill Education (UK)."},{"key":"e_1_2_1_22_1","unstructured":"GitHub and OpenAI. 2023. GitHub Copilot \u2022 Your AI pair programmer. https:\/\/github.com\/features\/copilot Accessed on 2023-06-28."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/2470654.2481405"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3544548.3580688"},{"key":"e_1_2_1_25_1","volume-title":"Experience Sampling Method: Measuring the Quality of Everyday Life. SAGE","author":"Hektner Joel M.","unstructured":"Joel M. Hektner, Jennifer A. Schmidt, and Mihaly Csikszentmihalyi. 2007. Experience Sampling Method: Measuring the Quality of Everyday Life. SAGE, Thousand Oaks, California, USA. Google-Books-ID: gLV38Bzf0XQC."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","unstructured":"Eric J. Horvitz Andy Jacobs and David Hovel. 2013. Attention-Sensitive Alerting. https:\/\/doi.org\/10.48550\/arXiv.1301.6707 arXiv:1301.6707 [cs].","DOI":"10.48550\/arXiv.1301.6707"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/765891.766101"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.nlp.2023.100020"},{"key":"e_1_2_1_29_1","volume-title":"Teachers' emotional experiences and exhaustion as predictors of emotional labor in the classroom: An experience sampling study. Frontiers in psychology 5","author":"Keller Melanie M","year":"2014","unstructured":"Melanie M Keller, Mei-Lin Chang, Eva S Becker, Thomas Goetz, and Anne C Frenzel. 2014. Teachers' emotional experiences and exhaustion as predictors of emotional labor in the classroom: An experience sampling study. Frontiers in psychology 5 (2014), 1442."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.4324\/9780203119273-5"},{"key":"e_1_2_1_31_1","unstructured":"Alireza Khanshan. 2023. SAPPHIRE. https:\/\/github.com\/khnshn\/SAPPHIRE Accessed on 10-07-2023."},{"key":"e_1_2_1_32_1","volume-title":"Experiencer: An Open-Source Context-Sensitive Wearable Experience Sampling Tool. In International Conference on Pervasive Computing Technologies for Healthcare. Springer, 315--331","author":"Khanshan Alireza","year":"2022","unstructured":"Alireza Khanshan, Pieter Van Gorp, and Panos Markopoulos. 2022. Experiencer: An Open-Source Context-Sensitive Wearable Experience Sampling Tool. In International Conference on Pervasive Computing Technologies for Healthcare. Springer, 315--331."},{"key":"e_1_2_1_33_1","volume-title":"Simulating Participant Behavior in Experience Sampling Method Research. In Extended Abstracts of the 2023 CHI Conference on Human Factors in Computing Systems. 1--7.","author":"Khanshan Alireza","year":"2023","unstructured":"Alireza Khanshan, Pieter Van Gorp, and Panos Markopoulos. 2023. Simulating Participant Behavior in Experience Sampling Method Research. In Extended Abstracts of the 2023 CHI Conference on Human Factors in Computing Systems. 1--7."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","unstructured":"Rapha\u00ebl Khoury Anderson R. Avila Jacob Brunelle and Baba Mamadou Camara. 2023. How Secure is Code Generated by ChatGPT? https:\/\/doi.org\/10.48550\/arXiv.2304.09655 arXiv:2304.09655 [cs]","DOI":"10.48550\/arXiv.2304.09655"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3491102.3501931"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-94-017-9088-8_2"},{"key":"e_1_2_1_37_1","volume-title":"Lin (Eds.)","volume":"33","author":"Lewis Patrick","year":"2020","unstructured":"Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich K\u00fcttler, Mike Lewis, Wen-tau Yih, Tim Rockt\u00e4schel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 9459--9474. https:\/\/proceedings.neurips.cc\/paper_files\/paper\/2020\/file\/6b493230205f780e1bc26945df7481e5-Paper.pdf"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3586182.3616671"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3381007"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/1166253.1166275"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2305.01210"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2022.findings-acl.222"},{"key":"e_1_2_1_43_1","volume-title":"Zuhairi","author":"Majid Mazlina A.","year":"2016","unstructured":"Mazlina A. Majid, Mohammed Fakhreldin, and Kamal Z. Zuhairi. 2016. Comparing Discrete Event and Agent Based Simulation in Modelling Human Behaviour at Airport Check-in Counter. In Human-Computer Interaction. Theory, Design, Development and Practice, Masaaki Kurosu (Ed.). Springer International Publishing, Cham, 510--522."},{"key":"e_1_2_1_44_1","volume-title":"M\u00fcller and Tony Vignaux","author":"Klaus","year":"2002","unstructured":"Klaus G. M\u00fcller and Tony Vignaux. 2002. Overview --- SimPy 4.0.2.dev1+g2973dbe documentation. https:\/\/simpy.readthedocs.io\/en\/latest\/ Accessed on 2023-07-04."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/s12160-016-9830-8"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1093\/ntr\/ntv266"},{"key":"e_1_2_1_47_1","unstructured":"OpenAI. 2023. Chatgpt. https:\/\/openai.com\/chatgpt"},{"key":"e_1_2_1_48_1","unstructured":"OpenAI. 2023. GPT-4 Technical Report. https:\/\/doi.org\/10.48550\/arXiv.2303.08774 arXiv:2303.08774 [cs]"},{"key":"e_1_2_1_49_1","unstructured":"OpenAI. 2023. OpenAI API. Online. https:\/\/platform.openai.com Accessed on 2023-06-12."},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3526113.3545616"},{"key":"e_1_2_1_51_1","volume-title":"New perspectives in end-user development","author":"Patern\u00f2 Fabio","unstructured":"Fabio Patern\u00f2 and Volker Wulf. 2017. New perspectives in end-user development. Springer."},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","unstructured":"Baolin Peng Michel Galley Pengcheng He Hao Cheng Yujia Xie Yu Hu Qiuyuan Huang Lars Liden Zhou Yu Weizhu Chen and Jianfeng Gao. 2023. Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedback. https:\/\/doi.org\/10.48550\/arXiv.2302.12813 arXiv:2302.12813 [cs]","DOI":"10.48550\/arXiv.2302.12813"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/3581641.3584037"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","unstructured":"Ohad Rubin Jonathan Herzig and Jonathan Berant. 2022. Learning To Retrieve Prompts for In-Context Learning. https:\/\/doi.org\/10.48550\/arXiv.2112.08633 arXiv:2112.08633 [cs]","DOI":"10.48550\/arXiv.2112.08633"},{"key":"e_1_2_1_55_1","volume-title":"Talking About Large Language Models. arXiv preprint arXiv:2212.03551","author":"Shanahan Murray","year":"2022","unstructured":"Murray Shanahan. 2022. Talking About Large Language Models. arXiv preprint arXiv:2212.03551 (2022)."},{"key":"e_1_2_1_56_1","unstructured":"Jasmine Shone and David Kim. 2022. Yes You Can Make an App Too: A Systematic Study of Prompt Engineering in the Automatic Generation of Mobile Applications from User Queries. (2022)."},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1111\/j.1467-6494.1991.tb00260.x"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1093\/abm\/163.199"},{"key":"e_1_2_1_59_1","volume-title":"Barto","author":"Sutton Richard S.","year":"2018","unstructured":"Richard S. Sutton and Andrew G. Barto. 2018. Reinforcement Learning, second edition: An Introduction. MIT Press, Cambridge, Massachusetts, USA. Google-Books-ID: uWV0DwAAQBAJ."},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/3123988"},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ijhcs.2018.12.002"},{"key":"e_1_2_1_62_1","doi-asserted-by":"publisher","DOI":"10.3390\/ijerph18116059"},{"key":"e_1_2_1_63_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10916-021-01773-0"},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2302.11382"},{"key":"e_1_2_1_65_1","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2306.02230"},{"key":"e_1_2_1_66_1","doi-asserted-by":"publisher","unstructured":"Chao Zhang Shihan Wang Henk Aarts and Mehdi Dastani. 2021. Using Cognitive Models to Train Warm Start Reinforcement Learning Agents for Human-Computer Interactions. https:\/\/doi.org\/10.48550\/arXiv.2103.06160 arXiv:2103.06160 [cs].","DOI":"10.48550\/arXiv.2103.06160"},{"key":"e_1_2_1_67_1","doi-asserted-by":"publisher","unstructured":"Wayne Xin Zhao Kun Zhou Junyi Li Tianyi Tang Xiaolei Wang Yupeng Hou Yingqian Min Beichen Zhang Junjie Zhang Zican Dong Yifan Du Chen Yang Yushuo Chen Zhipeng Chen Jinhao Jiang Ruiyang Ren Yifan Li Xinyu Tang Zikang Liu Peiyu Liu Jian-Yun Nie and Ji-Rong Wen. 2023. A Survey of Large Language Models. https:\/\/doi.org\/10.48550\/arXiv.2303.18223 arXiv:2303.18223 [cs]","DOI":"10.48550\/arXiv.2303.18223"}],"container-title":["Proceedings of the ACM on Human-Computer Interaction"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3661143","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3661143","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,22]],"date-time":"2025-08-22T23:21:02Z","timestamp":1755904862000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3661143"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,6,17]]},"references-count":67,"journal-issue":{"issue":"EICS","published-print":{"date-parts":[[2024,6,17]]}},"alternative-id":["10.1145\/3661143"],"URL":"https:\/\/doi.org\/10.1145\/3661143","relation":{},"ISSN":["2573-0142"],"issn-type":[{"value":"2573-0142","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,6,17]]},"assertion":[{"value":"2023-10-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-04-01","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-06-17","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}