Next Article in Journal
A Novel Instruction Driven 1-D CNN Processor for ECG Classification
Previous Article in Journal
A Lightweight Cross-Layer Smoke-Aware Network
Previous Article in Special Issue
Towards Efficient Risky Driving Detection: A Benchmark and a Semi-Supervised Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Review

Suggestions and Comparisons of Two Algorithms for the Simplification of Bluetooth Sensor Data in Traffic Cordons

by
Beylun Özlü
1,* and
Mustafa Sinan Yardım
2
1
Transportation Ph.D. Program, Graduate School of Science and Engineering, Yildiz Technical University, Istanbul 34220, Turkey
2
Civil Engineering Faculty, Civil Engineering Department, Yildiz Technical University, Istanbul 34220, Turkey
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(13), 4375; https://doi.org/10.3390/s24134375
Submission received: 14 June 2024 / Revised: 1 July 2024 / Accepted: 2 July 2024 / Published: 5 July 2024

Abstract

:
Bluetooth sensors in intelligent transportation systems possess extensive coverage and access to a large number of identity (ID) data, but they cannot distinguish between vehicles and persons. This study aims to classify and differentiate raw data collected from Bluetooth sensors positioned between various origin–destination (i–j) points into vehicles and persons and to determine their distribution ratios. To reduce data noise, two different filtering algorithms are proposed. The first algorithm employs time series simplification based on Simple Moving Average (SMA) and threshold models, which are tools of statistical analysis. The second algorithm is rule-based, using speed data of Bluetooth devices derived from sensor data to provide a simplification algorithm. The study area was the Historic Peninsula Traffic Cord Region of Istanbul, utilizing data from 39 sensors in the region. As a result of time-based filtering, the ratio of person ID addresses for Bluetooth devices participating in circulation in the region was found to be 65.57% (397,799 person IDs), while the ratio of vehicle ID addresses was 34.43% (208,941 vehicle IDs). In contrast, the rule-based algorithm based on speed data found that the ratio of vehicle ID addresses was 35.82% (389,392 vehicle IDs), while the ratio of person ID addresses was 64.17% (217,348 person IDs). The Jaccard similarity coefficient was utilized to identify similarities in the data obtained from the applied filtering approaches, yielding a coefficient (J) of 0.628. The identity addresses of the vehicles common throughout the two date sets which are obtained represent the sampling size for traffic measurements.

1. Introduction

With the widespread adoption of Intelligent Transportation System (ITS) applications, Bluetooth sensors in particular have become commonly used advanced traffic measurement devices that can measure travel time, average speed, average progression and travel delays [1]. Bluetooth sensors also stand out due to factors such as accuracy, cost-effectiveness and ease of installation and use. With a coverage area of approximately 500 m, Bluetooth sensors do not differentiate between device types when identifying the MAC addresses of devices. A device with Bluetooth capability could belong to a vehicle’s Bluetooth device or various objects such as smartphones, smartwatches, computers, wireless headphones, micromobility vehicles or smart devices carried by passengers traveling in vehicles or public transportation. Bluetooth sensors detect the ID addresses of all objects with Bluetooth capability without filtering among them. Due to the widespread use of Bluetooth technologies, the variety of data coming from sensors has become a problem. When performing traffic calculations, it is not possible to produce realistic calculations in the current system by using the entire obtained data [2]. In a study conducted to evaluate the scope of Bluetooth technology, an experimental test environment was prepared, and it was indicated that the presence of multiple Bluetooth-containing objects could lead to a performance drop in the MAC protocol [3]. In later years, studies in the United States began to record and track data from Bluetooth sensors. By comparing the travel times generated by license plate reading devices on corridor lines with Bluetooth data, it was observed that average travel times yielded results that were 4–7% more accurate [4]. In a study conducted by Araghi et al. on the reliability of Bluetooth technology, it was found that a Bluetooth-enabled device would be detected with 80% reliability when passing through a sensor location [5]. Bluetooth, with its ability to provide real-time information as opposed to relying on past data, has been identified as a potential candidate for O-D estimation [6]. However, the literature indicates that continuous research is needed to maximize the potential of this technology in traffic management [7]. In Turkey, Bluetooth sensors are used for various purposes such as collecting travel data for different transportation modes, vehicle tracking and monitoring systems, fleet management for logistics companies, cargo tracking, monitoring urban parking areas and providing information about parking spaces. In a study conducted in Istanbul, a method was developed to produce average speed values for Istanbul’s urban traffic by using traffic measurement data obtained from sensors on highways, mobile application users and vehicle tracking systems [8]. Another study using air quality indicators and traffic index values for Istanbul included the changes in traffic index values and air quality indicators during the pandemic period [9]. In a study on intelligent mobility in Istanbul, both data obtained from traffic measurement sensors and vehicle tracking and mobile user data were processed through the Tukey Fences Clipping algorithm to bring outlier values in the data to normal values [10].
New approaches using machine learning techniques and tree-based algorithms through Bluetooth sensors are available to increase the reliability of Bluetooth-based traffic flow measurements and make it a more desirable and cost-effective solution for real-time traffic flow measurement [11]. In a study conducted to monitor real-time public transport passenger flow and O-D information based on Wi-Fi and Bluetooth sensors, a three-step, data-driven algorithm framework was proposed. The observed passenger flow was used as the ground truth to evaluate the performance of the proposed algorithm and according to the evaluation results, the proposed algorithm outperformed all selected baseline models and existing filtering methods [12]. In his study, Koçak indicated that determining travel time distribution using detectors with data fusion methods was successful, but Bluetooth sensor data were more reliable for OD matrices [13]. Bugdol conducted traffic prediction using standard Bluetooth data and obtained quite promising results [14]. In a study conducted on pedestrian traffic estimation with Bluetooth sensor technology, a detection methodology that included system calibration considering the likelihood of vehicle traffic congestion, travel time calculation and speed-based classification was proposed, and this methodology yielded an 89% accuracy rate in pedestrian detection [15].
The distribution of vehicles circulating in a region causes the planning of traffic routes. It is also used in determining alternative routes and planning public transportation. It allows traffic flow to be managed more efficiently, especially during peak hours. For these reasons, finding the distribution of data from sensors between vehicles and pedestrians allows traffic planning.
The purpose of this study is to simplify the data coming from Bluetooth sensors in cordon areas, such as city centers or busy commercial areas where transportation is heavy, to include only vehicles. For this purpose, two different simplification algorithms have been prepared. These algorithms include two basic filtering methods: “time-based filtering” and “speed-based filtering”. The results obtained from the Python code were compared with each other. The rule-based modeling used for speed-based filtering offers a simple and interpretable approach, but it may have some limitations in terms of flexibility and generalization power. Therefore, rule-based modeling is often compared with statistical methods and machine learning algorithms in the data analysis and modeling process. Statistical methods and machine learning aim to capture relationships and patterns in data in a more flexible and generalizable way. These methods allow for a broader understanding of the data and can be used to solve more complex problems. For this reason, a time-based filtering approach is also needed.
This article is structured as follows: Section 1 includes the definition of the problem and the review of similar studies in the literature. Section 2 provides an overview of the study’s methodology. Section 3 examines the Bluetooth sensor filtering algorithms, including their flowcharts, optimization procedures, and the model for comparing the two algorithms in detail. Section 4 presents the case study. It utilizes data from Bluetooth sensors positioned in the Historic Peninsula region of Istanbul, providing detailed information and addressing exceptional cases. Section 5 contains the results and discussion section, which includes a comparison of the computational efficiency of the two algorithms.

2. Methodology

As elements of intelligent transportation systems, Bluetooth sensors do not differentiate between device types when identifying the MAC addresses of devices and detect the ID addresses of all objects with Bluetooth capability without filtering among them. Due to the widespread use of Bluetooth technologies, the diversity of data coming from sensors has become a problem. It is necessary to simplify the data coming from Bluetooth sensors to include only vehicles. This study proposes two different filtering algorithms for simplification. These algorithms include two basic filtering methods: “time-based filtering” and “rule-based speed filtering”. The results obtained from the Python code were compared with each other. The comparison was made using the Jaccard similarity method. After the filtering was completed, cases where the identity addresses of devices matched, diverged, or were present in only one dataset were identified. The methodology of the study is presented below in the flowchart (Figure 1). Optimization procedures are detailed in Section 3.

3. Bluetooth Sensor Filtering Algorithm

3.1. Time-Based Filtering

Upon examining the accessed data, it is observed that a data series is formed over time and the data rows are arranged in a periodic cycle (s, h, days, months, years) [16]. The primary goal of analyzing and modeling time series data is to separate noise (the presence of random, meaningless, misleading data that complicate analysis and affect accuracy) from the dataset, thus obtaining an undisturbed series [17]. When filtering based on time, Simple Moving Average (SMA) and Threshold models, commonly used in time series analysis, are utilized. These two methods, which are statistical analysis tools, are frequently employed in data analysis processes. While SMA holds a significant place in time series analysis, the threshold model is commonly used in simple and fast decision-making processes. An algorithm utilizing these models was coded in the Python programming language and the dataset was parsed. At the end of the parsing, identity numbers (IDs) belonging to the designated categories of vehicle ID and person ID were obtained [2].

3.1.1. Simple Moving Average (SMA)

If irregular movements dominate in a time series, a moving average model consisting of the following steps is used to determine the general trend of the series and reveal the cyclical effect [18]:
  • Accumulation of data regarding the time series;
  • Determination of the period;
  • Calculation of the average;
  • Updating calculations with each new data entry.
The moving average (SMA) value E(t) of the time during which the identity addresses of the devices are detected by the Bluetooth sensor is calculated using the equation below
E ( t ) = 1 / N   i = 0 N tID
  • tID: A series including the device ID detected more than once by the Bluetooth sensor;
  • N: Number of periods in the average calculation.
When the Bluetooth sensors detect the ID identity address of the device, the time period during which the device is within the Bluetooth sensor coverage is recorded in a variable (tBS). tbs represents the duration in which the device is within the Bluetooth sensor range.

3.1.2. Threshold Model

This model, utilized to determine whether an event or condition will occur, typically sets a threshold and decides on further action based on whether the event surpasses this threshold. The following steps are followed in the Threshold Model:
  • Determining a threshold value according to the requirements of the research.
  • Utilizing the threshold value to make decisions based on data that fall above or below the threshold (Equation (2)).
  • Filtering based on these decisions.
Threshold Control:
tBS > k · E(t)
k: A coefficient that controls the relationship between the tBS value and the threshold value (E(t)). If no specific coefficient is defined, the operation is performed for k = 1.
After calculating the total duration each device remained within the sensor coverage area for each device using the Group by function in PYTHON 3.11.9, E(t) is determined by taking the average of these durations. Finally, decisions are made for data above or below this threshold value. As it is known, in Equation (2), tBS represents the time the Bluetooth device remains within the sensor range, while E(t) represents the weighted average of this time for all devices. If this condition in the equation is satisfied, it is assumed that the analyzed device belongs to the “person ID” address. Indeed, the threshold value here serves as an “acceptance function” in the person-vehicle separation in the study.
The algorithm prepared to perform these operations in the Python programming language is presented in Figure 2.
The methodology using time series first calculates the Simple Moving Average (SMA). For this, data pertaining to the time series are collected, and a period is determined. Using code written in the PYTHON programming language, the average time each Bluetooth-equipped device spends at the sensor is determined. In the second part of the model, a threshold is used. In the threshold model, a threshold value is determined according to the research requirements. Here, the threshold value is the SMA (duration) value obtained for each device. Subsequently, using this threshold value, decisions are made, and filtering is performed based on whether the data are above or below the SMA. Accordingly, if a device spends more time at a sensor than its own average under non-traffic conditions, this device cannot belong to vehicles. This is because the time a moving device spends at a sensor under flowing traffic conditions is less compared to other conditions.
The value, called the threshold value and expressing the average time spent by Bluetooth devices between consecutive sensors, was examined for periodic time periods. As explained above, devices with remaining time values above the threshold value are in the ‘Personal Devices ID’ category and devices below are in the ‘Vehicle ID’ category.
The above flow chart (Figure 2) was coded in Python programming language and the data were parsed; as a result, the matching Bluetooth devices were captured in the vehicle ID category (Figure 3). These data will be compared with the speed-based filtering algorithm in the next stage.

3.2. Speed-Based Filtering

This method is based on the rule-based modeling approach of speed values. This modeling can be explained in several stages:
  • Obtaining distance data between sensors;
  • Travel time calculation;
  • Using two timestamps recorded by sensors to calculate trip travel time;
  • Classification according to device speeds.
For the filtering to be performed, speed data are required. To determine device speeds, both distance and time data are necessary. Firstly, for each device (idaut number), a code has been written to determine which sensor the device passed through in each 1 h time interval, the time it was first read by the Bluetooth sensor, the last time it was read and the duration it stayed at that sensor during the relevant time interval (in h:min). A code has been written for this purpose and the flow chart of the code is presented in Figure 4.
Then, speed measurements were made in 1 h periods for each device read from the Bluetooth sensors in the area. When calculating speed data, the following points must be considered:
  • In cases where the device is read by only one sensor, the distance data are defined as 500 m since the sensor coverage area is 500 m.
  • In cases where the device is read by more than one sensor, distance data are defined as the distance between sensors.
  • In cases where the device’s residence time at the sensor was 00:00:00, no action was taken for this device. It was accepted that this device was not in the vehicle ID category.
The relevant code and its output are presented in Figure 5.
The flow chart prepared to find the identification numbers of Bluetooth devices read by Bluetooth sensors and the passing speed of these devices through the sensors is as follows. The results will be discussed in the next section.

Rule-Based Modeling

Acceptances Based on Speed
  • Acceptance of Pedestrian (ID) Addresses: Based on the extensive literature on pedestrian behavior in urban transportation and survey studies [19,20,21,22], an average pedestrian speed of 1.5 m/s (5.4 km/h) is chosen. Devices with speeds below 1.5 m/s are accepted as pedestrians.
  • Acceptance as Micromobility Vehicles: The maximum speed of micromobility vehicles in Turkey is known to be 25 km/h. According to TomTom traffic data, the average congestion speeds in Istanbul during peak hours in 2023 were determined to be 27 km/h (morning) and 19 km/h (evening). Bicycle speeds range from 17 to 24 km/h, electric scooters from 19 to 24 km/h and electric motorcycles from 22 to 40 km/h [23]. In the selected region, assuming that devices with speeds between 5.4 km/h and 25 km/h belong to micromobility vehicles would disregard congestion conditions. Moreover, it is anticipated that Bluetooth devices used in micromobility vehicles in Istanbul transportation may not reflect the sample size. The traffic situation during peak and non-peak hours cannot serve as a basis for distinguishing between transportation modes. Therefore, speeds between 5.4 km/h and 25 km/h will not be used as micromobility speeds.
  • Acceptance of Users Traveling on Public Transport: In the region, where the maximum number of lanes is 8, if more than 8 ID numbers traveling at the same speed during the same time interval are detected, they are assumed to belong to users traveling on public transport.
  • Acceptance of Pedestrians Traveling Together: If devices with the same ID number are matched within the same sensors during the same time interval and have the same speed and if the speed is below 1.5 m/s (5.4 km/h), it is assumed that these devices belong to users traveling together as pedestrians.
  • Acceptance of Bluetooth Devices Belonging to Residents: This is an acceptance used for devices with a speed value of 0 km/h, indicating that they cannot participate in circulation within the region for various reasons but have been detected multiple times by the sensors. These devices do not fall under the vehicle ID category.
  • Acceptance of Vehicle Identification (ID) Addresses: Devices with speeds above 1.5 m/s (5.4 km/h) and determined to be traveling singularly belong to the vehicle category.
At the end of this classification, device identification numbers belonging to different categories were identified. We can see the classification algorithm and the time spent by vehicle identification addresses and the method of finding their speed in the flow chart below. This flow chart (Figure 6) is converted into code in the Python 3.11.9 software language and vehicle and pedestrian distribution is achieved.

3.3. Jaccard Similarity Coefficient

The data accessed as a result of the applied filtering approaches appear to be close to each other in terms of numerical values. However, what is obtained in the result set are two different datasets containing ID numbers of devices with Bluetooth connection. It would not be a realistic approach to expect the IDs in both datasets to match each other exactly. Therefore, the similarities of the models need to be determined.
The Jaccard index, also known as the Jaccard similarity coefficient, is a widely used measure of similarity between sets of models in various fields such as data mining, clustering and genomics [23]. Overall, the Jaccard index stands out as a fundamental similarity measure with wide applications in various disciplines and offers a standardized approach to measuring similarity between datasets (Figure 7).
The Jaccard index measures the similarity between two clusters by calculating the ratio of the number of elements common to both clusters to the total number of different elements in the clusters [24]. The resulting value varies between 0 and 1; 0 represents no overlap between clusters, and 1 represents complete overlap [25]. Two different datasets containing ID numbers of devices with Bluetooth connection accessed as a result of the applied filtering approaches were run in the code written to detect the Jaccard index.
In the graph in the figure (Figure 8), vehicle identities that intersect with each other in the datasets consisting of Bluetooth identities of the vehicles (Intersection), vehicle identities that are only in the cluster formed as a result of the time-based algorithm (only in df1), vehicle identities that are only in the cluster resulting from the speed-based algorithm (only in df2) and discrete distributions of vehicle identities (Symmetric Difference) of the elements are shown.

4. Case Study

4.1. Selection of the Study Area

The Historic Peninsula of Istanbul, where many transportation modes are used together, serves as a transit route for Istanbul, and data collected from Bluetooth sensors play an important role in intelligent transportation system-based planning. Additionally, due to data availability, the Historic Peninsula of Istanbul is considered a suitable example area. Specific points that can serve as start and end points have been designated in this area, known as the cordon area, and data from 39 Bluetooth sensor devices located between the I–J point pairs have been used.

4.2. Access to Bluetooth Sensor Data

In the application part of the study, data from sensors positioned at various locations near the entry and exit points (gates) of the cordon area were accessed through relevant official organizations. The accessed data include:
  • Bluetooth sensor numbers (idsen);
  • Identity (ID) addresses of objects with Bluetooth devices (idaut);
  • Time information at the moment the Bluetooth sensor and device pairing is established (in the format Day-Month-Year; h-min-s) (time).

4.3. User Identification

Service users within the coverage area of the Bluetooth sensor in the study area were identified and classified based on information provided by official institutions and observation-based field studies as follows:
  • Identity (ID) addresses of vehicles (Private Vehicles, Heavy Vehicles, Light Commercial Vehicles, Ships, Public Transport Vehicles);
  • Identity (ID) addresses of individuals (Smartphones, smartwatches, wireless headphones belonging to pedestrians, Bluetooth devices carried by passengers traveling on public transport or in vehicles, bicycles, motorcycles, pedestrians traveling on micromobility vehicles, Bluetooth devices carried by multiple pedestrians traveling together).

4.4. Bluetooth Sensor Location Review

Bluetooth sensors in their positioned state within the area are shown in Figure 9.
The distribution of Bluetooth sensors in the İstanbul Peninsula Historical area, along with their sensor numbers, is shown in Table 1.

4.5. Bluetooth Sensor Data

Data from the period between 1 April 2023 and 16 April 2023 were accessed. During this time, a dataset with 8,282,609 rows was examined in Python 3.11.9.
Out of the 39 sensors shown in the location information, data from 35 sensors are present in the dataset. The sensor numbers that appear in the location information but are not in the dataset are 73, 96, 228 and 220. At sensor number 62, data were only read once on 4 April 2023, at 11:43 a.m.
Within these data, a total of 1,293,939 different Bluetooth sensor devices read by 35 different sensor numbers (idsen) (241, 230, 153, 267, 61, 225, 82, 84, 194, 256, 270, 275, 227, 173, 115, 229, 252, 187, 254, 171, 271, 272, 248, 226, 117, 244, 177, 170, 174, 113, 169, 207, 172, 175, 62) were identified. The code used for this process and the output of the code are as follows (Figure 10).

4.6. Distance Matrix between Bluetooth Sensors

While creating the distance matrix for Bluetooth sensor locations, the Python–Spyder Geopy library was loaded and the geojson file was displayed in the Python script. The Geopy. distance module, which contains the Geodesic function required for the correct use of the Geopy library and distance calculations, was used. The code (Figure 11) written for the distance matrix obtained from the location data is as follows.
The distance matrix obtained from the location data is as follows (Table 2).

4.7. Bluetooth Sensor Data Examination

In the Bluetooth sensor data sorted by time, the first column named idsen represents the sensor number, the second column named idaut represents the identity number of the Bluetooth device that passed by the sensor and the third column named time shows the time when the device was read by the Bluetooth sensor.
The Bluetooth sensors have a horizontal coverage of 110° and a vertical coverage of 30°, with a range of slightly over 500 m (according to information from the manufacturer). Data are transmitted from the Bluetooth sensors to the center in 3 min intervals.
Bluetooth sensor data from the period between 1 April 2023 and 16 April 2023 were accessed. During this time, a dataset of 8,282,609 rows was examined in Python.
When examining the data, device identities (ID) (idaut) that were recorded only once in the dataset by 35 sensors between 1 April 2023 and 16 April 2023 were identified.

Bluetooth Devices Detected Just Once in the Dataset

Considering the coverage area of the Bluetooth sensors and the time in which data are transmitted to the center:
  • Being in the Personal Devices ID Category: It is known that data are transmitted to the center every 3 min. If the device belongs to the person ID category, it cannot be read just once within 3 min. Even when the speed value is 0 km/h, it is known that the sensor would read the device multiple times while it is within the coverage area. Therefore, the device ID could have been read due to the Bluetooth device being turned on and off within the region. In this case, since there is no second read time for the ID, no speed data can be accessed.
  • Being in the Vehicle ID Category: Device IDs read just once in the region could only have been identified as belonging to a vehicle moving along the periphery of the cordon area, considering the sensor coverage area. In this case, it would be meaningless to include them in the pilot area traffic counts.
As a result, excluding Bluetooth device identity numbers (IDs) that were read just once in the entire dataset from the main dataset is a necessary step to form the sample size. The flowchart (Figure 12) created to perform this process in the Python programming language is as follows.
There are a total of 687,199 identity numbers of Bluetooth devices that were read only once during the 16 days from 1 April 2023 to 16 April 2023 in the main dataset. When the devices read only once are removed from the main dataset, there are 606,740 identity numbers of Bluetooth devices remaining and the dataset consists of 7,595,410 rows (Figure 13). Future studies will be conducted for these devices.

5. Results and Discussion

5.1. Bluetooth Sensor Speed-Based Filtering Algorithm Results

To determine device speeds, both distance and time data are necessary. A code (Figure 4) was developed to track each device (identified by an idaut number) through the sensors. This code records which sensor the device passed through within each 1 h time interval, the first and last time the Bluetooth sensor read the device, and the duration the device remained at each sensor (in h). The output of this code is presented in Table 3.
A section from the table showing the identification numbers of Bluetooth devices read by Bluetooth sensors and the passing speed of these devices through the sensors between 1 April 2023 and 16 April 2023 is presented below (Table 4). These results were obtained by running the flow chart in Figure 5 (Bluetooth Device Speed Calculation Algorithm) in Python.
According to the acceptances made in the section Acceptances Based on Speed (section Rule-Based Modeling), speeds of devices for hourly periods from 1 April 2023 to 16 April 2023, were classified. At the end of this classification, device identification numbers belonging to different categories were identified. This classification was made with the help of the flow chart shown in Figure 6 (Rule-Based Modeling Algorithm According to Speed Values). A snippet from the table (Table 5) showing the time spent by vehicle ID addresses and their speeds is provided below.

5.2. Bluetooth Sensor Time-Based Filtering Algorithm Results

By converting the flow chart in Figure 7 into code in Python, the value, called the threshold value, which expresses the average time spent by Bluetooth devices between consecutive sensors, was examined for periodic time periods. Devices with remaining time values above the threshold value are in the ‘Personal Devices ID’ category and devices below are in the ‘Vehicle ID’ category.
By coding Figure 8 (Finding the vehicle ID number as a result of filtering) flowchart in Python programming language, the data were parsed; as a result, 208,941 different Bluetooth device matches were captured in the vehicle ID category. The number of paired Bluetooth devices belonging to individuals was found to be 397,799. According to this filtering method using time series, 34.43% of Bluetooth devices are in the vehicle ID category, while 65.57% are in the person ID category. These data will be compared with the filtering algorithm based on speed in the next stage.

5.3. Comparison of the Modelling Results

In this study, two different filtering algorithms are considered. The first of these is the analysis made using time series. As a result of this analysis, for Bluetooth devices circulating in the region, if Equation (2) is correct, the rate of ID addresses belonging to people is 65.57% (397,799 personal devices ID), while the rate of ID addresses belonging to vehicles is 34.43% (208,941 vehicle ID) has happened. Another model designed is rule-based modeling based on speed. This model establishes an algorithm for determining the speed data of devices and then makes classifications for the speed data obtained. In light of these data, the rate of identity (ID) addresses of individuals was found to be 64.17% (217,348 personal devices ID), while the rate of identity (ID) addresses of vehicles was found to be 35.82% (389,392 vehicle ID). Here, the personal devices ID set includes devices with Bluetooth found on objects owned by pedestrians (pedestrian ID), device IDs with Bluetooth found on objects owned by people traveling in public transportation (P.T. ID) and residents or people in the region who cannot participate in the calculation because the speed value is 0. It is distributed into different subsets such as Bluetooth devices (L.R. ID) belonging to objects. The results are seen in Table 6 and Table 7.
The data accessed as a result of the applied filtering approaches appear to be close to each other in terms of numerical values. However, what is obtained in the result set are two different datasets containing ID numbers of devices with Bluetooth connection. It would not be a realistic approach to expect the IDs in both datasets to match each other exactly. Therefore, the similarities of the models need to be determined. The Jaccard index stands out as a fundamental similarity measure with wide applications in various disciplines and offers a standardized approach to measuring similarity between datasets. The Jaccard index value was calculated between two datasets found as a result of the algorithms.
The Jaccard index value (J) calculated as a result of the transactions was found to be 0.628. Considering the index value varying between 0 and 1, it can be seen that the overlap between the data is at a satisfactory level. This method can be considered as a parameter that will indirectly show the success rate of the models.

5.4. Discussion and Suggestions

In the literature, studies utilizing Bluetooth sensors for traffic measurements have primarily focused on the issue of sensor placement [26,27,28], striving to obtain accurate data rather than merely segregating the data. However, with the advancement of Bluetooth technologies, this approach has become increasingly challenging. To enhance the reliability of Bluetooth-based traffic measurements and make real-time traffic flow measurement more desirable and cost-effective, new approaches have been introduced, utilizing machine learning techniques and tree-based algorithms with Bluetooth sensors [11]. In a study where modes such as walking, cycling, tram, bus, taxi, and private vehicle were categorized based on data collected via GPS from smartphones, significant features from mobility models, including speed, acceleration, and rapid acceleration, were extracted and longitudinal dynamics were applied to train the classification model. During the model validation for the classification algorithm, a decision tree that achieved high accuracy in testing was employed [29]. Although our study, which involves classifying transportation modes using a classification algorithm, demonstrates performance similar to the machine learning approaches in Study [29], it differs in comparison due to the type of data and the complexity of the statistical model used. It is anticipated that with the integration of other systems, given known distributions, it will be critically important for real-time traffic monitoring applications in the future.
The biggest problem encountered while conducting the study was the inability to access data from some Bluetooth sensors or the presence of incomplete data in the case study area, due to maintenance and repair conditions. This situation, which arose due to the nature of existing Bluetooth sensors, made working with the current sensors challenging. Therefore, sensors that did not contain missing or faulty data were used within the planned timeframe.
While concentrating on the Historic Peninsula of Istanbul enables a comprehensive understanding of the city’s traffic congestion dynamics, unique factors such as population density, infrastructure layout, and cultural influences may constrain the direct applicability of our results to larger or differently structured cities. Future research should address these disparities to enhance the transferability of our findings to diverse urban environments.

5.5. Suggestions

The issue of determining the location for Bluetooth sensors is another problem that needs to be addressed. Specifically, placing Bluetooth sensors in the correct locations (preferably with high vehicle traffic and low pedestrian traffic) is a step towards solving this complexity, particularly for urban traffic measurements.
With the proliferation of smart devices, the number of Bluetooth-equipped devices is increasing daily. This trend cannot be prevented. However, it is proposed to add a data-differentiating parameter for vehicle Bluetooth in the dataset; this proposal can only be implemented systemically in new-generation vehicles.
Algorithms based on statistical methods and rule-based modeling designed in the study make it easier to parse data from Bluetooth sensors. It is important to know which of the ID device identification numbers that match Bluetooth sensors belong to the vehicles to use these devices in transportation systems. The algorithms used make it easier to work with data by reducing noise in the data, but it would be useful to support Bluetooth technology with other systems at certain points to verify the data and calibrate the results.

6. Concluding Remarks and Future Perspectives

This paper proposes two innovative algorithms for filtering Bluetooth sensor data. The first algorithm involves a simplification process using time series based on the Simple Moving Average (SMA) and threshold models, which are tools of statistical analysis. The second algorithm employs a rule-based simplification mechanism where the data obtained from the sensors are processed and the location information of the sensors is incorporated, utilizing the speed values of the Bluetooth devices accessed. The variables of the filtering problem include the times at which Bluetooth-enabled devices matched with the sensors at specific intervals, the durations for which these devices initially and finally matched with the sensors, the distances between the sensors, the durations the devices stayed within the sensors’ range, and the speed values of these devices. The application of the proposed algorithms resulted in a close similarity in the proportions of identified vehicle identity addresses (ID) (time-based filtering algorithm 34.43%; speed-based filtering algorithm 35.82%). Device identities that are common in the dataset obtained as a result of the algorithms are expressed as an intersection set. The similarity between the results of the two algorithms was calculated using the Jaccard similarity index (JI: 0.628). The statistical methods and rule-based models developed in this study significantly facilitate the segregation of data obtained from Bluetooth sensors. Identifying which device identity numbers matched with Bluetooth sensors belong to vehicles is crucial for utilizing these devices in transportation calculations.
In the subsequent phase of the research, origin-destination (O-D) matrices will be created to enable traffic planning and measurements using the obtained vehicle identity devices (vehicle ID). The filtering conducted allows for the creation of a distribution matrix when the Bluetooth sensor locations in the studied area are taken as the origin and destination points. The sequential data from Bluetooth sensors allow for tracking the routes of vehicles by observing which sensors they pass through and in what order. In future studies, the distribution ratios of devices matched by sensors in a specific region can be determined. The distribution matrix serves as a fundamental tool for any operations to be conducted in the desired region. Knowing the distribution of vehicles or persons in the area and placing them within the matrix provides decision-makers, especially in cordon-type enclosed areas, with a sustainable decision-making tool for short- and long-term regional transportation decisions. Also, knowing these distribution ratios will enable the achievement of real-time data flow by supporting it with other systems. In future studies, the separation of vehicles and persons will allow for the determination of which areas are more exposed to air pollutants. Furthermore, based on measurement and distribution matrices, sustainability assessments for air pollutants in urban transportation are planned.

Author Contributions

Conceptualization, B.Ö. and M.S.Y.; methodology, B.Ö. and M.S.Y.; software, B.Ö.; validation, B.Ö.; formal analysis, B.Ö. and M.S.Y.; investigation, B.Ö.; resources, B.Ö.; data curation, B.Ö.; writing—original draft preparation, B.Ö.; writing—review and editing, B.Ö. and M.S.Y.; visualization, B.Ö.; supervision, M.S.Y.; project administration, B.Ö. and M.S.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Mathew, J.K.; Devi, V.L.; Bullock, D.M.; Sharma, A. Investigation of the Use of Bluetooth Sensors for Travel Time Studies under Indian Conditions. Transp. Res. Procedia 2016, 17, 213–222. [Google Scholar] [CrossRef]
  2. Özlü, B.; Yardım, M.S. An Algorithm Proposal for Simplifying Bluetooth Data for OD Matrix Calculations in Traffic Cordons. In Proceedings of the Symposium on Computer Applications in Engineering and Technological Development, Ankara, Türkiye, 22–23 December 2023; pp. 1–8. [Google Scholar]
  3. Pasolini, G.; Verdone, R. Bluetooth for ITS? In Proceedings of the 5th International Symposium on Wireless Personal Multimedia Communications, Honolulu, HI, USA, 27–30 October 2002; Volume 1. [Google Scholar]
  4. Malinovskiy, Y.; Wu, Y.-J.; Wang, Y.; Lee, U.K. Field experiments on Bluetooth-based travel time data collection. In Proceedings of the Transportation Research Board 89th Annual Meeting, Washington, DC, USA, 10–14 January 2010. [Google Scholar]
  5. Araghi, B.N.; Hammershoj Olesen, J.; Krishnan, R.; Torholm Christensen, L.; Lahrmann, H. Reliability of Bluetooth technology for travel time estimation. J. Intell. Transp. Syst. 2015, 19, 240–255. [Google Scholar] [CrossRef]
  6. Bhaskar, A.; Kieu, L.M.; Qu, M.; Nantes, A.; Miska, M.; Chung, E. Is Bus Overrepresented in Bluetooth MAC Scanner data? Is MAC-ID Really Unique? Int. J. Intell. Transp. Syst. Res. 2015, 13, 119–130. [Google Scholar] [CrossRef]
  7. Nantes, A.; Ngoduy, D.; Miska, M.; Chung, E. Probabilistic travel time progression and its application to automatic vehicle identification data. Transp. Res. Part B Methodol. 2015, 81, 131–145. [Google Scholar] [CrossRef]
  8. Dilek, E.; Kurt, Y.; Öztürk, S.; Erşahin, M.; Özcan, Ö.; Ünal, A. Smart Mobility with “IBB Guiding the Way”. 2017. Available online: https://uym.ibb.gov.tr/documents/library/%C4%B0BB-Yol-Gosteren-Makale.pdf (accessed on 1 April 2024).
  9. Toksoy, S.; Atalay, A. Assessing the impact of COVID-19 pandemic on urban transportation and air quality in Istanbul. In Proceedings of the International COVID-19 and Current Issues Congress, Istanbul, Turkey, 12–14 March 2021. [Google Scholar]
  10. Dilek, E.; Ayözen, Y.E. Smart mobility in Istanbul with “IBB Ceptrafik”. In Proceedings of the NOMS 2016-2016 IEEE/IFIP Network Operations and Management Symposium, Istanbul, Turkey, 25–29 April 2016; pp. 1273–1278. [Google Scholar]
  11. Tayeb, F.; Chihaoui, H.; Filali, F. Bluetooth-Based Vehicle Counting: Bridging the Gap to Ground-Truth with Machine Learning. IEEE Access 2023, 11, 64600–64607. [Google Scholar] [CrossRef]
  12. Pu, Z.; Zhu, M.; Li, W.; Cui, Z.; Guo, X.; Wang, Y. Monitoring Public Transit Ridership Flow by Passively Sensing Wi-Fi and Bluetooth Mobile Devices. IEEE Internet Things J. 2020, 8, 474–486. [Google Scholar] [CrossRef]
  13. Koçak, S. Akıllı Trafik Sistemlerinde (ITS), Travel Time Estimation Using Bluetooth Sensor Data. Master’s Thesis, Konya Technical University, Konya, Turkey, 2021. [Google Scholar]
  14. Bugdol, M.N.; Bugdol, M.D.; Grzegorzek, M.; Mitas, A.W. Road Traffic Estimation Using Bluetooth Sensors; Zeszyty Naukowe, Transport/Politechnika Śląska: Katowce, Poland, 2017. [Google Scholar]
  15. Angel, A.; Cohen, A.; Dalyot, S.; Plaut, P. Estimating pedestrian traffic with Bluetooth sensor technology. Geo-Spatial Inf. Sci. 2023, 1–14. [Google Scholar] [CrossRef]
  16. Zaman Serisi Analizi. 2023. Available online: https://www.bmij.org/index.php/1/article/view/2244 (accessed on 1 April 2024).
  17. Makridakis, S. A survey of time series. Int. Stat. Rev. Rev. Int. Stat. 1976, 44, 29–70. [Google Scholar] [CrossRef]
  18. Mustafa, C.A.N. Forecasting with Time Series Analysis in Business. Ph.D. Thesis, Numerical Methods PhD Program, Department of Business Administration, Institute of Social Sciences, Istanbul Üniversity, Istanbul, Turkey, 2009. [Google Scholar]
  19. Dündar, S.; Gürgün, A.P. Examination of Pedestrian Crossing Speeds—Istanbul Anatolian Side Example. In Proceedings of the 5th Highway Traffic Safety Symposium and Exhibition, Ankara, Turkey, 21–23 May 2014; pp. 1–6. [Google Scholar]
  20. Kuşakçı, S.Ş.; Özsan, F.; Öğüt, K. Examination of Pedestrian Speeds at Illuminated Pedestrian Crossings in Istanbul. Ph.D. Thesis, Istanbul Technical University, Istanbul, Turkey, 2024. [Google Scholar]
  21. Milazzo, J.S.; Rouphail, N.M.; Hummer, J.E.; Allen, D.P. Quality of Service for Interrupted-Flow Pedestrian Facilities in Highway Capacity Manual 2000. Transp. Res. Rec. J. Transp. Res. Board 1999, 1678, 25–31. [Google Scholar] [CrossRef]
  22. Hussein, M.; Popescu, B.; Sayed, T.; Kim, L. Analysis of Road User Behavior and Safety During New York City’s Summer Streets Program. Transp. Res. Rec. J. Transp. Res. Board 2016, 2586, 120–130. [Google Scholar] [CrossRef]
  23. Istanbul Traffic Index. 2023. Available online: https://www.tomtom.com/traffic-index/istanbul-traffic/ (accessed on 1 April 2024).
  24. Blanza, J.; Cabasal, E.X.; Cipriano, J.B.; Guerrero, A.G.; Pescador, R.Y.; Rivera, E.V. Indoor Wireless Multipaths Outlier Detection and Clustering. J. Phys. Conf. Ser. 2022, 2356, 012037. [Google Scholar] [CrossRef]
  25. Şeker, Ş.E. Jaccard Indeksi. 2023. Available online: https://bilgisayarkavramlari.com/2013/07/01/jaccard-indeksi-jaccard-index/ (accessed on 1 April 2024).
  26. Hadavi, M.; Shafahi, Y. Vehicle identification sensor models for origin–destination estimation. Transp. Res. Part B Methodol. 2016, 89, 82–106. [Google Scholar] [CrossRef]
  27. Gentili, M.; Mirchandani, P.B. Review of optimal sensor location models for travel time estimation. Transp. Res. Part C Emerg. Technol. 2018, 90, 74–96. [Google Scholar] [CrossRef]
  28. Cascetta, E.; Papola, A.; Marzano, V.; Simonelli, F.; Vitiello, I. Quasi-dynamic estimation of o–d flows from traffic counts: Formulation, statistical validation and performance analysis on real data. Transp. Res. Part B Methodol. 2013, 55, 171–187. [Google Scholar] [CrossRef]
  29. Molina-Campoverde, J.J.; Rivera-Campoverde, N.; Campoverde, P.A.M.; Naula, A.K.B. Urban Mobility Pattern Detection: Development of a Classification Algorithm Based on Machine Learning and GPS. Sensors 2024, 24, 3884. [Google Scholar] [CrossRef]
Figure 1. Flowchart.
Figure 1. Flowchart.
Sensors 24 04375 g001
Figure 2. Bluetooth sensor time-based filtering algorithm.
Figure 2. Bluetooth sensor time-based filtering algorithm.
Sensors 24 04375 g002
Figure 3. Finding the vehicle ID number as a result of filtering.
Figure 3. Finding the vehicle ID number as a result of filtering.
Sensors 24 04375 g003
Figure 4. Bluetooth sensor data organizing.
Figure 4. Bluetooth sensor data organizing.
Sensors 24 04375 g004
Figure 5. Bluetooth device speed calculation algorithm.
Figure 5. Bluetooth device speed calculation algorithm.
Sensors 24 04375 g005
Figure 6. Rule-based modeling algorithm according to speed values.
Figure 6. Rule-based modeling algorithm according to speed values.
Sensors 24 04375 g006
Figure 7. Jaccard similarity coefficient calculation diagram.
Figure 7. Jaccard similarity coefficient calculation diagram.
Sensors 24 04375 g007
Figure 8. Bluetooth devices distribution for Jaccard similarity coefficient.
Figure 8. Bluetooth devices distribution for Jaccard similarity coefficient.
Sensors 24 04375 g008
Figure 9. Bluetooth sensor devices view in coordinates.
Figure 9. Bluetooth sensor devices view in coordinates.
Sensors 24 04375 g009
Figure 10. Sensor information.
Figure 10. Sensor information.
Sensors 24 04375 g010
Figure 11. Bluetooth sensor distance matrix code and output.
Figure 11. Bluetooth sensor distance matrix code and output.
Sensors 24 04375 g011
Figure 12. Identification of Bluetooth devices read just once and their removal from the main dataset.
Figure 12. Identification of Bluetooth devices read just once and their removal from the main dataset.
Sensors 24 04375 g012
Figure 13. Identification and removal of Bluetooth devices read just once from the main dataset.
Figure 13. Identification and removal of Bluetooth devices read just once from the main dataset.
Sensors 24 04375 g013
Table 1. Distribution of Bluetooth sensors in the historical peninsula region.
Table 1. Distribution of Bluetooth sensors in the historical peninsula region.
GatesNameBluetooth Sensor No (idsen)
YedikuleYedikule Coastel229
Yedikule272
SamaTya275
Samatya Coastel172
10.Yil Avenue73
10.Yil Avenue 2194
Haseki96
TopkapıTopkapi267
Topkapi Cemetery117
Pazartekke113
Capa271
UlubatlıVatan Avenue170
Bayrampasa169
Ahmediye171
Sarachane174
EdirnekapiEdirnekapi252
Karagumruk254
Fatih Mosque256
Edirnekapi-1153
AyvansarayBalat Hospital226
Halicioglu187
Feshane241
D100 Otakcilar115
UnkapaniSishane177
Unkapani Coastel227
IMC248
Istanbul Municipality244
Kucuk Langa207
Galata BridgeSarayburnu Coastel228
Sirkeci173
Karakoy Square225
İstanbul Ticaret University62
Karakoy61
Avrasya TunnelYenikapı Coastel175
Kumkapi270
Kumkapi Coastel230
Cankurtaran282
Harem82
Acibadem84
Table 2. Distance matrix between Bluetooth sensors.
Table 2. Distance matrix between Bluetooth sensors.
OD Yedikule SahilTopkapıUlubatlıEdirnekapıAyvansarayUnkapanıGalata KöprüsüAvrasya Tüneli
BS No229272275172731949626711711327117016917117425225425615322618724111517722724824420722817322562611752702302828284
Yedikule Sahil22900.973.282.451.613.284.273.914.854.24.054.815.484.54.876.185.525.135.456.837.4976.26.976.255.785.194.567.346.717.056.256.84.115.116.116.819.1411.58
2720.9702.321.490.82.623.343.384.223.523.254.074.93.563.925.434.744.234.726.046.756.285.496.035.324.844.233.596.375.746.095.295.853.144.145.165.868.2110.68
2753.282.3200.841.741.791.062.652.972.241.562.453.681.261.63.62.892.043.034.14.884.513.793.713.042.531.911.324.143.473.782.973.531.032.123.213.846.298.87
1722.451.490.8400.991.871.882.773.342.582.072.974.062.092.434.243.532.823.594.795.555.134.384.553.863.372.752.114.924.274.63.84.361.712.773.834.56.929.45
731.610.81.740.9901.832.682.623.432.722.473.274.122.913.314.643.953.513.935.265.965.494.695.384.644.193.633.065.885.215.54.75.232.693.764.835.57.9110.44
1943.282.621.791.871.8301.960.91.60.921.011.542.32.172.632.922.292.322.183.594.223.722.924.333.53.222.922.725.324.64.643.894.322.723.724.85.337.7810.39
964.273.341.061.882.681.9602.592.521.931.171.843.160.240.692.722.0512.273.133.953.632.982.71.981.5110.823.42.682.852.052.561.111.862.883.375.818.43
Topkapı2673.913.382.652.772.620.92.5901.020.781.441.41.582.763.192.612.132.631.893.313.83.272.494.563.723.573.443.45.785.064.974.34.633.54.445.475.948.3610.97
1174.854.222.973.343.431.62.521.0200.761.430.750.722.612.971.621.272.170.952.322.782.241.473.883.083.073.143.335.314.64.383.84.033.594.365.295.667.9910.59
1134.23.522.242.582.720.921.930.780.7600.770.681.482.072.482.021.441.861.282.713.312.823.782.942.82.712.765.024.294.193.523.852.943.794.795.237.6210.23
2714.053.251.562.072.471.011.171.441.430.7700.912.131.321.752.191.491.311.532.793.513.072.313.312.482.222.011.994.383.653.642.923.312.183.034.044.56.929.54
Ulubatlı1704.814.072.452.973.271.541.841.40.750.680.9101.321.92.231.380.761.420.652.052.692.211.433.212.382.332.42.634.573.863.673.073.322.943.644.554.917.249.84
1695.484.93.684.064.122.33.161.580.721.482.131.3203.223.531.531.522.661.142.162.411.861.224.133.383.483.673.955.6854.684.24.344.264.955.846.158.410.98
1714.53.561.262.092.912.170.242.762.612.071.321.93.2200.462.672.020.872.283.033.863.562.952.471.771.280.770.733.172.452.611.822.331.131.742.723.195.628.24
1744.873.921.62.433.312.630.693.192.972.481.752.233.530.4602.792.210.962.513.063.893.653.112.121.520.970.320.572.711.992.191.391.931.141.432.332.755.177.79
Edirnekapı2526.185.433.64.244.642.922.722.611.622.022.191.381.532.672.7900.711.840.740.71.320.910.42.732.082.362.83.334.393.773.33333.84.194.885.057.149.66
2545.524.742.893.533.952.292.052.131.271.441.490.761.522.022.210.7101.260.381.312.031.620.932.641.871.982.272.724.173.493.182.692.833.153.644.424.686.899.46
2565.134.232.042.823.512.3212.632.171.861.311.422.660.870.961.841.2601.582.162.992.712.162.011.180.941.021.493.172.452.351.672.011.992.383.193.55.828.42
1535.454.723.033.593.932.182.271.890.951.281.530.651.142.282.510.740.381.5801.442.041.560.783.012.242.352.62.994.543.863.553.063.213.383.944.765.047.279.84
Ayvansaray2266.836.044.14.795.263.593.133.312.322.712.792.052.163.033.060.71.312.161.4400.830.730.942.4622.422.993.634.23.653.12.942.84.154.384.9356.929.38
1877.496.754.885.555.964.223.953.82.783.313.512.692.413.863.891.322.032.992.040.8300.551.313.112.773.233.824.464.864.363.753.693.494.975.195.715.747.539.92
24176.284.515.135.493.723.633.272.242.83.072.211.863.563.650.911.622.711.560.730.5500.83.192.713.13.634.214.934.383.833.653.544.695.025.635.727.6510.1
1156.25.493.794.384.692.922.982.491.4722.311.431.222.953.110.40.932.160.780.941.310.803.122.482.743.143.644.794.173.733.393.44.084.535.255.447.5410.06
Unkapanı1776.976.033.714.555.384.332.74.563.883.783.313.214.132.472.122.732.642.013.012.463.113.193.1200.841.191.822.571.751.310.650.920.423.142.732.832.74.466.94
2276.255.323.043.864.643.51.983.723.082.942.482.383.381.771.522.081.871.182.2422.772.712.480.8400.571.292.052.321.691.310.940.962.642.522.943.015.067.61
2485.784.842.533.374.193.221.513.573.072.82.222.333.481.280.972.361.980.942.352.423.233.12.741.190.5700.721.492.241.531.420.741.12.071.992.532.714.937.52
2445.194.231.912.753.632.9213.443.142.712.012.43.670.770.322.82.271.022.62.993.823.633.141.821.290.7200.772.41.681.871.071.621.351.392.172.534.917.53
2074.563.591.322.113.062.720.823.43.332.761.992.633.950.730.573.332.721.492.993.634.464.213.642.572.051.490.7702.832.162.521.732.310.581.042.082.625.087.68
Galata Köprüsü2287.346.374.144.925.885.323.45.785.315.024.384.575.683.172.714.394.173.174.544.24.864.934.791.752.322.242.42.8300.731.11.511.43.232.311.71.22.745.3
1736.715.743.474.275.214.62.685.064.64.293.653.8652.451.993.773.492.453.863.654.364.384.171.311.691.531.682.160.7300.750.80.892.611.821.581.393.45.99
2257.056.093.784.65.54.642.854.974.384.193.643.674.682.612.193.333.182.353.553.13.753.833.730.651.311.421.872.521.10.7500.80.353.052.442.322.093.826.33
626.255.292.973.84.73.892.054.33.83.522.923.074.21.821.3932.691.673.062.943.693.653.390.920.940.741.071.731.510.80.800.592.281.822.032.074.26.79
616.85.853.534.365.234.322.564.634.033.853.313.324.342.331.9332.832.013.212.83.493.543.40.420.961.11.622.311.40.890.350.5902.872.372.412.284.146.66
Avrasya Tüneli1754.113.141.031.712.692.721.113.53.592.942.182.944.261.131.143.83.151.993.384.154.974.694.083.142.642.071.350.583.232.613.052.282.8701.092.182.825.267.83
2705.114.142.122.773.763.721.864.444.363.793.033.644.951.741.434.193.642.383.944.385.195.024.532.732.521.991.391.042.311.822.441.822.371.0901.11.744.176.75
2306.115.163.213.834.834.82.885.475.294.794.044.555.842.722.334.884.423.194.764.935.715.635.252.832.942.532.172.081.71.582.322.032.412.181.100.723.095.65
2826.815.863.844.55.55.333.375.945.665.234.54.916.153.192.755.054.683.55.0455.745.725.442.73.012.712.532.621.21.392.092.072.282.821.740.7202.465.07
829.148.216.296.927.917.785.818.367.997.626.927.248.45.625.177.146.895.827.276.927.537.657.544.465.064.934.915.082.743.43.824.24.145.264.173.092.4602.62
8411.5810.688.879.4510.4410.398.4310.9710.5910.239.549.8410.988.247.799.669.468.429.849.389.9210.110.066.947.617.527.537.685.35.996.336.796.667.836.755.655.072.620
15.04.2023 24 saat süresince OD çiftleri arasındaki seyahat süreleri.
Table 3. Bluetooth sensor data organizing.
Table 3. Bluetooth sensor data organizing.
TimeIdautStart TimeEnd TimeDuration TimeIdsen
1.04.2023 00:00205167471.04.2023 00:491.04.2023 00:490 days 00:00:00[229]
1.04.2023 00:00206161561.04.2023 00:511.04.2023 00:590 days 00:08:09[254 177 248]
1.04.2023 00:00208900571.04.2023 00:491.04.2023 00:490 days 00:00:00[271]
1.04.2023 00:00209110811.04.2023 00:311.04.2023 00:320 days 00:01:10[170 169]
1.04.2023 00:00209113651.04.2023 00:351.04.2023 00:590 days 00:24:07[153]
1.04.2023 00:00209478411.04.2023 00:491.04.2023 00:550 days 00:05:50[171 169]
1.04.2023 00:00210951981.04.2023 00:431.04.2023 00:430 days 00:00:00[171 113 170 174]
1.04.2023 00:00210981091.04.2023 00:511.04.2023 00:510 days 00:00:06[115 169]
1.04.2023 00:00212643281.04.2023 00:571.04.2023 00:570 days 00:00:06[226]
1.04.2023 00:00213781771.04.2023 00:301.04.2023 00:370 days 00:06:08[254 244]
1.04.2023 00:00216287171.04.2023 00:411.04.2023 00:410 days 00:00:00[226]
1.04.2023 00:00217580571.04.2023 00:491.04.2023 00:530 days 00:04:03[227 241 226]
1.04.2023 00:00220148121.04.2023 00:301.04.2023 00:300 days 00:00:00[115]
1.04.2023 00:00220197941.04.2023 00:291.04.2023 00:450 days 00:16:38[227 174 172]
1.04.2023 00:00220392291.04.2023 00:571.04.2023 00:570 days 00:00:00[226]
1.04.2023 00:00222028261.04.2023 00:291.04.2023 00:290 days 00:00:44[241]
Table 4. Example section of speed values of Bluetooth devices.
Table 4. Example section of speed values of Bluetooth devices.
IdautIdsenStart TimeEnd TimeSpeed (km/sa)
23696412711.04.2023 07:011.04.2023 07:0112.179
959775282443.04.2023 23:553.04.2023 23:5612.179
100197431736.04.2023 04:136.04.2023 04:1312.179
19241591697.04.2023 18:507.04.2023 18:5012.179
329263311699.04.2023 18:509.04.2023 18:5012.179
29475601699.04.2023 19:209.04.2023 19:2012.179
1212950522515.04.2023 09:2315.04.2023 09:2351.879
19150398624415.04.2023 09:2315.04.2023 09:2351.879
41288302448.04.2023 14:418.04.2023 14:4251.879
52223326619.04.2023 08:169.04.2023 08:1651.879
13986111709.04.2023 08:329.04.2023 08:3251.879
3980572449.04.2023 08:169.04.2023 08:1651.879
2378227422715.04.2023 09:2215.04.2023 09:2351.879
32149732419415.04.2023 09:2215.04.2023 09:2380.001
179818622510.04.2023 03:3510.04.2023 03:3693.601
349182309.04.2023 13:099.04.2023 13:09100.754
2224911822510.04.2023 03:3510.04.2023 03:36101.097
226920823.04.2023 23:053.04.2023 23:05101.097
334421502307.04.2023 05:477.04.2023 05:47101.097
338440082308.04.2023 07:198.04.2023 07:19101.097
758769828.04.2023 11:508.04.2023 11:50101.097
56090402259.04.2023 23:059.04.2023 23:05101.097
95148715316.04.2023 02:4216.04.2023 02:46101.097
2685313982253.04.2023 23:353.04.2023 23:3719.211
Table 5. Sample section including Bluetooth IDs separated by vehicles.
Table 5. Sample section including Bluetooth IDs separated by vehicles.
TimeIdautStart TimeEnd TimeDuration TimeIdsen
2.04.2023 07:0022501922.04.2023 07:272.04.2023 07:410 days 00:14:30[61 113 248 271 174]
4.04.2023 03:0024331224.04.2023 03:294.04.2023 03:390 days 00:10:00[61 187 241 169]
9.04.2023 12:0060429.04.2023 12:269.04.2023 12:390 days 00:13:29[113 248 207 271 174]
8.04.2023 06:005792978.04.2023 06:428.04.2023 06:390 days 00:03:03[170 277 174 172 229]
10.04.2023 01:00409192410.04.2023 01:1010.04.2023 01:570 days 00:47:04[153 113 171 241 170]
6.04.2023 20:0025915646.04.2023 20:456.04.2023 20:570 days 00:12:06[173 248 174 170]
9.04.2023 21:0065149619.04.2023 21:449.04.2023 21:590 days 00:15:29[173 248 174 170]
13.04.2023 23:0035230612513.04.2023 23:0013.04.2023 23:320 days 00:31:48[173 248 174 170]
6.04.2023 23:006131266.04.2023 23:456.04.2023 23:570 days 00:12:15[225 187 169]
9.04.2023 21:00443625759.04.2023 21:059.04.2023 21:160 days 00:11:30[226 241 227 175 207]
13.04.2023 01:0020919933013.04.2023 01:2013.04.2023 01:490 days 00:29:14[230 226 241 207 172]
6.04.2023 01:002731176.04.2023 01:096.04.2023 01:370 days 00:28:00[244 113 271 170]
6.04.2023 23:005601936.04.2023 23:286.04.2023 23:330 days 00:05:35[170 277 172 229 172]
1.04.2023 13:005383511.04.2023 13:531.04.2023 13:590 days 00:05:11[275 272 230]
2.04.2023 01:001127970352.04.2023 01:092.04.2023 01:150 days 00:06:27[275 272 230]
Table 6. Speed-based filtering distribution.
Table 6. Speed-based filtering distribution.
Speed-Based Filtering
Personal Devices IDPedestrian ID3,042,55157.12%
P.T. ID42,3946.99%
L.R. ID42,7477.45%
Vehicle ID217,34835.82%
Table 7. Jaccard index.
Table 7. Jaccard index.
Time-Based FilteringSpeed-Based Filtering
Vehicle ID208,941217,348
Vehicle ID (%)34.43%35.82%
Personal Devices ID397,799346,645
Personal Devices ID (%)65.57%64.17%
Jaccard Index (J)0.628
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Özlü, B.; Yardım, M.S. Suggestions and Comparisons of Two Algorithms for the Simplification of Bluetooth Sensor Data in Traffic Cordons. Sensors 2024, 24, 4375. https://doi.org/10.3390/s24134375

AMA Style

Özlü B, Yardım MS. Suggestions and Comparisons of Two Algorithms for the Simplification of Bluetooth Sensor Data in Traffic Cordons. Sensors. 2024; 24(13):4375. https://doi.org/10.3390/s24134375

Chicago/Turabian Style

Özlü, Beylun, and Mustafa Sinan Yardım. 2024. "Suggestions and Comparisons of Two Algorithms for the Simplification of Bluetooth Sensor Data in Traffic Cordons" Sensors 24, no. 13: 4375. https://doi.org/10.3390/s24134375

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop