Mobile phone data is primarily collected through two sources: 1. Call Detail Records (CDRs) - These are records maintained by telecommunication companies that log information about phone calls and text messages, including time, duration, and location. 2. Location-Based Services (LBS) - These services use GPS, Wi-Fi, and cell tower triangulation to determine the real-time location of a device.