Personal Data Lab · DuckDB Lakehouse

Google Takeout Personal Lakehouse: 10-Year YouTube Attention & Maps Spatial Analytics

Local DuckDB sessionization of 10-year YouTube watch/search histories and H3 spatial clustering of Google Maps timelines

Google Takeout Personal Lakehouse: 10-Year YouTube Attention & Maps Spatial Analytics
By: Chiyul Song
DuckDB • Python • Uber H3 • Local Privacy-Preserving ETL
Executive Abstract
Target Ecosystems: Personal Data Lakehouse • Spatio-Temporal Life-Log Builder

Mining 10+ years of my own Google Takeout archives (68K+ YouTube watch/search events and 1.4M+ Google Maps location pings) in a local DuckDB lakehouse to quantify algorithmic feed drift and multi-city mobility.

The Core Business Problem

Raw platform exports arrive as deeply nested, unindexed JSON/GeoJSON files without session boundaries, topic labels, or spatial hierarchy—making it impossible to distinguish intentional learning from algorithmic drift or quantify multi-city mobility efficiency.

Engineered Architecture & Solution

Built a two-pillar analytical pipeline on local Apple Silicon (DuckDB): (1) Sessionized 68,400+ YouTube watch and search events using a 30-minute inactivity window to isolate search-led deep dives versus post-23:00 algorithmic feed drift, and (2) Indexed 1.4M+ Google Maps GPS pings across Seoul, Portland, Boston, and LA into Uber H3 Resolution-8 hexagons, cross-joining place visits with Tesla vehicle telemetry to optimize multi-stop trip chaining.

Google Takeout Personal Lakehouse // Interactive Dataset Explorer
takeout/YouTube and YouTube Music/history/watch-history.json

Sessionized Attention & Search Intent vs. Algorithmic Drift

TIME WINDOW: 06:30 – 11:30AVG SESSION: 28 MIN
Search-Initiated Deep Dive: 82%Algorithmic Auto-Play / Shorts: 18%
Dominant NLP Topic Clusters in Window
AI Engineering & LLM HarnessesOperations Research / EconometricsMacro & Tech Keynotes
Behavioral Diagnostic & Decision

82% of morning sessions start with an explicit search query (`search-history.json`) and have high completion depth on long-form technical lectures.

Post-23:00 Guardrail Impact-74% Passive Drift Time
Zero-Cloud PII Governance: Parsed 100% locally on Mac mini DuckDB with SHA-256 coordinate & query hashing.

Technologies & Protocols

DuckDB (Local OLAP)Uber H3 HexagonsSessionization SQLNLP Topic ClusteringGoogle Takeout JSON/GeoJSONZero-Cloud PII Hashing