Next Article in Journal
Guidance Framework for Developing IoT-Enabled Systems’ Cybersecurity
Previous Article in Journal
Symmetry of the Neck Muscles’ Activity in the Electromyography Signal during Basic Motion Patterns
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving Pedestrian Safety Using Ultra-Wideband Sensors: A Study of Time-to-Collision Estimation

Department of Civil and Environmental Engineering, Carleton University, 1125 Colonel By Dr, Ottawa, ON K1S 5B6, Canada
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(8), 4171; https://doi.org/10.3390/s23084171
Submission received: 31 March 2023 / Revised: 17 April 2023 / Accepted: 18 April 2023 / Published: 21 April 2023

Abstract

:
Pedestrian safety has been evaluated based on the mean number of pedestrian-involved collisions. Traffic conflicts have been used as a data source to supplement collision data because of their higher frequency and lower damage. Currently, the main source of traffic conflict observation is through video cameras that can efficiently gather rich data but can be limited by weather and lighting conditions. The utilization of wireless sensors to gather traffic conflict data can augment video sensors because of their robustness to adverse weather conditions and poor illumination. This study presents a prototype of a safety assessment system that utilizes ultra-wideband wireless sensors to detect traffic conflicts. A customized variant of time-to-collision is used to detect conflicts at different severity thresholds. Field trials are conducted using vehicle-mounted beacons and a phone to simulate sensors on vehicles and smart devices on pedestrians. Proximity measures are calculated in real-time to alert smartphones and prevent collisions, even in adverse weather conditions. Validation is conducted to assess the accuracy of time-to-collision measurements at various distances from the phone. Several limitations are identified and discussed, along with recommendations for improvement and lessons learned for future research and development.

1. Introduction

1.1. Background

Wireless signals emitted from devices commercially available to consumers operate at various frequencies and signal modes. One type of the signal modes that is growing in popularity is the ultra-wideband (UWB). UWB wireless communication technology allows high-frequency signal transmission with relatively low power consumption. UWB is a radio frequency technology that uses a large bandwidth with low power to transmit data over short distances. UWB frequencies range from 3.1 to 10.6 GHz and have greater bandwidth than alternative wireless technologies, including Wi-Fi and Bluetooth [1]. A device that functions as a source of UWB wireless signal emission is often called a UWB beacon. UWB beacons play an essential role in modern network-based applications, such as the Internet of Things (IoT), by delivering location-based services through a wireless communication protocol. Many applications have been developed based on UWB sensors, including proximity sensing and tracking, to improve the functionality of IoT devices. UWB is often used to precisely determine the position of beacons relative to a receiver without interfering with other wireless technology. The UWB communication module consumes relatively little power and is inexpensive compared to other wireless sensors. UWB chips have been included in some recent designs of smartphones, e.g., Apple’s iPhone 11 and later models. For the purpose of positioning a wireless signal source, UWB offers one of the most accurate solutions for distance measurement between two communicating devices using the time-of-flight technique. Therefore, UWB is adopted in this work as the main wireless mode to develop the proposed safety application as well as detect safety-relevant events.
Wireless communication using UWB is adopted in many applications, such as asset tracking, indoor navigation, and autonomous vehicles. In the field of transportation, UWB can play a role by allowing effective navigation and communication. By virtue of their precise distance measurement, UWB beacons have the potential to provide real-time information about potential hazards on the road. The extraction of road user proximity indicators can also help in identifying safety shortcomings at a cross-sectional or site-specific level. This can support traffic safety applications that aim at utilizing non-collision and safety-relevant data. For instance, UWB can enable real-time vehicle-to-vehicle communication by sharing positional information, such as range, relative speed, and direction [2]. Another potential safety application is that UWB can provide highly accurate positioning information to enhance navigation, thus reducing the risk of a collision caused by incorrect navigation. Finally, UWB technology can enhance pedestrian safety by detecting and tracking the movement of pedestrians or other vulnerable road users, allowing vehicles to react promptly to potential hazards. Conversely, vehicles can track pedestrian positions and movements and, if appropriate, alert the pedestrian to an impending hazard. Therefore, UWB technology has an excellent opportunity to enhance transportation safety.

1.2. Literature Review

Extensive research has been conducted to analyze the use of wireless sensors, such as Bluetooth, Bluetooth Low Energy (BLE), Wi-Fi, UWB, or GPS, in real-time traffic monitoring applications [3,4,5,6]. Traffic monitoring applications are designed to provide real-time information about traffic conditions; for instance, the calculation of surrogate measures of safety to estimate the risk of collision or the severity of traffic events that are not collisions themselves [7]. Researchers also explored the use of smartphones to alert drivers of a potential accident in the case of a vehicle-to-vehicle interaction [8]. For example, the real-time application warns drivers by combining information from traffic conflict indicators, e.g., the time-to-collision and deceleration rate to avoid a crash, and the use of satellite navigation systems. This application can create a safety map that provides awareness to drivers of high-risk areas and when they are approaching “dangerous” zones. They claimed that the real-time warning system suffers from errors in GPS measurements [8].
A recent study was conducted to evaluate UWB smartphones from major manufacturers, such as Samsung, Apple, and Google [9]. The research found that the tested devices could measure distances with an error of under 20 cm. However, the devices did not provide consistent measurements in outdoor, lab, and garage scenarios. The maximum range distances possible to measure with UWB-enabled smartphones were 40 m, 23 m, and 11.6 m for the iPhone 12 Pro, Samsung Galaxy S21 Ultra, and Google Pixel 6 Pro, respectively. The study showed that the iPhone and Google Pixel demonstrated some measurement errors (distance reduction) of up to 3 m at a range distance of 5 m because of the potential multipath environment even, in an outdoor environment.
In another study, researchers created a smartphone application to warn distracted pedestrians while crossing [10]. The research utilized Bluetooth beacons around a signalized intersection to alert pedestrians who were distracted by their phones when they were getting close to a dangerous intersection, either through a visual or audible warning. The application was tested in a real-life deployment to increase public safety in urban environments. Another study [11] focused on the use of Bluetooth Low Energy (BLE) beacons and smartphones to provide location-based and proximity-based services for a smart parking application. A BLE beacon is a small wireless device that uses low-power Bluetooth technology to communicate with nearby devices. The experiments were conducted outdoors and indoors to evaluate proximity accuracy. The evaluation was achieved by analyzing the Received Signal Strength Indicator (RSSI). BLE beacons were used to fill the gaps in GPS data since the GPS receiver cannot perform adequately in some indoor locations.
Many studies looked at utilizing wireless sensors in traffic safety in order to enhance pedestrian safety. For instance, one study investigated the use of wireless sensors, such as Bluetooth, Wi-Fi, and BLE, in vehicle–pedestrian collision warning systems [12]. Their study conducted field experiments to compare the performance of each mode. Moreover, five factors, including the received signal strength indicator (RSSI)-based distance relationship, motion effects, rainfall effects, signal transmission rates, and non-line-of-sight effects, were evaluated. The study found that BLE mode was superior to Bluetooth and Wi-Fi modes because it showed better accuracy in estimating distance and position. Another study [4] conducted an experiment to look at the use of Wi-Fi technology in traffic data collection. Wi-Fi technology has been used in vehicle and pedestrian positioning in various applications, but the technology faces challenges that have impeded tracking, such as Media Access Control Address (MAC) randomization.
The Federal Highway Administration (FHWA) funded PedPal, a mobile application that was created by [13,14] to help pedestrians with disabilities conduct safe crossings at signalized intersections. The real-time localization was obtained by using stationary UWB and Bluetooth beacons at each corner of an intersection. Moreover, the study looked at enhancing pedestrian safety by considering accessible route navigation and planning, safe intersection crossings, and pedestrian-to-infrastructure communication. For instance, when a pedestrian is approaching an intersection, the beacons start communicating with the smartphone. The position of a pedestrian can be assumed by their proximity to a beacon. The crossing direction can be tracked by the distances obtained from all beacons. This study found that utilizing UWB beacons allowed for better accuracy than Bluetooth beacons. Finally, the study showed that UWB beacons could be used to overcome the errors of Bluetooth beacons. It was noted that UWB technology showed high accuracy in localization and tracking even in extreme weather conditions [15]. For instance, the study looked at enhancing cyclist safety by placing UWB tags on bikes and vehicles and placing UWB anchors at a signalized intersection.

1.3. Study Objectives

This study aims to explore the potential to improve pedestrian safety using UWB technology. The specific objectives of the study are as follows: [i] develop a prototype that can detect traffic conflicts based on severity using UWB sensors, [ii] assess the performance of this system using various statistical measures, [iii] evaluate the impact of errors in distance measurements on the system’s performance, and [vi] document lessons learned for future technology development. The following sections present: technology description, field experiments, discussion, and conclusions, respectively.

2. Materials and Methods

UWB beacons transmit data over a large bandwidth, unlike traditional Bluetooth beacons. UWB beacons allow high accuracy in measuring distances and tracking positions between the device and beacon. Beacons can connect to nearby devices that are UWB-enabled or, in the case of smart devices, Apple devices equipped with a U1 chip. For example, the phone used in this study was the iPhone 13 Pro Max, which has an embedded U1 chip that can communicate with UWB beacons. When a phone and a UWB beacon connect, the distance measurement can be calculated by the time-of-flight and can yield distance measurements with, as is often claimed, inch-level precision. Therefore, due to these attributes, UWB beacons are more suitable for service and real-time location applications than BLE beacons.
The UWB beacons used in this study were purchased in 2022. The development kit includes UWB beacons and a software development toolkit (iOS SDK), through which a developer can access real-time distance measurements between the beacon and a U1-equipped iPhone. With access to distance measurements, a dedicated spatially aware application was developed that utilizes sequences of distance measurements to calculate the relative speed and acceleration of the beacon with respect to the phone. Furthermore, safety-relevant measures can be calculated to estimate the hazard that a pedestrian holding this phone is exposed to from an approaching vehicle equipped with a beacon.

2.1. Distance Measurement Accuracy

An exploratory study was conducted to assess the real-world accuracy of distance measurements for stationary (non-moving) beacons. This is an initial assessment in a highly controlled environment because dynamic distance measurements, which are introduced later, involve more experimental set-up variables and less controllable environments. Stationary UWB beacon experiments were conducted to evaluate the performance of a UWB beacon in an outdoor and indoor environment. This study tested the UWB beacons purchased from Estimote (as mentioned earlier) due to their compatibility with U1-equipped iPhones. The experiment looked at the range, accuracy, and reliability of UWB beacons to communicate with an iPhone 13 Pro Max. The true distances between the smartphone and stationary UWB beacon were set up as follows: 1 m, 3 m, 10 m, 15 m, 20 m, and 25 m. Range data was gathered for a duration of 1 minute at each distance in order to obtain stable estimates and gather a representative sample of measurements at each location. This is because, on average, there are three range measurements every second. It is noteworthy that this experiment was intended to gauge the accuracy of distance measurements for a stationary beacon, which is the backbone for further analysis involving a moving beacon.
The distance between the phone and beacon was recorded using a dedicated application provided by the manufacturer. It is noteworthy that the iOS safety application developed as part of this study (to be presented later) was developed using the software development kit based on this basic application. This application displays the serial numbers of the nearby beacons (fingerprints) and the reported distance between each beacon and the phone running this application. All measurement data were uploaded to an online database to enable time-extended recording of data and conduct more sophisticated analysis. Table 1 demonstrates a sample of raw data from the outdoor experiment and shows that the detection rate is approximately every 350 ms. However, in the indoor experiment, the detection rate could fall to every millisecond in some instances, which caused repeated values and inaccurate speed measurements. Therefore, a condition was later applied to discard any detections with a timelapse of less than 100 ms. The outdoor and indoor experiment data were collected and analyzed to evaluate the beacon’s performance and identify areas for improvement.
The outdoor experiment was conducted on December 2022, at an ambient air temperature of −9 °C. It was found that the application ceased to work properly when the phone was exposed to cold weather for more than 15 minutes. The experiment was occasionally paused to warm up the phone and then resumed. As for the indoor environment, in which the ambient air temperature was 13°C, the results were much more consistent. The results of stationary UWB beacon experiments are shown in Table 2, which compares the actual distances and estimated UWB beacon distances. At a 1.00 m distance, the Mean Average Percentage Error (MAPE) was 10.93%, and the average MAPE from all experiments was 2%. Furthermore, the number of detections per minute ranges from 178 to 197 detections for 1.00 m to 20.00 m distances, respectively. However, at a distance of 25.00 m, the number of detections per minute dropped to 49. The reliable range of detection was determined to be up to 20.00 m, but the signal can be detected at 25.00 m. Therefore, the results can be used to inform the development of new services and applications to improve the performance of UWB beacons and deliver best practices.

2.2. Development of a Safety Assessment Protocol for Pedestrian–Vehicle Interactions

A safety application was developed to measure the hazard that an approaching vehicle presents to a pedestrian carrying a smartphone. An appropriate proximity measure needs to be calculated to represent this hazard. The proximity measure chosen is time-to-collision (TTC), which represents the time that will elapse from the current moment until an approaching vehicle collides with the smartphone (assuming the movement of the approaching vehicle remains unchanged). The safety application can estimate the speed and acceleration of the approaching vehicle. This can also enable the calculation of TTC that takes into consideration vehicle acceleration.
TTC is one of many conflict indicators used to characterize the safety of a traffic conflict but remains one of the most common indicators [16]. Many studies analyzed crash data to identify potential factors affecting pedestrian safety. However, analyzing pedestrian safety using crash data is challenging on many accounts. First, pedestrian-involved crashes are rare yet catastrophic. Second, relying on pedestrian crashes to measure safety is a reactive approach that requires a collision to occur before a safety assessment is performed. For that purpose, surrogate measures of safety, e.g., TTC, are utilized to assess the safety of relevant traffic events that happen more frequently than crashes but do not involve a crash themselves. According to a previous study [17], many studies rely on surrogate measures of safety to investigate pedestrian–vehicle interactions. A traffic conflict is conceptually defined in the literature as follows: “an observable situation in which two or more road users approach each other in space and time to such an extent that there is a risk of collision if their movements remain unchanged.” In that case, when two road users have a reportable TTC, then the collision is expected to occur. The imminence of such a collision is inversely proportional to TTC, with small values indicating heightened severity and hazard level.
Traffic conflict can happen at various locations, including crosswalks, intersections, and roundabouts. Furthermore, TTC is used to evaluate the risk of a collision between a vehicle and a pedestrian or between two interacting vehicles. From the driver’s perspective, TTC information is used in advanced driver assistance systems, including collision avoidance systems, to give drivers collision warnings and potentially prevent accidents. Moreover, TTC information can assist vehicles in making decisions regarding their trajectory and speed during autonomous operation. The accuracy of the TTC calculation relies on the accuracy of the distance and velocity estimates. Therefore, UWB beacons have great potential for surrogate safety measures and calculating TTC. The exact details of TTC calculations are presented in later sections.

2.3. Time-to-Collision Calculations

The safety application developed in the current study utilizes TTC as a traffic conflict indicator in order to assess pedestrian safety. According to a previous study [18], TTC measures how much time is left for two road users to crash into each other. TTC is classically calculated by estimating the distance and relative velocity between two objects. Usually, knowledge of positions in road safety applications is discrete in time. For example, computer vision detections are performed at a minimum for every frame in a video sequence (approximately 0.03 s). The TTC requires the conflicting road users to be on a collision course. Specifically, there is a future position that they are projected to co-occupy if their movements remain unchanged. If the interacting road users are a vehicle and a pedestrian, then the time series of the distances to the earliest collision point can be assumed to be d v = d v t : t   ϵ   T   and d p = d p t : t   ϵ   T , respectively. For simplicity, the time series corresponds to time measurements T that start at the current moment, such that T = 0 ,   1 ,   2 , . Generally, TTC is the earliest moment between now and when the two road users are projected to come into physical contact. In other words, if the two road users are on a collision course, then the collision will commence at a moment T T C   from now. There are many ways to calculate TTC, depending on the assumptions underlying the projections of future positions. The default assumption is that the pedestrian and the vehicle are projected to move at the same velocity until they collide. According to this assumption, during TTC, the vehicle will travel distance d v 0 and the pedestrian will travel distance d p 0 . If the current speeds of the vehicle and the pedestrian can be denoted as S v and S p , respectively. This requires independent tracking of both the pedestrian and the vehicle relative to the projected collision point. Some technologies, such as the one used in the current study, can measure the distance between interacting road users. Hence, the projected distance between the pedestrian and the vehicle, d = d t : t   ϵ   T   is also a time series that can be projected using the current rate of change in the relative distance such that d t = d 0 + t d t | t = 0 . Because TTC is calculable, that is, the two road users are on a collision course, then the following conditions must be satisfied if TTC is estimated:
d v 0 S v = d p 0 S p = T T C   d T T C = 0 ,
where,
T T C = d 0 / d t | t = 0
Please note that d t | t = 0 is the relative speed between the two road users measured at the time of estimating TTC and is constant (following the assumption that both S v and S p are constant). Both current relative distance and relative speed can readily be obtained using UWB sensors. It is noteworthy that in practice a collision could happen even if the centroids, or a representative point of the road user position, do not co-occupy the same point in space. Specifically, the condition in Equation (1) can be satisfied if d T T C d c r , where d c r is some critical spatial proximity between the UWB beacon and phone at which the two road users come into physical contact at other points on their boundaries. The corresponding TTC will be ( d 0 d c r ) / d t . In the following experiments, the beacon was placed at the front of the vehicle, which directly faces the pedestrian. Hence, for a frontal collision with a crossing pedestrian, d c r is likely a small distance and was therefore ignored in the next sections of this study.
A key shortcoming of relying on relative distance instead of relative location is that the reverse of the condition in Equation (1) is not always true. That is, when TTC is not calculable because the two road users are not on a collision course, it could still be calculable according to Equation (2). In other words, the reliance on the scalar quantity of relative distance and its derivatives of time can produce false positives. To mitigate this issue, in the upcoming experiments, the pedestrian position was assumed to be stationary and offset very closely from the vehicle path. This simulates the case in which the two road users are on a collision course without exposing any of the road users to the real-life hazard of collisions during the experiment. In theory, to eliminate or reduce false positives, multiple beacons must communicate simultaneously with the phone in order to gain more accurate directional information.
The rigid assumption of TTC based on constant velocity may not be realistic for accelerating road users. Therefore, another variation of TTC is called Modified TTC, which accounts for acceleration, speed, and distance for more accurate predictions [19]. Specifically, it utilizes acceleration information to predict how imminent a crash is between two moving road users. When two road users accelerate toward each other, it is expected that Modified TTC will be lower than constant-speed TTC. When two road users are approaching each other rapidly, the TTC value will be lower, so the risk of collision is high. In general, low values of TTC are more critical and, in the case of accelerating road users, more realistic. The risk of collision is low when TTC is a high value, which indicates the road users are spatiotemporally further separated.
The proximity measurement in this study was entirely based on distance, relative speed, and relative acceleration. This can be obtained from a single beacon communicating with a phone. The purpose was to trigger an alarm when the approaching vehicle poses a hazard to the phone bearer. Proximity measurement was enhanced through several revisions to calculate speed, acceleration, TTC, Modified TTC, and a customized variant of TTC in the current study called Mixed TTC. The collision warning application went through iterative improvement through indoor trials and early experiments. Key improvements focused on robust TTC measurements. The purpose was to develop an accurate pedestrian safety awareness system to the extent that a pedestrian carrying a smartphone can receive an advance warning of an approaching vehicle in real time. The speed measurement was improved to include a two-step moving average to reduce the sensitivity to momentary errors in distance measurements. The Modified TTC was calculated whenever possible but mixed with the TTC in order to increase robustness. This was decided after numerous initial trials. The rationale is that Modified TTC assumes fixed acceleration, which can be unreasonable for vehicles accelerating from a stop or from a very slow speed. Conversely, the assumption of fixed speed used to support the calculation of simple TTC assumes no acceleration whatsoever. This mixture is termed Mixed TTC and is intended to represent the arithmetic mean of both measures. Whenever Mixed TTC drops below a pre-defined threshold, a hazardous situation is detected. The following flowchart (Figure 1) shows the calculation details that have been used in this application. It is noteworthy that all speeds and accelerations are based on relative distance measurements, i.e., the change in distance between the beacon and phone.
The safety application was developed to run on Apple’s iOS and is compatible with U1 chip-equipped Apple devices, as shown in Figure 2. For instance, the application presents the detections from all connected UWB beacons. Fingerprints, average speed (speed obtained from a two-step moving average), acceleration, constant-speed TTC, Mixed TTC, distance, and timestamps are printed on the screen and simultaneously stored on an external online database for real-time as well as offline analysis. The application changes the background color, such as to red, yellow, or green, based on the level of risk. For example, all hazardous Mixed TTC values were between 0 and 3 s. When the Mixed TTC is between 0 and 1 s, a red background color will appear, representing a high-risk situation. Furthermore, for Mixed TTC between 1 and 2 s, the background color changes to yellow, which indicates a medium risk. Finally, when Mixed TTC is between 2 and 3 s, the background color changes to green, representing a relatively low risk, as shown in Figure 2. The reader can clearly see the indication at the top of each screenshot labeled “Critical Hazard” as a visual warning to the pedestrian that a vehicle is approaching along a hazardous trajectory and caution is needed.
In order to enhance the collision warning system, a notification is triggered when Mixed TTC is in a range of risky values, which is between 0 and 3 s. The notification appears after 100 ms when a risky value is detected and alerts pedestrians of a critical hazard. Furthermore, the notification initiates an emergency sound to help pedestrians recognize the risk of collision and prevent an accident. Finally, the phone will flash, that is, turn on the camera flashlight, to aid in time-stamping the detection. From an experimental perspective, this flash is needed to determine the exact moment a warning was detected from the driver’s view. Many experiments were conducted to evaluate UWB beacons for calculating TTC and Mixed TTC.

3. Results

This collision-warning technology was verified several times in a laboratory environment. Through verification work, many improvements were implemented. Later, it was determined that field performance testing was warranted. The performance testing aims to explore the real-life performance of the developed technology and its potential in assessing vehicle–pedestrian conflict. For the clear visibility of a flashing light and smartphone screen, all testing was conducted under low-light conditions. It is noteworthy that this is a key advantage of wireless technology, as it does not require the smartphone to “see” the approaching vehicle through the smartphone’s rear/front cameras.

3.1. Proximity Hazard Detection Experiments

This set of experiments aims to explore the real-time performance of TTC calculations. These experiments were conducted to test the accuracy of the UWB beacons in assessing the risk of pedestrian–vehicle conflicts. These experiments were conducted in two different environmental settings: outdoors and indoors (underground parking). The experiments were conducted at different speeds for the approaching vehicle. At each speed, several trials or replications, involving a vehicle approaching the phone location along with dynamic TTC calculations, were conducted to ensure consistency of findings. A total of 166 trials were performed in all experimental settings. A failure was defined as a trial in which the approaching vehicle was not able to trigger an alarm on the phone. This could happen for various reasons, including discontinuity in detection or deterioration of the hardware function due to prolonged exposure to cold temperatures. There were a total of 16 failures. Each trial was performed by installing a beacon on an approaching vehicle while an author drove the vehicle at a specific target speed, approaching a tripod-mounted smartphone. The tripod was placed on the sidewalk adjacent to the path of the vehicle such that it is close enough to the vehicle path to calculate TTC without precisely occupying the path and resulting in hazardous conditions. The lateral offset of the phone location from the beacon mounted on the vehicle was approximately 1.75 m.
To represent various approaching conditions, the UWB beacon was mounted on a vehicle that approached the smartphone location at various speeds: 3, 5, 10, and 15 km/h, as shown in Table 3. Noted in the table are the trials that were deemed failures. As mentioned earlier, these are trials in which no warning of an approaching vehicle was triggered. Various reasons led to that, but they were mainly due to distance measurement errors. This is discussed in more detail in later sections.
The outdoor experiments were analyzed in relatively harsh winter conditions, such as freezing rain, snow, and cold, to cover many weather conditions. These experiments were conducted on Carleton University’s campus. The outdoor location was at an intersection controlled by a stop sign, and the indoor location was in an underground garage. Figure 3 illustrates the setup of the equipment used in the experiments as well as the beacon location. As guided by previous research [20], the beacon location was at the right and front point of the vehicle, mounted on a specific holder so that the beacon did not rest on the vehicle body, as shown in Figure 3b. Additionally, visible in Figure 3a are the tripods carrying the phone that runs the safety application, as well as another tripod carrying a video camera recording the experiment from the pedestrian’s perspective.
Figure 4 shows a magnified image of the phone running the safety application as well as another timing device in order to match the instances from different cameras.
As shown in Table 3, almost all failures occurred outdoors. This led the researchers to hypothesize the impact of cold weather on the performance of the electronics, specifically the UWB chip in the phone. A previous study [21] discussed the effect of cold weather on smartphones and noted how their performance was impacted. In January 2023, outdoor experiments were conducted, and the temperatures were at −2°C. The number of failures was eight and six on the 4th and 5th of January, respectively. There was a notable difference in performance compared to indoor experiments. It is hypothesized that fewer failures would have been observed given warmer weather. It was noted that occasionally the display turned greenish after extended exposure to cold weather. Moreover, cold weather has the capacity to impact battery life and phone performance. Therefore, during the other experiments, the smartphone was connected to a power source in an effort to heat the battery and mitigate the cold weather’s effect on performance. Note the deterioration in the screen’s display in Figure 5.
The indoor experiments were carried out to simulate the performance under mild environmental conditions. Two cameras were placed to record the experiment inside the car to monitor the vehicle’s speed as it approached the phone’s location, as well as an externally fixed camera to monitor the phone during the hazardous vehicle approach. The temperature indoors was +13°C, and reference points were placed, as colored cones, every 2.5 m to estimate the vehicle location, as shown in Figure 6. Furthermore, the phone was connected to a power source. The number of failures dropped dramatically to only one out of a total of 61 trials conducted indoors.
Table 4 show a sample of the raw data recorded using the UWB equipment. As shown, TTC, Modified TTC, Mixed TTC, average speed, and acceleration are calculated; the distance between the beacon and phone is recorded. A trial typically starts when the UWB is actively communicating with the phone; that is, when the distance between them is dynamically measured. Then, the car moves to the trial starting position, which is at a distance of 25.00 m from the phone. Subsequently, the car accelerates from that position up to various target speeds: 3, 5, 10, and 15 km/h. The driver tries to maintain this speed once it is reached but ceases to maintain it at a later moment as the vehicle gets closer to the phone location. This is performed whenever necessary to maintain safe driving conditions. Please note that in all trials, the precise phone location was laterally offset by approximately 1.75 m from the beacon in order to eliminate the risk of a direct collision. Table 4 show the data obtained from an indoor experiment at a sample trial (Trial number 5).
As shown in Table 4, Mixed TTC reached the critical level at 19(h):59(m):(s)17.603. Figure 7 shows the average speed over time, the distance over time, and the TTC profiles (one profile for each TTC) over time. It was noted that occasionally, when the notification is triggered, the average speed increases significantly immediately afterward because the application records another distance within approximately two milliseconds. This issue occurred randomly and unfortunately led to overestimating the post-trigger speed. It does not appear to influence the triggering mechanism in how it alerts the pedestrian or TTC measurements prior to the trigger. The exact reason for this issue was not clearly understood and requires further investigation.
The real-time performance of this technology can be illustrated in Figure 8. For instance, the application detected a critical value of Mixed TTC at 19:59:17. The application changes the background color based on the level of risk. In this case, it was colored “orange,” indicating a medium risk level, or calculated the value of Mixed TTC in less than 2 s but greater than 1 s. The notification triggers an alert to the pedestrian by an alarm sound and sends a notification to a smartwatch with a message of “Critical Hazard,” as shown in Figure 9. Moreover, the phone flashes when Mixed TTC detects the risk of a collision to warn the driver of the potential hazard.

3.2. Experiment Results

This section aims to provide an overview of the results and findings. The research looked at the average of different observations across all trials, as shown in Table 5. On average, the risk of collision was found to be triggered at various distances depending on the target vehicle speed. Specifically, the average distance at trigger time was 4.46 m at a speed of 3 km/h, 5.74 m at a speed of 5 km/h, 12.76 m at a speed of 10 km/h, and 15.44 m at a speed of 15 km/h. This is a reasonable performance, as the system detects a hazard further upstream in distance if the approaching vehicle is closing in faster.
A vehicle position marker (colored cones) was placed every 2.5 m on the right side of the travel path, as shown in Figure 8c. The longitudinal distance between the vehicle and phone at the moment of taking a given picture can be obtained from the camera by estimating the vehicle’s longitudinal location relative to the aforementioned distance markers. At the moment of trigger, the vehicle speed is observed by the internal camera placed inside the vehicle cabin, as shown in Figure 8b. The ground truth TTC at the alert trigger was calculated using vehicle information apparent in the cameras independent of UWB observations. This was performed for all trials at a speed of 10 km/h to represent average performance. As shown earlier, Figure 8d illustrates the estimated horizontal distance at trigger to be 7.5 m, and the vehicle speed appears to be 9 km/h (2.5 m/s) as shown in Figure 8b. The vehicle was laterally offset from the horizontal distance markers (cones) by 1.75 m, so the actual dynamic distances were calculated as shown in Table 6 as the oblique distance. Ground truth, or reported TTC, was calculated by dividing the actual distance by the vehicle speed obtained from the internal camera. Then, TTC measured using UWB equipment was compared to the reported TTC as shown in Table 6. The absolute mean difference between the two TTCs was 0.69 s at the moment of trigger.
The study further looked at the various classification performance measures such as sensitivity, specificity, and accuracy to evaluate the performance of UWB. Specificity and sensitivity were calculated based on the true positive and negative rates. True positive (TP) cases are when both the reported TTC and UWB TTC are less than the 3 s threshold. True negative (TN) cases are when both TTCs are greater than or equal to 3 s. False positive (FP) cases are when the reported TTC is greater than or equal to 3 s but the UWB TTC is less than 3 s. Finally, a false negative (FN) is when the UWB TTC is greater than or equal to 3 s, but the reported TTC is less than 3 s.
The true positive rate, also known as sensitivity, is defined as the portion of positive cases correctly identified as positive. Sensitivity can be calculated as: (TP)/(TP + FN). A highly sensitive classification algorithm will be associated with a high true positive rate. In this study, the classification algorithm calculated Mixed TTC and compared it to a threshold of 3 s. That will result in a small rate of failing to detect a positive case when it is truly positive. For example, it will be less likely to miss a case where TTC is less than 3 s when it is truly less than 3 s.
On the other hand, the true negative rate (TNR), also known as specificity, is the proportion of negative cases that are correctly identified as negative by the classification algorithm. Specificity can be calculated as (TN)/(TN + FP). Therefore, by evaluating the sensitivity and specificity of the performance of UWB, researchers and engineers can identify the performance of the UWB, discern the balance between positive and negative detection, and, hence, make enhancements for practical use. Finally, the accuracy of the UWB performance was calculated as follows:
Accuracy = (TP + TN)/(TP + FP + TN + FN).
Sensitivity, specificity, and accuracy were initially calculated at the trigger moment. However, the sample size was small, and the performance measures were unstable. The reported TTC and UWB TTC were evaluated when the vehicle was observed to be precisely at an exact longitudinal distance, such as 20.00 m, 15.00 m, 10.00 m, and 5.00 m, for the indoor experiment. This is shown in Table 7 and Table 8. The UWB measurements were not recorded at precisely the same moment when the vehicle was adjacent to a cone. To address this issue, the corresponding UWB equipment measurements were calculated by taking the average of two detections. The times of those two detections were identified as follows: First, the timestamp at which the vehicle appears to be adjacent to a cone from the video cameras was recorded. This timestamp is to be read from the timing device apparent from the external camera. This is called the ground truth timestamp. Then, UWB measurements were adjusted to synchronize the timestamps with the timing device that appeared from the external camera by taking the average of two detections at each cone location. The two detections from UWB were identified by looking at the two closest timestamps before and after the ground truth timestamp.
The mean absolute differences between UWB measurements and ground truth measurements were calculated as shown in Table 7 and Table 8. In summary, the absolute mean differences between UWB measurements and ground truth data are 1.10 s, 0.88 m, and 0.46 m/s for TTC, distance, and speed, respectively. This is an important finding of those experiments that potentially lays the groundwork for future developments, knowing that the distance measurement error in mild weather conditions is approximately 0.88 m and the TTC measurement error is approximately 0.90 s. It is noteworthy that the ground truth distance is the oblique distance with a lateral offset of 1.75 m.
The threshold of 3 s was used in the experiment to classify events as either positive or negative. The threshold is used to construct the confusion matrix, which in turn significantly influences the sensitivity and specificity of UWB TTC. The choice of other thresholds should not materially affect the performance assessment. This was examined by recalculating the confusion matrices at other TTC thresholds and also recalculating the corresponding performance measures. Figure 10 illustrates the distribution of the sensitivity, specificity, and accuracy at various TTC thresholds. At a TTC of 3 s, the sensitivity, specificity, and accuracy were 0.87, 1.00, and 0.97, respectively, as shown in Table 9. Those are generally reasonable results that demonstrate a promising performance.
High specificity (100%) at the 3 s threshold means that there are no false positive detections. It indicates that the algorithm correctly identifies all non-collision cases and has a zero false positive rate. Generally, it is crucial to balance sensitivity and specificity to ensure the overall performance of estimating TTC. High specificity is crucial to minimize false positive detections, while high sensitivity is essential to ensure that potential or actual collisions are detected in a timely manner.

3.3. Smoothing Filters

The distance detections were analyzed, and it was found that the difference in distance between every two detections is not consistent. For instance, Figure 11b shows the difference in distance from the UWB measurements. Delayed UWB measurements can potentially be caused by many reasons. First, the authors of [22,23] mentioned that UWB measurements can be impacted by environmental factors, such as surrounding obstacles, which leads to UWB measurements being influenced by multipath delays. Furthermore, the authors of [24] claimed that UWB measurements can be affected by errors in signal processing and that they can be potentially eliminated by adding multiple antennas. Therefore, further filtering processes should be applied in order to have accurate measurements.
Many filters were applied to the UWB distance measurements in order to overcome the issue of signal delays or errors in processing. The Kalman filter, moving average, and Locally Weighted Scatterplot Smoothing (Lowess) were applied to smooth UWB measurements. The Kalman filter, based on the expectation–maximization (EM) algorithm, was suggested by [25,26] to improve the estimation accuracy by calculating the parameters of the noise. The authors of [27] applied the Lowess filter to smooth data for pedestrian positioning systems. Figure 11 illustrates the performance of each filter. The Lowess filter was found to demonstrate a better result than the moving average and Kalman filters.
After applying the smoothing filters to the raw UWB distance measurements, the next step is validating the accuracy of the TTC. First, the TTC values were recalculated based on the type of smoothing filter used to process the distance measurements. The next step is to calculate the absolute mean difference of the TTC between the ground truth data from the video camera and smoothed UWB measurements. The following Table 10, Table 11, Table 12, Table 13 and Table 14 show that at a 20-meter distance, the absolute mean error of TTC was mostly over 2.00 s. However, the absolute mean error was 0.62 s, 0.81 s, 0.86 s, and 0.73 s for the raw UWB measurements and the Kalman, moving average, and Lowess filterings, respectively, excluding the absolute mean error at 20 m. Although the filters increased the mean error, the Lowess showed better results than the Kalman and moving average filters.

4. Discussion

The proposed UWB-based TTC estimation system has the potential to improve pedestrian safety. Moreover, the UWB technology demonstrates good performance and accuracy in calculating the location and speed of the moving ultra-wideband beacon. The proposed system has the capacity to alert a pedestrian in advance if there is a possibility of a collision. However, the UWB beacons used in this study required frequent changes of batteries (lithium disposable batteries), which indicates the need for a permanent power source if installed on vehicles. Furthermore, UWB signals have a relatively limited range, potentially limiting their use. After extensive testing, it appears that a maximum practical range of 25 meters is possible. This range may decline further to 20 m during cold weather conditions. The UWB beacon’s battery performance can be affected by cold weather, which results in reduced capacity and lifespan. More crucially, the iPhone’s U1 chip’s performance was found to be impacted by exposure to cold weather. The manufacturers need to note that and deploy more robust UWB chips that can perform more reliably in cold weather.
Simultaneous communication between the phone and two beacons was attempted. Unfortunately, it was found that this introduced a bottleneck in the measurement; that is, the phone was not able to independently record the distances for the two beacons and appeared to be restricted in this capacity. Therefore, the use of two beacons installed on the approaching vehicle was not associated with performance improvements.
The presented technology focused mainly on measuring TTC and its variants. This was in line with the literature, which considers this the main collision indicator. Furthermore, TTC relies on predicted movements and hence can forecast hazards. Other indicators, e.g., PET, require the passage of time between both the pedestrian and vehicle at the same point or conflict area. It cannot forecast movement but studies actual movement, even if it includes evasive actions that alter and reduce the hazard levels. The precise way to calculate TTC has a significant impact on the safety assessment. It is paramount to design a robust technique to measure TTC that balances accuracy with robustness.
The developed prototype can potentially be used to alert a pedestrian to the danger of an approaching vehicle if the latter is too fast and/or too close. Furthermore, if connectivity between the phone and vehicle is possible, then the driver may be alerted to a nearby pedestrian who is being approached in an unsafe way. However, the testing of the developed prototype did not consider such cases, as the phone was static and mounted on a tripod, and the only notification visible to the driver was a flash from the camera light.
The technology needs to consider improving the stability of some detections, including after the notification trigger. Specifically, the post-trigger inaccuracy in speed measurement needs to be further investigated. Even though the UWB measurements were smoothed by using the Kalman, moving average, and Lowess filters, the accuracy may still be impacted by many factors, such as multipath effects and environmental interferences. The line-of-sight condition appeared to have an impact on distance measurements. The effect was complex because the distance detection frequency per minute appeared to drop in non-line-of-sight conditions. Therefore, further research and development are crucial to improving and providing better accuracy and more robust system performance in various environmental scenarios and conditions.

5. Conclusions

The presented research looked at the performance of UWB beacons under various environmental conditions. Strengths and limitations were discussed to inform the development of a new application to improve the performance of UWB beacons. An iOS application was used to calculate traffic conflict measures such as time-to-collision (TTC) and a customized variant of TTC was proposed in this study called Mixed TTC. The safety application can calculate the acceleration, moving average speed, distance, TTC, Modified TTC, and Mixed TTC. A notification alarm activates when the Mixed TTC value is at risk of collision, which is between 0 and 3 s. This alert includes a flash to warn the driver of potential hazards and a sound alarm to inform pedestrians of a critical hazard. Sensitivity, specificity, and accuracy were calculated to evaluate the performance of UWB. The Kalman, moving average, and Lowess filters were applied. The Lowess filter showed better smooth filtering than the Kalman and moving average filters. More studies can be performed involving various road users at signalized intersections or roundabouts with different smoothing filters to improve accuracy. Possible future enhancements may involve the integration of other sensor modes, including LiDAR and cameras, to improve the overall accuracy and reliability of the system. A limitation of this study is that it did not consider a representative sample of commercially available smartphones. Due to equipment compatibility at the time of this study, only one iPhone device was used. Another limitation of this study was that it only considered clear line-of-sight situations, which need to be further investigated when various objects can be present between the beacon and phone. Another limitation is that the study did not consider the effect of hot weather or extreme humidity on the performance of the technology.

Author Contributions

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

Funding

This research was funded by the Natural Science and Engineering Research Council of Canada, grant number 2016-06208, and by Transport Canada, grant from the program: Enhanced Road Safety Transfer Payment.

Institutional Review Board Statement

The Carleton University Research Ethics Board (CUREB) conducted an ethical review of the experimental work, and approval was waived for this study due to a lack of participants under Article 2.1 of the Tri-Council Policy Statement.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study pertaining to the wireless sensor measurements are available on request from the corresponding author. The data are not publicly available due to equipment privacy and security reasons. Other data may not be shared due to privacy reasons.

Acknowledgments

The authors acknowledge the contributions of Noah Gagnon to the software development and experimental work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alarifi, A.; Al-Salman, A.; Alsaleh, M.; Alnafessah, A.; Al-Hadhrami, S.; Al-Ammar, M.A.; Al-Khalifa, H.S. Ultra Wideband Indoor Positioning Technologies: Analysis and Recent Advances. Sensors 2016, 16, 707. [Google Scholar] [CrossRef] [PubMed]
  2. Wang, M.; Chen, X.; Jin, B.; Lv, P.; Wang, W.; Shen, Y. A Novel V2V Cooperative Collision Warning System Using UWB/DR for Intelligent Vehicles. Sensors 2021, 21, 3485. [Google Scholar] [CrossRef] [PubMed]
  3. Loga-Księska, W.; Sordyl, J.; Ryguła, A. Long-term urban traffic monitoring based on wireless multi-sensor network. Open Eng. 2020, 10, 197–208. [Google Scholar] [CrossRef]
  4. Lin, Y.; Li, Q.; Lyu, D.; Wang, X. A Review of Wi-Fi-Based Traffic Detection Technology in the Field of Intelligent Transportation Systems. Buildings 2022, 12, 428. [Google Scholar] [CrossRef]
  5. Zheng, L.; Sayed, T. Comparison of Traffic Conflict Indicators for Crash Estimation using Peak Over Threshold Approach. Transp. Res. Rec. 2019, 2673, 493–502. [Google Scholar] [CrossRef]
  6. Zhang, R.; Song, L.; Jaiprakash, A.; Talty, T.; Alanazi, A.; Alghafis, A.; Biyabani, A.A.; Tonguz, O. Using Ultra-Wideband Technology in Vehicles for Infrastructure-free Localization. In Proceedings of the 2019 IEEE 5th World Forum on Internet of Things (WF-IoT), Limerick, Ireland, 15–18 April 2019; pp. 122–127. [Google Scholar] [CrossRef]
  7. Johnsson, C.; Laureshyn, A.; Dágostino, C. A relative approach to the validation of surrogate measures of safety. Accid. Anal. Prev. 2021, 161, 106350. [Google Scholar] [CrossRef]
  8. Astarita, V.; Festa, D.C.; Giofrè, V.P.; Guido, G.; Vitale, A. The use of Smartphones to assess the Feasibility of a Cooperative Intelligent Transportation Safety System based on Surrogate Measures of Safety. Procedia Comput. Sci. 2018, 134, 427–432. [Google Scholar] [CrossRef]
  9. Heinrich, A.; Krollmann, S.; Putz, F.; Hollick, M. Smartphones with UWB: Evaluating the Accuracy and Reliability of UWB Ranging. arXiv 2023, arXiv:2303.11220. [Google Scholar]
  10. Hasan, R.; Hoque, M.A.; Karim, Y.; Griffin, R.; Schwebel, D.C.; Hasan, R. Someone to Watch Over You: Using Bluetooth Beacons for Alerting Distracted Pedestrians. IEEE Internet Things J. 2022, 9, 23017–23030. [Google Scholar] [CrossRef]
  11. Machey, A. BLE Beacons for Proximity-Based and Location-Based Services. Master’s Thesis, The University of Guelph, Guelph, ON, Canada, 2019. [Google Scholar]
  12. Mohammadi, S.; Ismail, K.; Ghods, A.H. Investigating Wi-Fi, Bluetooth, and Bluetooth Low-Energy Signal Characteristics for Integration in Vehicle–Pedestrian Collision Warning Systems. Sustainability 2021, 13, 10823. [Google Scholar] [CrossRef]
  13. Smith, S.; Rubinstein, Z. Safe Intersection Crossing for Pedestrians with Disabilities. Mobility21 Project # 40459.14.1080376; 2021. Available online: https://ppms.cit.cmu.edu/media/project_files/Final_Report_-_333.pdf (accessed on 15 August 2022).
  14. Vadakpat, G.; Smith, S.F.; Rubinstein, Z.B.; Dias, M.B. Technology to Make Signalized Intersections Safer for Pedestrians with Disabilities. Public Roads 2021, 84, 17–21. Available online: https://www.fhwa.dot.gov/publications/publicroads/21winter/index.cfm (accessed on 10 March 2023).
  15. Dardari, D.; Decarli, N.; Guerra, A.; Al-Rimawi, A.; Puchades, V.M.; Prati, G.; De Angelis, M.; Fraboni, F.; Pietrantoni, L. High-Accuracy Tracking Using Ultrawideband Signals for Enhanced Safety of Cyclists. Mob. Inf. Syst. 2017, 2017, 8149348. [Google Scholar] [CrossRef]
  16. Zheng, L.; Ismail, K.; Meng, X. Traffic conflict techniques for road safety analysis: Open questions and some insights. Can. J. Civ. Eng. 2014, 41, 633–641. [Google Scholar] [CrossRef]
  17. Wu, J.; Rawdan, E.; Abou-Senna, H. Assessment of pedestrian-vehicle conflicts with different potential risk factors at midblock crossings based on driving simulator experiment. Adv. Transp. Stud. Transp. Res. Rec. 2017, 44, 33–46. [Google Scholar]
  18. Paul, M.; Ghosh, I. Development of conflict severity index for safety evaluation of severe crash types at unsignalized intersections under mixed traffic. Saf. Sci. 2021, 144, 105432. [Google Scholar] [CrossRef]
  19. Ozbay, K.; Yang, H.; Bartin, B.; Mudigonda, S. Derivation and Validation of New Simulation-Based Surrogate Safety Measure. Transp. Res. Rec. 2008, 2083, 105–113. [Google Scholar] [CrossRef]
  20. Huang, S.; Yang, J.; Eklund, F. Evaluation of remote pedestrian sensor system based on the analysis of car-pedestrian accident scenarios. Saf. Sci. 2008, 46, 1345–1355. [Google Scholar] [CrossRef]
  21. Visuri, A.; Hamberg, J.; Peltonen, E. Exploring the effects of below-freezing temperatures on smartphone usage. Pervasive Mob. Comput. 2022, 79, 101509. [Google Scholar] [CrossRef]
  22. Garcia, G.E. On the Trade-Off Between Uncertainty and Delay in UWB and 5G Localization. Ph.D. Thesis, Chalmers University of Technology Göteborg, Sweden, 2018. [Google Scholar]
  23. Zhou, N.; Lau, L.; Bai, R.; Moore, T. A Robust Detection and Optimization Approach for Delayed Measurements in UWB Particle-Filter-Based Indoor Positioning. Navigation 2022, 69, navi.514. [Google Scholar] [CrossRef]
  24. Hao, Z.; Li, B.; Dang, X. A Method for Improving UWB Indoor Positioning. Math. Probl. Eng. 2018, 2018, 8740872. [Google Scholar] [CrossRef]
  25. Zhang, D. Ultra-Wideband Ranging for In-Vehicle Smartphone Positioning. Unpublished. Master’s Thesis, University of Calgary, Calgary, AB, Canada, 2021. Available online: http://hdl.handle.net/1880/113426 (accessed on 10 March 2023).
  26. Zhou, W.; Liu, L. Adaptive Cubature Kalman Filter Based on the Expectation-Maximization Algorithm. IEEE Access 2019, 7, 158198–158206. [Google Scholar] [CrossRef]
  27. Lee, M.J.L.; Su, M.; Hsu, L.-T. Wi-Fi, CCTV and PDR Integrated Pedestrian Positioning System. 2022. Available online: https://ceur-ws.org/Vol-3248/paper22.pdf (accessed on 10 March 2023).
Figure 1. Flowchart showing the Mixed TTC calculation procedure.
Figure 1. Flowchart showing the Mixed TTC calculation procedure.
Sensors 23 04171 g001
Figure 2. Screenshots of the safety application showing different risk levels for three different hazardous situations.
Figure 2. Screenshots of the safety application showing different risk levels for three different hazardous situations.
Sensors 23 04171 g002
Figure 3. (a) The phone mounted on a tripod shows an external recording camera and an approaching vehicle. (b) The beacon is mounted on the front right part of the vehicle.
Figure 3. (a) The phone mounted on a tripod shows an external recording camera and an approaching vehicle. (b) The beacon is mounted on the front right part of the vehicle.
Sensors 23 04171 g003
Figure 4. Magnified view of the safety application during the experiment.
Figure 4. Magnified view of the safety application during the experiment.
Sensors 23 04171 g004
Figure 5. (a,b) Apparent effect of extended exposure to cold weather on the phone (iPhone 13 Pro Max).
Figure 5. (a,b) Apparent effect of extended exposure to cold weather on the phone (iPhone 13 Pro Max).
Sensors 23 04171 g005
Figure 6. Indoor experimental setup showing (a) weather conditions, (b) a mounted phone and an approaching vehicle, and (c) a beacon mounted on the front right part of the vehicle.
Figure 6. Indoor experimental setup showing (a) weather conditions, (b) a mounted phone and an approaching vehicle, and (c) a beacon mounted on the front right part of the vehicle.
Sensors 23 04171 g006
Figure 7. (a) Average speed over time. (b) Distance over time. (c) TTC profiles over time.
Figure 7. (a) Average speed over time. (b) Distance over time. (c) TTC profiles over time.
Sensors 23 04171 g007aSensors 23 04171 g007b
Figure 8. (a,c) Recordings of the camera view from inside the vehicle and from a roadside camera at times before and after the notification triggers. Notice the flash sent by phone in (b). Notice the color-coded notification in (d) at the same moment. Notice the synchronized clocks in both cameras.
Figure 8. (a,c) Recordings of the camera view from inside the vehicle and from a roadside camera at times before and after the notification triggers. Notice the flash sent by phone in (b). Notice the color-coded notification in (d) at the same moment. Notice the synchronized clocks in both cameras.
Sensors 23 04171 g008
Figure 9. Sample notification sent to a connected smartwatch.
Figure 9. Sample notification sent to a connected smartwatch.
Sensors 23 04171 g009
Figure 10. (a) Sensitivity vs. specificity over the TTC threshold. (b) The accuracy.
Figure 10. (a) Sensitivity vs. specificity over the TTC threshold. (b) The accuracy.
Sensors 23 04171 g010
Figure 11. Smoothing filters used on (a) Average speed over time. (b) Difference in distance over time. (c) TTC profiles over time.
Figure 11. Smoothing filters used on (a) Average speed over time. (b) Difference in distance over time. (c) TTC profiles over time.
Sensors 23 04171 g011
Table 1. Sample of raw data for distance measurements.
Table 1. Sample of raw data for distance measurements.
FingerprintDate and TimeBeacon Estimated Distance (m)Actual Distance (m)
Beacon 12022-12-26_09:54:04-8881.011.00
Beacon 12022-12-26_09:54:05-1931.11.00
Beacon 12022-12-26_09:54:05-5061.11.00
Beacon 12022-12-26_09:54:05-8121.131.00
Beacon 12022-12-26_09:54:06-1161.131.00
Beacon 12022-12-26_09:54:06-4271.111.00
Beacon 12022-12-26_09:54:06-7281.11.00
Beacon 12022-12-26_09:54:07-0431.121.00
Beacon 12022-12-26_09:54:07-3561.111.00
Beacon 12022-12-26_09:54:07-6731.121.00
Table 2. A sample of raw data for distance measurements.
Table 2. A sample of raw data for distance measurements.
Actual Distance (m)Average UWB Beacon Distance (m)MAPE (%)MAPE (m)Number of Detections per Minute
1.001.1010.930.10178
3.002.990.400.01194
10.009.970.240.03194
15.0014.990.150.01196
20.0019.990.080.01197
25.0025.050.220.0549
Average 2.000.03168
Table 3. Number of trials at various speed limits and in indoor/outdoor settings.
Table 3. Number of trials at various speed limits and in indoor/outdoor settings.
Speed (km/h)OutdoorFailuresIndoorFailures
3153151
5349160
10311150
15253150
Total10516611
Table 4. A sample of raw data recorded in the safety application during a sample trial.
Table 4. A sample of raw data recorded in the safety application during a sample trial.
Trial 5
Time Acceleration   ( m / s 2 ) Moving Average Speed (m/s)Distance (m)Modified Time-to-Collision (s)Mixed Time-to-Collision (s)Previous Speed (m/s)Spot Speed (m/s)Time-to-Collision (s)
19:59:12-4181.591.5523.584.559.871.221.8915.19
19:59:12-7781.652.1522.724.117.341.892.4110.58
19:59:13-1371.432.6621.673.966.062.412.918.15
19:59:13-4941.103.0520.533.945.342.913.196.73
19:59:13-8610.363.1819.374.785.433.193.186.08
19:59:14-218−0.123.1418.266.626.223.183.115.81
19:59:14-578−0.313.0317.195.675.673.112.965.67
19:59:14-938−0.382.8916.175.595.592.962.835.59
19:59:15-297−0.152.8415.156.455.902.832.855.34
19:59:15-658−0.142.7914.175.955.522.852.735.08
19:59:16-018−0.052.7713.154.994.872.732.814.75
19:59:16-378−0.642.5412.344.864.862.812.274.86
19:59:16-738−0.262.4511.394.664.662.272.624.66
19:59:17-0980.202.5210.523.653.912.622.424.18
19:59:17-6033.153.668.751.471.932.424.902.39
19:59:17-8207.9210.298.750.680.7612.288.290.85
19:59:18-180−13.785.327.901.491.498.292.351.49
19:59:18-535−8.412.337.083.043.042.352.313.04
19:59:18-896−0.032.326.252.742.722.312.332.70
19:59:19-254−0.022.315.422.372.362.332.292.35
19:59:19-574−0.212.244.722.372.232.292.192.10
19:59:19-9320.802.533.691.221.342.192.871.46
19:59:20-2222.333.203.690.871.012.873.541.15
19:59:20-524−2.542.443.291.351.353.541.331.35
19:59:20-877−3.881.073.012.812.811.330.812.81
19:59:21-181−1.520.612.884.754.750.810.414.75
19:59:21-489−1.350.192.8915.2215.220.41−0.0315.22
Table 5. Average measurements from all trials were recorded at notification alert.
Table 5. Average measurements from all trials were recorded at notification alert.
Approaching Vehicle Target Speed (km/h) Acceleration   ( m / s 2 ) Moving Average Speed (m/s)Distance (m)Modified Time-to-Collision (s)Mixed Time-to-Collision (s)Previous Speed (m/s)Spot Speed (m/s)Time-to-Collision (s)
32.051.574.461.742.441.062.083.14
51.931.985.741.952.561.612.353.16
103.173.7712.761.962.653.024.523.35
153.554.9215.441.912.534.525.333.15
Table 6. The estimated distances, speeds, and TTC from the cameras at the moment of trigger.
Table 6. The estimated distances, speeds, and TTC from the cameras at the moment of trigger.
TrialSpeed (m/s)Longitudinal Distance (m)Oblique Distance (m)Estimated TTC from Cameras (s)TTC from UWB Beacon (s)Absolute Difference (s)
12.507.57.703.083.410.33
22.777.57.702.783.130.35
32.777.07.222.603.090.49
43.331515.104.543.101.44
52.507.57.703.082.390.69
63.0512.512.624.143.610.53
72.777.57.702.783.320.54
82.777.07.222.603.460.86
92.778.08.192.963.250.29
102.778.08.192.963.230.27
112.777.07.222.602.020.58
122.7717.517.596.353.792.56
132.778.08.192.963.110.15
142.778.08.192.963.510.55
152.7712.512.624.563.840.72
Table 7. The estimated distances, speeds, and TTC from cameras and the UWB beacon from Trials 1 to 8.
Table 7. The estimated distances, speeds, and TTC from cameras and the UWB beacon from Trials 1 to 8.
UWB Beacon MeasurementsGround Truth Data from CameraAbsolute Difference in Distance (m)Absolute Difference in Speed (m/s)Absolute Difference in TTC (s)
TrialMoving Average Speed (m/s)Distance (m)TTC (s)Moving Average Speed (m/s)Distance (m)TTC (s)
12.91021.0307.2601.942010.290.950.963.03
2.92016.0255.5053.33154.500.920.411.01
2.97511.5253.8803.06103.271.370.080.61
2.1105.8402.7752.5052.000.540.390.78
22.29520.5859.0151.392014.400.510.915.39
2.70015.9205.9202.50156.000.820.200.08
2.83512.6454.4902.78103.602.490.060.89
2.7455.8002.1302.7851.800.500.030.33
32.66021.3158.3852.22209.001.240.440.62
2.39515.7106.5752.78155.400.610.381.18
2.54511.5054.5952.78103.601.350.231.00
3.1707.9752.5752.5052.002.680.670.58
43.02521.3107.0602.22209.001.230.801.94
5.37016.1903.7853.33154.501.092.040.72
2.99511.6553.9052.78103.601.500.220.31
2.4506.6002.7002.5052.001.300.050.70
52.85521.1007.4402.22209.001.020.631.56
2.86515.6605.4653.06154.910.560.190.56
2.49511.8654.7602.78103.601.710.281.16
2.3155.8352.5252.5052.000.540.190.53
63.21020.4257.1851.392014.400.351.827.22
2.90015.3805.3453.06154.910.280.160.44
2.48010.5954.3552.78103.600.440.300.76
2.2455.9652.6702.7851.800.670.530.87
72.40522.1309.2102.50208.002.050.091.21
2.68015.1255.7002.78155.400.020.100.30
2.62011.7654.5702.78103.601.610.160.97
1.8605.7353.1402.7851.800.440.921.34
82.64020.8158.0901.942010.330.740.702.20
2.71515.4155.6752.78155.440.310.060.27
2.76510.9704.0202.78103.650.820.010.42
2.3255.5552.4202.7851.910.260.450.62
Table 8. The estimated distances, speeds, and TTC from cameras and the UWB beacon from Trials 9 to 15.
Table 8. The estimated distances, speeds, and TTC from cameras and the UWB beacon from Trials 9 to 15.
UWB Beacon MeasurementsGround Truth Data from CameraAbsolute Difference in Distance (m)Absolute Difference in Speed (m/s)Absolute Difference in TTC (s)
TrialMoving Average Speed (m/s)Distance (m)TTC (s)Moving Average Speed (m/s)Distance (m)TTC (s)
92.90521.7057.7052.50208.031.630.410.30
3.05015.7755.2153.06154.940.670.010.31
2.51511.7704.7502.78103.651.620.261.15
2.3105.6402.4652.7851.910.340.470.67
103.32020.7456.5302.22209.030.671.102.47
3.07015.8005.1852.78155.440.700.290.22
2.81511.6604.1452.78103.651.510.040.54
2.4605.8552.4102.7851.910.560.320.61
113.71020.6555.7151.942010.330.581.774.57
3.04515.8055.2603.06154.940.700.010.35
2.58011.2954.4152.78103.651.140.200.82
2.4355.9652.4902.7851.910.670.340.69
124.98021.0754.3202.50208.031.002.483.68
2.65016.2506.2152.78155.441.150.130.82
3.51010.7353.1402.78103.650.580.730.46
1.8305.5553.0502.5052.120.260.671.05
132.29521.3659.3202.22209.031.290.070.32
2.44515.6706.4202.50156.040.570.060.42
3.08011.2453.7152.78103.651.090.300.12
2.2456.0852.7152.7851.910.790.530.92
142.85520.9757.3702.22209.030.900.631.63
2.99515.7805.2752.78155.440.680.220.13
2.69510.9404.1202.78103.650.790.080.52
2.2605.6452.5152.5052.120.350.240.52
152.62020.6208.1101.942010.330.540.682.18
3.10015.1555.1552.78155.440.050.320.25
3.04511.1103.9402.78103.650.960.270.34
2.2005.5152.5102.5052.120.220.300.51
The mean absolute differences0.880.461.1
Table 9. Classification table for the reported TTC and UWB TTC.
Table 9. Classification table for the reported TTC and UWB TTC.
Reported TTC
<3 s>3 s
UWB TTC<3 s130
>3 s246
Table 10. Absolute mean difference of TTC (raw UWB measurements).
Table 10. Absolute mean difference of TTC (raw UWB measurements).
Difference in TTC at Each Distance20 m15 m10 m5 m
UWB MeasurementsTrial 13.031.010.610.78
Trial 25.390.080.890.33
Trial 30.621.181.000.58
Trial 41.940.720.310.70
Trial 51.560.561.160.53
Trial 67.220.440.760.87
Trial 71.210.300.971.34
Trial 82.200.270.420.62
Trial 90.300.311.150.67
Trial 102.470.220.540.61
Trial 114.570.350.820.69
Trial 123.680.820.461.05
Trial 130.320.420.120.92
Trial 141.630.130.520.52
Trial 152.180.250.340.51
Average error at each distance2.550.470.670.71
Average Error Excluding Errors at a distance of 20 m = 0.62 s
Table 11. Absolute mean difference of TTC (after applying the Kalman Filter).
Table 11. Absolute mean difference of TTC (after applying the Kalman Filter).
Difference in TTC at Each Distance20 m15 m10 m5 m
Kalman FilterTrial 12.220.830.920.78
Trial 24.630.151.090.33
Trial 30.491.111.140.58
Trial 40.970.900.580.70
Trial 50.230.660.960.53
Trial 65.880.211.000.87
Trial 71.582.501.161.34
Trial 81.440.171.000.62
Trial 90.940.321.300.67
Trial 101.810.080.780.61
Trial 114.210.600.880.69
Trial 122.090.880.031.05
Trial 131.350.500.720.92
Trial 141.080.311.190.52
Trial 151.080.660.440.51
Average error at each distance2.000.660.880.88
Average Error Excluding Errors at a distance of 20 m = 0.81 s
Table 12. Absolute mean difference of TTC (after applying the Moving Average Filter).
Table 12. Absolute mean difference of TTC (after applying the Moving Average Filter).
Difference in TTC at Each Distance20 m15 m10 m5 m
Moving AverageTrial 12.880.970.620.74
Trial 25.430.700.940.30
Trial 31.261.160.950.87
Trial 41.930.450.350.74
Trial 51.540.551.560.38
Trial 66.440.350.960.86
Trial 70.381.531.721.33
Trial 82.480.332.350.60
Trial 90.550.291.850.69
Trial 102.570.221.150.53
Trial 114.760.530.820.66
Trial 121.070.650.560.86
Trial 130.220.391.960.91
Trial 141.560.092.400.51
Trial 152.511.730.050.53
Average error at each distance2.370.661.220.70
Average Error Excluding Errors at a distance of 20 m = 0.86 s
Table 13. Absolute mean difference of TTC (after applying the Lowess Filter).
Table 13. Absolute mean difference of TTC (after applying the Lowess Filter).
Difference in TTC at Each Distance20 m15 m10 m5 m
Lowess FilterTrial 12.680.560.930.37
Trial 25.810.451.000.55
Trial 31.950.120.620.56
Trial 40.780.401.161.06
Trial 52.530.560.120.00
Trial 68.800.390.081.64
Trial 72.310.280.811.67
Trial 82.050.310.061.59
Trial 92.191.931.741.59
Trial 102.620.090.300.54
Trial 112.110.282.230.41
Trial 122.840.220.531.18
Trial 130.201.411.720.45
Trial 141.190.360.290.61
Trial 152.030.620.050.98
Average error at each distance2.670.530.770.88
Average Error Excludig Errors at a distance of 20 m = 0.73 s
Table 14. Comparison between the Mean Absolute Error in TTC for all types of Filtering used.
Table 14. Comparison between the Mean Absolute Error in TTC for all types of Filtering used.
Mean Absolute Error of TTC at Each DistanceOriginal UWB EstimationKalman FilterMoving AverageLowess
20 m2.552.002.372.67
15 m0.470.660.660.53
10 m0.670.881.220.77
5 m0.710.880.70.88
Average Error Excluding Errors at 20 m0.620.810.860.73
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

Fakhoury, S.; Ismail, K. Improving Pedestrian Safety Using Ultra-Wideband Sensors: A Study of Time-to-Collision Estimation. Sensors 2023, 23, 4171. https://doi.org/10.3390/s23084171

AMA Style

Fakhoury S, Ismail K. Improving Pedestrian Safety Using Ultra-Wideband Sensors: A Study of Time-to-Collision Estimation. Sensors. 2023; 23(8):4171. https://doi.org/10.3390/s23084171

Chicago/Turabian Style

Fakhoury, Salah, and Karim Ismail. 2023. "Improving Pedestrian Safety Using Ultra-Wideband Sensors: A Study of Time-to-Collision Estimation" Sensors 23, no. 8: 4171. https://doi.org/10.3390/s23084171

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