People counting using WIFI and Bluetooth

WIFI and Bluetooth device can be used to create rich data sets that lead to valuable business insights. Applications include WiFi and Bluetooth people counting, spatial analytics, smartphone detection, vehicle counting, dwell times, travel routes, commute times and vehicle occupancy rates.

Any operator must give due consideration to data protection, privacy laws and the appropriate use of data. In this blog post, we explore the features of the Libelium Meshlium Scanner, outline several applications and highlight the essential issues to consider regarding data protection and data privacy.

Meshlium Scanner

Libelium Meshlium
Meshlium Scanner

WIFI and Bluetooth devices periodically broadcast messages that indicate their presence or participation in a network (i.e. “Hello” messages). The Libelium Meshlium scanner can identify these messages and extract relevant meta-data and other vital information. The scanner can detect WIFI devices (on 2.4GHz and 5.8GHz) bands at a range of up to 500m (depending on conditions). The Bluetooth scanner can detect Bluetooth devices at a 20m range.

The Scanner

The scanner itself is a self-contained unit in an IP67 rated outdoor case with several external Omni-directional antennas. The unit is powered using POE and can support a 3G/4G SIM for seamless transmission of data back to a cloud platform, API or MySQL database.

The scanner also features a GPS receiver which allows relevant location data to be stored alongside sensors readings – this is important for mobile or nomadic applications. During operation, the scanner stores data in a local MySQL database (on the unit), before either synchronising or transmitting the data to another platform.

What data does the scanner collect?

WIFI Scanning

The device scans WIFI frequency bands and identifies the following information:

  • Unique ID – Auto-generated numeric identifier.
  • Timestamp – Time/date of the measurement.
  • MAC – Source MAC address of the station
  • RSSI – signal strength of the device from the scanner (measured in dBm)
  • Vendor – Device vendor of the detected device (i.e. Apple, Samsung, etc.)
  • AP – the SSID or network to which the device is associated

Bluetooth Scanning

Bluetooth scanning is similar to WIFI but includes the COD (Class of Device), this indicates the type of Bluetooth device (i.e. Phone, Handsfree, etc.)

Scanning Applications

WIFI and Bluetooth scanning data can be used directly to develop insights directly or to support, enhance or reinforce data sources derived through other means. We highlight many potential applications of the technology below.

WiFi People and Crowd Counting

Smart Phone Detection and People CountingThe scanner can be used to count people or estimate the size of a crowd. The data does not provide 100% accuracy (not everyone has a Smartphone or WIFI enabled); the information is still precious. The ratio of actual people vs devices detected can be used to generate an adjustment factor that can be used to estimate the exact number of people.

WIFI and Bluetooth scanning can be used alongside existing measurement systems, to add a rich set of meta-data. The concept of state is a valuable asset in any counting application – but particular consideration needs to be given to privacy and data protection law.

The most common applications of crowd counting are in retail, leisure, urban or recreational environments. The systems work best when it is used alongside a WIFI network or public hotspot.

Vehicle Counting

Vehicle counting works in a similar principle to people counting but can detect both vehicles and the occupants of cars by listening for frames broadcast by the occupant’s phones, or the vehicle itself. Meshlium scanners are positioned along roads and key transport routes, counting the number of unique or repeat devices visible to the scanner. Using a similar adjustment factor as before, the scanner can provide a good indication of trends relating to traffic levels.

Vehicle counting using WIFI and Bluetooth works best when used alongside more traditional traffic counting measures such as pneumatic tubes, inductive loops or other methods.

Commute Times and Traffic Flow

Smart Phone Detection and Traffic CountingMany local authorities and organisations are interested in measuring commute times to indicate congestion and transportation effectiveness. When the Meshlium Scanners are positioned along a key transport route, the devices can be used to provide an indication of commute times. The first device can measure the first occurrence of a passenger or vehicle, while the second device – further along, the route, records the second occurrence. The time difference between the two indicates the commute time and traffic flow.

Vehicle Passenger Occupancy

One proposed method of reducing congestion and improve the environment is to promote the use of car sharing. When combined with vehicle counting systems to count vehicle density, the Meshlium Scanner can augment this data with Passenger density. With some basic logic, a responsible body can visualise traffic levels (number of vehicles) and passenger levels (number of people).

Efforts to increase car sharing or improve the load factor of public transport can be measured in this manner.

Event Attendance

Attendance at concerts, public events, fairs and trade show can be measured using the Meshlium Scanner. With multiple devices positioned throughout the venue, an organiser can count the number of people but also develop a picture of movement around the site, visit duration and repeat visits. The scanners can be used in exhibition centres, outdoor venues or events distributed over a wide area. Using GPS alongside the scanner means organisers can develop a sense of movement throughout the entire event footprint.

Sporting Event and Stadium Attendance

Being able to measure the attendance at sporting events in stadiums and similar venues is well suited to the Meshlium Scanner. The scanner can count people, supporting other metrics (i.e. ticket sales) but provides the user with a sense of state, identifying repeat visitors as opposed to new attendees.

Outdoor Sport Events

Largescale outdoor events such as marathons, cycling, triathlons and some motorsport events can be particularly challenging to measure spectators around a large scale course. Using Meshlium scanners, either fixed throughout the course or mounted on a course vehicle, enables organisers to develop a sense of crowd density throughout.

This data can be used for decision making, allowing the organisers to deploy safety better, retail or concessions throughout the course. Spectator counting and crowd counting for outdoor cycling, marathons and sporting events is well suited to the Meshlium Scanner.

MTG piloted mobile people counting using our IoT vans and anonymous scanning data during the Isle of Man TT.

How are they configured?

The Meshlium scanners have an easy to use administrative web interface that can be accessed over 4G, WIFI or Ethernet. You can find the configuration guide on the Libelium Website.

What does the data look like?

The data is first logged to a local MySQL database on the unit, before being replicated to a remote MySQL server or uploaded directly into a common Cloud platform (i.e. AWS, Azure, etc.). Examples of the data can be seen below:

Meshlium Scanner - WIFI Scanner
This data table shows the output from the WIFI scanner module in a MySQL table.

Meshlium Scanner - GPS Table
GPS data table. This can be joined against the WIFI Scan table to gain geo-location data.

Cloud Platforms

In addition to MySQL, the Scanner has dozens of pre-built integrations and connectors to several market-leading cloud platforms. This makes the process of uploading data for further analysis and visualisation a breeze, without having to develop custom middleware.

What about data protection?

This blog post serves to highlight the possibilities of the technology, but we would encourage you to explore and understand the relevant data protection or privacy laws in your country or target market. WIFI scanning, WIFI tracking and WIFI analytics can get a bit of a bad rep. With GDPR and other concerns around data protection, any operator needs to approach people counting and similar applications with an awareness of data protection issues.

  • User Consent. Obtaining user-consent is an essential feature of many data protection frameworks/regulations. In private venues or settings – you can consider amending your terms, so users expressly consent to people counting or tracking. As with any permission, the conditions under which you operate, the data you collect and other information need to be set out in clear form.
  • Anonymisation or pseudonymization. These technical solutions either anonymise, strip or mangle the data in a way that it is no longer personably identifiable. Using a hashing technology such as MD5 or SHA1, can help achieve this, along with a unique Salt. Again – you need to check the acceptance of these methods as being compliant with privacy or data laws. The Libelium Meshlium scanner can hash MAC addresses at run-time.
  • Just counting unique MAC addresses and not recording any MAC addresses is one way of benefitting from statistics and data, without the overhead of storing any personal data.

We recommend you conduct your research to understand the most appropriate of benefiting from this high technology while remaining compliant. There, there are many other examples of organisations who have implemented their solutions – thus, you can explore what they have done from a compliance perspective.

What about randomisation and MAC cycling?

Apple and Android devices both utilise a process known as MAC cycling or randomisation. When these devices are not associated with a WiFi network, they will cycle the MAC address used for beacons/probes. Due to this use of randomisation, the scanner cannot detect the true identity of the end-user device. These privacy-focused controls are designed to safeguard against tracking and other intrusive surveillance techniques. While this is an issue for users who want to maintain a level of state, it does not detract from the use-case of ‘counting’ the number of devices seen in a given area.

Learn more

If you would like to learn how MTG and Libelium Meshlium scanners can assist with your people counting or crowd analytics application – get in touch. The applications of WIFI Scanning and Smart Phone detection are endless -, and the resultant data can lead to some tremendous insights and MI of real value to your business. Speak to our sales team by e-mailing sales@mtg.im, calling 01624 777837 or submitting the ‘Request a Quote’ form on our website.

Further reading

[sc name=”blogfooter” ]

Scroll to Top