<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Concept of an Adaptive IoT Platform for Smart Cities*</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ivan Tsiupa</string-name>
          <email>ivan.tsupa111@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleksandr Osolinskyi</string-name>
          <email>oso@wunu.edu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleh Makara</string-name>
          <email>makarolehv@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmytro Diuh</string-name>
          <email>diuh.design@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andriy</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Semeshkin</string-name>
          <email>a.semeshkin@wunu.edu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department for Information Computer Systems and Control, West Ukrainian National University</institution>
          ,
          <addr-line>Mykulynetska Street, 46A, Ternopil, 46000</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The Internet of Things (IoT) and Smart Cities are evolving rapidly, attracting increasing interest from researchers, industry, businesses, and society as a whole. Fundamentally, IoT enables seamless connectivity between people and devices at any time and in any location, utilizing a variety of networks and services. The number of Internet-connected devices continues to grow at a rapid pace. IoT encompasses a diverse range of devices that offer versatile solutions for implementing Smart City projects. During the development and deployment of such projects, extensive networks of interconnected devices are employed. These devices are embedded in physical objects and linked to the Internet to support a wide range of communication tools and data exchange protocols. This level of integration forms a fundamental pillar of urban advancement, contributing to the improvement of living standards and fostering economic growth. Moreover, in a Smart City, millions of sensors are deployed in various domains such as smart transportation, smart parking, and others. These smart devices generate a continuously large volume of data to deliver services to citizens. Therefore, the efficient collection and processing of this data is a critical task for enabling effective decision-making and urban management. In other words, the data stream generated by these endpoints must be processed and delivered to the end user within an optimal time frame. In addition to handling the vast volume of data, these datasets exist in various formats and follow different semantic structures. Solving these issues with managing the heterogeneity of diverse IoT components is essential, as they can significantly hinder the efficient administration and functioning of smart city systems.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Smart Cities</kwd>
        <kwd>IoT</kwd>
        <kwd>Data processing</kwd>
        <kwd>exchange protocols</kwd>
        <kwd>MQTT</kwd>
        <kwd>RESTful</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Today, billions of smart devices equipped with sensors operate and transmit data over the
Internet, collectively forming what is known as the Internet of Things (IoT). The IoT is a platform
concept—a network of interconnected devices designed to enable seamless interaction between
different objects.</p>
      <p>
        RFID tags, mobile devices, smart electricity meters, robotic vacuum cleaners, intelligent
refrigerators, and various environmental sensors are all part of the IoT ecosystem [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. These
devices are capable of interacting with one another and exchanging data at any time and from any
location. The IoT represents a vast network of interconnected computing units, mechanical and
digital machines, physical objects, and even individuals—each uniquely identifiable through a
specific unique identifier (UID). These entities are capable of autonomously transmitting and
receiving data over a network without the need for direct human-to-human or
human-tocomputer interaction [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <sec id="sec-1-1">
        <title>App layer</title>
      </sec>
      <sec id="sec-1-2">
        <title>Network layer</title>
      </sec>
      <sec id="sec-1-3">
        <title>Smart</title>
      </sec>
      <sec id="sec-1-4">
        <title>Gateways</title>
      </sec>
      <sec id="sec-1-5">
        <title>Sensing layer</title>
      </sec>
      <sec id="sec-1-6">
        <title>ZigBee</title>
        <p>sensors</p>
        <p>
          A wide range of physical objects can be embedded with sensors to collect data from the
environment. This data can then be processed and analyzed through specialized data services. The
resulting information serves as a foundation for the development of various smart infrastructures,
including—but not limited to—smart grids, intelligent urban ecosystems, automated parking
systems, and environmentally aware monitoring technologies [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ].
        </p>
        <p>
          Due to the rapid evolution and variability of IoT technologies, there is currently no universally
accepted definition of IoT architecture. To simplify this complexity, a generalized three-layer
architecture is commonly adopted. It consists of three primary layers: the perception layer, the
network layer, and the application layer. Figure 1 illustrates the hierarchical structure of these
distinct components [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
        </p>
        <p>A brief description of each layer is provided below:
1. Sensing Layer responsible for detecting, identifying, collecting, and transmitting data
through a network of interconnected devices connected to the Internet. It includes various
components such as sensors, cameras, and other smart devices that capture and process
environmental data. Moreover, this layer plays a crucial role in converting raw data into a
structured digital format, enabling seamless data transmission across the network.</p>
        <p>2. The main function of the Network Layer is to transfer data from the sensing layer to the
application layer. It incorporates multiple communication technologies, such as Bluetooth and
Zigbee, within the IoT ecosystem to efficiently route information from sensing devices to nearby
gateways. Additionally, the network layer supports long-distance data transmission by utilizing
advanced Internet technologies such as 4G and other high-speed communication protocols.</p>
        <p>3. The Application Layer defines the interface of the overall IoT architecture and provides
developers with tools to interact with the system. It is responsible for managing and presenting
processed data to end-users and higher-level services.</p>
        <p>
          In general, the first stage involves collecting data from the physical environment using sensors,
which convert real-world signals into electrical data. In the second stage, the raw data is
transmitted through intermediate nodes to cloud-based platforms or dedicated servers. In the final
stage, the transmitted data is further processed using various technologies, including machine
learning algorithms and artificial neural networks (ANNs), tailored to the specific needs of
applications and end-users [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ].
        </p>
        <sec id="sec-1-6-1">
          <title>1.1. Smart City</title>
          <p>
            Effective communication and well-structured data management, supported by robust physical
infrastructure, are fundamental pillars in the development of smart cities. Advanced computing
technologies, a wide array of interconnected devices, and integrated servers collectively form the
core operational components of a smart city [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ]. The adoption of sensor technologies and the
Internet of Things (IoT) has enabled the creation of intelligent environments, facilitating the
efficient management of key urban sectors such as natural resources, transportation systems,
healthcare services, governance frameworks, and energy distribution. Figure 3 offers a
comprehensive overview of various applications within the smart city ecosystem [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ].
          </p>
          <p>Smart city</p>
          <p>
            Information about the city is continuously transmitted and collected from various sources,
including smart buildings, intelligent transportation systems [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ], agricultural infrastructures, smart
power grids, smart businesses [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ], security, and surveillance systems, among others. Most of this
data is subsequently used to support urban decision-making processes through deep neural
networks, systematic data analysis, and other advanced methods. In an advanced smart
home environment, households are extensively digitized through the continuous monitoring of
temperature levels, detection of smoke to identify potential fire hazards, tracking of daily energy
consumption patterns, and analysis of water usage metrics. This data is actively utilized by the
Smart City system to generate alerts and implement preventive actions in the event of emergency
situations within the residence. Similarly, in intelligent transportation systems, optimized and
highly efficient transport management plays a fundamental role within the broader infrastructure
of a smart city.
          </p>
          <p>The Internet of Things (IoT) acts as a vital communicat ion bridge, enabling seamless interaction
between various Smart City applications while also facilitating the generation of massive streams
of data. These datasets are produced at exceptionally high velocities and exist in a wide variety of
structural formats. Due to the inherently unstructured nature of the collected big data, it must be
stored across multiple data centers using distributed database architectures. This approach ensures
efficient processing, retrieval, and analysis of the information.</p>
        </sec>
        <sec id="sec-1-6-2">
          <title>1.2. Data management issues</title>
          <p>The primary issue concerning the collected data is the absence of a standardized or uniform data
format, as well as the lack of a consistent standard for data exchange. For example, geolocation
data—such as an address, building identification, region, or city—may be processed in different ways
depending on the system. Similarly, two separate sensors monitoring the same parameter may use
different units of measurement [11], leading to inconsistencies. Additionally, the collected data may
be outdated and/or presented in aggregated statistical form, which can significantly hinder
realtime functionalities and impair the development of decision support applications.</p>
          <p>The second problem arises from the heterogeneity of network and sensor technologies. The
growing number of interconnected objects in the physical world, collectively referred to as the
Internet of Things (IoT) [12], has resulted in a highly diverse and complex ecosystem of devices.
These devices, produced by different manufacturers and employing various communication
protocols, require effective integration within a cohesive framework to ensure seamless
interoperability.</p>
          <p>The third fundamental issue is the lack of a standardized definition for indicators of measured
physical quantities. For instance, gas concentration levels [13] may be assessed according to
differing regulatory standards, while pollution levels may be interpreted using a variety of
measurement frameworks, resulting in inconsistencies across different systems.</p>
          <p>The absence of a unified Smart City platform capable of addressing these challenges has a
significant impact on the design and implementation of modern smart city systems, ultimately
limiting their efficiency, scalability, and interoperability.</p>
        </sec>
        <sec id="sec-1-6-3">
          <title>1.3. Novelty and Contribution</title>
          <p>Despite the widespread adoption of three-layer IoT architectures and commonly used protocols
such as MQTT and REST, most existing smart city platforms lack adaptive capabilities, particularly
in low-resource environments. This work presents an adaptive and lightweight IoT concept of the
platform architecture that extends the classical model by incorporating fog computing and a
unified identification mechanism for sensor integration.</p>
          <p>The proposed concept introduces an enhanced three-layer architecture that integrates both fog
and cloud computing layers with dynamic routing logic. Data flows are processed either locally on
fog servers or remotely in the cloud, depending on current latency, data priority, and network
conditions. This hybrid mechanism enables rapid local decision-making when necessary (e.g., in
emergency detection), while also supporting large-scale data analysis in the cloud for long -term
trend identification and planning.</p>
          <p>Unlike rigid data pipelines used in other platforms, the proposed solution employs modular
protocol adapters that can dynamically switch between REST and MQTT modes, ensuring
flexibility and efficiency across varying deployment contexts.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Related works</title>
      <p>The authors of [14] presented a "Smart Cities" application architecture for managing data
collected via IoT devices, while the authors of [15] focused on analyzing various IoT device
connection scenarios.</p>
      <p>Works [16] and [17] introduce the development of IoT-related frameworks. In contrast, the
research presented in [18] proposes management systems that utilize Big Data analytics
technologies within the context of Smart Cities. In addition, the results in [19] describe a platform
designed for the delivery of public services in Smart City environments. In [20], the authors
presented service-oriented cyber-physical systems intended for mobile Smart City applications.
The work in [21] introduces a system based on open IoT data sources.</p>
      <p>Following the implementation of several Smart City projects, the researchers in [22] considered
the fundamental issue of defining what constitutes a "Smart City." On one side, a Smart City
represents a platform capable of efficiently executing key computational algorithms and supporting
IT service infrastructures. On the other side, it provides for the systematic integration of a vast
array of heterogeneous devices embedded throughout urban infrastructure and the city ecosystem
as a whole.</p>
      <p>Authors in work [23] researched novel types of sensor network systems. Depending on the
sensor type, data can be collected on a variety of parameters, such as location, temperature,
motion, orientation, vibration, humidity, acceleration, and changes in air composition. The
collected data is then transmitted to the network layer for subsequent delivery to the information
processing system [24].</p>
      <p>For instance, the work [25] presents approaches for efficient data processing in IoT networks
deployed in urban environments, and in [26] propose a dependable IoT architecture specifically
designed for vehicle networks within smart transportation systems. In the work [27] conduct a
detailed analysis of IoT device vulnerabilities using, emphasizing the growing need for secure
smart city deployments. Additionally, in [28] explore sensing and data-driven control mechanisms
applicable to smart buildings and smart city infrastructure.</p>
      <p>These studies highlight various technological challenges and opportunities related to IoT
deployments in urban settings. However, none of them offer a lightweight, fog -integrated, and
modular IoT platform architecture with on-device adaptability and unified sensor identification as
proposed in this work.</p>
      <p>In addition to academic research, several IoT platforms have been developed and adopted for
Smart City applications, including FIWARE, AWS IoT Core, and Azure IoT Hub.</p>
      <p>FIWARE [29] is an open-source platform that offers standardized APIs and data models via its
Context Broker and NGSI interfaces. It enables interoperability among different services but does
not natively support fog computing or on-device analytics.</p>
      <p>AWS IoT [30] and Azure IoT [31] are cloud -centric solutions with powerful analytics and
monitoring tools. However, both platforms require a reliable cloud connection, which limits their
applicability in mobile or low-connectivity scenarios. Additionally, implementing custom models or
edge-based logic within these platforms is often complex and proprietary in nature.</p>
      <p>Other important areas of advancement include mobile applications for Smart Cities,
environmental monitoring sensors, and smart home automation systems.</p>
      <sec id="sec-2-1">
        <title>2.1. Data acquisition in the IoT ecosystem</title>
        <p>A fundamental problem within an Internet of Things (IoT) system lies in the huge volume of
data generated by numerous sensors deployed across various environments. Transmitting and
storing such large quantities of data presents significant difficulties, primarily due to the heavy
demands placed on network bandwidth and storage capacity.</p>
        <p>Over the past decade, numerous data acquisition methodologies have been developed with the
aim of optimizing energy efficiency and improving the effectiveness of data collection in the
context of IoT and smart city applications [32]. Figure 4 presents several distinct strategies
employed for data gathering in IoT-based infrastructures.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.1.1. Tree-like mechanism</title>
        <p>Within a tree-structured mechanism, all nodes are systematically organized in a hierarchical
configuration, where data aggregation occurs at intermediate nodes. The aggregated data is
transmitted into the root node to the next processing.</p>
        <p>Another obstacle added with this approach is the establishment of an efficient and reliable
system for data collection. Proposed solutions typically involve constructing a primary hierarchical
tree across the IoT infrastructure and retrieving the required information through this structured
framework [33].</p>
        <p>Data collection</p>
        <p>Mobility based approaches</p>
        <p>Static sensor nodes
Mobile sensor nodes
Mobile and static sink
Drone-assisted collection</p>
        <p>Vehicular data mules
Probability based approaches</p>
        <p>Methodological models
Markov-based prediction models
Uncertainty-aware sampling</p>
        <p>Compressive based approaches</p>
        <p>Conventional Compression
Distributed source coding
Distributed compressive sensing
Edge-level compression
AI-based adaptive compression</p>
        <p>Data aggregation approaches</p>
        <p>Treebased
Cluster based
Centralized based
Hybrid aggregation
Federated aggregation
Temporal aggregation</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.1.2. Cluster mechanism</title>
        <p>In this approach, the network is divided into multiple clusters or groups, with each cluster
consisting of a set of sensor nodes. Within each cluster, one node is designated as the cluster head,
which plays a key role in managing communication and coordination among the nodes. The main
responsibility of the cluster head is to aggregate and process the information collected from the
individual sensor nodes in its cluster [34, 35].</p>
        <p>According to the work [36], data reliability is ensured through the implementation of
faulttolerant protocols. Most of the existing research in this domain highlights the importance of
employing a stable cluster head architecture, as it is crucial for maintaining the robustness and
efficiency of data transmission throughout the network</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.1.3. Centralized mechanism</title>
        <p>In this approach, each node transmits its data to the master node by following the shortest
available path. All sensor nodes send their collected information to the most computationally
powerful node in the network. The primary function of this central node is to aggregate the
received data and consolidate it into a single unified packet for subsequent transmission.</p>
      </sec>
      <sec id="sec-2-5">
        <title>2.1.4. Traditional compression</title>
        <p>Conventional compression techniques require direct data transmission between sensors to
reduce correlation during the information collection process [37]. This approach ensures that each
sensor is capable of performing complex computations, while the overall efficiency of data
compression is largely influenced by the specific routing strategies employed.</p>
      </sec>
      <sec id="sec-2-6">
        <title>2.1.5. Mobile monitoring nodes with a fixed collection unit</title>
        <p>One of the distinguishing features of this architecture is the inclusion of mobile sensor nodes. In
recent years, this approach has attracted significant attention and has been actively investigated in
many research works [38]. Owing to the mobility of these nodes, the architectural framework
enables a substantial reduction in the total number of sensor nodes required for deployment,
thereby optimizing resource utilization and enhancing overall system efficiency.</p>
      </sec>
      <sec id="sec-2-7">
        <title>2.1.6. Data exchange format</title>
        <p>The structure of data transmitted between devices via communication protocols needs to be
standardized. Due to the limited computational and energy resources of IoT devices, the use of
complex or expanded data formats is constrained for certain applications. Data is typically
represented using formats such as JavaScript Object Notation (JSON) or eXtensible Markup
Language (XML). However, differences in units of measurement, sampling rates, or numerical
systems—especially when multiple platforms are involved—can lead to misinterpretation of the
transmitted data.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. The general architecture of the concept for Smart Cities using IoT</title>
      <p>An interoperable platform must define clear architectural and platform-specific characteristics.
As previously discussed, the most effective approach involves employing a three- layer architecture
consisting of the things layer, an intermediate processing layer, and an integrated application layer.</p>
      <p>The things layer includes a wide range of IoT devices that communicate using various network
protocols and technologies. The intermediate layer acts as middleware or a gateway,
facilitating interaction with IoT devices and enabling local data processing. This layer is typically
implemented using multi-agent systems, service-oriented architectures, RESTful APIs, or
publishsubscribe communication models.</p>
      <p>The application layer is responsible for storing large volumes of data and ensuring its
accessibility for advanced analysis and decision-making processes.</p>
      <p>Previous studies [40, 41, 42] have proposed architectures that follow this structured three- tier
model. At the foundational level, these works explore IoT devices equipped with sensors or
network components responsible for managing sensor infrastructures. These devices connect to the
platform through various access networks, such as Wi-Fi, Bluetooth, or LTE. They continuously
collect, process, and transmit data, making it readily available for a wide range of applications,
including large-scale data analytics and processing.</p>
      <p>Figure 5 shows a three -level architecture that includes both fog-based and gateway-based
approaches.</p>
      <p>According to [43], the system is also divided into fog and cloud computing layers, both of which
are responsible for system offloading and data flow distribution.</p>
      <p>In the architecture can use IEEE 802.11, IEEE 802.15.1, IEEE 802.15.6, and 3G/4G standards to
ensure reliable communication between layers.</p>
      <p>Similar to the approach described in [44], each component of the system—including the IoT
Gateway, Fog Server, and Cloud Server (Figure 6)—is equipped with a set of adapters designed to
support both MQTT and REST protocols over HTTP.</p>
      <p>Each adapter instance is capable of functioning as an intermediary, enabling seamless
communication with its corresponding component in another layer or entity.</p>
      <p>Each IoT sensor is assigned a unique identifier, which serves as a key element for data
aggregation by linking the identifier to both the specific type of sensor and the category of data
being monitored. Data messages are transmitted through adapters, which serve as the payload
within the designated application protocol. Once this transmission process is complete,
applications can receive and process the data accordingly.</p>
      <sec id="sec-3-1">
        <title>3.1. Description concept of the platform</title>
        <p>On figure 7 shows the main components of the platform, which include applications, a cloud
server, an IoT gateway or fog server, and IoT devices. At the top level, the applications are
responsible for processing environmental data, performing intelligent analysis, applying various big
data techniques, implementing machine learning models, and monitoring information to support
decision-making for the efficient operation of a smart city.</p>
        <p>The cloud server acts as a central element of the platform, providing core functionalities for data
storage and processing. It ensures that applications have timely access to the required data. The
information stored in the cloud is supplied by the IoT gateway and the fog server, which play a
crucial role in preprocessing the data and serve as intermediaries for transmitting information
between IoT devices and the cloud infrastructure.</p>
        <p>Smart devices continuously monitor environmental parameters and transmit the collected data
to either the gateway or the fog server for further analysis and processing.</p>
        <p>All components of the system are designed to collect and analyze data related to safety, energy
consumption, equipment malfunctions, and other relevant parameters.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.1.1. Applications</title>
        <p>Applications primarily function as software or hardware clients that interact with the platform
and are capable of performing data mining operations or real -time monitoring. They achieve this
by retrieving data from both cloud and fog servers through specific requests, enabling efficient data
processing and analysis. Machine learning algorithms can be applied to generate estimates or
forecasts of the metrics of interest.</p>
        <p>In the initial scenario, the application subscribes to one or more branches of the MQTT broker
that are of specific interest. This broker may be located on either a fog server or a cloud server,
depending on the scale of the overall system. Each time new data related to specific indicators is
published, the artificial neural network (ANN) is retrained to update its model. Subsequently, the
user or another system can utilize the updated model to generate inferences and predictions. In an
alternative use case, users can apply data mining techniques to extract relevant information
from cloud or fog servers using RESTful services. The retrieved data can then be used to trigger
actions on actuators or other control mechanisms. For example, if a high temperature is
detected, the system can automatically activate fire protection mechanisms to
mitigate potential hazards.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.1.2. Cloud server</title>
        <p>The cloud server integrates various system components. Its main functions include data
analysis, as well as the storage and forwarding of data between gateways, fog servers, and
applications.</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.1.3. Gateway for the Internet of Things</title>
        <p>The gateway offers a visual interface for managing its parameters and facilitates data
forwarding between IoT devices. Given that the gateway has limited computing power, most of its
storage mechanisms are implemented using a local cache. This approach not only supports efficient
data processing but also enables data integrity verification, thereby ensuring reliability and
efficiency in the system's operation.</p>
      </sec>
      <sec id="sec-3-5">
        <title>3.1.4. Fog server</title>
        <p>In a fog server, data storage, processing, services, and protocols perform the same functions as
those of a cloud server. However, the key difference is that the data processed by a fog server
typically pertains to a specific local entity, such as a single building or household, rather than the
entire city.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experiments and evaluation</title>
      <p>To evaluate the performance of the platform, an experiment was conducted to monitor
environmental conditions. For this purpose, between five and twenty smart devices based on ESP32
microcontrollers were used, each equipped with sensors for measuring dust, gas, temperature,
humidity, and noise. These devices were connected to a Wi-Fi network via a standard router,
which was in turn connected via Ethernet cable to a fog server. A 4G mobile Internet connection
was used for communication with the cloud.</p>
      <p>The fog server was implemented using a Raspberry Pi 4 running an MQTT broker and a REST
API web server. The cloud component of the system was emulated in a virtual environment like a
real remote server. The sensors transmitted data at regular intervals of a few seconds, and both
transmission protocols — MQTT and REST — were tested in parallel.</p>
      <p>During the experiment, various parameters were monitored, including data transmission speed,
system stability, data loss rate, CPU and memory usage on the fog server, and the convenience of
data processing at different levels of the system architecture. The impact of increasing the number
of devices on system efficiency was also analyzed. For instance, with five devices, the system
operated stably and without noticeable delays. However, as five more devices were added, and later
ten additional ones, a slight increase in latency and a noticeable rise in CPU load on the fog server
were observed. Nevertheless, even with twenty devices, the system remained fully operational, and
data loss remained minimal. When comparing the two
communication protocols, it became evident that MQTT performed faster and consumed less
Internet bandwidth, making it more suitable for applications that require frequent transmission of
small messages. REST, on the other hand, imposed a greater load on the system but proved to be
better suited for more complex operations or request-response interactions.</p>
      <p>Overall, the experimental results demonstrated that the proposed approach is suitable for
realtime data processing, offers a fast response time, and does not rely on a continuous cloud
connection. The fog server handles on-site processing, which effectively reduces latency. The
platform is flexible and can be applied to a variety of smart city scenarios. In the future, planned to
test its performance in other domains, particularly in traffic management and energy consumption
monitoring.</p>
      <p>Figure 8 shows the network topology structure, where smart devices connect through a Wi- Fi
access point integrated into a router. This router is directly connected to the fog server via an
Ethernet cable, providing a stable wired connection. The communication between the IoT gateway
and the fog server takes place over a local Wi-Fi network, enabling efficient data exchange.
Additionally, a 4G network was used to ensure remote communication between the IoT gateway
and the cloud infrastructure.</p>
      <p>Fog</p>
      <p>Ethernet</p>
      <p>Cloud
t
e
n
r
e
h
t
E
Wi-Fi</p>
      <p>REST
MQTT
Internet
4G</p>
      <p>Data fusion</p>
      <p>App
Parameter
quality App</p>
      <p>IoT Gateway
Bluetooth</p>
      <p>Table 1 presents the maximum and average latency values recorded for each individual
adapter. The REST and MQTT protocol showed a useful speed of about 500ms.</p>
      <p>This work presents the concept of the platform based on the Internet of Things for Smart Cities,
which implements a three-tier IoT architecture. The platform enables the collection, storage, and
processing of data generated within urban environments or specific areas and objects, such as
streets or buildings.</p>
      <p>The system uses fog computing for localized data processing to ensure efficient real-time
operation, while also using cloud-based services and dynamically allocated resources at the
citywide level to support large-scale data management and analysis.</p>
      <p>In this concept proposes several key features:
1. Integration of heterogeneous sensors through smart devices;
2. Dual using of both fog and cloud interfaces, enhancing the platform’s flexibility and allowing
it to be adapted to various tasks involving data collection, analysis, and object management;
3. Support for deploying and running big data analytics and machine learning applications in
the cloud, enabling comprehensive analysis of environmental conditions;</p>
      <p>4. Standardized communication protocols for client applications, using REST and MQTT for
endpoint interaction.</p>
    </sec>
    <sec id="sec-5">
      <title>Declaration on Generative AI</title>
      <p>The authors used GPT-4 and DeepL to prepare this paper: Grammar, Spelling, and Match
Checker. After using AI instruments, the authors reviewed and deeply edited the content and are
solely responsible for that content.
[11] I. Turchenko et al., "Approach to neural-based identification of multisensor conversion
characteristic," 2009 IEEE International Workshop on Intelligent Data Acquisition and Advanced
Computing Systems: Technology and Applications, Rende, Italy, 2009, pp. 27-31
[12] Nazari Jahantigh, Motahareh, et al. "Integration of internet of things and cloud computing: a
systematic survey." IET Communications 14.2 (2020): 165-176.
[13] Dupont, Charlotte, Philippe Cousin, and Samuel Dupont. "IoT for aquaculture 4.0 smart and
easy-to-deploy real-time water monitoring with IoT." 2018 global Internet of Things summit
(GIoTS). IEEE, 2018.
[14] Razmjoo, Armin, et al. An investigation of the policies and crucial sectors of smart cities based
on IoT application. Applied Sciences, 2022, 12.5: 2672.
[15] A. Mihovska, &amp; M. Sarkar, “Smart connectivity for the Internet of things (IoT) applications,”
in New Advances in the Internet of Things, Springer, Cham, 2018, pp. 105-118.
[16] Saravanan, Krishnan, E. Golden Julie, and Y. Harold Robinson. "Smart cities &amp; IoT: Evolution of
applications, architectures &amp; technologies, present scenarios &amp; future dream." Internet of things
and big data analytics for smart generation (2019): 135-151.
[17] Pourzolfaghar, Zohreh, Viviana Bastidas, and Markus Helfert. "Standardisation of enterprise
architecture development for smart cities." Journal of the Knowledge Economy 11.4 (2020):
13361357.
[18] Li, Xiaoming, et al. "Big data analysis of the internet of things in the digital twins of smart city
based on deep learning." Future Generation Computer Systems 128 (2022): 167-177.
[19] Jiang, Dingfu. "The construction of smart city information system based on the Internet of</p>
      <p>Things and cloud computing." Computer Communications 150 (2020): 158-166.
[20] Embarak, Ossama. "Smart Cities New Paradigm Applications and Challenges." Immersive</p>
      <p>Technology in Smart Cities: Augmented and Virtual Reality in IoT (2022): 147-177.
[21] Alavi, Amir H., et al. "Internet of Things-enabled smart cities: State-of-the-art and future
trends." Measurement 129 (2018): 589-606.
[22] Calderoni, Luca, Antonio Magnani, and Dario Maio. "IoT Manager: An open-source IoT
framework for smart cities." Journal of Systems Architecture 98 (2019): 413-423.
[23] Di Martino, Beniamino, et al. "Trends and strategic researches in internet of everything."</p>
      <p>Internet of everything: Algorithms, methodologies, technologies and perspectives (2018): 1- 12.
[24] Ozatay, Murat, and Naveen Verma. "Exploiting emerging sensing technologies toward
structure in data for enhancing perception in Human-Centric applications." IEEE Internet of
Things Journal 6.2 (2018): 3411-3422.
[25] Duda, O., Kobylianska, I., Sachenko, A., and Rybachok, Y. Data Processing in IoT for Smart
City Systems. In Proceedings of the 10th IEEE International Conference on Intelligent Data
Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS), Metz,
France, 2019, pp. 96–99. DOI: 10.1109/IDAACS.2019.8924262
[26] Großwindhager, B., Rupp, A., Tappler, M., Tranninger, M., Weiser, S., Aichernig, B.K., Boano,
C.A., Horn, M., Kubin, G., Mangard, S., Steinberger, M., &amp; Römer, K. Dependable Internet of
Things for Networked Cars. International Journal of Computing, 16(4), 226–237 (2017). DOI:
10.47839/ijc.16.4.911
[27] Rajasekar, V., &amp; Rajkumar, S. A Study on Internet of Things Devices Vulnerabilities using</p>
      <p>Shodan. International Journal of Computing, 22(2), 149–158 (2023). DOI: 10.47839/ijc.22.2.3084
[28] Stamatescu, G., Făgărăşan, I., &amp; Sachenko, A. Sensing and Data-Driven Control for Smart
Building and Smart City Systems. Journal of Sensors, vol. 2019, Article ID 4528034, 3 pages.</p>
      <p>DOI: 10.1155/2019/4528034
[29] FIWARE. FIWARE Foundation. Available online: https://www.fiware.org/ (accessed on 15</p>
      <p>April 2025)
[30] AWS IoT. Amazon Web Services. Available online: https://aws.amazon.com/iot/ (accessed on
15 April 2025).
[31] Azure IoT. Microsoft Azure. Available online: https://azure.microsoft.com/en- us/solutions/iot
(accessed on 15 April 2025).
[32] Saha, Suman, et al. "IoT based smart home automation and monitoring system." Khulna</p>
      <p>University Studies (2022): 133-143.
[33] Yin, B., &amp; Wei, X.: Communication-Efficient Data Aggregation Tree Construction for Complex</p>
      <p>Queries in IoT Applications. IEEE Internet of Things Journal 6(2), 3352-3363 (2018).
[34] Wibisono, Waskitho, et al. "A node density-based approach for energy-efficient data gathering
protocol in wireless sensor network environments." International Journal of Innovative
Computing, Information and Control 16.2 (2020): 681-700.
[35] Wang, Q.: An Energy-Efficient Clustering Algorithm Combined Game Theory and
Dual</p>
      <p>Cluster-Head Mechanism for WSNs. IEEE Access 7(1), 49894-49905 (2019).
[36] Mohapatra, A.D., et al.: Distributed fault diagnosis with dynamic cluster-head and energy
efficient dissemination model for smart city. Sustainable cities and society 43(1), 624-634 (2018).
[37] Hosseinzadeh, Mehdi, Atefeh Hemmati, and Amir Masoud Rahmani. "Clustering for smart
cities in the internet of things: a review." Cluster Computing 25.6 (2022): 4097-4127.
[38] Puneeth, Deepa, and Muralidhar Kulkarni. "Data aggregation using compressive sensing for
energy efficient routing strategy." Procedia Computer Science 171 (2020): 2242-2251.
[39] Ahmed, Mohammed M., et al. "Maximizing lifetime of large -scale wireless sensor networks
using multi-objective whale optimization algorithm." Telecommunication Systems 72 (2019):
243-259.
[40] Bansal, Sharu, and Dilip Kumar. "IoT ecosystem: A survey on devices, gateways, operating
systems, middleware and communication." International Journal of Wireless Information
Networks 27.3 (2020): 340-364.
[41] Mohamed, Nader, et al. "Applications of integrated IoT-fog-cloud systems to smart cities: A
survey." Electronics 10.23 (2021): 2918.
[42] Santos PM, Rodrigues JoaoGP, Cruz SB, et al. PortoLivingLab: An IoT-based sensing platform
for smart cities. IEEE Int Things J. 2018;5(2):523-532.
https://doi.org/10.1109/JIOT.2018.2791522
[43] De Nicola, Antonio, and Maria Luisa Villani. "Smart city ontologies and their applications: A
systematic literature review." Sustainability 13.10 (2021): 5578.
[44] Lakka, Eftychia, et al. "End-to-end semantic interoperability mechanisms for IoT." 2019 IEEE
24th International Workshop on Computer Aided Modeling and Design of Communication
Links and Networks (CAMAD). IEEE, 2019.
[45] Sun, Yun, Herman Fesenko, Vyacheslav Kharchenko, Luo Zhong, Ihor Kliushnikov, Oleg
Illiashenko, Olga Morozova, and Anatoliy Sachenko. 2022. "UAV and IoT-Based Systems for
the Monitoring of Industrial Facilities Using Digital Twins: Methodology, Reliability Models,
and Application" Sensors 22, no. 17: 6444. https://doi.org/10.3390/s22176444
[46] V. Brych, V. Manzhula, B. Brych, N. Halysh, Y. Ursakii and V. Homotiuk, "Estimating the
Efficiency of the Energy Service Market Functioning in Ukraine," 2020 10th International
Conference on Advanced Computer Information Technologies (ACIT), Deggendorf, Germany,
2020, pp. 670-673, doi: 10.1109/ACIT49673.2020.9208858.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Ray</surname>
            ,
            <given-names>P.P.:</given-names>
          </string-name>
          <article-title>A survey on Inte rnet of Things architectures</article-title>
          .
          <source>Journal of King Saud University Computer and Information Sciences</source>
          <volume>30</volume>
          (
          <issue>3</issue>
          ),
          <fpage>291</fpage>
          -
          <lpage>319</lpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <surname>Dong-Seong</surname>
          </string-name>
          , and
          <string-name>
            <surname>Hoa</surname>
          </string-name>
          Tran-Dang.
          <article-title>"Industrial sensors and controls in communication networks." Computer Communications and Networks</article-title>
          . Cham: Springer International Publishing,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Syed</surname>
            ,
            <given-names>Abbas</given-names>
          </string-name>
          <string-name>
            <surname>Shah</surname>
          </string-name>
          , et al.
          <article-title>"IoT in smart cities: A survey of technologies, practices and challenges</article-title>
          .
          <source>" Smart Cities 4.2</source>
          (
          <year>2021</year>
          ):
          <fpage>429</fpage>
          -
          <lpage>475</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Talari</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , et al:
          <article-title>A review of smart cities based on the internet of things concept</article-title>
          .
          <source>Energies</source>
          <volume>10</volume>
          (
          <issue>4</issue>
          ),
          <fpage>1</fpage>
          -
          <lpage>23</lpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Burhan</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          , et al:
          <article-title>IoT elements, layered architectures and security issues: A comprehensive survey</article-title>
          .
          <source>Sensors</source>
          <volume>18</volume>
          (
          <issue>9</issue>
          ),
          <fpage>1</fpage>
          -
          <lpage>37</lpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Xun</surname>
            , and
            <given-names>Hongbin</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>"A survey of compressive data gathering in WSNs for IoTs."</article-title>
          <source>Wireless Communications and Mobile Computing</source>
          <year>2022</year>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Rathore</surname>
            ,
            <given-names>M. M.</given-names>
          </string-name>
          , et al:
          <article-title>Exploiting IoT and big data analytics: Defining a smart digital city using real-time urban data</article-title>
          .
          <source>Sustainable Cities and Society</source>
          <volume>40</volume>
          (
          <issue>1</issue>
          ),
          <fpage>600</fpage>
          -
          <lpage>610</lpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Bibri</surname>
            ,
            <given-names>Simon</given-names>
          </string-name>
          <string-name>
            <surname>Elias</surname>
            ,
            <given-names>and John</given-names>
          </string-name>
          <string-name>
            <surname>Krogstie</surname>
          </string-name>
          .
          <article-title>"Smart sustainable cities of the future: An extensive interdisciplinary literature review</article-title>
          .
          <source>" Sustainable cities and society 31</source>
          (
          <year>2017</year>
          ):
          <fpage>183</fpage>
          -
          <lpage>212</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Sachenko</surname>
          </string-name>
          ,
          <string-name>
            <surname>Anatoliy</surname>
          </string-name>
          , et al.
          <article-title>"Development of the flexible traffic control system using the LabView and ThingSpeak</article-title>
          .
          <source>" 2020 IEEE 11th International Conference on Dependable Systems</source>
          ,
          <article-title>Services and Technologies (DESSERT)</article-title>
          . IEEE,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Lipyanina</surname>
          </string-name>
          ,
          <string-name>
            <surname>Hrystyna</surname>
          </string-name>
          , et al.
          <article-title>"Assessing the investment risk of virtual IT company based on machine learning</article-title>
          .
          <source>" International Conference on Data Stream Mining and Processing</source>
          . Cham: Springer International Publishing,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>