ScreenTK: Seamless Detection of Time-Killing Moments Using Continuous Mobile Screen Text Monitoring

Le Fang The University of MelbourneMelbourneAustralia [email protected] Shiquan Zhang The University of MelbourneMelbourneAustralia [email protected] Hong Jia The University of MelbourneMelbourneAustralia [email protected] Jorge Goncalves The University of MelbourneMelbourneAustralia [email protected]  and  Vassilis Kostakos The University of MelbourneMelbourneAustralia [email protected]
Abstract.

Smartphones have become essential to people’s digital lives, providing a continuous stream of information and connectivity. However, this constant flow can lead to moments where users are simply passing time rather than engaging meaningfully. This underscores the importance of develo** methods to identify these “time-killing” moments, enabling the delivery of important notifications in a way that minimizes interruptions and enhances user engagement. Recent work has utilized screenshots taken every 5 seconds to detect time-killing activities on smartphones. However, this method often misses to capture phone usage between intervals. We demonstrate that up to 50% of time-killing instances go undetected using screenshots, leading to substantial gaps in understanding user behavior. To address this limitation, we propose a method called ScreenTK that detects time-killing moments by leveraging continuous screen text monitoring and on-device large language models (LLMs). Screen text contains more comprehensive information than screenshots and allows LLMs to summarize detailed phone usage. To verify our framework, we conducted experiments with six participants, capturing 1,034 records of different time-killing moments. Initial results show that our framework outperforms state-of-the-art solutions by 38% in our case study.

Time-Killing Detection; Screen Text; Mobile Devices: Smartphones; Mobile Interaction
ccs: Human-centered computing Ubiquitous and mobile computing systems and tools

1. Introduction

Refer to caption
Figure 1. Comparison between ScreenTK and SOTA screenshot-based method (Chen et al., 2023) for detecting time-killing moments. The green boxes highlight the records of time-killing instances captured by the proposed framework, ScreenTK. Top: passive time-killing study. Bottom: active time-killing study. Transparent: ScreenTK only. Non-Transparent: Both ScreenTK and Screenshot.

Smartphones are essential to modern digital life, providing users with a constant influx of information. However, this constant stream can sometimes be overwhelming, causing users to simply pass time instead of engaging in meaningful activities. This highlights the necessity of develo** effective tools to deliver instant and important notifications that help users minimize distractions while enhancing engagement. One effective approach is to identify moments when users are most receptive to incoming content, known as ”attention surplus” moments (Pielot et al., 2015). Within this framework, “time-killing” moments have been identified as a specific type of attention surplus (Chen et al., 2023). Specifically, during “time-killing” moments, users, having no specific goal, seek to fill their perceived free time (Lukoff et al., 2018; Oulasvirta et al., 2012), such as when they are waiting for a train or listening to an unengaging speech (Isaacs et al., 2009).

To capture moments of distraction, existing works focus on utilizing screenshots (Chen et al., 2023) as the main information source and traditional machine learning algorithms for modeling. Specifically, a state-of-the-art (SOTA) method (Chen et al., 2023) employs a 30-second duration with 5-second interval screenshots to determine whether a user is distracted, using a CNN-LSTM structure to train the model in a supervised manner. However, the 5-second duration can miss significant phone usage information. For instance, detection may fail if users periodically switch to social media apps during the 5-second intervals. Additionally, supervised models are not adept at summarizing and generating useful information to enhance users’ self-awareness of their phone usage. These limitations highlight the need for more robust and effective methods that can better capture and analyze user’s phone usage.

In this paper, we propose ScreenTK, a novel framework to seamlessly capture ”time-killing” moments using continuous screen text monitoring and large language models (LLMs). Specifically, we propose using screen text to collect distraction moments as it provides more comprehensive information to capture the user’s phone usage compared to screenshots. We then apply SOTA LLMs to identify these moments and summarize key information, such as preferences, wish lists, and to-do lists, offering the user a more fine-grained understanding of their daily phone usage.

To evaluate the proposed framework, we designed three case studies involving six participants and captured 1,034 records containing time-killing moments. Compared with SOTA screenshot baselines, we observed that the proposed method significantly outperformed them by 38% in our case study. We envision that the proposed framework can significantly help users in sha** their self-awareness of daily phone usage.

2. Related Works

This section summarizes some existing works on phone usage behaviors in Section 2.1 and the time-killing detection in Section 2.2.

2.1. Phone Usage Behaviors

Self-report methods (e.g., via interviews and diaries (Palen and Salzman, 2002)) were often used in early phone usage studies to help users understand their usage patterns, motivations, and behaviors, but these methods were criticized due to inaccurate or biased predictions (Do et al., 2011; Froehlich et al., 2007). In comparison, quantitative analysis of phone-usage logs has become more popular (Falaki et al., 2010; Xu et al., 2011; Yuan et al., 2019). Leveraging large-scale datasets collected by mobile sensors, many researchers have focused on modeling phone-use behavior, such as predicting smartphone screen use (Kostakos et al., 2016) and classifying app usage by combining phone logs with experience-sampling method data (Katevas et al., 2018). However, phone logs of system data (e.g., screen events and app states) are limited in capturing the complexity of smartphone use.

To obtain a more comprehensive picture of people’s digital life and behaviors on smartphones, previous work has explored using screenshots to analyze app usage (Brown et al., 2014; Reeves et al., 2021). However, while screenshots can partly reveal users’ actions, they are not continuous, and phone use information could be missed during the time gaps. In comparison, we leverage continuous screen text as the information source and utilize LLMs to seamlessly help users understand their phone usage.

2.2. Time-Killing Detection

Chen et al. (2023) stated that time-killing on smartphones is ubiquitous and offers opportunities to deliver content to users. To study time-killing behavior, the authors developed an Android app called Killing Time Labeling (KTL) to collect and annotate screenshots and phone-sensor data (e.g., Android accessibility events, screen status, and type of transportation) of users’ app usage. The app runs as a background service that automatically takes screenshots every 5 seconds (only when the screen is on). However, as mentioned in Section 2.1, the screenshots might miss many details of time-killing moments that happen between the 5-second gaps. In comparison, we propose a novel approach that uses a digital phenotype tool, AWARE-Light (Teng et al., 2024), to collect screen text of app usage to continuously monitor time-killing behaviors on smartphones.

3. Method

This section will first discuss how we (1) seamlessly capture screen text information ( Section 3.1) and (2) detect time-killing moments via on-device LLMs (Section 3.2).

3.1. Seamless Capture of Screen Information

To capture continuous screen information, we leverage the AWARE-Light app to extract phone usage information. Specifically, AWARE-Light is based on the Android Accessibility API, enabling the collection of various screen usage information including screen status (on/off and unlocked/locked), screen text, and touch events (click and scroll). In this study, we focus solely on screen text information. In detail, we install and configure the AWARE-Light app on a Google Pixel 8 to capture the screen information. After that, we extract each participant’s phone usage information into a CSV file on the phone and feed it into an LLM for time-killing detection.

Refer to caption
Figure 2. Prompt engineering for analyzing smartphone screen text data to understand user time-killing behavior, including data format, expected insights, and response structure.

3.2. Time-killing Detection via On-device LLMs

Screen text usually contains significant amount of data (usually millions of tokens), make traditional machine learning models such as SOTA time-killing used CNN and LSTM incapable to handle. In comparison, recent LLMs are capable to throughput millions of token size information. Also, LLMs are inherently well-suited for understanding and analyzing text-based information due to their extensive pretraining on natural languages. As such, it is reasonable to choose LLMs to capture user’s time-killing moments. To achieve this and protect user’s privacy, we utilize an on-device open sourced LLMs model called LLama3 111https://github.com/meta-llama/llama3 deployed directly on smartphone.

We design a prompt that involves analyzing shifts in user attention on smartphones to detect time-wasting behavior in students engaged in assignments for our case studies. Specifically, for the instructions, ”You will get a text file with screen text data from a student’s smartphone” formatted as #timestamp#screentext#𝑡𝑖𝑚𝑒𝑠𝑡𝑎𝑚𝑝#𝑠𝑐𝑟𝑒𝑒𝑛𝑡𝑒𝑥𝑡{\#timestamp-\#screentext}# italic_t italic_i italic_m italic_e italic_s italic_t italic_a italic_m italic_p - # italic_s italic_c italic_r italic_e italic_e italic_n italic_t italic_e italic_x italic_t, where the timestamp is in “HH:MM:SS.mmm” format and represents the time the screen text was captured. The task is to “extract and clean the screen text by removing timestamps,” identify the main educational content, and analyze each block of text to determine if it continues the educational work or shifts to unrelated content. The analysis (i.e., #answer#𝑎𝑛𝑠𝑤𝑒𝑟{\#answer}# italic_a italic_n italic_s italic_w italic_e italic_r) will summarize each time-wasting moment, including the “timestamp range and type of content,” count the total number of time-wasting moments, and conclude with a summary of the student’s time-wasting behavior. This summary should include the “total time on the assignment vs. time-wasting.” This structured approach aims to provide a detailed understanding of how students manage their attention and the extent to which they are distracted by their smartphones during academic tasks.

3.3. Case Studies

Our goal is to utilize screen text to improve people’s self-awareness and empower self-control over their digital life on smartphones, ultimately benefiting users’ well-being. To achieve this, two case studies were conducted to compare the performance of screen text and screenshots in detecting time-killing behaviors on smartphones. We recruited a total of six volunteer participants from our labs to join the experiment. Data collection was conducted in accordance with ethics approval from our university.

3.4. Passive Time-killing

In the passive test, we aimed to proactively trigger time-killing moments for participants when they were engaged in a reading task. Specifically, a story of 516 words in English was assigned to three participants. After each paragraph, there was a URL embedded in a sentence that read ”Click here.” Additionally, there was a question about the content of the story. The question aimed to prevent participants from merely scanning the content, ensuring they paid more attention to reading the story. To enable a a fair comparison, we used 5-second intervals to capture screenshots and used AWARE-Light to capture screen text information for each user. Data was stored on the device automatically and fed into on-device LLMs when the study was finished.

3.5. Active Time-Killing Study

In the active test, we aim to promote spontaneous time-killing behaviors occurring when participants are focusing on a reading task. Specifically, we designed a reading study using a scientific essay of 2,351 words. The URLs of popular internet memes were embedded in 20 citation brackets. Three participants joined this study without being notified of anything they should be aware of. Other configurations followed those used in the active time-killing text consistently.

4. Results and Discussion

The passive time-killing study collected 535 records and 11 minutes of screen text from another 3 participants (on average, 178 records and 4 minutes per participant). In comparison, the active time-killing study collected 499 records of screen text from three participants (on average, 11 minutes and 100 records per participant). The quantitative results are discussed in Section 4.1, and the qualitative results are provided in Section 4.2.

4.1. Quantitative Results

We compared the performance of the proposed ScreenTK by comparing it to the SOTA screenshots method, calculating the capture rate of time-killing actions during the implicit and explicit tests. We observed that the baseline method of taking screenshots every 5 seconds missed many time-killing instances (38% for active time-killing and 57% for passive time-killing). On the other hand, ScreenTK captured almost all time-killing events (except for one instance due to a screen text sensor unresponsive issue). This result suggests that the proposed ScreenTK is significantly more effective in capturing time-killing behaviors compared to the traditional screenshot method.

Refer to caption
Figure 3. Examples of collected screen text. timestamp: the Unix timestamp at which the event occurred; text: text on the current screen.

4.2. Qualitative Results

We observed that ScreenTK collected more fine-grained information about time-killing moments when compared to screenshots. As illustrated in Figure 1, the top text box contains the screen-text records about the starting point of the time-killing moment (”Click here.”) and the actual content viewed by the participant (i.e., an image file); the bottom text box shows the process of the time-killing action: 1) clicked citation link ”[12]”, 2) redirected to the URL, and 3) visited the animation. Also, in Figure 3, we observe that ScreenTK is capable to capture time-killing moment even within in a second period. Specifically, Figure 3 indicates that the participant viewed a music video by the Wagakki Band, featuring a cover of the song ”Bring Me to Life” with guest vocals by Amy Lee of Evanescence. Additionally, the participant continued browsing other music videos, evidenced by text like ”Daily Work Space Lofi Deep Focus Study.” These detailed records highlight ScreenTK’s ability to capture user activities with precision, providing a comprehensive view of time-killing behaviors.

5. Conclusion and Future Work

In this work, we propose a novel framework called ScreenTK for time-killing detection using continuous screen text and on-device LLMs. Our analysis of experimental results demonstrates that the proposed ScreenTK framework is capable of consistently recording time-killing moments. Compared with screenshot-based methods, ScreenTK provides more comprehensive information about time-killing behavior.

We noticed that time-killing moments were sometimes related to app-switching behavior that can be monitored by the app sensor. However, the app sensor is not sufficient for time-killing detection. For instance, if a user switches from reading a scientific article to an interesting story on the same website, the app sensor cannot determine the change in attention from educational to time-killing content. In contrast, sentimental analysis of screen text can identify this transition. We found that learning material (e.g., scientific writings) has a more neutral tone and cohesive text compared to unofficial reading. Contents in social media and entertainment are more polarized and less consistent in logic, often containing short, conversational phrases. These findings suggest that screen text can be used to recognize contextual features of time-killing moments.

In conclusion, our study highlights the potential of utilizing screen text data for time-killing detection. By combining app sensor data with screen text analysis, we believe that more accurate time-killing detection can be achieved. For future work, we aim to explore this integration to enable personalized interventions for unwanted phone usage, empowering users with better self-control over their digital life on smartphones.

References

  • (1)
  • Brown et al. (2014) Barry Brown, Moira McGregor, and Donald McMillan. 2014. 100 days of iPhone use: understanding the details of mobile device use. In Proceedings of the 16th International Conference on Human-Computer Interaction with Mobile Devices & Services (Toronto, ON, Canada) (MobileHCI ’14). Association for Computing Machinery, New York, NY, USA, 223–232. https://doi.org/10.1145/2628363.2628377
  • Chen et al. (2023) Yu-Chun Chen, Yu-Jen Lee, Kuei-Chun Kao, Jie Tsai, En-Chi Liang, Wei-Chen Chiu, Faye Shih, and Yung-Ju Chang. 2023. Are You Killing Time? Predicting Smartphone Users’ Time-killing Moments via Fusion of Smartphone Sensor Data and Screenshots. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems (CHI ’23). Association for Computing Machinery, New York, NY, USA, Article 647, 19 pages. https://doi.org/10.1145/3544548.3580689
  • Do et al. (2011) Trinh Minh Tri Do, Jan Blom, and Daniel Gatica-Perez. 2011. Smartphone usage in the wild: a large-scale analysis of applications and context. In Proceedings of the 13th International Conference on Multimodal Interfaces (Alicante, Spain) (ICMI ’11). Association for Computing Machinery, New York, NY, USA, 353–360. https://doi.org/10.1145/2070481.2070550
  • Falaki et al. (2010) Hossein Falaki, Ratul Mahajan, Srikanth Kandula, Dimitrios Lymberopoulos, Ramesh Govindan, and Deborah Estrin. 2010. Diversity in smartphone usage. In Proceedings of the 8th International Conference on Mobile Systems, Applications, and Services (San Francisco, California, USA) (MobiSys ’10). Association for Computing Machinery, New York, NY, USA, 179–194. https://doi.org/10.1145/1814433.1814453
  • Froehlich et al. (2007) Jon Froehlich, Mike Y. Chen, Sunny Consolvo, Beverly Harrison, and James A. Landay. 2007. MyExperience: a system for in situ tracing and capturing of user feedback on mobile phones. In Proceedings of the 5th International Conference on Mobile Systems, Applications and Services (San Juan, Puerto Rico) (MobiSys ’07). Association for Computing Machinery, New York, NY, USA, 57–70. https://doi.org/10.1145/1247660.1247670
  • Isaacs et al. (2009) Ellen Isaacs, Nicholas Yee, Diane J Schiano, Nathan Good, Nicolas Ducheneaut, and Victoria Bellotti. 2009. Mobile microwaiting moments: The role of context in receptivity to content while on the go. PARC white paper (2009) 10, 10 (2009).
  • Katevas et al. (2018) Kleomenis Katevas, Ioannis Arapakis, and Martin Pielot. 2018. Typical phone use habits: intense use does not predict negative well-being. In Proceedings of the 20th International Conference on Human-Computer Interaction with Mobile Devices and Services (Barcelona, Spain) (MobileHCI ’18). Association for Computing Machinery, New York, NY, USA, Article 11, 13 pages. https://doi.org/10.1145/3229434.3229441
  • Kostakos et al. (2016) Vassilis Kostakos, Denzil Ferreira, Jorge Goncalves, and Simo Hosio. 2016. Modelling smartphone usage: a markov state transition model. In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing (Heidelberg, Germany) (UbiComp ’16). Association for Computing Machinery, New York, NY, USA, 486–497. https://doi.org/10.1145/2971648.2971669
  • Lukoff et al. (2018) Kai Lukoff, Cissy Yu, Julie Kientz, and Alexis Hiniker. 2018. What makes smartphone use meaningful or meaningless? Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 2, 1 (2018), 1–26.
  • Oulasvirta et al. (2012) Antti Oulasvirta, Tye Rattenbury, Lingyi Ma, and Eeva Raita. 2012. Habits make smartphone use more pervasive. Personal and Ubiquitous computing 16 (2012), 105–114.
  • Palen and Salzman (2002) Leysia Palen and Marilyn Salzman. 2002. Voice-mail diary studies for naturalistic data capture under mobile conditions. In Proceedings of the 2002 ACM Conference on Computer Supported Cooperative Work (New Orleans, Louisiana, USA) (CSCW ’02). Association for Computing Machinery, New York, NY, USA, 87–95. https://doi.org/10.1145/587078.587092
  • Pielot et al. (2015) Martin Pielot, Tilman Dingler, Jose San Pedro, and Nuria Oliver. 2015. When attention is not scarce-detecting boredom from mobile phone usage. In Proceedings of the 2015 ACM international joint conference on pervasive and ubiquitous computing. 825–836.
  • Reeves et al. (2021) Byron Reeves, Nilam Ram, Thomas N. Robinson, James J. Cummings, C. Lee Giles, Jennifer Pan, Agnese Chiatti, Mj Cho, Katie Roehrick, Xiao Yang, Anupriya Gagneja, Miriam Brinberg, Daniel Muise, Yingdan Lu, Mufan Luo, Andrew Fitzgerald, and Leo Yeykelis. 2021. Screenomics: A Framework to Capture and Analyze Personal Life Experiences and the Ways that Technology Shapes Them. Human-Computer Interaction 36, 2 (2021), 150–201. https://doi.org/10.1080/07370024.2019.1578652 Publisher Copyright: © 2020 Taylor & Francis Group, LLC..
  • Teng et al. (2024) Songyan Teng, Simon D’Alfonso, and Vassilis Kostakos. 2024. A Tool for Capturing Smartphone Screen Text. In Proceedings of the CHI Conference on Human Factors in Computing Systems (CHI ’24). Association for Computing Machinery, New York, NY, USA, Article 938, 24 pages. https://doi.org/10.1145/3613904.3642347
  • Xu et al. (2011) Qiang Xu, Jeffrey Erman, Alexandre Gerber, Zhuoqing Mao, Jeffrey Pang, and Shobha Venkataraman. 2011. Identifying diverse usage behaviors of smartphone apps. In Proceedings of the 2011 ACM SIGCOMM Conference on Internet Measurement Conference (Berlin, Germany) (IMC ’11). Association for Computing Machinery, New York, NY, USA, 329–344. https://doi.org/10.1145/2068816.2068847
  • Yuan et al. (2019) Nalingna Yuan, Heidi M. Weeks, Rosa Ball, Mark W. Newman, Yung-Ju Chang, and Jenny S. Radesky. 2019. How much do parents actually use their smartphones? Pilot study comparing self-report to passive sensing. Pediatric Research (1 Jan. 2019). https://doi.org/10.1038/s41390-019-0452-2