--- language: [en] license: mit datasets: [MobileViews] pretty_name: "MobileViews: A Large-Scale Mobile GUI Dataset" tags: - mobile-ui - user-interfaces - view-hierarchy - android-apps - screenshots task_categories: - question-answering - image-to-text task_ids: - task-planning - visual-question-answering --- # ๐Ÿš€ MobileViews: A Large-Scale Mobile GUI Dataset **MobileViews** is a large-scale dataset designed to support research on mobile agents and mobile user interface (UI) analysis. The first release, **MobileViews-600K**, includes over **600,000** mobile UI screenshot-view hierarchy (VH) pairs collected from over **20,000 apps** on the Google Play Store. This dataset is based on the [DroidBot](https://honeynet.github.io/droidbot/), which we have optimized for large-scale data collection, capturing more comprehensive interaction details while maintaining consistency with DroidBotโ€™s output structure. [**๐Ÿ“– Read the Paper**](https://arxiv.org/abs/2409.14337) โ€” If youโ€™d like to dive deeper into the details of how we construct this dataset, or explore the training experiments we conduct using `MobileViews`, we encourage you to check out our paper. The paper, along with this dataset, contains everything you need to understand our process and replicate or build upon our findings! ## ๐Ÿค— Table of Contents - [๐Ÿš€ MobileViews: A Large-Scale Mobile GUI Dataset](#-mobileviews-a-large-scale-mobile-gui-dataset) - [๐Ÿค— Table of Contents](#-table-of-contents) - [๐Ÿฅณ NEWS](#-news) - [๐Ÿง Dataset Overview](#-dataset-overview) - [Folder Structure](#folder-structure) - [1. MobileViews\_Screenshots\_ViewHierarchies](#1-mobileviews_screenshots_viewhierarchies) - [Screenshot-VH File Descriptions](#screenshot-vh-file-descriptions) - [2. MobileViews\_Apps\_CompleteTraces](#2-mobileviews_apps_completetraces) - [App Trace Folder Structure](#app-trace-folder-structure) - [๐Ÿ”Ž Detailed Metadata and File Descriptions](#-detailed-metadata-and-file-descriptions) - [AppMetadata.csv Columns](#appmetadatacsv-columns) - [Index and Parquet files for `MobileViews_Screenshots_ViewHierarchies`](#index-and-parquet-files-for-mobileviews_screenshots_viewhierarchies) - [Index files for `MobileViews_Apps_CompeleteTraces`](#index-files-for-mobileviews_apps_compeletetraces) - [๐ŸŒ How to Download](#-how-to-download) - [Download via Hugging Face Python Library](#download-via-hugging-face-python-library) - [๐Ÿ“‹ Usage Guidelines](#-usage-guidelines) - [Using `zip` and `parquet` Files in `MobileViews_Screenshots_ViewHierarchies`](#using-zip-and-parquet-files-in-mobileviews_screenshots_viewhierarchies) - [Mapping Screenshots and States in `MobileViews_Apps_CompleteTraces`](#mapping-screenshots-and-states-in-mobileviews_apps_completetraces) - [๐ŸŒŸ Future Updates and Feedback](#-future-updates-and-feedback) - [๐Ÿ”– Citation](#-citation) ## ๐Ÿฅณ NEWS - **`2024/11`** โ€“ **New Release!** Weโ€™ve expanded the dataset to include comprehensive interaction data, now featuring traces and action sequences for `20,000+` apps. - **`2024/10`** โ€“ **Initial Launch!** The `MobileViews` dataset is live with `600,000+` unique screenshot-VH pairs, deduplicated across `20,000+` Android apps. ## ๐Ÿง Dataset Overview ### Folder Structure The dataset is organized into two main folders: 1. **MobileViews_Screenshots_ViewHierarchies**: Contains the core screenshot-VH pairs in both `.zip` and `.parquet` formats. All pairs are globally deduplicated based on their image hash values, ensuring unique UI states across the dataset. 2. **MobileViews_Apps_CompleteTraces**: Provides complete interaction traces for individual apps, including states, actions, and transitions. ### 1. MobileViews_Screenshots_ViewHierarchies This folder contains 600K screenshot-VH pairs, formatted in both `.zip` and `.parquet` formats. Each `.zip` and `.parquet` file pair, along with their respective CSV index files, follows a consistent data structure for easy access. - **`Parquets/`**: `.parquet` files with binary data for screenshots and JSON content for VHs. - **`Zip_Files/`**: `.zip` files with individual `.jpg` screenshots and `.json` VH files. - **`Index_CSV/`**: `csv` files, like `MobileViews_index_0-150000.csv`, that map screenshot IDs to their corresponding VH files. #### Screenshot-VH File Descriptions - **`MobileViews_0-150000.zip`**, **`MobileViews_0-150000.parquet`** and **`MobileViews_index_0-150000.csv`**: This set, containing IDs from 0 to 150,000. - **`MobileViews_150001-291197.zip`**, **`MobileViews_150001-291197.parquet`** and **`MobileViews_index_150001-291197.csv`**: This set, containing IDs from 150,001 to 291,197. - **`MobileViews_300000-400000.zip`**, **`MobileViews_300000-400000.parquet`** and **`MobileViews_index_300000-400000.csv`**: This set, containing IDs from 300,000 to 400,000. - **`MobileViews_400001-522301.zip`**, **`MobileViews_400001-522301.parquet`** and **`MobileViews_index_400001-522301.csv`**: This set, containing IDs from 400,001 to 522,301. ### 2. MobileViews_Apps_CompleteTraces The `MobileViews_Apps_CompleteTraces` folder is a new addition, providing complete interaction traces for apps. Each app trace includes screenshots, VH files, and actions taken within the app, organized as follows: - **`Zip_Files/`**: Each `.zip` file represents a batch of app data, named with an index and total screenshot count (e.g., `001_8348.zip` : the first batch with 8,348 screenshots). - Inside each zip file are **200 subfolders**, each named by an appโ€™s package name and containing interaction data for that app. Details on each appโ€™s interaction data structure are provided below. - **`OneExample.zip`**: A sample app trace illustrating the folder structure and contents for a single app. This zip file includes all files and subfolders needed to explore the sample app trace offline. After downloading and extracting `OneExample.zip`, you can open `index.html` in a web browser to interactively view the app trace structure, metadata, and interactions. - **`Index_CSV.zip`**: This zip file contains all the `.csv` files listing the app package names and screenshot counts for each corresponding zip file (e.g., `001_8348.csv` for `001_8348.zip`). #### App Trace Folder Structure Each appโ€™s folder within a zip file includes: - **`states/`**: - **Screenshots**: `.jpg` files for each interaction state (e.g., `screen_1.jpg`). - **View Hierarchies**: `.json` and `.xml` files for each screenshot's UI structure (e.g., `state_1.json` and `window_dump_1.xml`). The `.json` format, captured by DroidBotโ€™s internal logic via Android Accessibility Service, and the `.xml` format, captured via ADB commands, are nearly identical but differ in specific attributes. - **`views/`**: UI elements related to interactions, such as clicked or scrolled elements for each state transition. - **`actions.csv`**: A log of interactions within the app, with each action recorded in three columns: - `from_state`: The state before the action. - `to_state`: The state after the action. - `action`: The specific interaction, such as an `intent` command or `touch` on a UI element (e.g., `