Designing VR for Chronic Pain: Visualizing Autonomic States Through VR Biofeedback to Support Mindfulness
DOI:
https://doi.org/10.4108/eetpht.11.11776Keywords:
Virtual reality biofeedback, chronic pain, Electrodermal Activity, Heart Rate Variability, stress classification, machine learning, mindfulnessAbstract
Chronic pain affects physical functioning and psychological well-being, reducing quality of life. This paper presents the Virtual Meditative Walk, a closed-loop VR biofeedback environment that supports mindfulness-based chronic pain management through indirect, in-world visualization of autonomic state. To improve adaptation, we integrate a machine learning-based physiological inference pipeline using Electrodermal Activity and Heart Rate Variability. Using the combined WESAD and StressID dataset, the final Extra Trees model improved over the original VMW feedback method in the cross-sample binary setting, reaching 91.77%binary cross-sample accuracy and 86.05% multiclass cross-sample accuracy. Leave-one-subject-out validation was lower, showing that subject-independent stress inference remains challenging. These findings support machine learning as a promising but limited method for adaptive VR biofeedback in chronic pain contexts.
Downloads
References
[1] Schopflocher, D., Taenzer, P., Jovey, R.: The prevalence of chronic pain in Canada. Pain Research & Management 16(6), 445–450 (2011). doi:10.1155/2011/876306
[2] Foley, H.E., Knight, J.C., Ploughman, M., Asghari, S., Audas, R.: Association of chronic pain with comorbidities and health care utilization: a retrospective cohort study using health administrative data. Pain 162(11), 2737–2749 (2021). doi:10.1097/j.pain.0000000000002264
[3] Gatchel, R.J., Peng, Y.B., Peters, M.L., Fuchs, P.N., Turk, D. C.: The biopsychosocial approach to chronic pain: scientific advances and future directions. Psychological Bulletin 133(4), 581–624 (2007). doi:10.1037/0033-2909.133.4.581
[4] Nadeau, S.E., Wu, J.K., Lawhern, R.A.: Opioids and chronic pain: an analytic review of the clinical evidence. Frontiers in Pain Research 2, 721357 (2021). doi:10.3389/fpain.2021.721357
[5] Mackey, S., Aghaeepour, N., Gaudilliere, B., Kao, M.-C., Kaptan, M., Lannon, E., Pfyffer, D., Weber, K.: Innovations in acute and chronic pain biomarkers: enhancing diagnosis and personalized therapy. Regional Anesthesia & Pain Medicine 50(2), 110–120 (2025). doi:10.1136/rapm-2024-106030
[6] Jamison, R.N., Ross, E.L., Michna, E., Chen, L.Q., Holcomb, C., Wasan, A.D.: Substance misuse treatment for high-risk chronic pain patients on opioid therapy: a randomized trial. Pain 150(3), 390–400 (2010). doi:10.1016/j.pain.2010.02.033
[7] Davis, K.D., Aghaeepour, N., Ahn, A.H., Angst, M.S., Borsook, D., Brenton, A., Burczynski, M.E., Crean, C., Edwards, R., Gaudilliere, B., Hergenroeder, G.W., Iadarola, M.J., Iyengar, S., Jiang, Y., Kong, J.-T., Mackey, S., Saab, C.Y., Sang, C.N., Scholz, J., Pelleymounter, M.A.: Discovery and validation of biomarkers to aid the devel-opment of safe and effective pain therapeutics: chal-lenges and opportunities. Nature Reviews Neurology 16(7), 381–400 (2020). doi:10.1038/s41582-020-0362-2
[8] Topol, E.: Deep Medicine: How Artificial Intelligence Can Make Healthcare Human Again. Basic Books, New York (2019). doi:10.5555/3350442
[9] Hoffman, H.G., Patterson, D.R., Carrougher, G.J., Sharar, S. R.: Effectiveness of virtual reality-based pain control with multiple treatments. The Clinical Journal of Pain 17(3), 229–235 (2001). doi:10.1097/00002508-200109000-00007
[10] Moreau, S., Therond, A., Cerda, I.H., Studer, K., Pan, A., Tharpe, J., Crowther, J.E., Abd-Elsayed, A., Gilligan, C., Tolba, R., Ashina, S., Schatman, M.E., Kaye, A.D., Yong, R.J., Robinson, C.L.: Virtual reality in acute and chronic pain medicine: an updated review. Current Pain and Headache Reports 28(9), 893–928 (2024). doi:10.1007/s11916-024-01246-2
[11] Gopalan, R., Pande, H., Narayanan, S., Chinnaswami, A.: Virtual reality as a nonpharmacological tool for acute pain management: a scoping review. Innovations in Clinical Neuroscience 22(1–3), 28–50 (2025).
[12] Wong, K.P., Tse, M.M.Y., Qin, J.: Effectiveness of virtual reality-based interventions for managing chronic pain on pain reduction, anxiety, depression and mood: a systematic review. Healthcare 10(10), 2047 (2022). doi:10.3390/healthcare10102047
[13] Siu, K.-C., Hao, J.: Psychological aspects of virtual reality in chronic non-communicable diseases. In: Martin, C.R., Preedy, V.R., Patel, V.B., Rajendram, R. (eds.) Handbook of the Behavior and Psychology of Disease, pp. 1–20. Springer, Cham (2025). doi:10.1007/978-3-031-32046-0_128-1
[14] Garofano, M., Del Sorbo, R., Calabrese, M., Giordano, M., Di Palo, M.P., Bartolomeo, M., Ragusa, C.M., Ungaro, G., Fimiani, G., Di Spirito, F., Amato, M., Ciccarelli, M., Pascarelli, C., Scanniello, G., Bramanti, P., Bramanti, A.: Remote rehabilitation and virtual reality interventions using motion sensors for chronic low back pain: a systematic review of biomechanical, pain, quality of life, and adherence outcomes. Technologies 13(5), 186 (2025). doi:10.3390/technologies13050186
[15] Calderone, A., Mazzurco Masi, V.M., De Luca, R., Gangemi, A., Bonanno, M., Floridia, D., Corallo, F., Morone, G., Quartarone, A., Maggio, M.G., Calabro, R. S.: The impact of biofeedback in enhancing chronic pain rehabilitation: a systematic review of mecha-nisms and outcomes. Heliyon 11(2), e41917 (2025). doi:10.1016/j.heliyon.2025.e41917
[16] Nasir, A., Mahmood, S., Mahmood, S.: Digital pain interventions: a promising new paradigm for pain control. Anaesthesia, Pain & Intensive Care 27, 256–265 (2023). doi:10.35975/apic.v27i2.2175
[17] Yu, B., Funk, M., Hu, J., Wang, Q., Feijs, L.: Biofeed-back for everyday stress management: A system-atic review. Frontiers in ICT 5, Article 23 (2018). doi:10.3389/fict.2018.00023
[18] Kabat-Zinn, J.: Mindfulness Meditation for Pain Relief: Practices to Reclaim Your Body and Your Life. St. Martin’s Essentials / Sounds True, New York (2023)
[19] Tong, X., Gromala, D., Choo, A., Amin, A., Shaw, C.: The virtual meditative walk: an immersive virtual envi-ronment for pain self-modulation through mindfulness-based stress reduction meditation. In: Shumaker, R., Lackey, S. (eds.) Virtual, Augmented and Mixed Reality, pp. 330–339. Springer, Cham (2015). doi:10.1007/978-3- 319-21067-4_40
[20] Gromala, D., Tong, X., Choo, A., Karamnejad, M., Shaw, C.D.: The virtual meditative walk: virtual reality therapy for chronic pain management. In: Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems (CHI ’15), Seoul, Republic of Korea, pp. 521–524. ACM, New York (2015). doi:10.1145/2702123.2702344
[21] Gromala, D., Barnes, S., Song, M., Fox, T.: Virtual Meditative Walk (2010).
[22] Vos, G., Trinh, K., Sarnyai, Z., Rahimi Azghadi, M.: Generalizable machine learning for stress monitoring from wearable devices: a systematic literature review. International Journal of Medical Informatics 173, 105026 (2023). doi:10.1016/j.ijmedinf.2023.105026
[23] Pinge, A., Gad, V., Jaisighani, D., Ghosh, S., Sen, S.: Detection and monitoring of stress using wearables: a systematic review. Frontiers in Computer Science 6, 1478851 (2024). doi:10.3389/fcomp.2024.1478851
[24] Ding, M.E., Traiba, H., Perez, H.R.: Virtual reality interventions and chronic pain: scoping review. Journal of Medical Internet Research 27, e59922 (2025). doi:10.2196/59922
[25] Garcia, L.M., Birckhead, B.J., Krishnamurthy, P., Sack-man, J., Mackey, I.G., Louis, R.G., Salmasi, V., Mad-dox, T., Darnall, B.D.: An 8-week self-administered at-home behavioral skills-based virtual reality program for chronic low back pain: double-blind, randomized, placebo-controlled trial conducted during COVID-19. Journal of Medical Internet Research 23(2), e26292 (2021). doi:10.2196/26292
[26] O’Connor, S., Mayne, A., Hood, B.: Virtual reality based mindfulness for chronic pain management: a scoping review. Pain Management Nursing 23(3), 359–369 (2022). doi:10.1016/j.pmn.2022.03.013
[27] Mahrer, N.E., Gold, J.I.: The use of virtual reality for pain control: a review. Current Pain and Headache Reports 13(2), 100–109 (2009). doi:10.1007/s11916-009-0019-8
[28] Malloy, K.M., Milling, L.S.: The effectiveness of virtual reality distraction for pain reduction: a systematic review. Clinical Psychology Review 30(8), 1011–1018 (2010). doi:10.1016/j.cpr.2010.07.001
[29] Ng, J., Lo, H., Tong, X., Gromala, D., Jin, W.: Farmooo, a virtual reality farm simulation game designed for pediatric cancer patients to distract their pain during chemotherapy treatment. Electronic Imaging 2018(3), 4321–4324 (2018). doi:10.2352/ISSN.2470-1173.2018.03.ERVR-432
[30] Sveistrup, H.: Motor rehabilitation using virtual reality. Journal of NeuroEngineering and Rehabilitation 1(1), 10 (2004). doi:10.1186/1743-0003-1-10
[31] Tong, X., Gromala, D., Machuca, F.: LumaPath: an immersive virtual reality game for encouraging phys-ical activity for senior arthritis patients. In: Inter-national Conference on Human-Computer Interaction (HCII 2019), pp. 384–397. Springer, Cham (2019). doi:10.1007/978-3-030-21565-1_26
[32] Chittaro, L., Longhino, S., Serafini, M., Cacioppo, S., Quartuccio, L.: Efficacy of immersive virtual reality combined with multisensor biofeedback on chronic pain in fibromyalgia: a pilot randomized controlled trial. ACR Open Rheumatology 7(5), e70048 (2025). doi:10.1002/acr2.70048
[33] R., R., Moger, S., Umesh, S., Bhuvana, G.: Revolutioniz-ing pain management: the future of AAT, BCI, exoskele-ton, and soft robotics. In: Emerging Trends in Assistive Technologies for Health and Wellbeing, pp. 129–164. IGI Global, Hershey, PA (2025). doi:10.4018/979-8-3693-9501-1.ch005
[34] Diotaiuti, P., Corrado, S., Tosti, B., Spica, G., Di Libero, T., D’Oliveira, A., Zanon, A., Rodio, A., Andrade, A., Mancone, S.: Evaluating the effectiveness of neurofeedback in chronic pain management: a narrative review. Frontiers in Psychology 15, 1369487 (2024). doi:10.3389/fpsyg.2024.1369487
[35] Reddy, K.J.: Motor rehabilitation and biofeedback. In: Reddy, K.J. (ed.) Innovations in Neurocognitive Reha-bilitation: Harnessing Technology for Effective Therapy, pp. 231–266. Springer, Cham (2025). doi:10.1007/978-3- 031-88117-6_11
[36] Gkintoni, E., Vassilopoulos, S.P., Nikolaou, G., Van-tarakis, A.: Neurotechnological approaches to cognitive rehabilitation in mild cognitive impairment: a system-atic review of neuromodulation, EEG, virtual reality, and emerging AI applications. Brain Sciences 15(6), 582 (2025). doi:10.3390/brainsci15060582
[37] Schmidt, P., Reiss, A., Duerichen, R., Marberger, C., Van Laerhoven, K.: Introducing WESAD, a multi-modal dataset for wearable stress and affect detection. In: Proceedings of the 20th ACM International Con-ference on Multimodal Interaction (ICMI ’18), Boul-der, CO, USA, pp. 400–408. ACM, New York (2018). doi:10.1145/3242969.3242985
[38] Chaptoukaev, H., Strizhkova, V., Panariello, M., Dalpaos, B., Reka, A., Manera, V., Thummler, S., Ismailova, E., Evans, N.W., Bremond, F., Todisco, M., Zuluaga, M. A., Ferrari, L.M.: StressID: a multimodal dataset for stress identification. In: Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track (2023). https://openreview.net/forum?id=qWsQi9DGJb
[39] Yin, Q., Shen, D., Ding, Q.: Influence of sliding time window size selection based on heart rate variability signal analysis on intelligent monitoring of noxious stimulation under anesthesia. Neural Plasticity 2021, 6675052 (2021). doi:10.1155/2021/6675052
[40] Anusha, A.S., Joy, J., Preejith, S.P., Joseph, J., Mohanasankar, S.: Physiological signal based work stress detection using unobtrusive sensors. Biomedical Physics & Engineering Express 4(6), 065001 (2018). doi:10.1088/2057-1976/aadbd4
[41] Mohammadpoor Faskhodi, M., Fernandez-Chimeno, M., Garcia-Gonzalez, M.A.: Arousal detection by using ultra-short-term heart rate variability (HRV) analysis. Frontiers in Medical Engineering 2, 1209252 (2023). doi:10.3389/fmede.2023.1209252
[42] Baek, H.J., Cho, C.H., Cho, J., Woo, J.M.: Reli-ability of ultra-short-term analysis as a surrogate of standard 5-min analysis of heart rate variabil-ity. Telemedicine and e-Health 21(5), 404–414 (2015). doi:10.1089/tmj.2014.0104
[43] Posada-Quintero, H.F., Florian, J.P., Orjuela-Canon, A. D., Aljama-Corrales, T., Charleston-Villalobos, S., Chon, K.H.: Power spectral density analysis of electro-dermal activity for sympathetic function assessment. Annals of Biomedical Engineering 44, 3124–3135 (2016). doi:10.1007/s10439-016-1606-6
[44] Amin, M.R., Faghih, R.T.: Identification of sympathetic nervous system activation from skin conductance: a sparse decomposition approach with physiological priors. IEEE Transactions on Biomedical Engineering 68, 1726–1736 (2020). doi:10.1109/TBME.2020.3034632
[45] Aladag, S., Guven, A., Ozbek, H., Dolu, N.: A comparison of denoising methods for Electroder-mal Activity signals. In: 2015 Medical Technologies National Conference (TIPTEKNO), pp. 1–4 (2015). doi:10.1109/TIPTEKNO.2015.7374563
[46] Gupta, V., Mittal, M., Mittal, V.: Performance evaluation of various pre-processing techniques for R-peak detection in ECG signal. IETE Journal of Research 68(5), 3267–3282 (2022). doi:10.1080/03772063.2020.1756473
[47] Lee, G., Choi, B., Jebelli, H., Ahn, C.R., Lee, S.: Noise reference signal-based denoising method for EDA collected by multimodal biosensor wearable in the field. Journal of Computing in Civil Engineering 34(6), 04020044 (2020). doi:10.1061/(ASCE)CP.1943-5487.0000927
[48] Goldberger, J.J., Johnson, N.P., Subacius, H., Ng, J., Greenland, P.: Comparison of the physiologic and prognostic implications of the heart rate versus the RR interval. Heart Rhythm 11(11), 1925–1933 (2014). doi:10.1016/j.hrthm.2014.07.037
[49] Vest, A.N., Poian, G.D., Li, Q., Liu, C., Nemati, S., Shah, A., Clifford, G.D.: An open source benchmarked toolbox for cardiovascular waveform and interval analysis. Physiological Measurement 39(10), 105004 (2018). doi:10.1088/1361-6579/aae021
[50] Ishaque, S., Khan, N., Krishnan, S.: Physiological signal analysis and stress classification from VR simulations using decision tree methods. Bioengineering 10(7), 766 (2023). doi:10.3390/bioengineering10070766
[51] Moridani, M., Zahra, M., Nooshin, J.: Heart rate variability features for different stress classification. Bratislavske Lekarske Listy 121, 619–627 (2020). doi:10.4149/BLL_2020_107
[52] Patlar Akbulut, F.: Evaluating the effects of the autonomic nervous system and sympathetic activ-ity on emotional states. Istanbul Ticaret Univer-sitesi Fen Bilimleri Dergisi 21(41), 156–169 (2022). doi:10.55071/ticaretfbd.1125431
[53] Melillo, P., Bracale, M., Pecchia, L.: Nonlinear heart rate variability features for real-life stress detection. Case study: students under stress due to university examination. BioMedical Engineering OnLine 10(1), 96 (2011). doi:10.1186/1475-925X-10-96
[54] Long, K., Zhang, X., Wang, N., Lei, H.: Heart rate variability during online video game playing in habitual gamers: effects of internet addiction scale, ranking score and gaming performance. Brain Sciences 14(1), 29 (2023). doi:10.3390/brainsci14010029
[55] Goni, M., Mohino-Herranz, I., Llerena, C., Gil-Pita, R., Rosa-Zurera, M.: Feature selection in mental stress analysis using multiple biological signals. In: Pro-ceedings of the 2013 IASTED International Confer-ence on Biomedical Engineering (BioMed 2013) (2013). doi:10.2316/P.2013.798-090
[56] Dalmeida, K.M., Masala, G.L.: HRV features as viable physiological markers for stress detection using wearable devices. Sensors 21(8), 2873 (2021). doi:10.3390/s21082873
[57] Wu, M., Cao, H., Nguyen, H.L., Surmacz, K., Hargrove, C.: Modeling perceived stress via HRV and accelerome-ter sensor streams. In: 37th Annual International Con-ference of the IEEE Engineering in Medicine and Biol-ogy Society (EMBC 2015), pp. 1625–1628. IEEE, Milan (2015). doi:10.1109/EMBC.2015.7318686
[58] Sanchez-Reolid, R., Lopez de la Rosa, F., Sanchez-Reolid, D., Lopez, M.T., Fernandez-Caballero, A.: Machine learning techniques for arousal classification from electrodermal activity: a systematic review. Sensors 22(22), 8886 (2022). doi:10.3390/s22228886
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Sara Khalilipicha, Diane Gromala, Armin Froozanfar, Chris Shaw, Patti Derbyshire

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
This is an open access article distributed under the terms of the CC BY-NC-SA 4.0, which permits copying, redistributing, remixing, transformation, and building upon the material in any medium so long as the original work is properly cited.
