Automated Detection of Mind Wandering: A Mobile Application

Marcus Cheetham, Cátia Cepeda, Hugo Gamboa


There is growing interest in mindfulness-based training of attention. A particular challenge for novices is learning to sustain focused attention while ensuring that the mind does not wander. This paper presents the development of a tool for the automated detection of episodes of mind wandering (MW), on the basis of biosignals, while normal healthy participants engaged in brief mindfulness-based training (BMT) of attention. BMT required five 20-minute training sessions on consecutive days and entailed practice of breath-focused attention, a typical exercise in mindfulness-based techniques of stress-reduction. Heart rate, respiratory rate, electrodermal and electromyographic activity were measured, and participants pressed a button to indicate the subjective detection of MW during training. The data showed that BMT did not influence our measures of stress but BMT was effective in reducing the frequency of subjectively detected MW events. The algorithm for offline detection of MW achieved an accuracy of 85%. Based on this algorithm, a mobile application was developed for automated MW detection in real-time. The application requires the use of easily placeable sensors, provides a new approach to the real-time MW detection, and could be developed further for use in MW-related investigations and interventions (such as mindfulness-based training of focused attention).


  1. Andreassi, J. (2000). Psychophysiology: Human Behavior & Physiological Response. Mahwah, N.J.:Lawrence Erlbaum Assoc.
  2. Austin, J. (1999). Zen and the Brain: Toward an Understanding of Meditation and Consciousness. MIT Press.
  3. Bishop, S. R. (2004). Mindfulness: A Proposed Operational Definition. pages 230-241.
  4. Bixler, R. and DMello, S. (2014). User Modeling, Adaptation, and Personalization, volume 8538 of Lecture Notes in Computer Science. Springer International Publishing, Cham.
  5. Blanchard, N., Bixler, R., Joyce, T., and DMello, S. (2014). Intelligent Tutoring Systems, volume 8474 of Lecture Notes in Computer Science. Springer International Publishing, Cham.
  6. Braboszcz, C. and Delorme, A. (2011). Lost in thoughts: neural markers of low alertness during mind wandering. NeuroImage, 54(4):3040-7.
  7. Bressert, E. (2013). SciPy and NumPy: An Overview for Developers:. O'Reilly, third edition.
  8. Brown, K. W. and Ryan, R. M. (2004). Perils and promise in defining and measuring mindfulness: Observations from experience.
  9. Cahn, B. R. and Polich, J. (2006). Meditation states and traits: EEG, ERP, and neuroimaging studies. Psychological bulletin, 132(2):180-211.
  10. Carmody, J. and Baer, R. A. (2008). Relationships between mindfulness practice and levels of mindfulness, medical and psychological symptoms and well-being in a mindfulness-based stress reduction program. Journal of behavioral medicine, 31(1):23-33.
  11. Chiesa, A. and Serretti, A. (2010). A systematic review of neurobiological and clinical features of mindfulness meditations. Psychological medicine, 40(8):1239-52.
  12. Cresswell, P. and Gilmour, J. (2014). The informed consent process in randomised controlled trials: a nurseled process. Nursing praxis in New Zealand inc, 30(1):17-28.
  13. DMello, S. (2013). A selective meta-analysis on the relative incidence of discrete affective states during learning with technology. Journal of Educational Psychology, 105(4):1082-1099.
  14. Drummond, J. and Litman, D. (2010). In the zone: Towards detecting student zoning out using supervised machine learning. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 6095 LNCS(PART 2):306-308.
  15. Elliott, N. (2014). Exploring mindfulness meditation in occupational therapy: An introduction to basic practice.
  16. Everly, G. S. and Lating, J. M. (2013). A Clinical Guide to the Treatment of the Human Stress Response.
  17. Fahrenberg, J., Hampel, R., and H., S. (2001). FPI-R Das Freiburger Persönlichkeitsinventar. Göttinger: Hogrefe.
  18. Franklin, M. S., Smallwood, J., and Schooler, J. W. (2011). Catching the mind in flight: Using behavioral indices to detect mindless reading in real time. Psychonomic Bulletin & Review, 18(5):992-997.
  19. Goleman, D. J. and Schwartz, G. E. (1976). Meditation as an intervention in stress reactivity.
  20. Greenbaum, E. (2012). Biological and Medical Physics, Biomedical Engineering. Springer.
  21. Grossman, P., Niemann, L., Schmidt, S., and Walach, H. (2004). Mindfulness-based stress reduction and health benefits. A meta-analysis. Journal of psychosomatic research, 57(1):35-43.
  22. Gunaratana, B. (2002). Mindfulness In Plain English. Wisdom.
  23. Hanley, J. A. and McNeil, B. J. (1982). The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology, 143(1):29-36.
  24. Hasenkamp, W., Wilson-Mendenhall, C. D., Duncan, E., and Barsalou, L. W. (2012). Mind wandering and attention during focused meditation: a fine-grained temporal analysis of fluctuating cognitive states. NeuroImage, 59(1):750-60.
  25. Haslwanter, T. (2015). Statistics with Python.
  26. Hinterberger, T., Kamei, T., and Walach, H. (2011). Psychophysiological classification and staging of mental states during meditative practice. Biomedizinische Technik/Biomedical Engineering, 56(6):341-350.
  27. Hofmann, S. G., Sawyer, A. T., Witt, A. A., and Oh, D. (2010). The effect of mindfulness-based therapy on anxiety and depression: A meta-analytic review. Journal of consulting and clinical psychology, 78(2):169- 83.
  28. Intel (2014). Fast Track to Intel XDK New. myfreeiwant.
  29. Jha, A. P., Krompinger, J., and Baime, M. J. (2007). Mindfulness training modifies subsystems of attention. Cognitive, affective & behavioral neuroscience, 7(2):109-19.
  30. Kabat-Zinn, J. (1982). An outpatient program in behavioral medicine for chronic pain patients based on the practice of mindfulness meditation: theoretical considerations and preliminary results. General hospital psychiatry, 4(1):33-47.
  31. Kabat-Zinn, J. and Hanh, T. N. (1990). Full Catastrophe Living: Using the Wisdom of Your Body and Mind to Face Stress, Pain, and Illness.
  32. Kabat-Zinn, J., Lipworth, L., and Burney, R. (1985). The clinical use of mindfulness meditation for the selfregulation of chronic pain. Journal of behavioral medicine, 8(2):163-90.
  33. Kam, J. W. Y., Dao, E., Farley, J., Fitzpatrick, K., Smallwood, J., Schooler, J. W., and Handy, T. C. (2011). Slow fluctuations in attentional control of sensory cortex. Journal of cognitive neuroscience, 23(2):460-70.
  34. Kapleau, P. (1965). The three pillars of Zen: Teaching, practice, and enlightenment. Beacon Press.
  35. Khazan, I. (2013). The Clinical Handbook of biofeedback.
  36. Klabunde, R. E. (2014). Cardiovascular Physiology Concepts: Arterial Baroreceptors.
  37. Kuo, S. M., Lee, B. H., and Tian, W. (2006). Real-Time Digital Signal Processing. John Wiley & Sons Ltd., second edition.
  38. Lenman, J. A. R. (1975). THE HUMAN NERVOUS SYSTEM. Journal of neurology, neurosurgery, and psychiatry, 38(12):1245.
  39. Levinson, D. B., Stoll, E. L., Kindy, S. D., Merry, H. L., and Davidson, R. J. (2014). A mind you can count on : validating breath counting as a behavioral measure of mindfulness. Frontiers in psychology, 5:1-10.
  40. Lutz, A., Dunne, J. D., and Davidson, R. J. (2006). Meditation and the Neuroscience of Consciousness: An Introduction.
  41. Lutz, A., Slagter, H. A., Dunne, J. D., and Davidson, R. J. (2008). Attention regulation and monitoring in meditation. Trends in cognitive sciences, 12(4):163-9.
  42. McVay, J. C., Kane, M. J., and Kwapil, T. R. (2009). Tracking the train of thought from the laboratory into everyday life: an experience-sampling study of mind wandering across controlled and ecological contexts. Psychonomic bulletin & review, 16(5):857-63.
  43. Mills, C. and Mello, S. D. (2015). Toward a Real-time ( Day ) Dreamcatcher : Sensor-Free Detection of Mind Wandering During Online Reading. In Romero, C., Pechenizkiy, M., Boticario, J., and Santos, O., editors, Proceedings of the 8th International Conference on Educational Data Mining, pages 69-76. International Educational Data Mining Society.
  44. Mooneyham, B. W. and Schooler, J. W. (2013). The costs and benefits of mind-wandering: A review. Canadian Journal of Experimental Psychology/Revue canadienne de psychologie expérimentale, 67(1):11-18.
  45. Noteboom, J. T., Fleshner, M., Enoka, R. M., Timothy, J., and Fleshner, M. (2001). Activation of the arousal response can impair performance on a simple motor task. pages 821-831.
  46. Oken, B. S., Zajdel, D., Kishiyama, S., Flegal, K., Dehen, C., Haas, M., Kraemer, D. F., Lawrence, J., and Leyva, J. (2006). Randomized, controlled, six-month trial of yoga in healthy seniors: effects on cognition and quality of life. Alternative therapies in health and medicine, 12(1):40-7.
  47. Ottaviani, C., Shahabi, L., Tarvainen, M., Cook, I., Abrams, M., and Shapiro, D. (2015). Cognitive, behavioral, and autonomic correlates of mind wandering and perseverative cognition in major depression. Frontiers in Neuroscience, 8:1-9.
  48. Otten, S., Sch ötz, E., Wittmann, M., Kohls, N., Schmidt, S., and Meissner, K. (2015). Psychophysiology of duration estimation in experienced mindfulness meditators and matched controls. Frontiers in psychology, 6:1215.
  49. Ramsburg, J. and Youmans, R. (2012). Think Outside the Box: The Effects of Cognitive Training on Creative Problem Solving. Proceedings of the Thirty-Fourth Annual Conference of the Cognitive Science Society.
  50. Raslick, M. A., Markert, R. J., and Stutes, S. A. (2007). Selecting and interpreting diagnostic tests. Biochemia Medica.
  51. Rubia, K. (2009). The neurobiology of Meditation and its clinical effectiveness in psychiatric disorders. Biological Psychology.
  52. Rushworth, M. F. S., Hadland, K. A., Gaffan, D., and Passingham, R. E. (2003). The effect of cingulate cortex lesions on task switching and working memory. Journal of cognitive neuroscience, 15(3):338-53.
  53. Sayette, M. A., Schooler, J. W., and Reichle, E. D. (2009). Out for a smoke: the impact of cigarette craving on zoning out during reading. Psychological science, 21(1):26-30.
  54. Schooler, J. W., Smallwood, J., Christoff, K., Handy, T. C., Reichle, E. D., and Sayette, M. A. (2011). Metaawareness, perceptual decoupling and the wandering mind. Trends in cognitive sciences, 15(7):319-26.
  55. Seli, P., Smallwood, J., Cheyne, J. A., and Smilek, D. (2015). On the relation of mind wandering and ADHD symptomatology. Psychonomic bulletin & review, 22(3):629-36.
  56. Shad, M. U., Brent, B. K., and Keshavan, M. S. (2011). Neurobiology of self-awareness deficits in schizophrenia: A hypothetical model. Asian journal of psychiatry, 4(4):248-54.
  57. Simpson, K. (2012). JavaScript and HTML5 New. O'Reilly.
  58. Smallwood, J., Davies, J. B., Heim, D., Finnigan, F., Sudberry, M., O'Connor, R., and Obonsawin, M. (2004). Subjective experience and the attentional lapse: task engagement and disengagement during sustained attention. Consciousness and cognition, 13(4):657-90.
  59. Smallwood, J. and Schooler, J. W. (2006). The restless mind. Psychological bulletin, 132(6):946-958.
  60. Smallwood, J. and Schooler, J. W. (2009). Mind-wandering. The Oxford Companion to Consciousness, pages 443- 445.
  61. Smallwood, J. and Schooler, J. W. (2015). The Science of Mind Wandering: Empirically Navigating the Stream of Consciousness. Annual Review of Psychology, 66(1):141007180413004.
  62. Snippe, E., Fleer, J., Tovote, K. A., Sanderman, R., Emmelkamp, P. M. G., and Schroevers, M. J. (2015). The Therapeutic Alliance Predicts Outcomes of Cognitive Behavior Therapy but Not of Mindfulness-Based Cognitive Therapy for Depressive Symptoms. Psychotherapy and psychosomatics, 84(5):314-5.
  63. Srinivasan, N. and Baijal, S. (2007). Concentrative meditation enhances preattentive processing: a mismatch negativity study. Neuroreport, 18(16):1709-12.
  64. Stawarczyk, D., Majerus, S., Maquet, P., and D'Argembeau, A. (2011). Neural correlates of ongoing conscious experience: both task-unrelatedness and stimulus-independence are related to default network activity. PloS one, 6(2):e16997.
  65. Tang, Y.-Y., Ma, Y., Wang, J., Fan, Y., Feng, S., Lu, Q., Yu, Q., Sui, D., Rothbart, M. K., Fan, M., and Posner, M. I. (2007). Short-term meditation training improves attention and self-regulation. Proceedings of the National Academy of Sciences of the United States of America, 104(43):17152-6.
  66. Tape, T. G. (2001). Interpretation of Diagnostic Tests. Annals of Internal Medicine, 135(1):72.
  67. Thompson, B. L. and Waltz, J. (2007). Everyday mindfulness and mindfulness meditation: Overlapping constructs or not? Personality and Individual Differences, 43(7):1875-1885.
  68. Tops, M., Boksem, M. A. S., Quirin, M., IJzerman, H., and Koole, S. L. (2014). Internally directed cognition and mindfulness: an integrative perspective derived from predictive and reactive control systems theory. Frontiers in psychology, 5:429.
  69. Vago, D. R. and Silbersweig, D. A. (2012). Selfawareness, self-regulation, and self-transcendence (SART): a framework for understanding the neurobiological mechanisms of mindfulness. Frontiers in human neuroscience, 6:296.
  70. Vinci, C., Peltier, M. R., Shah, S., Kinsaul, J., Waldo, K., McVay, M. A., and Copeland, A. L. (2014). Effects of a brief mindfulness intervention on negative affect and urge to drink among college student drinkers. Behaviour research and therapy, 59:82-93.
  71. Zeidan, F., Gordon, N. S., Merchant, J., and Goolkasian, P. (2010). The Effects of Brief Mindfulness Meditation Training on Experimentally Induced Pain. Journal of Pain, 11(3):199-209.
  72. Zeidan, F., Martucci, K. T., Kraft, R. a., Gordon, N. S., McHaffie, J. G., and Coghill, R. C. (2011). Brain mechanisms supporting the modulation of pain by mindfulness meditation. The Journal of neuroscience : the official journal of the Society for Neuroscience, 31(14):5540-5548.

Paper Citation

in Harvard Style

Cheetham M., Cepeda C. and Gamboa H. (2016). Automated Detection of Mind Wandering: A Mobile Application . In Proceedings of the 9th International Joint Conference on Biomedical Engineering Systems and Technologies - Volume 4: BIOSIGNALS, (BIOSTEC 2016) ISBN 978-989-758-170-0, pages 198-205. DOI: 10.5220/0005702401980205

in Bibtex Style

author={Marcus Cheetham and Cátia Cepeda and Hugo Gamboa},
title={Automated Detection of Mind Wandering: A Mobile Application},
booktitle={Proceedings of the 9th International Joint Conference on Biomedical Engineering Systems and Technologies - Volume 4: BIOSIGNALS, (BIOSTEC 2016)},

in EndNote Style

JO - Proceedings of the 9th International Joint Conference on Biomedical Engineering Systems and Technologies - Volume 4: BIOSIGNALS, (BIOSTEC 2016)
TI - Automated Detection of Mind Wandering: A Mobile Application
SN - 978-989-758-170-0
AU - Cheetham M.
AU - Cepeda C.
AU - Gamboa H.
PY - 2016
SP - 198
EP - 205
DO - 10.5220/0005702401980205