Submitted:
20 February 2024
Posted:
20 February 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- The definition of a series of requirements that a scenario editor must meet;
- The definition of the smart data model describing a scenario and a formal model to describe the road network;
- The development of an open-source web-based scenario editor, and its integration into the Snap4City platform;
- A case study to show the scenario editor functionalities applied to the traffic flow reconstruction problem, to validate the scenario model and tool.
2. Context definition
3. Requirement Analysis and Scenario Data Model Definition
3.1. Scenario data model
- A1.
- name (string): the name of the scenario;
- A2.
- description (string): a brief description of the scenario;
- A3.
- location (string): the textual name of the geographic area considered;
- A4.
- startDatetime (string): timestamp of the starting instant from which the scenario is valid, represented as ISO string;
- A5.
- endDatetimes (string): timestamp of the last time instant for which the scenario is valid, represented as ISO string;
- A6.
- areaOfInterest (geometry): a polygon describing the portion of the city over which the scenario is defined, represented as GeoJSON;
- A7.
- knowledgeBase (string): the ID of the knowledge base used to fetch the data in the scenario, represented as URI. It also identifies an Organization or tenant in the multitenant Snap4City platform
- A8.
- entities (data structure): IoT devices or other urban entities (e.g., traffic sensors, semaphores, POIs, buildings, gardens, waste bins, etc.) considered in the scenario and included in the area of interest, represented as JSON. Each entity is identified with an URI associated to an instance in the knowledge base;
- A9.
- roads (geometry): a list of roads included in the area of interest, represented as a GeoJSON, according to the formal model described in Section 3.2. Each road is identified with an URI associated with an instance in the knowledge base;
- A10.
- restrictions (data structure): a list of traffic or access restrictions applied to entities and roads of the scenario, represented as JSON;
- A11.
- additionalData (data structure): data required by specific analytics, represented as JSON;
- A12.
- processingStatus (data structure): a list indicating the status of the scenario for each used analytic, represented as a JSON. Each list entry can assume different values depending on the analytic to which it is referred;
- A13.
- operativeStatus (string): a description indicating the status of the scenario; it can assume the following values: proposed, approved, rejected;
- A14.
- version (string): the version of the scenario, used to implement a versioning system. Please note that an automated versioning approach based on time is implemented by using dateObserved attribute;
- A15.
- dataObserved (string): timestamps of the creation/ modifications of the scenario, represented as ISO string.
3.2 Formal road graph data model
- is the set of nodes forming the road graph (i.e. the road junctions);
- is the set of edges of the road graph, where means that there is a physical link allowing to go from node v to node w and vice versa,
- R is the set of roads,
- is a function associating a GPS position to each node,
- is a function associating to each edge the road it belongs to,
- is a function stating for each edge the direction it can be traversed, means it can be traversed in both ways, only from to , only from to ;
- is a function associating for each edge the number of lanes (>0),
- is a function to associate each edge with its max speed.
- models turn restrictions where tuple means that the restriction of type applies to the edge via the node to edge , the node has to be shared between edges and , for example restriction means that from edge it is not possible to turn to edge .
- , the set of nodes of the compact version are a subset of the full version,
-
and
- maps to the longest possible sequence of edges
4. Scenario Editor
5. Case of Study: Traffic Flow Reconstruction
5.1. Consistency and correctness of TFR
5.2. What-If analysis for traffic congestion reduction
- ,
- ,
- ,
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Torre-Bastida, A. I., Del Ser, J., Laña, I., Ilardia, M., Bilbao, M. N., & Campos-Cordobés, S. (2018). Big Data for transportation and mobility: recent advances, trends and challenges. IET Intelligent Transport Systems, 12(8), 742-755. [CrossRef]
- Bellini, P., Bilotta, S., Collini, E., Fanfani, M., & Nesi, P. (2024). Data Sources and Models for Integrated Mobility and Transport Solutions. Sensors, 24(2), 441. 2. [CrossRef]
- Hodson, M., Marvin, S., Robinson, B., & Swilling, M. (2012). Reshaping urban infrastructure: Material flow analysis and transitions analysis in an urban context. Journal of Industrial Ecology, 16(6), 789-800. [CrossRef]
- Keirstead, J., Jennings, M., & Sivakumar, A. (2012). A review of urban energy system models: Approaches, challenges and opportunities. Renewable and Sustainable Energy Reviews, 16(6), 3847-3866. [CrossRef]
- Gharaibeh, A., Salahuddin, M. A., Hussini, S. J., Khreishah, A., Khalil, I., Guizani, M., & Al-Fuqaha, A. (2017). Smart cities: A survey on data management, security, and enabling technologies. IEEE Communications Surveys & Tutorials, 19(4), 2456-2501. [CrossRef]
- Collini, E., Palesi, L. A. I., Nesi, P., Pantaleo, G., & Zhao, W. (2023). Flexible thermal camera solution for Smart city people detection and counting. Multimedia Tools and Applications, 1-29. [CrossRef]
- Charnes, A., Cooper, W. W., & Li, S. (1989). Using data envelopment analysis to evaluate efficiency in the economic performance of Chinese cities. Socio-Economic Planning Sciences, 23(6), 325-344. [CrossRef]
- C. Garau, P. Nesi, I. Paoli, M. Paolucci, P. Zamperlin, A Big Data Platform for Smart and Sustainable Cities: Environmental Monitoring case studies in Europe. Proc. Of International Conference on Computational Science and its Applications, ICCSA2020. Cagliari, Italy, 1-4 July 2020. 4 July.
- Krylovskiy, A., Jahn, M., & Patti, E. (2015, August). Designing a smart city internet of things platform with microservice architecture. In 2015 3rd international conference on future internet of things and cloud (pp. 25-30). IEEE.
- Q. Han, P. Nesi, G. Pantaleo, I. Paoli, “Smart City Dashboards: Design, Development and Evaluation”, Proc. Of the IEEE ICHMS 2020, International Conference on Human Machine Systems, September 2020. 20 September 2020.
- Adreani, L., Bellini, P., Colombo, C., Fanfani, M., Nesi, P., Pantaleo, G., & Pisanu, R. (2023). Implementing integrated digital twin modelling and representation into the Snap4City platform for smart city solutions. Multimedia Tools and Applications, 1-26. [CrossRef]
- Jafari, M., Kavousi-Fard, A., Chen, T., & Karimi, M. (2023). A review on digital twin technology in smart grid, transportation system and smart city: Challenges and future. IEEE Access. [CrossRef]
- Adreani, L., Bellini, P., Fanfani, M., Nesi, P., & Pantaleo, G. (2023, June). Design and develop of a smart city digital twin with 3d representation and user interface for what-if analysis. In International Conference on Computational Science and Its Applications (pp. 531-548). Cham: Springer Nature Switzerland.
- Badii, C., Bellini, P., Cenni, D., Difino, A., Nesi, P., & Paolucci, M. (2017). Analysis and assessment of a knowledge based smart city architecture providing service APIs. Future Generation Computer Systems, 75, 14-29. [CrossRef]
- Komninos, N., Bratsas, C., Kakderi, C., & Tsarchopoulos, P. (2019). Smart city ontologies: Improving the effectiveness of smart city applications. Journal of Smart Cities, 1(1), 31-46. [CrossRef]
- Nalic, D., Mihalj, T., Bäumler, M., Lehmann, M., Eichberger, A., & Bernsteiner, S. (2020, November). Scenario based testing of automated driving systems: A literature survey. In FISITA web Congress (Vol. 10).
- S. Maierhofer, M. Klischat and M. Althoff, "CommonRoad Scenario Designer: An Open-Source Toolbox for Map Conversion and Scenario Creation for Autonomous Vehicles," 2021 IEEE International Intelligent Transportation Systems Conference (ITSC), Indianapolis, IN, USA, 2021, pp. 3176-3182. [CrossRef]
- Kuang, L., Gong, T., OuYang, S., Gao, H., & Deng, S. (2020). Offloading decision methods for multiple users with structured tasks in edge computing for smart cities. Future Generation Computer Systems, 105, 717-729. [CrossRef]
- Casadei, R., Fortino, G., Pianini, D., Russo, W., Savaglio, C., & Viroli, M. (2019). Modelling and simulation of opportunistic IoT services with aggregate computing. Future Generation Computer Systems, 91, 252-262. [CrossRef]
- Zema, N. R., Natalizio, E., Pugliese, L. D. P., & Guerriero, F. (2022). 3D Trajectory Optimization for Multimission UAVs in Smart City Scenarios. IEEE Transactions on Mobile Computing. [CrossRef]
- Lohrer, A., Binder, J. J., & Kröger, P. (2022, November). Group anomaly detection for spatio-temporal collective behaviour scenarios in smart cities. In Proceedings of the 15th ACM SIGSPATIAL International Workshop on Computational Transportation Science (pp. 1-4).
- QGIS. Available online: https://qgis.org/ (accessed on 6 February 2024).
- ArcGIS. Available online: https://www.esri.com/en-us/arcgis/products/index (accessed on 6 February 2024).
- ASAM OpenSCENARIO. Available online: https://www.asam.net/standards/detail/openscenario-xml/ (accessed on 6 February 2024).
- ASAM OpenDRIVE. Available online: https://www.asam.net/standards/detail/opendrive/ (accessed on 6 February 2024).
- ASAM OpenCRG. Available online: https://www.asam.net/standards/detail/opencrg/ (accessed on 6 February 2024).
- OpenStreetMap iD editor. Available online: https://github.com/openstreetmap/iD (accessed on 6 February 2024).
- SUMO, Simulation of Urban MObility. Available online: https://eclipse.dev/sumo/ (accessed on 6 February 2024).
- PTV Vissim. Available online: https://www.ptvgroup.com/en/products/ptv-vissim (accessed on 6 February 2024).
- PTV Visum. Available online: https://www.ptvgroup.com/en/products/ptv-visum (accessed on 6 February 2024).
- SUMO netedit tool. Available online: https://sumo.dlr.de/docs/Netedit/ (accessed on 6 February 2024).
- Tool interface for testing scenario editor in the context of many data. Available online: https://www.snap4city.org/dashboardSmartCity/view/Baloon-Dark.php?iddasboard=MzQyMw== (accessed on 18 February 2024).
- Bellini, Pierfrancesco and Fanfani, Marco and Nesi, Paolo and Pantaleo, Gianni, Snap4city Dashboard Manager: A Tool for Creating and Distributing Complex and Interactive Dashboards with No or Low Coding. Available online: http://dx.doi.org/10.2139/ssrn.4712467.
- Alberti, F., Alessandrini, A., Bubboloni, D., Catalano, C., Fanfani, M., Loda, M., Marino, A., Masiero, A., Meocci, M., Nesi, P. and Paliotto, A., 2023. MOBILE MAPPING TO SUPPORT AN INTEGRATED TRANSPORT-TERRITORY MODELLING APPROACH. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, 48, pp.1-7. [CrossRef]
- Badii, C., Bellini, P., Cenni, D., Chiordi, S., Mitolo, N., Nesi, P., & Paolucci, M. (2021). Computing 15MinCityIndexes on the basis of open data and services. In Computational Science and Its Applications–ICCSA 2021: 21st International Conference, Cagliari, Italy, September 13–16, 2021, Proceedings, Part VIII 21 (pp. 565-579). Springer International Publishing.
- Bilotta, Stefano, and Paolo Nesi. "Traffic flow reconstruction by solving indeterminacy on traffic distribution at junctions." Future Generation Computer Systems 114 (2021): 649-660. [CrossRef]
- C. Badii et al., "Real-Time Automatic Air Pollution Services from IOT Data Network," 2020 IEEE Symposium on Computers and Communications (ISCC), Rennes, France, 2020, pp. 1-6. [CrossRef]
- T. Anagnostopoulos et al., "Challenges and Opportunities of Waste Management in IoT-Enabled Smart Cities: A Survey," in IEEE Transactions on Sustainable Computing, vol. 2, no. 3, pp. 275-289, 1 July-Sept. 2017. [CrossRef]
- Viale Pereira, G., Cunha, M. A., Lampoltshammer, T. J., Parycek, P., & Testa, M. G. (2017). Increasing collaboration and participation in smart city governance: A cross-case analysis of smart city initiatives. Information Technology for Development, 23(3), 526-553. [CrossRef]
- Cirillo, F., Gómez, D., Diez, L., Maestro, I. E., Gilbert, T. B. J., & Akhavan, R. (2020). Smart city IoT services creation through large-scale collaboration. IEEE Internet of Things Journal, 7(6), 5267-5275. [CrossRef]
- Kiba-Janiak, M., & Witkowski, J. (2019). Sustainable urban mobility plans: How do they work?. Sustainability, 11(17), 4605. [CrossRef]
- PUMS, Piano Urbano della Mobilità Sostenibile. Available online: https://www.osservatoriopums.it/ (accessed on 6 February 2024).
- SUMI, Sustainable Urban Mobility Indicators. Available online: https://trimis.ec.europa.eu/project/sustainable-urban-mobility-indicators (accessed on 6 February 2024).
- GDPR, General Data Protection Regulation. Available online: https://gdpr.eu/ (accessed on 6 February 2024).
- FIWARE NGSIv2 specification. Available online: https://fiware.github.io/specifications/ngsiv2/stable/ (accessed on 6 February 2024).







| ID | Name | Description of functionalities of the scenario editor which has to provide support to |
|---|---|---|
| R01 | Map visualization and controls | show/select ground map to be used as the main canvas over which the user can define and study the scenario. Controls to move and zoom the map must be provided, with the possibility of changing the ground map when needed. The map is a visual representation of the geo information, for minimal case, the graphs of roads, their relationships, and details. |
| R02 | Area of interest definition | draw/change a polygonal shape of arbitrary size to define the area of interest of the scenario selecting a portion of the map and of the corresponding geo information. The scenario could be composed of multiple disjoined areas. |
| R03 | Metadata setting | set some metadata describing the scenario, such as its name, a description, the temporal validity (from date time to date time), a responsible, a purpose, etc. |
| R04 | Knowledge base management | work on different maps and geo information, which can be coded into different knowledge bases or other storages from where to fetch the entities and roads of the geo information to be taken into account in the scenario. |
| R05 | Road graph selection and management | manage road graph, and each road segment must be visualized and managed in the scenarios. The road segments may present a number of descriptive characteristics, such as, type, travel direction, presence of restrictions, lanes, sidewalk, parking lots, etc. Each road must be selectable by the user to access to additional information, such as name, type, length, number of lanes, maximum speed, etc. Manipulation of the road graph must be possible, for example to add, remove, or alter a road, invert the travel direction, increase, or reduce the number of lanes, etc. In the representation of road segments visual coding should be used to provide information at a glance. |
| R06 | Entity selection and management | manage geolocated entities as: IoT devices with time series data (such as semaphores, sensors/actuators, waste bins, parking sensors, luminaries, Wi-Fi access points, tv cameras, parking in structures); urban furniture (such as pedestrian crossing, benches, flowerbeds, fountains for drinkable water, toilets); POIs (such as bank, cultural services, schools, commercial areas, restaurants, hotels). They must be visualized over the map on user request. Each entity must be selectable by the user to inspect additional information (i.e., metadata, position, real-time and/or historic data, etc.). Manipulation of entities must be permitted, for example to disable/enable an IoT device, select the measurements of interest, choose between real-time, historic, predicted, typical time trend data, change the semaphore timings, move a pedestrian crossing, etc. |
| R07 | Enabling analytic computation | define the context on which one could apply a large number of analytical processes including for example: computation of traffic flow reconstructions, environmental analysis, environmental heatmaps, 15-minute index, KPI (Key performance indicators) to quantify some analysis, semaphore analysis, etc. For each analytics, the user has to be capable to compose the scenario and compose different inputs. This is the basis to enable the usage of the scenario for what-if analysis, which may use a number of scenarios which are those which have to be inspected to verify their validity for solving a specific case. |
| R08 | Validation by activation of consistency analysis | validate the scenario by means of one or a set of methods to assess its consistency and completeness in terms of road graph, entities, metadata, etc. The validation has to go in deep on the spatial analysis of the road graph as well as the compatibility check among the selected inputs. |
| R09 | Scenario evolution over time | evolve over time in terms of operative status (e.g., proposed, accepted, rejected), processing status (init, runnable, completed) and version. Each step must be related to a specific time stamp. |
| R10 | Scenario management | to create a new scenario, save the defined scenario, load a previously created scenario, and save it again, possibly with a different name, etc. |
| R11 | Models and custom | be conformant to a model, on which additional variables can be added. |
| Scenario Version | FreeFlow | FluidFlow | HeavyFlow | VeryHeavyFlow |
|---|---|---|---|---|
| 0,7649 | 0,1501 | 0.0396 | 0.0455 | |
| 0.7607 | 0.1705 | 0.0414 | 0.0274 | |
| 0.7622 | 0.1744 | 0.0411 | 0.0223 |
| Delta | Value | Percentage of Improvement |
|---|---|---|
| 0,00416 | -0.54% | |
| 0.00267 | -0.35% | |
| -0.0205 | 13.69% | |
| -0.0244 | 16.27% | |
| -0.0017 | -4.51% | |
| -0.0014 | -3.76% | |
| 0.0181 | 39.86% | |
| 0.0232 | 50.98% | |
| Scenario Version | Computational times (s) |
|---|---|
| 161.259 | |
| 162.330 | |
| 159.402 |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).