CrowdSense is an innovative application that leverages Bluetooth technology to estimate the number of people in the surrounding environment. The core functionality of the app is to detect nearby Bluetooth connections and use this data to provide a rough approximation of human presence. By identifying both known and unknown devices, the app can help users infer the number of individuals nearby. This approach is based on the observation that most people carry multiple Bluetooth-enabled devices—typically three to four—at any given time, allowing the app to provide a reasonable estimate of crowd density. Over time, we explored extending the project into a multi-person, crowdsourced platform that could collect and share data across devices. For this, we looked at integrating cloud databases such as Supabase to handle larger amounts of aggregated data efficiently. The majority of our code was designed specifically for iOS devices, taking advantage of Swift, CoreBluetooth, and location services to create a seamless and responsive user experience.
The motivation behind CrowdSense originated from our personal experiences in public spaces. While studying in libraries, cafes, or on campus, we often wanted a better sense of how many people were around us. At times, this need stemmed from simple curiosity, while at other moments it was driven by a concern for personal safety and awareness, such as when we felt uneasy about someone following us. As the project evolved toward a multi-person model, we realized that the same technology could also be applied to track busy transit stations, walkways, or other areas with high foot traffic, offering real-time insights into crowd levels.
The purpose of the code is twofold: it keeps track of known devices, which can be considered familiar or “safe,” and it monitors unknown devices to estimate additional human presence. By aggregating this information, users gain actionable insights into the density of their surroundings, which can help in making decisions about where to study, commute, or move safely. CrowdSense demonstrates how Bluetooth scanning can be used to provide valuable, privacy-conscious data about the environment, transforming raw device signals into meaningful insights about crowd behavior and human activity in everyday life.