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
and
, respectively. For simplicity, the time series corresponds to time measurements
that start at the current moment, such that
. 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
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
and the pedestrian will travel distance
. If the current speeds of the vehicle and the pedestrian can be denoted as
and
, 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,
is also a time series that can be projected using the current rate of change in the relative distance such that
. 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:
where,
Please note that is the relative speed between the two road users measured at the time of estimating TTC and is constant (following the assumption that both and 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 , where 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 . 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, 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.