Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
Transitioning to a Low-Carbon Lifestyle? An Exploration of Millennials’ Low-Carbon Behavior—A Case Study in China
Previous Article in Journal
Integrating Smart City Principles in the Numerical Simulation Analysis on Passive Energy Saving of Small and Medium Gymnasiums
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhancing Cycling Safety in Smart Cities: A Data-Driven Embedded Risk Alert System

by
José Miguel Ferreira
1,† and
Daniel G. Costa
1,2,*,†
1
FEUP, Faculty of Engineering, University of Porto, 4200-465 Porto, Portugal
2
SYSTEC-ARISE, Faculty of Engineering, University of Porto, 4200-465 Porto, Portugal
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Smart Cities 2024, 7(4), 1992-2014; https://doi.org/10.3390/smartcities7040079
Submission received: 14 June 2024 / Revised: 23 July 2024 / Accepted: 24 July 2024 / Published: 26 July 2024

Highlights

What are the main findings?
  • A low-cost embedded safety system is proposed to alert cyclists when they are crossing high-risk urban zones.
  • Open geospatial data are used to compute risk levels, which are then reformatted and embedded to support quick risk alerting.
What is the implication of the main finding?
  • Cycling safety is enhanced by providing timely alerts to cyclists when they are in areas with poorer access to emergency assistance.
  • The proposed approach is open, scalable, and cost-effective in terms of both hardware and software, facilitating easy reproduction.

Abstract

:
The safety of cyclists on city streets is a significant concern, particularly with the rising number of accidents in densely populated areas. Urban environments present numerous challenges, such as complex road networks and heavy traffic, which increase the risk of cycling-related incidents. Such concern has been recurrent, even within smart city scenarios that have been focused on only expanding the cycling infrastructure. This article introduces an innovative low-cost embedded system designed to improve cycling safety in urban areas, taking geospatial data as input. By assessing the proximity to emergency services and utilizing GPS coordinates, the system can determine the indirect current risk level for cyclists, providing real-time alerts when crossing high-risk zones. Built on a Raspberry Pi Zero board, this solution is both cost-effective and efficient, making it easily reproducible in various urban settings. Preliminary results in Porto, Portugal, showcase the system’s practical application and effectiveness in enhancing cycling safety and supporting sustainable urban mobility.

1. Introduction

The rapid increase in urban population and resulting negative effects have demanded careful attention to the future of large urban centers, highlighting the need for new initiatives to address environmental and social challenges in cities [1,2]. In fact, concerns about degrading environmental conditions, social inequality, rising crime indices, long-term pollution, and urban mobility inefficiency, among others, have been recurrent in major urban areas worldwide [3]. Moreover, with the intensive impacts of climate change in cities, these problems should be more stringent in coming years [4,5]. As a result, these challenges have fostered new perceptions of how urban services should be rethought and improved.
The aforementioned challenges have been central to the development of smart city initiatives, with recent efforts addressing various urban issues. Supported by an evolving technological landscape, smart cities are being promoted as a key resource for mitigating the negative impacts of urbanization and climate change, with green energy production and sustainable resource management gaining momentum [1,6]. While reducing greenhouse gas emissions and overall pollution remains crucial, urban mobility is also undergoing significant transformation driven by smart city initiatives, although many challenges persist in technological, governance, urban planning, and citizens acceptance domains [7,8,9]. This transformation is paving the way for new advancements in urban transportation, with cycling receiving increased attention recently.
Sustainable transportation has been largely promoted as a way to alleviate some of the negative effects of urbanization, while also promoting better ways of living [10,11,12]. In this scenario, cycling has being regarded as an environmentally sustainable and health-conscious mode of transportation, becoming increasingly popular among urban commuters [13]. Despite these benefits, the safety of cyclists on city streets remains a critical concern, especially as accidents become more prevalent [14,15]. Actually, complex road networks and heavy traffic are some of the most common threats to cyclists, which have demanded more attention from the governments when planning and developing safer cycling infrastructure [16,17].
There are numerous risk factors associated with cycling accidents. Reckless behavior and failure to obey traffic signals can lead to accidents of varying severity, being then a common target of governments to improve safety [18]. In parallel, the presence of proper cycling infrastructure, such as dedicated bike lanes, is also linked to enhanced safety [19,20]. Yet, accidents still occur, underscoring the necessity for efficient emergency response systems. Access to prompt medical treatment and rescue services is indeed crucial following cycling accidents.
When cyclists are moving in a city, a critical element is the choosing of the route to follow [21,22]. The route selection procedure can be performed in a more strict way, indicating a segment-by-segment path to follow from an origin to a destination, or it may highlight areas to avoid or approach with caution, identified as danger zones. Selecting of safer cycling routes concerning existing infrastructure is also possible [23,24], as well as the computation of an index of bikeability when suggesting proper routes [25]. In all these cases, open data can be exploited to augment the general quality perception of a route. Some researchers have been studying and developing data-driven methods for such processing tasks, for different parameters, although most proposals have centered on data that are not publicly or easily available for every city, potentially constraining their practical adoption [26,27].
Therefore, considering the increasing availability of open geospatial data, we propose an innovative methodology that extracts valuable information from a previously computed dataset in order to guide safer cycling. Such a dataset defines a spatial urban risk perception according to the existing emergency response infrastructure in a city, which is computed by the CityZones tool [28]. An emergency response infrastructure is any public service that will have some utility during an urban emergency, which may be a traffic accident, a gas explosion, the fall of a tree, flooding after heavy rains, or any critical event that negatively affects the inhabitants. The nature of each of these infrastructures, referred as a Point of Interest (PoI), will vary considerably among cities, but it is reasonable to expect that hospitals, police stations, fire departments, Emergency Medical Services (EMS) centers, emergency shelters, disaster response centers, and metro stations will be common types of PoIs in modern cities.
When concerning cycling accidents, which are a type of urban emergency [29], some PoIs may be more relevant when attending victims (cyclists, drivers, and pedestrians) and relieving indirect consequences resulted from increased traffic that could lead to a chain of accidents. Among them, hospitals, EMS centers, and transit agents stations will be PoIs with higher relevance. Taking these types of infrastructure into account, cyclists might be alerted when they are far from those PoIs, since it will take longer, on average, to be assisted after an accident. Doing so, we exploit a data-driven risk assessment approach to provide a particular perception of bikeability centered on how bad it would be if a cyclist suffers an accident. Actually, we are not concerned in avoiding an accident, but only in identifying regions that provide the worst average response when an accident already occurred, alerting a cyclist to be more careful when moving through such regions. Such a bikeability index in the form of a risk factor is dynamically computed on each bicycle by our proposed embedded system.
This article defines a new approach composed of two main blocks: an offline preprocessing algorithm designed to reformat an urban risk map exported by the CityZones tool [28], referred as the Preprocessing module, and the SafeCycling embedded unit that dynamically processes GPS positions against that risk map to generate visual and audible warning signals. A prototype of this embedded unit was developed around the Raspberry Pi Zero board, along with auxiliary hardware components. Our solution computes risk levels locally as the cyclist moves, leveraging the proposed preprocessing algorithm that efficiently reorganizes geospatial data, then supporting the emission of quick alerts on short periods. A proper 3D-printed case was also developed to allow easy attachment of the SafeCycling unit onto a regular bicycle. All developed codes and models are provided at an open repository to support easy reproduction.
In summary, the contributions of this article are described as follows:
  • Multi-domain data exploitation for smart cycling: Most works in the literature that have proposed quality assessment solutions for cycling infrastructure are based on more direct parameters, usually associated with the existence of proper bike lanes [16,30,31]. However, we believe that cycling quality assessment can also be performed by leveraging different smart city data. Our approach then presents a practical solution of cycling risk assessment based on data extracted from open datasets and then properly processed as geospatial risk indexes, reinforcing the importance of open datasets in smart cities;
  • Data formatting for large irregular maps: While data from multiple domains may be valuable when assessing cycling patterns, their structure may turn data searching into more time-consuming tasks. This is particularly true for large maps with geospatial metadata. Our approach proposes a flexible data indexing algorithm that allows reformatting of maps of any polygonal shape, particularly benefiting quick searching by resource-constrained hardware. This type of map-centered preprocessing based on the computation of efficient matrix-like indexes had not been approached before;
  • Implementing a low-cost system for cycling alert: The use of smartphones to convene useful information to cyclists is a common approach, but with some well-known practical limitations [32,33]. An alternative is embedding computational capabilities into low-cost systems that can be directly attached to bicycles. In this sense, although this embedding concept is not new, this article contributes to a practical implementation, which is openly accessible at https://github.com/daniel-gcosta/SafeCycling (accessed on 1 June 2024), being easily reproducible.
Finally, to enable a more comprehensive validation of our approach, we conducted a case study in Porto, Portugal. This study demonstrates the practical implementation and effectiveness of our proposed solution, which is expected to be suitable for any city worldwide given a proper CityZones risk map.
The remainder of this article is organized as follows. Section 2 presents some related works in the area of emergency management in smart cities. Fundamental definitions are present Section 3. Section 4 presents our proposed approach, while Section 5 details the performed experiments and the achieved results. Then, Section 6 presents our discussions and outlines research trends when exploiting our approach in real scenarios. Finally, conclusions and references are presented.

2. Related Works

When pursuing safer and more sustainable cycling in smart cities, different strategies might be adopted. With the advent of new technologies and data processing algorithms, new possibilities have emerged, opening up optimization opportunities in various fields. In recent years, approaches utilizing diverse software and hardware have shown varying levels of success, leading to the development of new smart cycling solutions relying on smartphones, smartwatches, embedded systems on bicycles, fixed sensor-based stations, drones, and more [12,13,34]. All of these initiatives aim to promote cycling as a sustainable, eco-friendly, safe, and reliable mode of transportation, encouraging the adoption of bicycles as a regular mobility alternative in our cities.
Since cycling can be enhanced from various perspectives, recent works have focused on addressing specific challenges using a range of technological resources. Consequently, solutions based on embedded sensors, smartphone-based crowdsensing, geospatial urban planning, visual data processing by artificial intelligence, mobile communications, and smart city integration, among other trends, have emerged with promising outcomes [35,36]. However, despite the remarkable number, complexity, and results of these recent solutions, challenges related to affordability, communication requirements, and energy autonomy persist. In these scenarios, we have focused on works that address cycling safety through different approaches, considering both the safety of cyclists while moving and the risk conditions of routes and selected cycling lanes.
The first important aspect that has been considered is accident mapping, prevention, and mitigation. In a nutshell, a cycling accident can be perceived as a type of urban emergency, with several works addressing emergency detection, alerting, and mitigation [29,37]. Among them, mitigation is related to rescue and medical assistance after an emergency happens, with different complexities to be handled [38].
An important factor of emergency mitigation is risk assessment. The idea is to assess the potential threats and vulnerabilities that cities face, while also taking some particularities provided by auxiliary systems like the Geographic Information System (GIS) [39,40,41]. In this sense, risk can be associated with the potential of negative consequences during critical situations, or more specifically, to the average efficiency of mitigation actions after a cycling accident occurs. Actually, for more specialized risk assessment in any city, a lot of urban parameters may be taken into consideration [28,42].
Another recent development trend is the integration of computational capabilities into bicycles for sensing, communication, and alerting procedures. With the advancement of the Internet of Things (IoT) paradigm and the concept of data-driven smart cities, embedded hardware platforms are being used within urban environments to support sensing and controlled actions. This trend has been also seen in bicycles [43,44] and associated cycling infrastructure [45,46], enriching the overall cycling ecosystem with a myriad of computational resources.
Upon conducting an extensive review of literature in this broad field, it was possible to identify several relevant works that could support the development of our approach in various ways. In fact, a significant trend identified in recent years involves integrating sensors and cameras into diverse devices, which has supported advancements in smart mobility through embedded systems. However, despite the promising benefits when equipping bicycles with embedded capabilities, including traditional and e-bikes, there remains an underexplored area in the adoption of GIS-based electronic solutions specifically designed for bicycles. These solutions hold considerable potential benefits when enhancing cycling safety in urban areas. In this sense, our proposed approach aims to address this research gap by focusing on enhancing the integration of a GIS-based assessment approach into bicycles, in real time, thereby optimizing safety, efficiency, and usability across urban environments.
Table 1 summarizes recent works that aim to improve the cycling experience, mostly centered on cycling safety and route planning. Although the concept of cycling experience may comprise several parameters that are also related to comfort and cycling pleasure [47], we are concerned with parameters that are more related with the proposed approach for comparison purposes. In this way, we have defined three comparison reference groups in this section: G1 for quality assessment of bike paths and cycling infrastructure, G2 for route planning and selection, and G3 for cycling safety.
Therefore, despite the availability of GIS databases and IoT-based embedded systems, it is reasonable to say that there are still improvements to make when leveraging these technologies for safer cycling, ranging from data acquisition challenges to actual processing on low-cost hardware platforms. For the proposed approach, a key contribution is the local knowledge of each city represented by an embedded risk map generated by the CityZones tool and processed by our preprocessing algorithm. In other words, while our solution is generic and suitable for any city, local knowledge of the target is the key element for risk assessment. This knowledge is a fine-tuned perspective of a city in terms of risk assessment and response to emergencies, which is a service not provided by previous works.

3. Materials and Methods

The growth of digital map databases that provide geospatial data on ground features has led to many new applications, especially in smart city projects [57,58]. One of these solutions is OpenStreetMap (OSM), a crowd-sourced geographic information resource. OSM offers free access to maps that can be viewed, queried, downloaded, and edited without copyright restrictions. Through spatial analysis capabilities, GIS databases enable the extraction of valuable information, aiding informed decision-making in urban planning, resource management, and infrastructure development. Overall, by providing a robust foundation for data management and analysis, GIS databases are essential in enhancing the efficiency and effectiveness of smart city initiatives in multiple ways, thus being the cornerstone of our approach.
Based on the OpenStreetMap, the CityZones tool [28] was created focusing on the concept of Points of Interest (PoI), notably hospitals, police stations, and fire departments. Each PoI serves as an “emergency response center” in a city, and almost every city in the world has some of these PoIs. Since the resilience of an area within a city can be linked to the presence and distances to these response centers [59], cycling safety can be associated with this indirect urban perception of risk.
The CityZones tool divides a city into a grid of disjoint Mitigation Zones (MZ). A MZ is a square area with a known location and that is classified into one of three risk levels: low (green), medium (yellow), or high (red). To determine the risk level of each zone, all PoIs are considered. For each zone, the distance to all PoIs is calculated, and the risk level is determined using a balanced equation described in [59]. The CityZones tool uses a natural logarithmic calculation based on the cumulative distance from each zone to all PoIs in a city, making it very useful for urban planning and risk assessment. Figure 1 presents an example of the CityZones tool with a computed risk map for the city of Madrid, Spain.
A PoI is defined by its GPS position at ( x c ( p ) , y c ( p ) ) for any given point of interest p P , where P is the set of PoIs, and | P | is the number of PoIs within the defined urban area. In fact, in scenarios with multiple PoIs, a weight value can be assigned to each one of them to reflect their importance in the assessment process. For example, fire brigades might be deemed more crucial than hospitals in a mitigation context, and thus given a higher weight. It is reasonable to expect that stakeholders and specialists will assign specific weights as needed.
The concept of zones is very versatile when enhancing safer cycling. Using small, square-shaped zones typically less than 100 m in size, a regular city will have thousands of them, with reasonable precision at acceptable computational cost. This is even more relevant when searching GPS coordinates and identifying the current bicycle is zone, since it is inherently time-consuming.
Therefore, by integrating all these concepts, urban parameters from various perspectives can offer crucial data for assessing the risk level of each zone, which is highly significant in practical terms. By approaching this in a data-driven, geospatial manner, we create a versatile method that can be easily applied to any city worldwide, provided the necessary parameters are available.

4. Proposed Approach

This article brings an innovative solution to alert cyclists when they are on riskier areas. This is performed by visual and auditory alerting of the risk associated with the zone a cyclist is currently crossing, aiming to enhance cyclist awareness and safety on the roads. For that, our approach is structured into two main components, focusing on the visualization and processing of large volumes of geospatial data. The risk of a zone is identified by the CityZones tool according to the balanced proximity to emergency response centers [28,59], with the computed zones being exported by that tool and imported into our embedded system as a CSV file.
Figure 2 depicts a schematic scenario for the proposed approach.
The two modules of our approach are named as PreProcessing and SafeCycling. The PreProcessing module handles the processing of large spatial datasets retrieved by the CityZones tool, enabling fast data retrieval. On the other hand, the SafeCycling module focuses on a quick search algorithm, identifying the current risk zone and alerting the cyclist properly.
The first module, PreProcessing, corresponds to the manipulation of data from the CityZones CSV file. For each geospatial coordinate found in the file, a unique identification index is assigned by that tool. This is the information that will be retrieved and processed by our embedded system. It is important to say that this module is executed previously, before initializing the embedded SafeCycling module.
The second module is responsible for capturing the cyclist’s current position. Doing so, it is possible to identify the city where the cyclist is located, conveying relevant information to the system and allowing the proper selection of the GIS dataset to be considered. In fact, multiple cities may be processed and stored into the embedded system, allowing a bicycle to be used in different cities without further configuration.
The SafeCycling module is composed of a series of hardware components: a GPS receiver, an LED bar, a buzzer, a battery, and a processing unit. Although we developed a prototype implementation of this module, any hardware configuration is possible since at least those components are present.
Figure 3 illustrates the operation flow of the proposed approach, highlighting the two proposed modules. As aforementioned, the first module executes on a regular computer and usually only once for any given risk map, while the second module will execute on every embedded system on a bicycle.

4.1. The PreProcessing Module

The PreProcessing module was designed to take a CSV file as input, provided by the CityZones tool, and convert it into a new processed CSV file. This new file aims to index each zone found in the CityZones original file to allow simpler and quicker linear search. This is necessary because risk maps may be modeled as irregular polygons in the form of a matrix, which necessitates some processing due to the linear format of the original file.
As depicted in Figure 1, the computed risk map may have any format, potentially making it costly to find accurate positioning within short intervals. Moreover, managing large spatial datasets presents challenges in organization, processing speed, and maintaining data integrity for continuous analysis. To address all these challenges, our solution focuses on an indexing technique to support quicker decision-making.
The CityZones CSV file follows a format of (lon,lat,r) for each computed zone, where lon and lat represent longitude and latitude of the center of a zone, respectively, while r is the computed risk level of that zone (3 for high, 2 for medium, and 1 for low). The primary objective of our approach is to reorganize this CSV data, exploiting a geometry model that fits any geographical configuration. Given that we have the coordinates of the center point of each zone, we can determine the bearing angle, θ , between different points using a specific Formulation (1). This angle provides us with the direction in which a point is located relative to another, allowing us to compute a grid-like perception of a city. In that equation, y Pc is the latitude of the first point found in the CityZones CSV file, and x Pc is the longitude.
θ = arctan y Pc y Point x Pc x Point × 180 π
For initializing the grid creation, the first step is to divide the CityZones CSV file into four quadrants, with P c as the reference point. The quadrants are defined as follows:
  • First quadrant: θ ∈ [0, 90];
  • Second quadrant: θ ∈ (90, 180];
  • Third quadrant: θ ∈ (−180, −90);
  • Fourth quadrant: θ ∈ [−90, 0).
After determining the quadrants, it was necessary to devise a method to index each point of the grid. As there cannot be any repeated points, otherwise the search process may yield errors due to identical index values for different points, reference points were calculated with a bearing angle θ equal to θ = 0°, θ = 90°, θ = 180°, and θ = −90°, relative to P c , which, in this case, will be the center of the grid.
Figure 4 illustrates how the indexing scheme was performed, with index i intersecting the x-axis and index j intersecting the y-axis.
After determining the reference lists and quadrants, we can move further to assigning the indexes. For each reference list, points are examined, respectively, above, below, or to the side, depending on the quadrant. Figure 5 depicts this process.
Taking the example of the first quadrant, depicted in Figure 5, for each point on the reference list intersecting the x-axis, all points immediately above it (i.e., where θ = 90°) are checked, and the index of the point belonging to the reference list is assigned. Similarly, for the reference list intersecting the y-axis, points where θ = 0° are examined, and the index of the point belonging to the reference list is assigned. The final result for the first quadrant, considering a regular four-sided polygon, is illustrated in Figure 5; this process is then repeated for all quadrants, proceeding sequentially counterclockwise until the entire grid is filled, as shown in Figure 6.
In the previous case, the simplest scenario involving a regular 4-sided polygon was examined. However, the CityZones tool can generate various shapes, even irregular polygons. Therefore, relying solely on points with angles of 90°, −90°, 0°, and 180° relative to P c may lead to an insufficient number of points.
Consider, for instance, a shape depicted in Figure 7, where the first point retrieved from the CSV file, P c , is shown in white, and the corresponding reference lists are depicted in red and blue. Without proper processing, it is anticipated that points colored light green will not be included in the final CSV file.
In order to handle those situations, it is necessary to consider not only points with specific angles relative to P c , but also those lacking angles on certain sides. For example, let us consider the scenario illustrated in Figure 7, where reference lists are established, and all points with angles θ = 90° or θ = 0° are selected. For each selected point, we examine whether there are any points with a 180° angle. If not, the point is added to the appropriate reference list. Thus, in this scenario, and considering Figure 8, points lacking angles on the left side will be added to the reference list for creating the i indexes. Conversely, if no angles are detected below ( θ = −90°), the point will be added to the reference list for creating the j indexes.
Finally, with the original CSV file from the CityZones tool mapped into a new CSV file that now also comprises i and j indexes to support easy creation of a more efficient data structure on the embedded system, we allow quicker searches with lower computational costs. This was performed by systematically analyzing the spatial relationships between points in the input dataset, saving resources when effectively executing our approach on the bicycle.

4.2. The SafeCycling Module

After processing the input CSV file as a new CSV file that better supports an optimized data structure, it is ready to be considered for an embedded system to be attached to a bicycle. The proposed hardware module includes a battery, an ON/OFF button, a LED bar, a buzzer, a GPS receiver, and a processing unit. Among these components, the most complex and costliest part is the processing unit, which may vary considerably ranging from low-cost Microcontrollers to powerful Single-Board Computers (SBC) [60,61]. Overall, selecting a hardware platform for smart city systems requires careful consideration of several criteria to ensure successful deployment, such as affordability, computational resources, and energy consumption.
Whatever is the hardware configuration, the SafeCycling module starts by fetching the current GPS coordinates and comparing it to the processed CSV file according to the defined algorithm. A new GPS position is gathered every 1 s, being immediately processed when a valid GPS position is achieved. In fact, 1 s is the interval for subsequent GPS readings and the entire processing (identifying the correct risk level and signaling it to the cyclist) is supposed to take less than 1 s (otherwise, the next GPS reading is skipped). Since the designed embedded solution was built to process risk and signal it in less than 1 s, this means that the unit will typically remain idle for some time until a new reading is performed. As an important comment, since GPS signal failures may happen, our algorithm pauses until a valid coordinate is gathered by the module because there is no need to proceed without a valid current GPS position.
Generally, the format of the coordinates retrieved by a GPS module will be in the National Marine Electronics Association (NMEA) format, corresponding to a series of comma-separated values, where each value represents a specific type of data. For retrieving GPS coordinates, the value typically returned by a GPS receiver module is a line that starts with the sentence identifier GPGGA, as exemplified in Figure 9.
The search and computation of the zone in which the cyclist is currently riding on requires determining the nearest center based on the cyclist’s coordinates and executing a swift search, typically accomplished within milliseconds. The calculation of distances between two points is performed using Haversine distance formula [62].
Figure 10 visually presents how actual distances are computed by the embedded system, for w as the width/height of a squared-shape zone, and max_d as the maximum distance from the center of the zone (the actual position exported by the CityZones tool) and the corner of the defined square.
While the risk map exported by the CityZones tool divides a city into equally distributed squares with the same side w, where each square corresponds to a zone risk, the distances between neighboring centers is equal to the side length of the squares (w). Thus, the easiest and quickest way to find the closest center, given an unknown GPS position of the cyclist, is by doing a circle approximation. However, using a circle approximation leads to uncertainty of results, because if the radius is equal to w / 2 , it will lead to a failure on the approximation once the square corners will be missed, as represent Figure 10. This can result in a misclassification of GPS coordinates that fall within the corner regions of the square zones. To address this issue, adjusting the radius of the circle approximation was considered using the Pythagorean theorem. In fact, Figure 10 shows two possible situations. In situations where four centers are found and all the distances are the same (red circle), it is simply chosen one of the centers with the highest risk level. However, situations with two or three centers may also be found (blue circle), leading our algorithm to choose the center with the smallest distance between the coordinate of the cyclist and the risk zone centers of the file. All this processing will be executed in the SafeCycling module.
Two distinct types of searches are performed. When the system is powered on, it lacks information about previous cycling activities, thus it is imperative to first retrieve the indexes from the closest center found. Then, having obtained the center indexes ( i , j ) in the initial iteration, a quick search is simply performed by expanding the search area around the initially found center. To achieve this, a list of indices is constructed, including not only the initial center but also the surrounding centers like a 3 × 3 matrix, as depicted in Figure 10.
Given that, at time t 0 , the cyclist is expected to be in zone 1, and shortly thereafter at time t 1 , they would not have traveled a significant distance from their previous location. Hence, expanding the search area around the initial center provides an effective way of capturing the cyclist’s updated position within a short timeframe.
After computation, the identified risk is displayed on the LED bar according to the color pattern: red for high risk, yellow for medium risk, and green for low risk. Moreover, every time the current risk is increased, the buzzer sounds for 2 s, helping to suggest a more cautious cycling pattern for the cyclist.
Finally, every GPS measure and corresponding computation is registered on a log file. The log file is essentially an output generated after each risk assessment. It serves the purpose of facilitating future processing, particularly for analyzing the results obtained from the cycling sessions. The log file is formatted in the CSV format, with the structure depicted in Figure 11.

5. Results

The primary objective of our proposed approach is to dynamically assess and display the risk level of the area where the cyclist is riding, providing warnings without disrupting the cycling activity. After the definition of our methodology, implementation of a real system and practical validation could be performed.

5.1. Developed Prototype

The developed embedded system was designed to have minimal impact on the bicycle and to be cost-effective in terms of both purchase and maintenance. To achieve these goals in the prototype, priority was given to selecting small and compact components.
Figure 12 illustrates the proposed hardware components.
In this prototype, we chose a visualization display (LED bar), a buzzer, and a GPS receiver following the Grove standard [63], making them easier to assemble. Moreover, this setting ensures low energy consumption and enhances safety by securing cables neatly within the Grove HAT, preventing any disruptions to the cycling experience caused by loose cables. The main processing unit is centered on a Raspberry Pi Zero W board, with a microSD card attached to it. This card will contain the Pi OS Lite system and the SafeCycling algorithms developed in Python, as well as a number of processed CSV files from the PreProcessing module (one for each target city). Finally, a 5 V power bank was used as battery. Table 2 provides the list of hardware components and the acquisition cost, totaling approximately USD 70 in 2024. This selection ensures that the prototype unit remains affordable while also boasting low energy consumption and adaptability.
The Raspberry Pi Zero W board was chosen to allow easy access through a wireless connection, but it is not mandatory. For any chosen Raspberry Pi Zero model, the 40-pins headers must be already soldered to allow the attachment of the Grove HAT. Furthermore, it is important to highlight that a considerable portion of the prototype is cost is attributed to the Grove standard. This standard was initially chosen for its support in facilitating rapid prototyping. However, for future versions, cost efficiency can be enhanced by utilizing more economical components directly interfaced with the Raspberry Pi Zero board through I2C/SPI connections.
The assembled and programmed module was designed to be protected by a specific 3D-printed case, which also had the intention to allow easy attachment to a regular bicycle. In order to avoid conflicts with the power source, in case it needs to be replaced, two cases were created: one for all the hardware components of the SafeCycling unit, and another only for the power source. This way, the power source can be charged without having to remove the SafeCycling unit from the bicycle.
Figure 13 presents the designed case to be attached to a bicycle, while Figure 14 presents the actual hardware assembling. In this initial version, water resistance was not considered and will be addressed in future implementations.
After assembling and proper programming, the SafeCycling module was ready to be attached to the bike. Figure 15 depicts the achieved configuration.
The entire implementation of the SafeCycling module, as well as configuration and installation details, are presented at https://github.com/daniel-gcosta/SafeCycling (accessed on 1 June 2024).

5.2. A Case Study

After implementing a prototype and attaching it onto a bicycle, it was ready to be evaluated in a real scenario. For that, at least one target city had to be selected in order to allow the generation of a risk map by the CityZones tool. The selected city was Porto, Portugal, a historic city situated along the banks of the Douro River. It is the second-largest city in Portugal, renowned for its cultural heritage, vibrant atmosphere, and economic significance, but with recurrent challenges in cycling [64]. Figure 16 presents the generated risk map for Porto and parts of surrounding cities, considering squared-shape zones with 100 m length and with hospitals being twice more relevant than other types of PoIs. This is due to the fact that hospitals can be assumed as more important during cycling accidents for the dispatching of EMS teams, but any other configuration of PoIs is possible.
The CSV file returned by the CityZones tool was named “porto.csv”, having the format depicted in Figure 17. The first line identifies the distance from the center to the side of the square, which was set at 50 m (zones with sides of 100 m).
The exported file contained 8208 computed risk zones and occupied approximately 322 KB. The next step after exportation was the manipulation of the file through the analysis of geospatial relationships between the various risk zones, following the proposed preprocessing algorithm.
Using Equation (1), it was possible to divide the quadrants and to identify the reference point lists for the creation of the matrix, as depicted in Figure 18. The blue and red arrows indicate the orientation of the index increments, which increase as they move away from the origin (black point) and follow a sequential logic in a counterclockwise direction.
For the considered input map, 463 zone centers were found in the first quadrant, 7745 in the second quadrant, and 0 in the third and fourth quadrants. The indices for the reference list j range from [0, 7] for the first quadrant and [8, 122] for the second, thus the j index takes values between [0, 122]. The indices for the reference list i range from [0, 71].
The final preprocessing step involves assigning each index to each point in the reference list j. The index value of that point is assigned to all points above it, while for the reference list i, the index value is assigned to points with a θ of 0° or 180° and subsequently intersected. The final result is also a CSV file with 8208 lines, following the format illustrated in Figure 19.
After the preprocessing of the risk map present Figure 16, some routes could be taken to allow the evaluation of the SafeCycling module. Figure 20 presents one of the results for an area around the Faculty of Engineering of the University of Porto, highlighting both the changes in risk levels (left) and the actual movement on a real map (right).
The missing data are resulted from loss of GPS signal. This factor was already anticipated by us, particularly due to the low-cost nature of the employed GPS hardware. Nevertheless, if a more efficient GPS receiver was adopted, this situation could be minimized.
Another result can be seen in Figure 21 for a longer route, this time highlighting the data structure of the processed risk map.
After experimentation, we could see that our approach performed as expected. The decision time after fetching a valid GPS coordinate was always below 300 ms, which we assumed as a very reasonable time. This allowed the SafeCycling unit to safely issue a new alert every second for the cyclist, which was our initial goal. Concerning the log file, every new line within a session file is 44 bytes, which imposes a very loose requirement for data storage. In fact, we recommend a microSD card for the Raspberry Pi Zero board sizing at least 16 GB, which is still very reasonable for the Pi OS Lite, eventual dependencies (defined in the GitHub repository), the SafeCycling code, the processed risk maps, and log files.
Regarding battery usage, all tests were conducted without constraints, but further assessment of energy consumption is still necessary. The prototype was designed with two independent 3D-printed cases, allowing for easy detachment of the 5 V power bank for recharging. By doing so, we favored a decoupled design of the SafeCycling module. Furthermore, while energy efficiency was not the primary focus of our approach, future investigations should also address this important aspect.

6. Discussions and Future Perspectives

The development of the SafeCycling system reflects several key trends in urban mobility and smart city initiatives, particularly the integration of Internet of Things (IoT) technologies. Utilizing geospatial data and real-time GPS tracking, embedded systems like SafeCycling offer dynamic risk assessments and alerts, enhancing safety and efficiency for urban cyclists. This trend highlights a growing emphasis on using IoT to create responsive, data-driven urban environments that adapt to the needs of residents in real time.
The selection of the Raspberry Pi Zero as the hardware base for SafeCycling underscores the trend towards creating cost-effective, scalable solutions for urban challenges. Low-cost hardware platforms enable the widespread deployment of safety-enhancing technologies, especially in budget-constrained municipalities. This democratization of technology ensures that innovative solutions can be widely adopted, promoting equitable access to safer urban infrastructure [65,66].
The use of open geospatial data are another significant trend. By leveraging publicly accessible datasets, similar projects might develop impacting solutions without relying on proprietary data sources. Such principle not only reduces costs, but also fosters collaboration and transparency in urban planning and development. Open data initiatives are becoming central to smart city strategies, enabling more informed decision-making and community engagement [67].
Integrating emergency response capabilities into urban safety systems is a notable trend. SafeCycling’s focus on the proximity to emergency services as a risk factor highlights a shift towards holistic safety strategies that encompass both prevention and response. As urban areas continue to grow, ensuring rapid access to emergency services is becoming a priority, prompting the development of integrated solutions that mitigate risks and enhance overall urban resilience [68].
In general, we can say that safe cycling is a comprehensive perception that involves multiple variables, directly or not associated with accidents. The proposed system aims to enhance cycling safety by enabling route selection based on the concept of emergency response infrastructures (risk zones). Doing so, cyclists could adjust their routes to avoid high-risk areas. While this is already implemented for a Raspberry Pi Zero board, the same algorithms could be executed in any hardware as a planning tool, and not necessarily as a real-time GPS-based solution. This flexibility enables cyclists to plan safer routes in advance using smartphones or smartwatches, leveraging the same underlying principles regardless of the device. This is an interesting trend that could leverage the algorithms developed in this work, since the principles would be the same.
Future research can explore more advanced data analytics and machine learning techniques to improve risk assessment accuracy. By analyzing larger datasets and incorporating additional variables like traffic patterns, weather conditions, and historical accident data, predictive models can be refined to offer more precise and context-aware risk alerts. Machine learning algorithms could continuously learn from new data, adapting and improving over time to provide increasingly reliable safety insights [69].
Extensive user-centered design and usability studies will be necessary to ensure that systems like SafeCycling are intuitive and effective for cyclists. Understanding user behavior, preferences, and interaction patterns will be crucial in designing interfaces and alert mechanisms that are easy to use and do not distract cyclists. Future research could involve field trials and feedback loops to iteratively improve the system based on real-world user experiences.
Integrating cycling safety systems with broader urban mobility and smart city ecosystems is another promising research direction [34]. This could include connections with public transportation networks, pedestrian safety systems, and vehicular traffic management. By creating a cohesive, interconnected urban mobility framework, cities can optimize overall transportation efficiency and safety, leveraging synergies between different modes of transport and infrastructure components.
Extending this discussion, applying the proposed solution in the context of shared bicycles could significantly enhance its practical usefulness and reach by providing real-time safety alerts to a broader user base. Shared bicycle systems are widely used in urban areas, and integrating the SafeCycling embedded unit into these bikes could offer immediate benefits to numerous cyclists, promoting safer travel routes and reducing accident risks. This implementation would allow users to receive dynamic visual and audible warnings about high-risk zones based on the city’s emergency response infrastructure, ensuring quicker access to help if needed. Moreover, as shared bicycles often attract tourists and casual riders unfamiliar with local routes, this technology could offer crucial guidance, making cycling in cities safer and more appealing. This approach might also leverage the extensive data from shared bicycle networks, potentially refining the system’s risk assessment algorithms further and enhancing urban mobility.
Future research should also focus on the scalability and adaptability of our approach across different urban contexts. Understanding how varying city layouts, infrastructure quality, and local regulations impact the system’s effectiveness will be important. Comparative studies across diverse urban environments can provide insights into necessary adjustments and enhancements, ensuring broad applicability [35].
Finally, exploring the policy and governance implications of deploying such technologies in urban areas is crucial. This includes examining regulatory frameworks, data privacy concerns, and the role of government and private sector partnerships in sustaining and scaling these innovations [26]. Understanding the interrelation between technology, policy, and urban governance will be critical in creating supportive environments for the widespread adoption of cycling safety systems and other smart city solutions. By addressing these future research directions, stakeholders can build on the initial successes of projects like ours, driving forward the vision of safer, smarter, and more sustainable urban mobility.

7. Conclusions

The integration of innovative technologies into urban environments represents a significant leap forward in addressing the safety challenges faced by cyclists in densely populated areas. By leveraging cost-effective hardware and open geospatial data, the system provides real-time risk assessments and alerts, thereby enhancing cyclist safety and promoting sustainable urban mobility. The preliminary success of the SafeCycling system in Porto, Portugal, underscores its practical applicability and the potential for widespread adoption in various urban settings.
Future research and development efforts must focus on refining our approach through advanced data analytics, machine learning, and user-centered design. By incorporating additional variables, we plan to enhance the efficiency of our systems when alerting about potential risks. Moreover, by understanding the interactions between technology, policy, and urban planning, we plan to develop potential guidelines for enhanced safety. We believe that our approach is an important initial step toward more sustainable cycling in smart cities, but new developments should improve its applicability.

Author Contributions

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

Funding

This research received no external funding.

Data Availability Statement

Dataset available upon request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Syed, A.S.; Sierra-Sosa, D.; Kumar, A.; Elmaghraby, A. IoT in Smart Cities: A Survey of Technologies, Practices and Challenges. Smart Cities 2021, 4, 429–475. [Google Scholar] [CrossRef]
  2. Samarakkody, A.; Amaratunga, D.; Haigh, R. Technological Innovations for Enhancing Disaster Resilience in Smart Cities: A Comprehensive Urban Scholar’s Analysis. Sustainability 2023, 15, 12036. [Google Scholar] [CrossRef]
  3. Singh, S.; Shukla, A.; Jain, K. Assessing the urbanization-induced impact on environmental parameters of a city from a remote-sensing perspective. Remote Sens. Appl. Soc. Environ. 2024, 34, 101169. [Google Scholar] [CrossRef]
  4. Alfieri, L.; Burek, P.; Feyen, L.; Forzieri, G. Global warming increases the frequency of river floods in Europe. Hydrol. Earth Syst. Sci. 2015, 19, 2247–2260. [Google Scholar] [CrossRef]
  5. Li, Z.; He, L.; Zhang, H.; Urrutia-Cordero, P.; Ekvall, M.K.; Hollander, J.; Hansson, L. Climate warming and heat waves affect reproductive strategies and interactions between submerged macrophytes. Glob. Change Biol. 2017, 23, 108–116. [Google Scholar] [CrossRef]
  6. Alam, T. Cloud-based IoT applications and their roles in smart cities. Smart Cities 2021, 4, 1196–1219. [Google Scholar] [CrossRef]
  7. Turoń, K.; Kubik, A.; Ševčovič, M.; Tóth, J.; Lakatos, A. Visual Communication in Shared Mobility Systems as an Opportunity for Recognition and Competitiveness in Smart Cities. Smart Cities 2022, 5, 802–818. [Google Scholar] [CrossRef]
  8. Anwar, A.H.M.M.; Oakil, A.T. Smart Transportation Systems in Smart Cities: Practices, Challenges, and Opportunities for Saudi Cities. In Smart Cities: Social and Environmental Challenges and Opportunities for Local Authorities; Belaïd, F., Arora, A., Eds.; Springer International Publishing: Cham, The Netherlands, 2024; pp. 315–337. [Google Scholar] [CrossRef]
  9. Garus, A.; Mourtzouchou, A.; Suarez, J.; Fontaras, G.; Ciuffo, B. Exploring Sustainable Urban Transportation: Insights from Shared Mobility Services and Their Environmental Impact. Smart Cities 2024, 7, 1199–1220. [Google Scholar] [CrossRef]
  10. D’Alberto, R.; Giudici, H. A sustainable smart mobility? Opportunities and challenges from a big data use perspective. Sustain. Futur. 2023, 6, 100118. [Google Scholar] [CrossRef]
  11. Belli, L.; Cilfone, A.; Davoli, L.; Ferrari, G.; Adorni, P.; Di Nocera, F.; Dall’Olio, A.; Pellegrini, C.; Mordacci, M.; Bertolotti, E. IoT-Enabled Smart Sustainable Cities: Challenges and Approaches. Smart Cities 2020, 3, 1039–1071. [Google Scholar] [CrossRef]
  12. Candia, S.; Francesca, P.; Ilenia, S. Sustainable urban mobility and urban safety and security: A case study of the city centre of Genoa, Italy. WIT Trans. Built Environ. 2019, 182, 187–198. [Google Scholar]
  13. Kosmidis, I.; Müller-Eie, D. The synergy of bicycles and public transport: A systematic literature review. Transp. Rev. 2024, 44, 34–68. [Google Scholar] [CrossRef]
  14. Brown, L.; Morris, A.; Thomas, P.; Ekambaram, K.; Margaritis, D.; Davidse, R.; Usami, D.S.; Robibaro, M.; Persia, L.; Buttler, I.; et al. Investigation of accidents involving powered two wheelers and bicycles–A European in-depth study. J. Saf. Res. 2021, 76, 135–145. [Google Scholar] [CrossRef]
  15. Zhou, N.; Zeng, H.; Xie, R.; Yang, T.; Kong, J.; Song, Z.; Zhang, F.; Liao, X.; Chen, X.; Miao, Q.; et al. Analysis of road traffic accidents and casualties associated with electric bikes and bicycles in Guangzhou, China: A retrospective descriptive analysis. Heliyon 2024, 10, e29961. [Google Scholar] [CrossRef]
  16. Oliveira, F.; Costa, D.G.; Duran-Faundez, C.; Dias, A. BikeWay: A Multi-Sensory Fuzzy-Based Quality Metric for Bike Paths and Tracks in Urban Areas. IEEE Access 2020, 8, 227313–227326. [Google Scholar] [CrossRef]
  17. Chen, C.; Anderson, J.C.; Wang, H.; Wang, Y.; Vogt, R.; Hernandez, S. How bicycle level of traffic stress correlate with reported cyclist accidents injury severities: A geospatial and mixed logit analysis. Accid. Anal. Prev. 2017, 108, 234–244. [Google Scholar] [CrossRef]
  18. Sasaki, Y.; Fujiwara, K.; Mitobe, K. Risks that induce bicycle accidents: Measurement and analysis of bicyclist behavior while going straight and turning right using a bicycle simulator. Accid. Anal. Prev. 2024, 194, 107338. [Google Scholar] [CrossRef]
  19. Kapousizis, G.; Ulak, M.B.; Geurs, K.; Havinga, P.J. A review of state-of-the-art bicycle technologies affecting cycling safety: Level of smartness and technology readiness. Transp. Rev. 2023, 43, 430–452. [Google Scholar] [CrossRef]
  20. Kilani, M.; Bennaya, S. Environmental impacts of bicycling in urban areas: A micro-simulation approach. Transp. Res. Part Transp. Environ. 2023, 125, 103967. [Google Scholar] [CrossRef]
  21. Huber, S.; Lindemann, P.; Schröter, B. Understanding the influence of accident risk and perceived safety on bicycle route choice. Transp. Res. Procedia 2023, 72, 367–374. [Google Scholar] [CrossRef]
  22. Cubells, J.; Miralles-Guasch, C.; Marquet, O. E-scooter and bike-share route choice and detours: Modelling the influence of built environment and sociodemographic factors. J. Transp. Geogr. 2023, 111, 103664. [Google Scholar] [CrossRef]
  23. Birke, M.; Dyck, F.; Kamashidze, M.; Kuhlmann, M.; Schott, M.; Schulte, R.; Tesch, A.; Schering, J.; Säfken, P.; Gómez, J.M.; et al. The bike path radar: A dashboard to provide new information about bicycle infrastructure quality. In Proceedings of the Environmental Informatics, Calgary, AB, Canada, 7–9 August 2024; pp. 95–113. [Google Scholar] [CrossRef]
  24. Fuest, S.; Batista, M.; Berghoefer, F.L.; Flesser, M.; Grandhi, B.S.; Spühler, F.; Sester, M.; Vollrath, M. I bet you feel safe! assessing cyclists’ subjective safety by objective scores. J. Urban Mobil. 2023, 4, 100066. [Google Scholar] [CrossRef]
  25. Meng, S.; Zheng, H. A personalized bikeability-based cycling route recommendation method with machine learning. Int. J. Appl. Earth Obs. Geoinf. 2023, 121, 103373. [Google Scholar] [CrossRef]
  26. Neves, F.T.; de Castro Neto, M.; Aparicio, M. The impacts of open data initiatives on smart cities: A framework for evaluation and monitoring. Cities 2020, 106, 102860. [Google Scholar] [CrossRef]
  27. Lnenicka, M.; Nikiforova, A.; Luterek, M.; Azeroual, O.; Ukpabi, D.; Valtenbergs, V.; Machova, R. Transparency of open data ecosystems in smart cities: Definition and assessment of the maturity of transparency in 22 smart cities. Sustain. Cities Soc. 2022, 82, 103906. [Google Scholar] [CrossRef]
  28. Peixoto, J.P.J.; Costa, D.G.; da Franca Rocha, W.d.J.; Portugal, P.; Vasques, F. CityZones: A geospatial multi-tier software tool to compute urban risk zones. SoftwareX 2023, 23, 101409. [Google Scholar] [CrossRef]
  29. Costa, D.G.; Peixoto, J.P.J.; Jesus, T.C.; Portugal, P.; Vasques, F.; Rangel, E.; Peixoto, M. A Survey of Emergencies Management Systems in Smart Cities. IEEE Access 2022, 10, 61843–61872. [Google Scholar] [CrossRef]
  30. Monzer, Y.I.; Hussein, M. Conventional or parking-protected bike lanes? A Full-Bayesian before-and-after assessment. Traffic Inj. Prev. 2024, 25, 482–491. [Google Scholar] [CrossRef]
  31. Wolniak, R. European Union Smart Mobility–Aspects Connected with Bike Road System’s Extension and Dissemination. Smart Cities 2023, 6, 1009–1042. [Google Scholar] [CrossRef]
  32. Woźniak, P.W.; Dekker, L.; Kiss, F.; Velner, E.; Kuijt, A.; Donker, S.F. Brotate and Tribike: Designing Smartphone Control for Cycling. In Proceedings of the 22nd International Conference on Human-Computer Interaction with Mobile Devices and Services, MobileHCI ’20, New York, NY, USA, 5–8 October 2020. [Google Scholar] [CrossRef]
  33. Dong, X.; Han, Z.; Nishiyama, Y.; Sezaki, K. DoubleCheck: Detecting Single-Hand Cycling with Inertial Measurement Unit of Smartphone. In Proceedings of the 2022 IEEE International Conference on Pervasive Computing and Communications Workshops and other Affiliated Events (PerCom Workshops), Biarritz, France, 21–25 March 2022; pp. 50–53. [Google Scholar] [CrossRef]
  34. Nikolaeva, A. Smart Cities and (Smart) Cycling: Exploring the Synergies in Copenhagen and Amsterdam. J. Urban Technol. 2024, 31, 29–49. [Google Scholar] [CrossRef]
  35. Oliveira, F.; Nery, D.; Costa, D.G.; Silva, I.; Lima, L. A Survey of Technologies and Recent Developments for Sustainable Smart Cycling. Sustainability 2021, 13, 3422. [Google Scholar] [CrossRef]
  36. Shui, C.; Szeto, W. A review of bicycle-sharing service planning problems. Transp. Res. Part Emerg. Technol. 2020, 117, 102648. [Google Scholar] [CrossRef]
  37. Meng, L.; Cheng, W. A dynamic emergency decision support model for emergencies in urban areas. Int. J. Disaster Risk Reduct. 2023, 95, 103842. [Google Scholar] [CrossRef]
  38. Alshamaila, Y.; Papagiannidis, S.; Alsawalqah, H.; Aljarah, I. Effective use of smart cities in crisis cases: A systematic review of the literature. Int. J. Disaster Risk Reduct. 2023, 85, 103521. [Google Scholar] [CrossRef]
  39. Ouma, Y.O.; Tateishi, R. Urban flood vulnerability and risk mapping using integrated multi-parametric AHP and GIS: Methodological overview and case study assessment. Water 2014, 6, 1515–1545. [Google Scholar] [CrossRef]
  40. Peng, T.; Ke, W. Urban fire emergency management based on big data intelligent processing system and Internet of Things. Optik 2023, 273, 170433. [Google Scholar] [CrossRef]
  41. Peixoto, J.P.J.; Costa, D.G.; Portugal, P.; Vasques, F. Flood-Resilient Smart Cities: A Data-Driven Risk Assessment Approach Based on Geographical Risks and Emergency Response Infrastructure. Smart Cities 2024, 7, 662–679. [Google Scholar] [CrossRef]
  42. Guoyi, L.; Liu, J.; Shao, W. Urban flood risk assessment under rapid urbanization in Zhengzhou City, China. Reg. Sustain. 2023, 4, 332–348. [Google Scholar] [CrossRef]
  43. Kishimoto, K.; Yamamoto, H. Safety Support System for Bicycles based on Sensor Network Consisting of Various Sensors. In Proceedings of the 2023 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 6–8 January 2023; pp. 1–6. [Google Scholar] [CrossRef]
  44. Iwamoto, K.; Ohtake, S. A Warning System with Multiple Sensors for Avoiding Collision of Bicycles. In Proceedings of the 2020 IEEE International Conference on Consumer Electronics-Taiwan (ICCE-Taiwan), Las Vegas, NV, USA, 4–6 January 2020; pp. 1–2. [Google Scholar] [CrossRef]
  45. Santos, P.M.; Rodrigues, J.G.P.; Cruz, S.B.; Lourenço, T.; d’Orey, P.M.; Luis, Y.; Rocha, C.; Sousa, S.; Crisóstomo, S.; Queirós, C.; et al. PortoLivingLab: An IoT-Based Sensing Platform for Smart Cities. IEEE Internet Things J. 2018, 5, 523–532. [Google Scholar] [CrossRef]
  46. Shen, S.; Lv, C.X.; Zhu, H.; Sun, L.J.; Wang, R.C. Potentials and Prospects of Bicycle Sharing System in Smart Cities: A Review. IEEE Sensors J. 2022, 22, 7519–7533. [Google Scholar] [CrossRef]
  47. Liu, G.; Krishnamurthy, S.; van Wesemael, P. Conceptualizing cycling experience in urban design research: A systematic literature review. Applied Mobilities 2021, 6, 92–108. [Google Scholar] [CrossRef]
  48. Andres, J.; Kari, T.; Kaenel, J.V.; Mueller, F.F. Co-riding with my eBike to get green lights. In Proceedings of the DIS 2019—2019 ACM Designing Interactive Systems Conference, San Diego, CA, USA, 23–28 June 2019; pp. 1251–1263. [Google Scholar] [CrossRef]
  49. Islam, M.M.; Ridwan, A.E.M.; Mary, M.M.; Siam, M.F.; Mumu, S.A.; Rana, S. Design and Implementation of a Smart Bike Accident Detection System. In Proceedings of the 2020 IEEE Region 10 Symposium (TENSYMP), Dhaka, Bangladesh, 5–7 June 2020; pp. 386–389. [Google Scholar] [CrossRef]
  50. Makarova, I.; Boyko, A.; Pashkevich, A.; Tsybunov, E. Development of a Monitoring System on Environment and Human Health to Control a Smart Bike. In Proceedings of the 2020 21th International Carpathian Control Conference (ICCC), Košice, Slovak Republic, 27–29 October 2020. [Google Scholar] [CrossRef]
  51. Hernández, M.A.; Ramírez, O.; Benavides, J.A.; Franco, J.F. Urban cycling and air quality: Characterizing cyclist exposure to particulate-related pollution. Urban Clim. 2021, 36, 100767. [Google Scholar] [CrossRef]
  52. Oliveira, F.; Costa, D.G.; Lima, L.; Silva, I. iBikeSafe: A Multi-Parameter System for Monitoring, Evaluation and Visualization of Cycling Paths in Smart Cities Targeted at Cycling Adverse Conditions. Smart Cities 2021, 4, 1058–1086. [Google Scholar] [CrossRef]
  53. Theresa, M.M.; Rajam, P.P.; Benila, A.; Priyadharshini, R.I.; Jacob, J.J. An intelligent bike safety and surveillance system. In Proceedings of the AIP Conference Proceedings, Aachen, Germany, 6 September 2022; Volume 2393. [Google Scholar] [CrossRef]
  54. Munisamy, S.B.; Rawi, R.; Yasim, H.b.M.; Aziz, N.F.A.; Hussin, S.A.S.; Jali, N.B.M. Enhancing Cyclist Safety: Real-Time Fallen Cyclist Detection and Emergency Notification System. In Proceedings of the 2024 18th International Conference on Ubiquitous Information Management and Communication (IMCOM), Kuala Lumpur, Malaysia, 3–5 January 2024; pp. 1–4. [Google Scholar] [CrossRef]
  55. Bawa, G.; Naser, Z.L.; Sharif, H.; Fezaa, L.H.A.; Chohan, J.S.; Pant, R. Development of Safety Monitoring and Alert System for 2 Wheelers. In Proceedings of the 2024 11th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions)(ICRITO), Noida, India, 14–15 March 2024; pp. 1–6. [Google Scholar] [CrossRef]
  56. Brito, B.; Costa, D.G.; Silva, I. Geospatial Risk Assessment of Cyclist Accidents in Urban Areas: A K-Means Clustering Approach. In Proceedings of the 2024 IEEE 23st Mediterranean Electrotechnical Conference (MELECON), Porto, Portugal, 25–27 June 2024. [Google Scholar]
  57. Xie, Y.; Gupta, J.; Li, Y.; Shekhar, S. Transforming Smart Cities with Spatial Computing. In Proceedings of the 2018 IEEE International Smart Cities Conference (ISC2), Kansas City, MO, USA, 16–19 September 2018; pp. 1–9. [Google Scholar] [CrossRef]
  58. Du, R.; Santi, P.; Xiao, M.; Vasilakos, A.V.; Fischione, C. The Sensable City: A Survey on the Deployment and Management for Smart City Monitoring. IEEE Commun. Surv. Tutorials 2019, 21, 1533–1560. [Google Scholar] [CrossRef]
  59. Peixoto, J.P.J.; Costa, D.G.; de, J.S. da Franca Rocha, W.; Portugal, P.; Vasques, F. On the positioning of emergencies detection units based on geospatial data of urban response centres. Sustain. Cities Soc. 2023, 97, 104713. [Google Scholar] [CrossRef]
  60. Karthikeyan, S.; Raj, R.A.; Cruz, M.V.; Chen, L.; Vishal, J.A.; Rohith, V. A systematic analysis on raspberry pi prototyping: Uses, challenges, benefits, and drawbacks. IEEE Internet Things J. 2023, 10, 14397–14417. [Google Scholar] [CrossRef]
  61. Chéour, R.; Khriji, S.; Abid, M.; Kanoun, O. Microcontrollers for IoT: Optimizations, computing paradigms, and future directions. In Proceedings of the 2020 IEEE 6th World Forum on Internet of Things (WF-IoT), New Orleans, LA, USA, 2–16 June 2020; pp. 1–7. [Google Scholar] [CrossRef]
  62. Azdy, R.A.; Darnis, F. Use of haversine formula in finding distance between temporary shelter and waste end processing sites. In Proceedings of the Journal of Physics: Conference Series, Atlanta, GA, USA, 9–13 October 2020; p. 012104. [Google Scholar] [CrossRef]
  63. Bell, C.; Bell, C. Introducing Grove. In Beginning IoT Projects: Breadboard-less Electronic Projects; Apress: New York, NY, USA, 2021; pp. 481–509. [Google Scholar]
  64. Rocha, H.; Lobo, A.; Tavares, J.P.; Ferreira, S. Exploring Modal Choices for Sustainable Urban Mobility: Insights from the Porto Metropolitan Area in Portugal. Sustainability 2023, 15, 14765. [Google Scholar] [CrossRef]
  65. Silva, B.N.; Khan, M.; Han, K. Towards sustainable smart cities: A review of trends, architectures, components, and open challenges in smart cities. Sustain. Cities Soc. 2018, 38, 697–713. [Google Scholar] [CrossRef]
  66. Costa, D.G.; Duran-Faundez, C. Open-Source Electronics Platforms as Enabling Technologies for Smart Cities: Recent Developments and Perspectives. Electronics 2018, 7, 404. [Google Scholar] [CrossRef]
  67. Quan, X.; Solheim, M.C. Public-private partnerships in smart cities: A critical survey and research agenda. City Cult. Soc. 2023, 32, 100491. [Google Scholar] [CrossRef]
  68. Serbanica, C.; Constantin, D.L. Misfortunes never come singly. A holistic approach to urban resilience and sustainability challenges. Cities 2023, 134, 104177. [Google Scholar] [CrossRef] [PubMed]
  69. Ullah, Z.; Al-Turjman, F.; Mostarda, L.; Gagliardi, R. Applications of Artificial Intelligence and Machine learning in smart cities. Comput. Commun. 2020, 154, 313–323. [Google Scholar] [CrossRef]
Figure 1. A risk map generated by the CityZones tool [28], highlighting 3 different risk levels.
Figure 1. A risk map generated by the CityZones tool [28], highlighting 3 different risk levels.
Smartcities 07 00079 g001
Figure 2. Risk alerting in urban areas based on emergency response infrastructure, with regions far from PoIs being riskier (red alert). The proposed approach dynamically acquires GPS positions and trigger corresponding alerts.
Figure 2. Risk alerting in urban areas based on emergency response infrastructure, with regions far from PoIs being riskier (red alert). The proposed approach dynamically acquires GPS positions and trigger corresponding alerts.
Smartcities 07 00079 g002
Figure 3. Conceptual operation of the proposed approach.
Figure 3. Conceptual operation of the proposed approach.
Smartcities 07 00079 g003
Figure 4. Creating the reference lists when indexing the grid.
Figure 4. Creating the reference lists when indexing the grid.
Smartcities 07 00079 g004
Figure 5. Intermediate grid processing.
Figure 5. Intermediate grid processing.
Smartcities 07 00079 g005
Figure 6. Final grid calculation.
Figure 6. Final grid calculation.
Smartcities 07 00079 g006
Figure 7. Processing the original risk map into a suitable data structure.
Figure 7. Processing the original risk map into a suitable data structure.
Smartcities 07 00079 g007
Figure 8. Computing the data structure for irregular polygons.
Figure 8. Computing the data structure for irregular polygons.
Smartcities 07 00079 g008
Figure 9. An example of a line fetched by a typical GPS receiver device, according to the NMEA format.
Figure 9. An example of a line fetched by a typical GPS receiver device, according to the NMEA format.
Smartcities 07 00079 g009
Figure 10. Computing the corresponding zone of a bicycle, according to the actual GPS position.
Figure 10. Computing the corresponding zone of a bicycle, according to the actual GPS position.
Smartcities 07 00079 g010
Figure 11. An example of a log file. There will be a file for each route (“cycling session”).
Figure 11. An example of a log file. There will be a file for each route (“cycling session”).
Smartcities 07 00079 g011
Figure 12. List of selected hardware components for the implementation of the SafeCycling module.
Figure 12. List of selected hardware components for the implementation of the SafeCycling module.
Smartcities 07 00079 g012
Figure 13. Designed case for 3D printing.
Figure 13. Designed case for 3D printing.
Smartcities 07 00079 g013
Figure 14. Hardware assembling of the SafeCycling unit.
Figure 14. Hardware assembling of the SafeCycling unit.
Smartcities 07 00079 g014
Figure 15. The SafeCycling module (left) and the battery case on a bicycle. The two-part clamps were also 3D printed and they are fixed using screws.
Figure 15. The SafeCycling module (left) and the battery case on a bicycle. The two-part clamps were also 3D printed and they are fixed using screws.
Smartcities 07 00079 g015
Figure 16. The considered risk map for the city of Porto, Portugal. Green areas represent low risk, yellow areas represent medium risk, and red areas represent the highest risk.
Figure 16. The considered risk map for the city of Porto, Portugal. Green areas represent low risk, yellow areas represent medium risk, and red areas represent the highest risk.
Smartcities 07 00079 g016
Figure 17. A segment of the CSV file before preprocessing.
Figure 17. A segment of the CSV file before preprocessing.
Smartcities 07 00079 g017
Figure 18. Computing the indexes for the input CSV file.
Figure 18. Computing the indexes for the input CSV file.
Smartcities 07 00079 g018
Figure 19. A segment of the CSV file ready to be embedded.
Figure 19. A segment of the CSV file ready to be embedded.
Smartcities 07 00079 g019
Figure 20. Results for a small cycling route.
Figure 20. Results for a small cycling route.
Smartcities 07 00079 g020
Figure 21. Results for a long cycling route.
Figure 21. Results for a long cycling route.
Smartcities 07 00079 g021
Table 1. Recent works that aim to improve cycling. G1 is for quality assessment of bike paths and cycling infrastructure, G2 for route planning and selection, and G3 for cycling safety.
Table 1. Recent works that aim to improve cycling. G1 is for quality assessment of bike paths and cycling infrastructure, G2 for route planning and selection, and G3 for cycling safety.
WorkYearG1G2G3Description
Andres et al. [48]2019-X-Regulates cycling speed in order to allow a cyclist to move smoothly by fetching green traffic lights
Islam et al. [49]2020--XSensors are embedded to a bicycle to allow the transmission of an emergency message when a cycling accident occurs
Makarova et al. [50]2020--XDesigning a monitoring unit for environmental conditions and cyclist health to enhance long-term cycling safety
Hernández et al. [51]2021X--Different parameters of air pollution are considered as indirect quality indicators of cycling infrastructures in a city
Oliveira et al. [52]2021X--A multi-parameter sensor-based system was designed to assess the indirect quality of cycling paths
Theresa et al. [53]2022--XA smart bike system to reduce the risk of accidents and to increase protection of cyclist (smart helmet)
Meng and Zheng [25]2023-X-A bikeability-based cycling route recommendation approach is defined combing multiple urban parameters
Munisamy et al. [54]2024--XA fall detection system that sends a SMS message with the cyclist’s location to an emergency contact
Bawa et al. [55]2024--XA safety monitoring and alert system informing the position, speed, and health parameters of a cyclist
Brito et al. [56]2024X--A K-means algorithm is used to identify danger cycling lanes based on intersections and bus stops
Proposed approach2024XXXEmbedded data-driven approach to enhance cycling safety. It may also be exploited for better route planning and bike lane selection
Table 2. List of adopted hardware for the developed prototype.
Table 2. List of adopted hardware for the developed prototype.
ComponentCost (USD)Quantity
Raspberry PI Zero W18.301
Grove GPS module (Air530)13.501
Grove LED bar5.901
Grove Buzzer2.001
Grove Hat (Raspberry Zero)13.701
USB-C socket3.201
USB-C cable5.001
microSD card7.001
Rocket switch1.301
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

Ferreira, J.M.; Costa, D.G. Enhancing Cycling Safety in Smart Cities: A Data-Driven Embedded Risk Alert System. Smart Cities 2024, 7, 1992-2014. https://doi.org/10.3390/smartcities7040079

AMA Style

Ferreira JM, Costa DG. Enhancing Cycling Safety in Smart Cities: A Data-Driven Embedded Risk Alert System. Smart Cities. 2024; 7(4):1992-2014. https://doi.org/10.3390/smartcities7040079

Chicago/Turabian Style

Ferreira, José Miguel, and Daniel G. Costa. 2024. "Enhancing Cycling Safety in Smart Cities: A Data-Driven Embedded Risk Alert System" Smart Cities 7, no. 4: 1992-2014. https://doi.org/10.3390/smartcities7040079

Article Metrics

Back to TopTop